1*38d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*38d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*38d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*38d50f7bSAndrew Rist * distributed with this work for additional information 6*38d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*38d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*38d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 9*38d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 10*38d50f7bSAndrew Rist * 11*38d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*38d50f7bSAndrew Rist * 13*38d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*38d50f7bSAndrew Rist * software distributed under the License is distributed on an 15*38d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*38d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 17*38d50f7bSAndrew Rist * specific language governing permissions and limitations 18*38d50f7bSAndrew Rist * under the License. 19*38d50f7bSAndrew Rist * 20*38d50f7bSAndrew Rist *************************************************************/ 21*38d50f7bSAndrew Rist 22*38d50f7bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SC_XMLSTYLE_HXX 25cdf0e10cSrcweir #define SC_XMLSTYLE_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <xmloff/maptype.hxx> 28cdf0e10cSrcweir #include <xmloff/xmlaustp.hxx> 29cdf0e10cSrcweir #include <xmloff/xmltypes.hxx> 30cdf0e10cSrcweir #include <xmloff/xmlprmap.hxx> 31cdf0e10cSrcweir #include <xmloff/prhdlfac.hxx> 32cdf0e10cSrcweir #include <xmloff/styleexp.hxx> 33cdf0e10cSrcweir #include <xmloff/xmlexppr.hxx> 34cdf0e10cSrcweir #include <xmloff/contextid.hxx> 35cdf0e10cSrcweir 36cdf0e10cSrcweir extern const XMLPropertyMapEntry aXMLScCellStylesProperties[]; 37cdf0e10cSrcweir extern const XMLPropertyMapEntry aXMLScColumnStylesProperties[]; 38cdf0e10cSrcweir extern const XMLPropertyMapEntry aXMLScRowStylesProperties[]; 39cdf0e10cSrcweir extern const XMLPropertyMapEntry aXMLScRowStylesImportProperties[]; 40cdf0e10cSrcweir extern const XMLPropertyMapEntry aXMLScTableStylesProperties[]; 41cdf0e10cSrcweir extern const XMLPropertyMapEntry aXMLScTableStylesImportProperties[]; 42cdf0e10cSrcweir 43cdf0e10cSrcweir //CellStyles 44cdf0e10cSrcweir #define XML_SC_TYPE_CELLPROTECTION (XML_SC_TYPES_START + 1) 45cdf0e10cSrcweir #define XML_SC_TYPE_PRINTCONTENT (XML_SC_TYPES_START + 2) 46cdf0e10cSrcweir #define XML_SC_TYPE_HORIJUSTIFY (XML_SC_TYPES_START + 3) 47cdf0e10cSrcweir #define XML_SC_TYPE_HORIJUSTIFYSOURCE (XML_SC_TYPES_START + 4) 48cdf0e10cSrcweir #define XML_SC_TYPE_HORIJUSTIFYREPEAT (XML_SC_TYPES_START + 5) 49cdf0e10cSrcweir #define XML_SC_TYPE_ORIENTATION (XML_SC_TYPES_START + 6) 50cdf0e10cSrcweir #define XML_SC_TYPE_ROTATEANGLE (XML_SC_TYPES_START + 7) 51cdf0e10cSrcweir #define XML_SC_TYPE_ROTATEREFERENCE (XML_SC_TYPES_START + 8) 52cdf0e10cSrcweir #define XML_SC_TYPE_BORDERLEFT (XML_SC_TYPES_START + 9) 53cdf0e10cSrcweir #define XML_SC_TYPE_BORDERRIGHT (XML_SC_TYPES_START + 10) 54cdf0e10cSrcweir #define XML_SC_TYPE_BORDERTOP (XML_SC_TYPES_START + 11) 55cdf0e10cSrcweir #define XML_SC_TYPE_BORDERBOTTOM (XML_SC_TYPES_START + 12) 56cdf0e10cSrcweir #define XML_SC_TYPE_VERTJUSTIFY (XML_SC_TYPES_START + 13) 57cdf0e10cSrcweir #define XML_SC_ISTEXTWRAPPED (XML_SC_TYPES_START + 14) 58cdf0e10cSrcweir #define XML_SC_TYPE_EQUAL (XML_SC_TYPES_START + 15) 59cdf0e10cSrcweir #define XML_SC_TYPE_VERTICAL (XML_SC_TYPES_START + 16) 60cdf0e10cSrcweir 61cdf0e10cSrcweir #define CTF_SC_HORIJUSTIFY (XML_SC_CTF_START + 1) 62cdf0e10cSrcweir #define CTF_SC_HORIJUSTIFY_SOURCE (XML_SC_CTF_START + 2) 63cdf0e10cSrcweir #define CTF_SC_ALLPADDING (XML_SC_CTF_START + 3) 64cdf0e10cSrcweir #define CTF_SC_BOTTOMPADDING (XML_SC_CTF_START + 4) 65cdf0e10cSrcweir #define CTF_SC_LEFTPADDING (XML_SC_CTF_START + 5) 66cdf0e10cSrcweir #define CTF_SC_RIGHTPADDING (XML_SC_CTF_START + 6) 67cdf0e10cSrcweir #define CTF_SC_TOPPADDING (XML_SC_CTF_START + 7) 68cdf0e10cSrcweir #define CTF_SC_ALLBORDER (XML_SC_CTF_START + 8) 69cdf0e10cSrcweir #define CTF_SC_LEFTBORDER (XML_SC_CTF_START + 9) 70cdf0e10cSrcweir #define CTF_SC_RIGHTBORDER (XML_SC_CTF_START + 10) 71cdf0e10cSrcweir #define CTF_SC_TOPBORDER (XML_SC_CTF_START + 11) 72cdf0e10cSrcweir #define CTF_SC_BOTTOMBORDER (XML_SC_CTF_START + 12) 73cdf0e10cSrcweir #define CTF_SC_ALLBORDERWIDTH (XML_SC_CTF_START + 13) 74cdf0e10cSrcweir #define CTF_SC_LEFTBORDERWIDTH (XML_SC_CTF_START + 14) 75cdf0e10cSrcweir #define CTF_SC_RIGHTBORDERWIDTH (XML_SC_CTF_START + 15) 76cdf0e10cSrcweir #define CTF_SC_TOPBORDERWIDTH (XML_SC_CTF_START + 16) 77cdf0e10cSrcweir #define CTF_SC_BOTTOMBORDERWIDTH (XML_SC_CTF_START + 17) 78cdf0e10cSrcweir #define CTF_SC_NUMBERFORMAT (XML_SC_CTF_START + 18) 79cdf0e10cSrcweir #define CTF_SC_MAP (XML_SC_CTF_START + 19) 80cdf0e10cSrcweir #define CTF_SC_PARAINDENT (XML_SC_CTF_START + 20) 81cdf0e10cSrcweir #define CTF_SC_OLDTEXTBACKGROUND (XML_SC_CTF_START + 21) 82cdf0e10cSrcweir #define CTF_SC_IMPORT_MAP (XML_SC_CTF_START + 22) 83cdf0e10cSrcweir #define CTF_SC_CELLSTYLE (XML_SC_CTF_START + 23) 84cdf0e10cSrcweir #define CTF_SC_VALIDATION (XML_SC_CTF_START + 24) 85cdf0e10cSrcweir #define CTF_SC_DIAGONALTLBR (XML_SC_CTF_START + 25) 86cdf0e10cSrcweir #define CTF_SC_DIAGONALTLBRWIDTH (XML_SC_CTF_START + 26) 87cdf0e10cSrcweir #define CTF_SC_DIAGONALBLTR (XML_SC_CTF_START + 27) 88cdf0e10cSrcweir #define CTF_SC_DIAGONALBLTRWIDTH (XML_SC_CTF_START + 28) 89cdf0e10cSrcweir #define CTF_SC_DIAGONALTLBRWIDTHS (XML_SC_CTF_START + 29) 90cdf0e10cSrcweir #define CTF_SC_DIAGONALBLTRWIDTHS (XML_SC_CTF_START + 30) 91cdf0e10cSrcweir 92cdf0e10cSrcweir #define CTF_SC_ROWHEIGHT (XML_SC_CTF_START + 50) 93cdf0e10cSrcweir #define CTF_SC_ROWOPTIMALHEIGHT (XML_SC_CTF_START + 51) 94cdf0e10cSrcweir #define CTF_SC_ROWBREAKBEFORE (XML_SC_CTF_START + 52) 95cdf0e10cSrcweir #define CTF_SC_ISVISIBLE (XML_SC_CTF_START + 53) 96cdf0e10cSrcweir 97cdf0e10cSrcweir #define CTF_SC_MASTERPAGENAME (XML_SC_CTF_START + 53) 98cdf0e10cSrcweir 99cdf0e10cSrcweir //ColumnStyles 100cdf0e10cSrcweir #define XML_SC_TYPE_BREAKBEFORE (XML_SC_TYPES_START + 50) 101cdf0e10cSrcweir 102cdf0e10cSrcweir class ScXMLExport; 103cdf0e10cSrcweir class ScXMLImport; 104cdf0e10cSrcweir 105cdf0e10cSrcweir class ScXMLCellExportPropertyMapper : public SvXMLExportPropertyMapper 106cdf0e10cSrcweir { 107cdf0e10cSrcweir protected: 108cdf0e10cSrcweir /** Application-specific filter. By default do nothing. */ 109cdf0e10cSrcweir virtual void ContextFilter( 110cdf0e10cSrcweir ::std::vector< XMLPropertyState >& rProperties, 111cdf0e10cSrcweir ::com::sun::star::uno::Reference< 112cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet > rPropSet ) const; 113cdf0e10cSrcweir public: 114cdf0e10cSrcweir ScXMLCellExportPropertyMapper( 115cdf0e10cSrcweir const UniReference< XMLPropertySetMapper >& rMapper ); 116cdf0e10cSrcweir virtual ~ScXMLCellExportPropertyMapper(); 117cdf0e10cSrcweir 118cdf0e10cSrcweir /** this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set */ 119cdf0e10cSrcweir virtual void handleSpecialItem( 120cdf0e10cSrcweir SvXMLAttributeList& rAttrList, 121cdf0e10cSrcweir const XMLPropertyState& rProperty, 122cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter, 123cdf0e10cSrcweir const SvXMLNamespaceMap& rNamespaceMap, 124cdf0e10cSrcweir const ::std::vector< XMLPropertyState > *pProperties = 0, 125cdf0e10cSrcweir sal_uInt32 nIdx = 0 ) const; 126cdf0e10cSrcweir }; 127cdf0e10cSrcweir 128cdf0e10cSrcweir class ScXMLRowExportPropertyMapper : public SvXMLExportPropertyMapper 129cdf0e10cSrcweir { 130cdf0e10cSrcweir protected: 131cdf0e10cSrcweir /** Application-specific filter. By default do nothing. */ 132cdf0e10cSrcweir virtual void ContextFilter( 133cdf0e10cSrcweir ::std::vector< XMLPropertyState >& rProperties, 134cdf0e10cSrcweir ::com::sun::star::uno::Reference< 135cdf0e10cSrcweir ::com::sun::star::beans::XPropertySet > rPropSet ) const; 136cdf0e10cSrcweir public: 137cdf0e10cSrcweir ScXMLRowExportPropertyMapper( 138cdf0e10cSrcweir const UniReference< XMLPropertySetMapper >& rMapper ); 139cdf0e10cSrcweir virtual ~ScXMLRowExportPropertyMapper(); 140cdf0e10cSrcweir }; 141cdf0e10cSrcweir 142cdf0e10cSrcweir class ScXMLColumnExportPropertyMapper : public SvXMLExportPropertyMapper 143cdf0e10cSrcweir { 144cdf0e10cSrcweir public: 145cdf0e10cSrcweir ScXMLColumnExportPropertyMapper( 146cdf0e10cSrcweir const UniReference< XMLPropertySetMapper >& rMapper ); 147cdf0e10cSrcweir virtual ~ScXMLColumnExportPropertyMapper(); 148cdf0e10cSrcweir 149cdf0e10cSrcweir /** this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set */ 150cdf0e10cSrcweir virtual void handleSpecialItem( 151cdf0e10cSrcweir SvXMLAttributeList& rAttrList, 152cdf0e10cSrcweir const XMLPropertyState& rProperty, 153cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter, 154cdf0e10cSrcweir const SvXMLNamespaceMap& rNamespaceMap, 155cdf0e10cSrcweir const ::std::vector< XMLPropertyState > *pProperties = 0, 156cdf0e10cSrcweir sal_uInt32 nIdx = 0 ) const; 157cdf0e10cSrcweir }; 158cdf0e10cSrcweir 159cdf0e10cSrcweir class ScXMLTableExportPropertyMapper : public SvXMLExportPropertyMapper 160cdf0e10cSrcweir { 161cdf0e10cSrcweir protected: 162cdf0e10cSrcweir public: 163cdf0e10cSrcweir ScXMLTableExportPropertyMapper( 164cdf0e10cSrcweir const UniReference< XMLPropertySetMapper >& rMapper ); 165cdf0e10cSrcweir virtual ~ScXMLTableExportPropertyMapper(); 166cdf0e10cSrcweir 167cdf0e10cSrcweir /** this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set */ 168cdf0e10cSrcweir virtual void handleSpecialItem( 169cdf0e10cSrcweir SvXMLAttributeList& rAttrList, 170cdf0e10cSrcweir const XMLPropertyState& rProperty, 171cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter, 172cdf0e10cSrcweir const SvXMLNamespaceMap& rNamespaceMap, 173cdf0e10cSrcweir const ::std::vector< XMLPropertyState > *pProperties = 0, 174cdf0e10cSrcweir sal_uInt32 nIdx = 0 ) const; 175cdf0e10cSrcweir }; 176cdf0e10cSrcweir 177cdf0e10cSrcweir class ScXMLAutoStylePoolP : public SvXMLAutoStylePoolP 178cdf0e10cSrcweir { 179cdf0e10cSrcweir ScXMLExport& rScXMLExport; 180cdf0e10cSrcweir 181cdf0e10cSrcweir virtual void exportStyleAttributes( 182cdf0e10cSrcweir SvXMLAttributeList& rAttrList, 183cdf0e10cSrcweir sal_Int32 nFamily, 184cdf0e10cSrcweir const ::std::vector< XMLPropertyState >& rProperties, 185cdf0e10cSrcweir const SvXMLExportPropertyMapper& rPropExp, 186cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter, 187cdf0e10cSrcweir const SvXMLNamespaceMap& rNamespaceMap 188cdf0e10cSrcweir ) const; 189cdf0e10cSrcweir 190cdf0e10cSrcweir virtual void exportStyleContent( 191cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler, 192cdf0e10cSrcweir sal_Int32 nFamily, 193cdf0e10cSrcweir const ::std::vector< XMLPropertyState >& rProperties, 194cdf0e10cSrcweir const SvXMLExportPropertyMapper& rPropExp 195cdf0e10cSrcweir , const SvXMLUnitConverter& rUnitConverter, 196cdf0e10cSrcweir const SvXMLNamespaceMap& rNamespaceMap 197cdf0e10cSrcweir ) const; 198cdf0e10cSrcweir 199cdf0e10cSrcweir public: 200cdf0e10cSrcweir ScXMLAutoStylePoolP(ScXMLExport& rScXMLExport); 201cdf0e10cSrcweir virtual ~ScXMLAutoStylePoolP(); 202cdf0e10cSrcweir }; 203cdf0e10cSrcweir 204cdf0e10cSrcweir class ScXMLStyleExport : public XMLStyleExport 205cdf0e10cSrcweir { 206cdf0e10cSrcweir virtual void exportStyleAttributes( 207cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 208cdf0e10cSrcweir ::com::sun::star::style::XStyle > & rStyle ); 209cdf0e10cSrcweir virtual void exportStyleContent( 210cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 211cdf0e10cSrcweir ::com::sun::star::style::XStyle > & rStyle ); 212cdf0e10cSrcweir public: 213cdf0e10cSrcweir ScXMLStyleExport( 214cdf0e10cSrcweir SvXMLExport& rExp, 215cdf0e10cSrcweir const ::rtl::OUString& rPoolStyleName, 216cdf0e10cSrcweir SvXMLAutoStylePoolP *pAutoStyleP=0 ); 217cdf0e10cSrcweir virtual ~ScXMLStyleExport(); 218cdf0e10cSrcweir }; 219cdf0e10cSrcweir 220cdf0e10cSrcweir class XMLScPropHdlFactory : public XMLPropertyHandlerFactory 221cdf0e10cSrcweir { 222cdf0e10cSrcweir public: 223cdf0e10cSrcweir XMLScPropHdlFactory(); 224cdf0e10cSrcweir virtual ~XMLScPropHdlFactory(); 225cdf0e10cSrcweir virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const; 226cdf0e10cSrcweir }; 227cdf0e10cSrcweir 228cdf0e10cSrcweir class XmlScPropHdl_CellProtection : public XMLPropertyHandler 229cdf0e10cSrcweir { 230cdf0e10cSrcweir public: 231cdf0e10cSrcweir virtual ~XmlScPropHdl_CellProtection(); 232cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 233cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 234cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 235cdf0e10cSrcweir }; 236cdf0e10cSrcweir 237cdf0e10cSrcweir class XmlScPropHdl_PrintContent : public XMLPropertyHandler 238cdf0e10cSrcweir { 239cdf0e10cSrcweir public: 240cdf0e10cSrcweir virtual ~XmlScPropHdl_PrintContent(); 241cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 242cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 243cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 244cdf0e10cSrcweir }; 245cdf0e10cSrcweir 246cdf0e10cSrcweir class XmlScPropHdl_HoriJustify : public XMLPropertyHandler 247cdf0e10cSrcweir { 248cdf0e10cSrcweir public: 249cdf0e10cSrcweir virtual ~XmlScPropHdl_HoriJustify(); 250cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 251cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 252cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 253cdf0e10cSrcweir }; 254cdf0e10cSrcweir 255cdf0e10cSrcweir class XmlScPropHdl_HoriJustifySource : public XMLPropertyHandler 256cdf0e10cSrcweir { 257cdf0e10cSrcweir public: 258cdf0e10cSrcweir virtual ~XmlScPropHdl_HoriJustifySource(); 259cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 260cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 261cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 262cdf0e10cSrcweir }; 263cdf0e10cSrcweir 264cdf0e10cSrcweir class XmlScPropHdl_HoriJustifyRepeat : public XMLPropertyHandler 265cdf0e10cSrcweir { 266cdf0e10cSrcweir public: 267cdf0e10cSrcweir virtual ~XmlScPropHdl_HoriJustifyRepeat(); 268cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 269cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 270cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 271cdf0e10cSrcweir }; 272cdf0e10cSrcweir 273cdf0e10cSrcweir class XmlScPropHdl_Orientation : public XMLPropertyHandler 274cdf0e10cSrcweir { 275cdf0e10cSrcweir public: 276cdf0e10cSrcweir virtual ~XmlScPropHdl_Orientation(); 277cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 278cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 279cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 280cdf0e10cSrcweir }; 281cdf0e10cSrcweir 282cdf0e10cSrcweir class XmlScPropHdl_RotateAngle : public XMLPropertyHandler 283cdf0e10cSrcweir { 284cdf0e10cSrcweir public: 285cdf0e10cSrcweir virtual ~XmlScPropHdl_RotateAngle(); 286cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 287cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 288cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 289cdf0e10cSrcweir }; 290cdf0e10cSrcweir 291cdf0e10cSrcweir class XmlScPropHdl_RotateReference : public XMLPropertyHandler 292cdf0e10cSrcweir { 293cdf0e10cSrcweir public: 294cdf0e10cSrcweir virtual ~XmlScPropHdl_RotateReference(); 295cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 296cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 297cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 298cdf0e10cSrcweir }; 299cdf0e10cSrcweir 300cdf0e10cSrcweir class XmlScPropHdl_VertJustify : public XMLPropertyHandler 301cdf0e10cSrcweir { 302cdf0e10cSrcweir public: 303cdf0e10cSrcweir virtual ~XmlScPropHdl_VertJustify(); 304cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 305cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 306cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 307cdf0e10cSrcweir }; 308cdf0e10cSrcweir 309cdf0e10cSrcweir class XmlScPropHdl_BreakBefore : public XMLPropertyHandler 310cdf0e10cSrcweir { 311cdf0e10cSrcweir public: 312cdf0e10cSrcweir virtual ~XmlScPropHdl_BreakBefore(); 313cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 314cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 315cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 316cdf0e10cSrcweir }; 317cdf0e10cSrcweir 318cdf0e10cSrcweir class XmlScPropHdl_IsTextWrapped : public XMLPropertyHandler 319cdf0e10cSrcweir { 320cdf0e10cSrcweir public: 321cdf0e10cSrcweir virtual ~XmlScPropHdl_IsTextWrapped(); 322cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 323cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 324cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 325cdf0e10cSrcweir }; 326cdf0e10cSrcweir 327cdf0e10cSrcweir class XmlScPropHdl_IsEqual : public XMLPropertyHandler 328cdf0e10cSrcweir { 329cdf0e10cSrcweir public: ~XmlScPropHdl_IsEqual()330cdf0e10cSrcweir virtual ~XmlScPropHdl_IsEqual() {} equals(const::com::sun::star::uno::Any &,const::com::sun::star::uno::Any &) const331cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& /* r1 */, const ::com::sun::star::uno::Any& /* r2 */ ) const { return sal_True; } 332cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 333cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 334cdf0e10cSrcweir }; 335cdf0e10cSrcweir 336cdf0e10cSrcweir class XmlScPropHdl_Vertical : public XMLPropertyHandler 337cdf0e10cSrcweir { 338cdf0e10cSrcweir public: 339cdf0e10cSrcweir virtual ~XmlScPropHdl_Vertical(); 340cdf0e10cSrcweir virtual bool equals( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) const; 341cdf0e10cSrcweir virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 342cdf0e10cSrcweir virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; 343cdf0e10cSrcweir }; 344cdf0e10cSrcweir 345cdf0e10cSrcweir #endif 346