Bump for 3.6-28
[LibreOffice.git] / editeng / source / misc / SvXMLAutoCorrectImport.hxx
blobfa7a28d0d9dc3c9b4c1a4eb540e683ab7e0cda79
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef _SV_XMLAUTOCORRECTIMPORT_HXX
29 #define _SV_XMLAUTOCORRECTIMPORT_HXX
31 #include <sot/storage.hxx>
32 #include <xmloff/xmlictxt.hxx>
33 #include <xmloff/xmlimp.hxx>
34 #include <xmloff/nmspmap.hxx>
35 #include <xmloff/xmlnmspe.hxx>
36 #include <editeng/svxacorr.hxx>
38 class SvXMLAutoCorrectImport : public SvXMLImport
40 protected:
42 // This method is called after the namespace map has been updated, but
43 // before a context for the current element has been pushed.
44 virtual SvXMLImportContext *CreateContext( sal_uInt16 nPrefix,
45 const ::rtl::OUString& rLocalName,
46 const ::com::sun::star::uno::Reference<
47 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
48 public:
49 SvxAutocorrWordList *pAutocorr_List;
50 SvxAutoCorrect &rAutoCorrect;
51 com::sun::star::uno::Reference < com::sun::star::embed::XStorage > xStorage;
53 SvXMLAutoCorrectImport(
54 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
55 SvxAutocorrWordList *pNewAutocorr_List,
56 SvxAutoCorrect &rNewAutoCorrect,
57 const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rNewStorage);
59 ~SvXMLAutoCorrectImport ( void ) throw ();
62 class SvXMLWordListContext : public SvXMLImportContext
64 private:
65 SvXMLAutoCorrectImport & rLocalRef;
66 public:
67 SvXMLWordListContext ( SvXMLAutoCorrectImport& rImport,
68 sal_uInt16 nPrefix,
69 const rtl::OUString& rLocalName,
70 const ::com::sun::star::uno::Reference<
71 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
72 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
73 const rtl::OUString& rLocalName,
74 const ::com::sun::star::uno::Reference<
75 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
76 ~SvXMLWordListContext ( void );
79 class SvXMLWordContext : public SvXMLImportContext
81 private:
82 SvXMLAutoCorrectImport & rLocalRef;
83 public:
84 SvXMLWordContext ( SvXMLAutoCorrectImport& rImport,
85 sal_uInt16 nPrefix,
86 const rtl::OUString& rLocalName,
87 const ::com::sun::star::uno::Reference<
88 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
89 ~SvXMLWordContext ( void );
93 class SvXMLExceptionListImport : public SvXMLImport
95 protected:
97 // This method is called after the namespace map has been updated, but
98 // before a context for the current element has been pushed.
99 virtual SvXMLImportContext *CreateContext( sal_uInt16 nPrefix,
100 const ::rtl::OUString& rLocalName,
101 const ::com::sun::star::uno::Reference<
102 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
103 public:
104 SvStringsISortDtor &rList;
106 SvXMLExceptionListImport(
107 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
108 SvStringsISortDtor & rNewList );
110 ~SvXMLExceptionListImport ( void ) throw ();
113 class SvXMLExceptionListContext : public SvXMLImportContext
115 private:
116 SvXMLExceptionListImport & rLocalRef;
117 public:
118 SvXMLExceptionListContext ( SvXMLExceptionListImport& rImport,
119 sal_uInt16 nPrefix,
120 const rtl::OUString& rLocalName,
121 const ::com::sun::star::uno::Reference<
122 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
123 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
124 const rtl::OUString& rLocalName,
125 const ::com::sun::star::uno::Reference<
126 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
127 ~SvXMLExceptionListContext ( void );
130 class SvXMLExceptionContext : public SvXMLImportContext
132 private:
133 SvXMLExceptionListImport & rLocalRef;
134 public:
135 SvXMLExceptionContext ( SvXMLExceptionListImport& rImport,
136 sal_uInt16 nPrefix,
137 const rtl::OUString& rLocalName,
138 const ::com::sun::star::uno::Reference<
139 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
140 ~SvXMLExceptionContext ( void );
144 #endif
146 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */