LibreOffice Module xmloff (master) 1
txtparai.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
22#include <com/sun/star/container/XIndexReplace.hpp>
23#include <com/sun/star/uno/Reference.h>
24#include <xmloff/xmlictxt.hxx>
25
26class XMLHints_Impl;
27namespace com::sun::star {
28 namespace text { class XTextRange; }
29 namespace xml::sax { class XAttributeList; }
30}
31
32#define CONV_FROM_STAR_BATS 1
33#define CONV_FROM_STAR_MATH 2
34#define CONV_STAR_FONT_FLAGS_VALID 4
35
37{
38 css::uno::Reference < css::text::XTextRange > xStart;
39 OUString sStyleName;
40 OUString m_sXmlId;
41 OUString m_sAbout;
42 OUString m_sProperty;
43 OUString m_sContent;
44 OUString m_sDatatype;
47 std::unique_ptr<XMLHints_Impl> m_xHints;
48 // Lost outline numbering in master document (#i73509#)
55 sal_Int16 nStartValue;
57
58public:
59
60
62 sal_Int32 nElement,
63 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
64
65 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
66
67 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
68 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
69
70 virtual void SAL_CALL characters( const OUString& rChars ) override;
71
72};
73
75{
77 sal_Int16 m_Level;
79 sal_Int16 m_StartValue;
81 OUString m_ListId;
83 css::uno::Reference< css::container::XIndexReplace > m_xNumRules;
84
85public:
86
87
89 sal_Int32 nElement,
90 const css::uno::Reference< css::xml::sax::XFastAttributeList > & i_xAttrList );
91
92 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
93
94 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
95 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
96
97 sal_Int16 GetLevel() const { return m_Level; }
98 const css::uno::Reference< css::container::XIndexReplace >& GetNumRules() const
99 { return m_xNumRules; }
100 const OUString& GetListId() const { return m_ListId; }
101 sal_Int16 GetStartValue() const { return m_StartValue; }
102
103};
104
105class XMLHints_Impl;
107
109{
112
114
116
117public:
118
119
121 SvXMLImport& rImport,
122 sal_Int32 nElement,
123 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList,
124 XMLHints_Impl& rHints,
125 bool& rIgnLeadSpace,
126 sal_uInt8 nSFConvFlags
127 );
128
129 static css::uno::Reference< css::xml::sax::XFastContextHandler > CreateSpanContext(
130 SvXMLImport& rImport,
131 sal_Int32 nElement,
132 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList,
133 XMLHints_Impl& rHints,
134 bool& rIgnLeadSpace,
136 );
137
138 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
139 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
140
141 virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
142 virtual void SAL_CALL characters( const OUString& rChars ) override;
143};
144
145/* 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
virtual void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
Definition: txtparai.cxx:1575
sal_uInt8 nStarFontsConvFlags
Definition: txtparai.hxx:115
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 ...
Definition: txtparai.cxx:1323
XMLHints_Impl & m_rHints
Definition: txtparai.hxx:110
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtparai.cxx:1565
XMLStyleHint_Impl * pHint
Definition: txtparai.hxx:111
static css::uno::Reference< css::xml::sax::XFastContextHandler > CreateSpanContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, XMLHints_Impl &rHints, bool &rIgnLeadSpace, sal_uInt8 nStarFontsConvFlags=0)
Definition: txtparai.cxx:1335
XMLImpSpanContext_Impl(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, XMLHints_Impl &rHints, bool &rIgnLeadSpace, sal_uInt8 nSFConvFlags)
Definition: txtparai.cxx:1291
OUString m_ListId
text:list-id
Definition: txtparai.hxx:81
sal_Int16 GetStartValue() const
Definition: txtparai.hxx:101
XMLNumberedParaContext(SvXMLImport &i_rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &i_xAttrList)
Definition: txtparai.cxx:1989
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtparai.cxx:2064
sal_Int16 m_Level
text:list-level MINUS 1
Definition: txtparai.hxx:77
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 ...
Definition: txtparai.cxx:2057
css::uno::Reference< css::container::XIndexReplace > m_xNumRules
text:style-name
Definition: txtparai.hxx:83
const OUString & GetListId() const
Definition: txtparai.hxx:100
sal_Int16 GetLevel() const
Definition: txtparai.hxx:97
const css::uno::Reference< css::container::XIndexReplace > & GetNumRules() const
Definition: txtparai.hxx:98
sal_Int16 m_StartValue
text:start-value
Definition: txtparai.hxx:79
OUString m_sXmlId
Definition: txtparai.hxx:40
bool bIgnoreLeadingSpace
Definition: txtparai.hxx:51
std::unique_ptr< XMLHints_Impl > m_xHints
Definition: txtparai.hxx:47
bool m_bHaveAbout
Definition: txtparai.hxx:45
bool bIsListHeader
Definition: txtparai.hxx:53
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 ...
Definition: txtparai.cxx:1687
OUString m_sAbout
Definition: txtparai.hxx:41
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtparai.cxx:1967
sal_uInt8 nStarFontsConvFlags
Definition: txtparai.hxx:56
bool mbOutlineLevelAttrFound
Definition: txtparai.hxx:49
OUString m_sDatatype
Definition: txtparai.hxx:44
OUString sStyleName
Definition: txtparai.hxx:39
bool mbOutlineContentVisible
Definition: txtparai.hxx:50
OUString m_sContent
Definition: txtparai.hxx:43
virtual void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
Definition: txtparai.cxx:1979
css::uno::Reference< css::text::XTextRange > xStart
Definition: txtparai.hxx:38
XMLParaContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
sal_Int16 nStartValue
Definition: txtparai.hxx:55
sal_Int8 nOutlineLevel
Definition: txtparai.hxx:46
OUString m_sProperty
Definition: txtparai.hxx:42
def text(shape, orig_st)
unsigned char sal_uInt8
signed char sal_Int8