summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlexpit.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2002-06-19 12:07:54 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2002-06-19 12:07:54 +0000
commita31dbd3d1d78c6bb479215eedd64417b8a7fd6fd (patch)
treed3603ab23fc1c13d3fc643937ec64b05bf402bdc /sw/source/filter/xml/xmlexpit.cxx
parent1bb7089db4369bed1159b4a1c8e9efdb696625e2 (diff)
#98281# add style:writing-mode attribute to table styles
Diffstat (limited to 'sw/source/filter/xml/xmlexpit.cxx')
-rw-r--r--sw/source/filter/xml/xmlexpit.cxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlexpit.cxx b/sw/source/filter/xml/xmlexpit.cxx
index 35c07f79285e..863377ff9a86 100644
--- a/sw/source/filter/xml/xmlexpit.cxx
+++ b/sw/source/filter/xml/xmlexpit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlexpit.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: dvo $ $Date: 2001-10-26 12:02:46 $
+ * last change: $Author: dvo $ $Date: 2002-06-19 13:07:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -170,6 +170,14 @@
#include <xmloff/xmltoken.hxx>
#endif
+#ifndef _XMLOFF_PROPERTYHANDLERFACTORY_HXX
+#include <xmloff/prhdlfac.hxx>
+#endif
+
+#ifndef _XMLOFF_XMLTYPES_HXX
+#include <xmloff/xmltypes.hxx>
+#endif
+
#ifndef _SW_XMLITHLP_HXX
#include "xmlithlp.hxx"
#endif
@@ -178,6 +186,7 @@
using namespace ::rtl;
using namespace ::com::sun::star;
using namespace ::xmloff::token;
+using ::com::sun::star::uno::Any;
/** fills the given attribute list with the items in the given set */
void SvXMLExportItemMapper::exportXML( SvXMLAttributeList& rAttrList,
@@ -1100,6 +1109,24 @@ sal_Bool SvXMLExportItemMapper::QueryXMLValue(
}
break;
+ case RES_FRAMEDIR:
+ {
+ Any aAny;
+ bOk = rItem.QueryValue( aAny );
+ if( bOk )
+ {
+ const XMLPropertyHandler* pWritingModeHandler =
+ XMLPropertyHandlerFactory::CreatePropertyHandler(
+ XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT );
+ OUString sValue;
+ bOk = pWritingModeHandler->exportXML( sValue, aAny,
+ rUnitConverter );
+ if( bOk )
+ aOut.append( sValue );
+ }
+ }
+ break;
+
default:
DBG_ERROR("GetXMLValue not implemented for this item.");
break;