LibreOffice Module editeng (master) 1
SvXMLAutoCorrectImport.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <sot/storage.hxx>
22#include <xmloff/xmlictxt.hxx>
23#include <xmloff/xmlimp.hxx>
24#include <editeng/svxacorr.hxx>
25
26class SvXMLAutoCorrectImport : public SvXMLImport
27{
28protected:
29
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;
34
35public:
38 css::uno::Reference < css::embed::XStorage > xStorage;
39
41 const css::uno::Reference< css::uno::XComponentContext > & xContext,
42 SvxAutocorrWordList *pNewAutocorr_List,
43 SvxAutoCorrect &rNewAutoCorrect,
44 css::uno::Reference < css::embed::XStorage > xNewStorage);
45
46 virtual ~SvXMLAutoCorrectImport() noexcept override;
47};
48
50{
51private:
53public:
55
56 virtual css::uno::Reference<XFastContextHandler> SAL_CALL createFastChildContext( sal_Int32 Element,
57 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
58
59 virtual ~SvXMLWordListContext() override;
60};
61
63{
64public:
66 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
67
68 virtual ~SvXMLWordContext() override;
69};
70
71
72class SvXMLExceptionListImport : public SvXMLImport
73{
74protected:
75
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;
80public:
82
84 const css::uno::Reference< css::uno::XComponentContext > & xContext,
85 SvStringsISortDtor & rNewList );
86
87 virtual ~SvXMLExceptionListImport() noexcept override;
88};
89
91{
92private:
94public:
96
97 virtual css::uno::Reference<XFastContextHandler> SAL_CALL createFastChildContext( sal_Int32 Element,
98 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
99
100 virtual ~SvXMLExceptionListContext() override;
101};
102
104{
105public:
107 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
108
109 virtual ~SvXMLExceptionContext() override;
110};
111
112
113/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxAutocorrWordList * pAutocorr_List
SvXMLAutoCorrectImport(const css::uno::Reference< css::uno::XComponentContext > &xContext, SvxAutocorrWordList *pNewAutocorr_List, SvxAutoCorrect &rNewAutoCorrect, css::uno::Reference< css::embed::XStorage > xNewStorage)
virtual ~SvXMLAutoCorrectImport() noexcept override
virtual SvXMLImportContext * CreateFastContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::embed::XStorage > xStorage
SvXMLExceptionListImport & rLocalRef
SvXMLAutoCorrectImport & rLocalRef