LibreOffice Module xmloff (master) 1
XMLTextMarkImportContext.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
20
21#pragma once
22
23#include <xmloff/xmlictxt.hxx>
24#include <com/sun/star/uno/Reference.h>
25
26
27namespace com::sun::star {
28 namespace text {
29 class XTextRange;
30 class XTextContent;
31 }
32 namespace xml::sax {
33 class XAttributeList;
34 }
35}
37
39{
41public:
43 SvXMLImport& rImport,
44 XMLTextImportHelper& rHlp );
45
46 virtual void SAL_CALL startFastElement(
47 sal_Int32 nElement,
48 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
49};
50
51
60{
61private:
63
64 css::uno::Reference<css::uno::XInterface> & m_rxCrossRefHeadingBookmark;
65
67 OUString m_sFieldName;
69 OUString m_sCondition;
70 OUString m_sXmlId;
71 // RDFa
73 OUString m_sAbout;
74 OUString m_sProperty;
75 OUString m_sContent;
76 OUString m_sDatatype;
77
78public:
79
81 SvXMLImport& rImport,
83 css::uno::Reference<css::uno::XInterface> & io_rxCrossRefHeadingBookmark );
84
85 virtual void SAL_CALL startFastElement( sal_Int32 nElement,
86 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
87 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
88
89 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
90 sal_Int32 nElement,
91 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
92
93public:
94 static css::uno::Reference< css::text::XTextContent > CreateAndInsertMark(
95 SvXMLImport& rImport,
96 const OUString& sServiceName,
97 const OUString& sMarkName,
98 const css::uno::Reference<css::text::XTextRange> & rRange,
99 const OUString& i_rXmlId = OUString(),
100 bool const isFieldmarkSeparatorMissing = false);
101
102 bool FindName(
103 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList);
104};
105
106/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
friend class SvXMLImport
Definition: xmlictxt.hxx:49
XMLFieldParamImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
import bookmarks and reference marks ( <bookmark>, <bookmark-start>, <bookmark-end>,...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::uno::XInterface > & m_rxCrossRefHeadingBookmark
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
XMLTextMarkImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, css::uno::Reference< css::uno::XInterface > &io_rxCrossRefHeadingBookmark)
static css::uno::Reference< css::text::XTextContent > CreateAndInsertMark(SvXMLImport &rImport, const OUString &sServiceName, const OUString &sMarkName, const css::uno::Reference< css::text::XTextRange > &rRange, const OUString &i_rXmlId=OUString(), bool const isFieldmarkSeparatorMissing=false)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
bool FindName(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
def text(shape, orig_st)