LibreOffice Module sw (master) 1
xmltexti.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#ifndef INCLUDED_SW_SOURCE_FILTER_XML_XMLTEXTI_HXX
20#define INCLUDED_SW_SOURCE_FILTER_XML_XMLTEXTI_HXX
21
22#include <xmloff/txtimp.hxx>
23
25class SvXMLImport;
26
28{
30
31protected:
33 SvXMLImport& rImport,
34 sal_Int32 nElement,
35 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
36
37public:
39 const css::uno::Reference<css::frame::XModel>& rModel,
40 SvXMLImport& rImport,
41 const css::uno::Reference<css::beans::XPropertySet>& rInfoSet,
42 bool bInsertM, bool bStylesOnlyM,
43 bool bBlockM, bool bOrganizerM );
44 virtual ~SwXMLTextImportHelper() override;
45
46 virtual css::uno::Reference<css::beans::XPropertySet>
47 createAndInsertOLEObject( SvXMLImport& rImport,
48 const OUString& rHRef,
49 const OUString& rStyleName,
50 const OUString& rTableName,
51 sal_Int32 nWidth, sal_Int32 nHeight ) override;
52 virtual css::uno::Reference<css::beans::XPropertySet>
53 createAndInsertOOoLink( SvXMLImport& rImport,
54 const OUString& rHRef,
55 const OUString& rStyleName,
56 const OUString& rTableName,
57 sal_Int32 nWidth, sal_Int32 nHeight ) override;
58 virtual css::uno::Reference<css::beans::XPropertySet>
60 const OUString &rName,
61 const OUString &rCode,
62 bool bMayScript,
63 const OUString& rHRef,
64 sal_Int32 nWidth, sal_Int32 nHeight ) override;
65
66 virtual css::uno::Reference<css::beans::XPropertySet>
68 const OUString &rMimeType,
69 const OUString& rHRef,
70 sal_Int32 nWidth, sal_Int32 nHeight ) override;
71
72 virtual css::uno::Reference<css::beans::XPropertySet>
74 const OUString &rName,
75 const OUString &rHRef,
76 const OUString &rStyleName,
77 sal_Int32 nWidth, sal_Int32 nHeight ) override;
78
79 virtual void endAppletOrPlugin(
80 const css::uno::Reference < css::beans::XPropertySet > &rPropSet,
81 std::map < const OUString, OUString > &rParamMap) override;
82
83 virtual bool IsInHeaderFooter() const override;
84
85 // redlining helper methods
86 // (here is the real implementation)
87 virtual void RedlineAdd(
88 const OUString& rType,
89 const OUString& rId,
90 const OUString& rAuthor,
91 const OUString& rComment,
92 const css::util::DateTime& rDateTime,
93 bool bMergeLastPara) override;
94 virtual css::uno::Reference<css::text::XTextCursor> RedlineCreateText(
95 css::uno::Reference<css::text::XTextCursor> & rOldCursor,
96 const OUString& rId) override;
97 virtual void RedlineSetCursor(
98 const OUString& rId,
99 bool bStart,
100 bool bIsOutsideOfParagraph) override;
101 virtual void RedlineAdjustStartNodeCursor() override;
102 virtual void SetShowChanges( bool bShowChanges ) override;
103 virtual void SetRecordChanges( bool bRecordChanges ) override;
104 virtual void SetChangesProtectionKey(
105 const css::uno::Sequence<sal_Int8> & rKey ) override;
106};
107
108#endif // INCLUDED_SW_SOURCE_FILTER_XML_XMLTEXTI_HXX
109
110/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::beans::XPropertySet > createAndInsertFloatingFrame(const OUString &rName, const OUString &rHRef, const OUString &rStyleName, sal_Int32 nWidth, sal_Int32 nHeight) override
Definition: xmltexti.cxx:714
virtual void RedlineSetCursor(const OUString &rId, bool bStart, bool bIsOutsideOfParagraph) override
ID used to RedlineAdd() call.
Definition: xmltexti.cxx:953
virtual void endAppletOrPlugin(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, std::map< const OUString, OUString > &rParamMap) override
Definition: xmltexti.cxx:868
virtual void SetChangesProtectionKey(const css::uno::Sequence< sal_Int8 > &rKey) override
Definition: xmltexti.cxx:989
virtual void SetShowChanges(bool bShowChanges) override
Definition: xmltexti.cxx:977
XMLRedlineImportHelper * m_pRedlineHelper
Definition: xmltexti.hxx:29
virtual css::uno::Reference< css::beans::XPropertySet > createAndInsertOLEObject(SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTableName, sal_Int32 nWidth, sal_Int32 nHeight) override
Definition: xmltexti.cxx:195
virtual bool IsInHeaderFooter() const override
Definition: xmltexti.cxx:173
virtual css::uno::Reference< css::beans::XPropertySet > createAndInsertApplet(const OUString &rName, const OUString &rCode, bool bMayScript, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight) override
Definition: xmltexti.cxx:594
SwXMLTextImportHelper(const css::uno::Reference< css::frame::XModel > &rModel, SvXMLImport &rImport, const css::uno::Reference< css::beans::XPropertySet > &rInfoSet, bool bInsertM, bool bStylesOnlyM, bool bBlockM, bool bOrganizerM)
Definition: xmltexti.cxx:136
virtual SvXMLImportContext * CreateTableChildContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: xmltexti.cxx:165
virtual void RedlineAdd(const OUString &rType, const OUString &rId, const OUString &rAuthor, const OUString &rComment, const css::util::DateTime &rDateTime, bool bMergeLastPara) override
Definition: xmltexti.cxx:924
virtual css::uno::Reference< css::beans::XPropertySet > createAndInsertPlugin(const OUString &rMimeType, const OUString &rHRef, sal_Int32 nWidth, sal_Int32 nHeight) override
Definition: xmltexti.cxx:641
virtual void RedlineAdjustStartNodeCursor() override
Definition: xmltexti.cxx:966
virtual ~SwXMLTextImportHelper() override
Definition: xmltexti.cxx:151
virtual css::uno::Reference< css::beans::XPropertySet > createAndInsertOOoLink(SvXMLImport &rImport, const OUString &rHRef, const OUString &rStyleName, const OUString &rTableName, sal_Int32 nWidth, sal_Int32 nHeight) override
Definition: xmltexti.cxx:504
virtual void SetRecordChanges(bool bRecordChanges) override
Definition: xmltexti.cxx:983
virtual css::uno::Reference< css::text::XTextCursor > RedlineCreateText(css::uno::Reference< css::text::XTextCursor > &rOldCursor, const OUString &rId) override
merge last paragraph
Definition: xmltexti.cxx:939