update dev300-m58
[ooovba.git] / xmloff / inc / XMLTextListAutoStylePool.hxx
bloba01a2d3c6b13a7582bd28a2c695b8794db1c00ff
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: XMLTextListAutoStylePool.hxx,v $
10 * $Revision: 1.7 $
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 ************************************************************************/
31 #ifndef _XMLOFF_XMLTEXTLISTAUTOSTYLEPOOL_HXX
32 #define _XMLOFF_XMLTEXTLISTAUTOSTYLEPOOL_HXX
34 #include "sal/config.h"
35 #include "xmloff/dllapi.h"
36 #include "sal/types.h"
37 #include <rtl/ustring.hxx>
38 #include <com/sun/star/ucb/XAnyCompare.hpp>
40 namespace com { namespace sun { namespace star { namespace container {
41 class XIndexReplace; } } } }
42 namespace rtl { class OUString; }
45 class XMLTextListAutoStylePool_Impl;
46 class XMLTextListAutoStylePoolNames_Impl;
47 class XMLTextListAutoStylePoolEntry_Impl;
48 class SvXMLExport;
50 class XMLOFF_DLLPUBLIC XMLTextListAutoStylePool
52 SvXMLExport& rExport;
54 ::rtl::OUString sPrefix;
56 XMLTextListAutoStylePool_Impl *pPool;
57 XMLTextListAutoStylePoolNames_Impl *pNames;
58 sal_uInt32 nName;
60 /** this is an optional NumRule compare component for applications where
61 the NumRules don't have names */
62 ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XAnyCompare > mxNumRuleCompare;
64 SAL_DLLPRIVATE sal_uInt32 Find( XMLTextListAutoStylePoolEntry_Impl* pEntry )
65 const;
66 public:
68 XMLTextListAutoStylePool( SvXMLExport& rExport );
69 ~XMLTextListAutoStylePool();
71 void RegisterName( const ::rtl::OUString& rName );
72 sal_Bool HasName( const ::rtl::OUString& rName ) const;
74 ::rtl::OUString Add(
75 const ::com::sun::star::uno::Reference <
76 ::com::sun::star::container::XIndexReplace > & rNumRules );
78 ::rtl::OUString Find(
79 const ::com::sun::star::uno::Reference <
80 ::com::sun::star::container::XIndexReplace > & rNumRules ) const;
81 ::rtl::OUString Find( const ::rtl::OUString& rInternalName ) const;
83 void exportXML() const;
87 #endif // _XMLOFF_XMLTEXTLISTAUTOSTYLEPOOL_HXX