tdf#156769 - Escape the question mark in the storage name
[LibreOffice.git] / editeng / source / misc / SvXMLAutoCorrectImport.hxx
blob961e6963d7dfa1cca5a30a4af84a120a42e509c5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #pragma once
21 #include <sot/storage.hxx>
22 #include <xmloff/xmlictxt.hxx>
23 #include <xmloff/xmlimp.hxx>
24 #include <editeng/svxacorr.hxx>
26 class SvXMLAutoCorrectImport : public SvXMLImport
28 protected:
30 // This method is called after the namespace map has been updated, but
31 // before a context for the current element has been pushed.
32 virtual SvXMLImportContext *CreateFastContext( sal_Int32 Element,
33 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
35 public:
36 SvxAutocorrWordList *pAutocorr_List;
37 SvxAutoCorrect &rAutoCorrect;
38 css::uno::Reference < css::embed::XStorage > xStorage;
40 SvXMLAutoCorrectImport(
41 const css::uno::Reference< css::uno::XComponentContext > & xContext,
42 SvxAutocorrWordList *pNewAutocorr_List,
43 SvxAutoCorrect &rNewAutoCorrect,
44 css::uno::Reference < css::embed::XStorage > xNewStorage);
46 virtual ~SvXMLAutoCorrectImport() noexcept override;
49 class SvXMLWordListContext : public SvXMLImportContext
51 private:
52 SvXMLAutoCorrectImport & rLocalRef;
53 public:
54 SvXMLWordListContext ( SvXMLAutoCorrectImport& rImport );
56 virtual css::uno::Reference<XFastContextHandler> SAL_CALL createFastChildContext( sal_Int32 Element,
57 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
59 virtual ~SvXMLWordListContext() override;
62 class SvXMLWordContext : public SvXMLImportContext
64 public:
65 SvXMLWordContext ( SvXMLAutoCorrectImport& rImport,
66 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
68 virtual ~SvXMLWordContext() override;
72 class SvXMLExceptionListImport : public SvXMLImport
74 protected:
76 // This method is called after the namespace map has been updated, but
77 // before a context for the current element has been pushed.
78 virtual SvXMLImportContext *CreateFastContext( sal_Int32 Element, const css::uno::Reference<
79 css::xml::sax::XFastAttributeList > & xAttrList ) override;
80 public:
81 SvStringsISortDtor &rList;
83 SvXMLExceptionListImport(
84 const css::uno::Reference< css::uno::XComponentContext > & xContext,
85 SvStringsISortDtor & rNewList );
87 virtual ~SvXMLExceptionListImport() noexcept override;
90 class SvXMLExceptionListContext : public SvXMLImportContext
92 private:
93 SvXMLExceptionListImport & rLocalRef;
94 public:
95 SvXMLExceptionListContext ( SvXMLExceptionListImport& rImport );
97 virtual css::uno::Reference<XFastContextHandler> SAL_CALL createFastChildContext( sal_Int32 Element,
98 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
100 virtual ~SvXMLExceptionListContext() override;
103 class SvXMLExceptionContext : public SvXMLImportContext
105 public:
106 SvXMLExceptionContext ( SvXMLExceptionListImport& rImport,
107 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
109 virtual ~SvXMLExceptionContext() override;
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */