info/cws impressnotes01 : ODFVER_LATEST added to enum ODFDefaultVersion

[email protected] Thu, 10 Sep 2009 11:06:45 +0200 (CEST)
Newsgroups gmane.comp.openoffice.announce.interface
Message-ID <30424607.3921252573605538.JavaMail.root@so-web5>
------=_Part_54540_25534482.1252573605536
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit



          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]



------=_Part_54540_25534482.1252573605536
Content-Type: text/plain; charset=us-ascii

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
------=_Part_54540_25534482.1252573605536--