xmlmetai.cxx (cdf0e10c) xmlmetai.cxx (f6348da9)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 285 unchanged lines hidden (view full) ---

294 {
295 sBuildId = OUString::createFromAscii( "645$8687" );
296 }
297 if ((i_rBuildId.compareToAscii( RTL_CONSTASCII_STRINGPARAM("NeoOffice/2") ) == 0) )
298 {
299 sBuildId = OUString::createFromAscii( "680$9134" ); // fake NeoOffice as OpenOffice.org 2.2 release
300 }
301 }
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 285 unchanged lines hidden (view full) ---

294 {
295 sBuildId = OUString::createFromAscii( "645$8687" );
296 }
297 if ((i_rBuildId.compareToAscii( RTL_CONSTASCII_STRINGPARAM("NeoOffice/2") ) == 0) )
298 {
299 sBuildId = OUString::createFromAscii( "680$9134" ); // fake NeoOffice as OpenOffice.org 2.2 release
300 }
301 }
302 else
303 {
304 if ((i_rBuildId.compareToAscii( RTL_CONSTASCII_STRINGPARAM("LibreOffice/3") ) == 0) )
305 {
306 // #118558# fake LibreOffice3 as OpenOffice.org 3.3 release
307 sBuildId = OUString::createFromAscii( "330$9567" );
308 }
309 }
302
303 if ( sBuildId.getLength() ) try
304 {
305 if( xImportInfo.is() )
306 {
307 const OUString aPropName(RTL_CONSTASCII_USTRINGPARAM("BuildId"));
308 uno::Reference< beans::XPropertySetInfo > xSetInfo(
309 xImportInfo->getPropertySetInfo());
310 if( xSetInfo.is() && xSetInfo->hasPropertyByName( aPropName ) )
311 xImportInfo->setPropertyValue( aPropName, uno::makeAny( sBuildId ) );
312 }
313 }
314 catch( uno::Exception& )
315 {
316 }
317}
318
310
311 if ( sBuildId.getLength() ) try
312 {
313 if( xImportInfo.is() )
314 {
315 const OUString aPropName(RTL_CONSTASCII_USTRINGPARAM("BuildId"));
316 uno::Reference< beans::XPropertySetInfo > xSetInfo(
317 xImportInfo->getPropertySetInfo());
318 if( xSetInfo.is() && xSetInfo->hasPropertyByName( aPropName ) )
319 xImportInfo->setPropertyValue( aPropName, uno::makeAny( sBuildId ) );
320 }
321 }
322 catch( uno::Exception& )
323 {
324 }
325}
326