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;
45 css::uno::Any m_aMarkerStyleName;
48 std::unique_ptr<XMLHints_Impl> m_xHints;
49 // Lost outline numbering in master document (#i73509#)
56 sal_Int16 nStartValue;
58
59public:
60
61
63 sal_Int32 nElement,
64 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
65
66 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
67
68 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
69 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
70
71 virtual void SAL_CALL characters( const OUString& rChars ) override;
72
73};
74
76{
78 sal_Int16 m_Level;
80 sal_Int16 m_StartValue;
82 OUString m_ListId;
84 css::uno::Reference< css::container::XIndexReplace > m_xNumRules;
85
86public:
87
88
90 sal_Int32 nElement,
91 const css::uno::Reference< css::xml::sax::XFastAttributeList > & i_xAttrList );
92
93 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
94
95 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
96 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
97
98 sal_Int16 GetLevel() const { return m_Level; }
99 const css::uno::Reference< css::container::XIndexReplace >& GetNumRules() const
100 { return m_xNumRules; }
101 const OUString& GetListId() const { return m_ListId; }
102 sal_Int16 GetStartValue() const { return m_StartValue; }
103
104};
105
106class XMLHints_Impl;
108
110{
113
115
117
118public:
119
120
122 SvXMLImport& rImport,
123 sal_Int32 nElement,
124 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList,
125 XMLHints_Impl& rHints,
126 bool& rIgnLeadSpace,
127 sal_uInt8 nSFConvFlags
128 );
129
130 static css::uno::Reference< css::xml::sax::XFastContextHandler > CreateSpanContext(
131 SvXMLImport& rImport,
132 sal_Int32 nElement,
133 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList,
134 XMLHints_Impl& rHints,
135 bool& rIgnLeadSpace,
137 );
138
139 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
140 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
141
142 virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
143 virtual void SAL_CALL characters( const OUString& rChars ) override;
144};
145
146/* 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:1576
sal_uInt8 nStarFontsConvFlags
Definition: txtparai.hxx:116
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:1324
XMLHints_Impl & m_rHints
Definition: txtparai.hxx:111
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:1566
XMLStyleHint_Impl * pHint
Definition: txtparai.hxx:112
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:1336
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:1292
OUString m_ListId
text:list-id
Definition: txtparai.hxx:82
sal_Int16 GetStartValue() const
Definition: txtparai.hxx:102
XMLNumberedParaContext(SvXMLImport &i_rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &i_xAttrList)
Definition: txtparai.cxx:2035
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:2110
sal_Int16 m_Level
text:list-level MINUS 1
Definition: txtparai.hxx:78
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:2103
css::uno::Reference< css::container::XIndexReplace > m_xNumRules
text:style-name
Definition: txtparai.hxx:84
const OUString & GetListId() const
Definition: txtparai.hxx:101
sal_Int16 GetLevel() const
Definition: txtparai.hxx:98
const css::uno::Reference< css::container::XIndexReplace > & GetNumRules() const
Definition: txtparai.hxx:99
sal_Int16 m_StartValue
text:start-value
Definition: txtparai.hxx:80
OUString m_sXmlId
Definition: txtparai.hxx:40
bool bIgnoreLeadingSpace
Definition: txtparai.hxx:52
std::unique_ptr< XMLHints_Impl > m_xHints
Definition: txtparai.hxx:48
bool m_bHaveAbout
Definition: txtparai.hxx:46
bool bIsListHeader
Definition: txtparai.hxx:54
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:1692
css::uno::Any m_aMarkerStyleName
Definition: txtparai.hxx:45
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:2013
sal_uInt8 nStarFontsConvFlags
Definition: txtparai.hxx:57
bool mbOutlineLevelAttrFound
Definition: txtparai.hxx:50
OUString m_sDatatype
Definition: txtparai.hxx:44
OUString sStyleName
Definition: txtparai.hxx:39
bool mbOutlineContentVisible
Definition: txtparai.hxx:51
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:2025
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:56
sal_Int8 nOutlineLevel
Definition: txtparai.hxx:47
OUString m_sProperty
Definition: txtparai.hxx:42
def text(shape, orig_st)
unsigned char sal_uInt8
signed char sal_Int8