1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _XMLOFF_PAGEMASTERPROPHDL_HXX_ 29 #define _XMLOFF_PAGEMASTERPROPHDL_HXX_ 30 31 #include <xmloff/xmlprhdl.hxx> 32 #include <rtl/ustring.hxx> 33 #include <xmloff/xmltoken.hxx> 34 35 36 //______________________________________________________________________________ 37 // property handler for style:page-usage (style::PageStyleLayout) 38 39 class XMLPMPropHdl_PageStyleLayout : public XMLPropertyHandler 40 { 41 public: 42 virtual ~XMLPMPropHdl_PageStyleLayout(); 43 virtual bool equals( 44 const ::com::sun::star::uno::Any& rAny1, 45 const ::com::sun::star::uno::Any& rAny2 46 ) const; 47 virtual sal_Bool importXML( 48 const ::rtl::OUString& rStrImpValue, 49 ::com::sun::star::uno::Any& rValue, 50 const SvXMLUnitConverter& rUnitConverter 51 ) const; 52 virtual sal_Bool exportXML( 53 ::rtl::OUString& rStrExpValue, 54 const ::com::sun::star::uno::Any& rValue, 55 const SvXMLUnitConverter& rUnitConverter 56 ) const; 57 }; 58 59 60 //______________________________________________________________________________ 61 // property handler for style:num-format (style::NumberingType) 62 63 class XMLPMPropHdl_NumFormat : public XMLPropertyHandler 64 { 65 public: 66 virtual ~XMLPMPropHdl_NumFormat(); 67 virtual sal_Bool importXML( 68 const ::rtl::OUString& rStrImpValue, 69 ::com::sun::star::uno::Any& rValue, 70 const SvXMLUnitConverter& rUnitConverter 71 ) const; 72 virtual sal_Bool exportXML( 73 ::rtl::OUString& rStrExpValue, 74 const ::com::sun::star::uno::Any& rValue, 75 const SvXMLUnitConverter& rUnitConverter 76 ) const; 77 }; 78 79 80 //______________________________________________________________________________ 81 // property handler for style:num-letter-sync (style::NumberingType) 82 83 class XMLPMPropHdl_NumLetterSync : public XMLPropertyHandler 84 { 85 public: 86 virtual ~XMLPMPropHdl_NumLetterSync(); 87 virtual sal_Bool importXML( 88 const ::rtl::OUString& rStrImpValue, 89 ::com::sun::star::uno::Any& rValue, 90 const SvXMLUnitConverter& rUnitConverter 91 ) const; 92 virtual sal_Bool exportXML( 93 ::rtl::OUString& rStrExpValue, 94 const ::com::sun::star::uno::Any& rValue, 95 const SvXMLUnitConverter& rUnitConverter 96 ) const; 97 }; 98 99 100 //______________________________________________________________________________ 101 // property handler for style:paper-tray-number 102 103 class XMLPMPropHdl_PaperTrayNumber : public XMLPropertyHandler 104 { 105 public: 106 virtual ~XMLPMPropHdl_PaperTrayNumber(); 107 virtual sal_Bool importXML( 108 const ::rtl::OUString& rStrImpValue, 109 ::com::sun::star::uno::Any& rValue, 110 const SvXMLUnitConverter& rUnitConverter 111 ) const; 112 virtual sal_Bool exportXML( 113 ::rtl::OUString& rStrExpValue, 114 const ::com::sun::star::uno::Any& rValue, 115 const SvXMLUnitConverter& rUnitConverter 116 ) const; 117 }; 118 119 120 //______________________________________________________________________________ 121 // property handler for style:print 122 123 class XMLPMPropHdl_Print : public XMLPropertyHandler 124 { 125 protected: 126 ::rtl::OUString sAttrValue; 127 128 public: 129 XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue ); 130 virtual ~XMLPMPropHdl_Print(); 131 132 virtual sal_Bool importXML( 133 const ::rtl::OUString& rStrImpValue, 134 ::com::sun::star::uno::Any& rValue, 135 const SvXMLUnitConverter& rUnitConverter 136 ) const; 137 virtual sal_Bool exportXML( 138 ::rtl::OUString& rStrExpValue, 139 const ::com::sun::star::uno::Any& rValue, 140 const SvXMLUnitConverter& rUnitConverter 141 ) const; 142 }; 143 144 //______________________________________________________________________________ 145 // property handler for style:table-centering 146 147 class XMLPMPropHdl_CenterHorizontal : public XMLPropertyHandler 148 { 149 public: 150 virtual ~XMLPMPropHdl_CenterHorizontal(); 151 virtual sal_Bool importXML( 152 const ::rtl::OUString& rStrImpValue, 153 ::com::sun::star::uno::Any& rValue, 154 const SvXMLUnitConverter& rUnitConverter 155 ) const; 156 virtual sal_Bool exportXML( 157 ::rtl::OUString& rStrExpValue, 158 const ::com::sun::star::uno::Any& rValue, 159 const SvXMLUnitConverter& rUnitConverter 160 ) const; 161 }; 162 163 class XMLPMPropHdl_CenterVertical : public XMLPropertyHandler 164 { 165 public: 166 virtual ~XMLPMPropHdl_CenterVertical(); 167 virtual sal_Bool importXML( 168 const ::rtl::OUString& rStrImpValue, 169 ::com::sun::star::uno::Any& rValue, 170 const SvXMLUnitConverter& rUnitConverter 171 ) const; 172 virtual sal_Bool exportXML( 173 ::rtl::OUString& rStrExpValue, 174 const ::com::sun::star::uno::Any& rValue, 175 const SvXMLUnitConverter& rUnitConverter 176 ) const; 177 }; 178 179 #endif 180 181