Kaydet (Commit) f1684e18 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS odfversion (1.106.34); FILE MERGED

2008/04/10 10:18:44 cl 1.106.34.1: #i88125# detect document generator version
üst 867e4f64
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: xmlimp.cxx,v $ * $RCSfile: xmlimp.cxx,v $
* $Revision: 1.107 $ * $Revision: 1.108 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -1790,6 +1790,22 @@ bool SvXMLImport::getBuildIds( sal_Int32& rUPD, sal_Int32& rBuild ) const ...@@ -1790,6 +1790,22 @@ bool SvXMLImport::getBuildIds( sal_Int32& rUPD, sal_Int32& rBuild ) const
return bRet; return bRet;
} }
sal_uInt16 SvXMLImport::getGeneratorVersion() const
{
sal_Int32 nUPD, nBuild;
if( getBuildIds( nUPD, nBuild ) )
{
if( nUPD == 680 )
return OOo_2x;
if( nUPD >= 640 && nUPD <= 645 )
return OOo_1x;
}
return OOo_Current;
}
bool SvXMLImport::isGraphicLoadOnDemandSupported() const bool SvXMLImport::isGraphicLoadOnDemandSupported() const
{ {
return mbIsGraphicLoadOnDemandSupported; return mbIsGraphicLoadOnDemandSupported;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment