Type: info
         Title: ODFVER_LATEST added to enum ODFDefaultVersion
     Posted by: [email protected]
      Affected: 
[email protected],[email protected],[email protected],[email protected],chart2,
 sc, sd, svtools, sw
         TaskId: i95188
<http://www.openoffice.org/issues/show_bug.cgi?id=95188>
Effective from: cws impressnotes01
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/impressnotes01>
    CWS status: ready for QA


*Summary*
--------
ODFVER_LATEST added to enum ODFDefaultVersion

*Description*
-------------
the enum value ODFVER_LATEST is defined as being the newest ODF
version including extensions not yet available in any ODF version.

It is not recommended to use this enum to check for a known version
(f.e. to verify that the user selected "1.2 Extended" because this
enum will represent different versions as new ODF versions will be
published.

If you add a feature that is not part of ODF 1.2 but will be part of
the next version you must check

if( !( SvtSaveOptions::GetODFDefaultVersion() <=
SvtSaveOptions::ODFVER_012) )
{
  // enable odf 1.2 extended feature
}

If a feature is available in a specific published version (f.e. 1.2)
you must use

if( SvtSaveOptions::GetODFDefaultVersion() >=
SvtSaveOptions::ODFVER_012 ) 
{
  // enable odf 1.2 feature
}




Send feedback to [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to