summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-07-06 06:56:15 +0000
committerRüdiger Timm <rt@openoffice.org>2007-07-06 06:56:15 +0000
commit50b4b905d6a21ce93431ea75dce6d5d95f6501f8 (patch)
treefe2b56339dd5d248d3196f69a0091beb150acb6c /dbaccess
parentadd18b701f96cb0f5f38725d849e237436ecfd2a (diff)
INTEGRATION: CWS oj14 (1.8.4); FILE MERGED
2007/06/04 17:56:52 oj 1.8.4.4: RESYNC: (1.14-1.15); FILE MERGED 2006/11/07 09:00:37 oj 1.8.4.3: RESYNC: (1.9-1.14); FILE MERGED 2006/07/04 07:43:08 oj 1.8.4.2: RESYNC: (1.8-1.9); FILE MERGED 2006/03/20 07:49:58 oj 1.8.4.1: store table font
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 5edc12438f02..03e7db53c7a7 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: xmlExport.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: kz $ $Date: 2007-05-09 13:24:20 $
+ * last change: $Author: rt $ $Date: 2007-07-06 07:56:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -918,6 +918,16 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp)
{
if ( !aPropertyStates.empty() )
m_aAutoStyleNames.insert( TPropertyStyleMap::value_type(_xProp,GetAutoStylePool()->Add( XML_STYLE_FAMILY_TABLE_TABLE, aPropertyStates )));
+ try
+ {
+ awt::FontDescriptor aFont;
+ _xProp->getPropertyValue(PROPERTY_FONT) >>= aFont;
+ GetFontAutoStylePool()->Add(aFont.Name,aFont.StyleName,aFont.Family,aFont.Pitch,aFont.CharSet );
+ }
+ catch(Exception&)
+ {
+ // not interested in
+ }
Reference< XNameAccess > xCollection = xSup->getColumns();
try
{