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 #ifndef INCLUDED_XMLOFF_SOURCE_TEXT_XMLTEXTMARKIMPORTCONTEXT_HXX
22 #define INCLUDED_XMLOFF_SOURCE_TEXT_XMLTEXTMARKIMPORTCONTEXT_HXX
23 
24 #include <xmloff/xmlictxt.hxx>
25 #include <com/sun/star/uno/Reference.h>
26 
27 
28 namespace com::sun::star {
29  namespace text {
30  class XTextRange;
31  class XTextContent;
32  }
33  namespace xml::sax {
34  class XAttributeList;
35  }
36 }
38 
40 {
42 public:
44  SvXMLImport& rImport,
45  XMLTextImportHelper& rHlp );
46 
47  virtual void SAL_CALL startFastElement(
48  sal_Int32 nElement,
49  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
50 };
51 
52 
61 {
62 private:
64 
65  css::uno::Reference<css::uno::XInterface> & m_rxCrossRefHeadingBookmark;
66 
67  OUString m_sBookmarkName;
68  OUString m_sFieldName;
69  OUString m_sXmlId;
70  // RDFa
72  OUString m_sAbout;
73  OUString m_sProperty;
74  OUString m_sContent;
75  OUString m_sDatatype;
76 
77 public:
78 
80  SvXMLImport& rImport,
81  XMLTextImportHelper& rHlp,
82  css::uno::Reference<css::uno::XInterface> & io_rxCrossRefHeadingBookmark );
83 
84  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
85  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
86  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
87 
88  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
89  sal_Int32 nElement,
90  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
91 
92 public:
93  static css::uno::Reference< css::text::XTextContent > CreateAndInsertMark(
94  SvXMLImport& rImport,
95  const OUString& sServiceName,
96  const OUString& sMarkName,
97  const css::uno::Reference<css::text::XTextRange> & rRange,
98  const OUString& i_rXmlId = OUString());
99 
100  bool FindName(
101  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList);
102 };
103 
104 #endif
105 
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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 ...
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())
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
exports com.sun.star. text
bool FindName(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:45
import bookmarks and reference marks ( , , , , , )
css::uno::Reference< css::uno::XInterface > & m_rxCrossRefHeadingBookmark
XMLFieldParamImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
XMLTextMarkImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, css::uno::Reference< css::uno::XInterface > &io_rxCrossRefHeadingBookmark)