1*ecfe53c5SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ecfe53c5SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ecfe53c5SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ecfe53c5SAndrew Rist * distributed with this work for additional information 6*ecfe53c5SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ecfe53c5SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ecfe53c5SAndrew Rist * "License"); you may not use this file except in compliance 9*ecfe53c5SAndrew Rist * with the License. You may obtain a copy of the License at 10*ecfe53c5SAndrew Rist * 11*ecfe53c5SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ecfe53c5SAndrew Rist * 13*ecfe53c5SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ecfe53c5SAndrew Rist * software distributed under the License is distributed on an 15*ecfe53c5SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ecfe53c5SAndrew Rist * KIND, either express or implied. See the License for the 17*ecfe53c5SAndrew Rist * specific language governing permissions and limitations 18*ecfe53c5SAndrew Rist * under the License. 19*ecfe53c5SAndrew Rist * 20*ecfe53c5SAndrew Rist *************************************************************/ 21*ecfe53c5SAndrew Rist 22*ecfe53c5SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _XMLOFF_PAGEMASTERPROPHDL_HXX_ 25cdf0e10cSrcweir #define _XMLOFF_PAGEMASTERPROPHDL_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <xmloff/xmlprhdl.hxx> 28cdf0e10cSrcweir #include <rtl/ustring.hxx> 29cdf0e10cSrcweir #include <xmloff/xmltoken.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir //______________________________________________________________________________ 33cdf0e10cSrcweir // property handler for style:page-usage (style::PageStyleLayout) 34cdf0e10cSrcweir 35cdf0e10cSrcweir class XMLPMPropHdl_PageStyleLayout : public XMLPropertyHandler 36cdf0e10cSrcweir { 37cdf0e10cSrcweir public: 38cdf0e10cSrcweir virtual ~XMLPMPropHdl_PageStyleLayout(); 39cdf0e10cSrcweir virtual bool equals( 40cdf0e10cSrcweir const ::com::sun::star::uno::Any& rAny1, 41cdf0e10cSrcweir const ::com::sun::star::uno::Any& rAny2 42cdf0e10cSrcweir ) const; 43cdf0e10cSrcweir virtual sal_Bool importXML( 44cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 45cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 46cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 47cdf0e10cSrcweir ) const; 48cdf0e10cSrcweir virtual sal_Bool exportXML( 49cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 50cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 51cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 52cdf0e10cSrcweir ) const; 53cdf0e10cSrcweir }; 54cdf0e10cSrcweir 55cdf0e10cSrcweir 56cdf0e10cSrcweir //______________________________________________________________________________ 57cdf0e10cSrcweir // property handler for style:num-format (style::NumberingType) 58cdf0e10cSrcweir 59cdf0e10cSrcweir class XMLPMPropHdl_NumFormat : public XMLPropertyHandler 60cdf0e10cSrcweir { 61cdf0e10cSrcweir public: 62cdf0e10cSrcweir virtual ~XMLPMPropHdl_NumFormat(); 63cdf0e10cSrcweir virtual sal_Bool importXML( 64cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 65cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 66cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 67cdf0e10cSrcweir ) const; 68cdf0e10cSrcweir virtual sal_Bool exportXML( 69cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 70cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 71cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 72cdf0e10cSrcweir ) const; 73cdf0e10cSrcweir }; 74cdf0e10cSrcweir 75cdf0e10cSrcweir 76cdf0e10cSrcweir //______________________________________________________________________________ 77cdf0e10cSrcweir // property handler for style:num-letter-sync (style::NumberingType) 78cdf0e10cSrcweir 79cdf0e10cSrcweir class XMLPMPropHdl_NumLetterSync : public XMLPropertyHandler 80cdf0e10cSrcweir { 81cdf0e10cSrcweir public: 82cdf0e10cSrcweir virtual ~XMLPMPropHdl_NumLetterSync(); 83cdf0e10cSrcweir virtual sal_Bool importXML( 84cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 85cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 86cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 87cdf0e10cSrcweir ) const; 88cdf0e10cSrcweir virtual sal_Bool exportXML( 89cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 90cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 91cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 92cdf0e10cSrcweir ) const; 93cdf0e10cSrcweir }; 94cdf0e10cSrcweir 95cdf0e10cSrcweir 96cdf0e10cSrcweir //______________________________________________________________________________ 97cdf0e10cSrcweir // property handler for style:paper-tray-number 98cdf0e10cSrcweir 99cdf0e10cSrcweir class XMLPMPropHdl_PaperTrayNumber : public XMLPropertyHandler 100cdf0e10cSrcweir { 101cdf0e10cSrcweir public: 102cdf0e10cSrcweir virtual ~XMLPMPropHdl_PaperTrayNumber(); 103cdf0e10cSrcweir virtual sal_Bool importXML( 104cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 105cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 106cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 107cdf0e10cSrcweir ) const; 108cdf0e10cSrcweir virtual sal_Bool exportXML( 109cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 110cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 111cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 112cdf0e10cSrcweir ) const; 113cdf0e10cSrcweir }; 114cdf0e10cSrcweir 115cdf0e10cSrcweir 116cdf0e10cSrcweir //______________________________________________________________________________ 117cdf0e10cSrcweir // property handler for style:print 118cdf0e10cSrcweir 119cdf0e10cSrcweir class XMLPMPropHdl_Print : public XMLPropertyHandler 120cdf0e10cSrcweir { 121cdf0e10cSrcweir protected: 122cdf0e10cSrcweir ::rtl::OUString sAttrValue; 123cdf0e10cSrcweir 124cdf0e10cSrcweir public: 125cdf0e10cSrcweir XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue ); 126cdf0e10cSrcweir virtual ~XMLPMPropHdl_Print(); 127cdf0e10cSrcweir 128cdf0e10cSrcweir virtual sal_Bool importXML( 129cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 130cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 131cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 132cdf0e10cSrcweir ) const; 133cdf0e10cSrcweir virtual sal_Bool exportXML( 134cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 135cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 136cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 137cdf0e10cSrcweir ) const; 138cdf0e10cSrcweir }; 139cdf0e10cSrcweir 140cdf0e10cSrcweir //______________________________________________________________________________ 141cdf0e10cSrcweir // property handler for style:table-centering 142cdf0e10cSrcweir 143cdf0e10cSrcweir class XMLPMPropHdl_CenterHorizontal : public XMLPropertyHandler 144cdf0e10cSrcweir { 145cdf0e10cSrcweir public: 146cdf0e10cSrcweir virtual ~XMLPMPropHdl_CenterHorizontal(); 147cdf0e10cSrcweir virtual sal_Bool importXML( 148cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 149cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 150cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 151cdf0e10cSrcweir ) const; 152cdf0e10cSrcweir virtual sal_Bool exportXML( 153cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 154cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 155cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 156cdf0e10cSrcweir ) const; 157cdf0e10cSrcweir }; 158cdf0e10cSrcweir 159cdf0e10cSrcweir class XMLPMPropHdl_CenterVertical : public XMLPropertyHandler 160cdf0e10cSrcweir { 161cdf0e10cSrcweir public: 162cdf0e10cSrcweir virtual ~XMLPMPropHdl_CenterVertical(); 163cdf0e10cSrcweir virtual sal_Bool importXML( 164cdf0e10cSrcweir const ::rtl::OUString& rStrImpValue, 165cdf0e10cSrcweir ::com::sun::star::uno::Any& rValue, 166cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 167cdf0e10cSrcweir ) const; 168cdf0e10cSrcweir virtual sal_Bool exportXML( 169cdf0e10cSrcweir ::rtl::OUString& rStrExpValue, 170cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 171cdf0e10cSrcweir const SvXMLUnitConverter& rUnitConverter 172cdf0e10cSrcweir ) const; 173cdf0e10cSrcweir }; 174cdf0e10cSrcweir 175cdf0e10cSrcweir #endif 176cdf0e10cSrcweir 177