INTEGRATION: CWS mba24issues01 (1.23.54); FILE MERGED

2007/12/15 13:18:48 mba 1.23.54.1: #i81588#: use DocInfo for document language
This commit is contained in:
Oliver Bolte
2008-01-04 13:58:20 +00:00
parent 08ca381cd6
commit 4313a28c32

View File

@@ -4,9 +4,9 @@
*
* $RCSfile: xmlmetae.cxx,v $
*
* $Revision: 1.23 $
* $Revision: 1.24 $
*
* last change: $Author: obo $ $Date: 2007-07-17 12:59:05 $
* last change: $Author: obo $ $Date: 2008-01-04 14:58:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -157,15 +157,13 @@ SfxXMLMetaExport::SfxXMLMetaExport(
xInfoProp = uno::Reference<beans::XPropertySet>( xDocInfo, uno::UNO_QUERY );
}
uno::Reference<beans::XPropertySet> xDocProp( rDocModel, uno::UNO_QUERY );
if ( xDocProp.is() )
if ( xInfoProp.is() )
{
// get document language from document properties
// (not available for all document types)
try
{
uno::Any aLocAny = xDocProp->getPropertyValue(
uno::Any aLocAny = xInfoProp->getPropertyValue(
rtl::OUString::createFromAscii( PROP_CHARLOCALE ) );
aLocAny >>= aLocale;
}