update dev300-m58
[ooovba.git] / dbaccess / source / filter / xml / xmlHelper.hxx
blobc0982c2e21d577be0ab3e8383b2316d696ab577c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlHelper.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBA_XMLHELPER_HXX
31 #define DBA_XMLHELPER_HXX
33 #ifndef _XMLOFF_PROPERTYSETMAPPER_HXX
34 #include <xmloff/xmlprmap.hxx>
35 #endif
36 #ifndef _XMLOFF_CONTEXTID_HXX_
37 #include <xmloff/contextid.hxx>
38 #endif
39 #ifndef _XMLOFF_FORMS_CONTROLPROPERTYHDL_HXX_
40 #include <xmloff/controlpropertyhdl.hxx>
41 #endif
43 #include <memory>
45 #define CTF_DB_ROWHEIGHT (XML_DB_CTF_START + 1)
46 #define CTF_DB_ISVISIBLE (XML_DB_CTF_START + 2)
47 #define CTF_DB_MASTERPAGENAME (XML_DB_CTF_START + 3)
48 #define CTF_DB_NUMBERFORMAT (XML_DB_CTF_START + 4)
49 #define CTF_DB_COLUMN_TEXT_ALIGN (XML_DB_CTF_START + 5)
51 #define XML_DB_TYPE_EQUAL (XML_DB_TYPES_START + 1)
53 namespace dbaxml
55 class OPropertyHandlerFactory : public ::xmloff::OControlPropertyHandlerFactory
57 protected:
58 mutable ::std::auto_ptr<XMLConstantsPropertyHandler> m_pDisplayHandler;
59 mutable ::std::auto_ptr<XMLPropertyHandler> m_pTextAlignHandler;
60 public:
61 OPropertyHandlerFactory();
62 virtual ~OPropertyHandlerFactory();
64 virtual const XMLPropertyHandler* GetPropertyHandler(sal_Int32 _nType) const;
67 class OXMLHelper
69 public:
70 static UniReference < XMLPropertySetMapper > GetTableStylesPropertySetMapper();
71 static UniReference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper();
72 static UniReference < XMLPropertySetMapper > GetCellStylesPropertySetMapper();
73 static UniReference < XMLPropertySetMapper > GetRowStylesPropertySetMapper();
75 // -----------------------------------------------------------------------------
76 } // dbaxml
77 // -----------------------------------------------------------------------------
78 #endif // DBA_XMLHELPER_HXX