LibreOffice Module xmloff (master) 1
xmlcontentcontrolcontext.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#include <xmloff/xmlictxt.hxx>
22
23#include <vector>
24
25#include <com/sun/star/text/XTextContent.hpp>
26#include <com/sun/star/beans/PropertyValues.hpp>
27
28class XMLHints_Impl;
29
32{
34
36
37 css::uno::Reference<css::text::XTextRange> m_xStart;
38
40
41 bool m_bCheckbox = false;
42 bool m_bChecked = false;
45 std::vector<css::beans::PropertyValues> m_aListItems;
46 bool m_bPicture = false;
47 bool m_bDate = false;
48 OUString m_aDateFormat;
51 bool m_bPlainText = false;
52 bool m_bComboBox = false;
53 bool m_bDropDown = false;
54 OUString m_aAlias;
55 OUString m_aTag;
56 sal_Int32 m_nId = 0;
57 sal_uInt32 m_nTabIndex = 0;
58 OUString m_aLock;
59
60public:
61 XMLContentControlContext(SvXMLImport& rImport, sal_Int32 nElement, XMLHints_Impl& rHints,
62 bool& rIgnoreLeadingSpace);
63
64 void SAL_CALL startFastElement(
65 sal_Int32 nElement,
66 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList) override;
67
68 void SAL_CALL endFastElement(sal_Int32 nElement) override;
69
70 css::uno::Reference<css::xml::sax::XFastContextHandler> SAL_CALL createFastChildContext(
71 sal_Int32 nElement,
72 const css::uno::Reference<css::xml::sax::XFastAttributeList>& rAttrList) override;
73
74 void SAL_CALL characters(const OUString& rChars) override;
75
76 void AppendListItem(const css::beans::PropertyValues& rListItem);
77};
78
81{
83
84public:
86
87 void SAL_CALL startFastElement(
88 sal_Int32 nElement,
89 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList) override;
90};
91
92/* 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
Imports <loext:content-control>.
void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &rAttrList) override
void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
void AppendListItem(const css::beans::PropertyValues &rListItem)
XMLContentControlContext(SvXMLImport &rImport, sal_Int32 nElement, XMLHints_Impl &rHints, bool &rIgnoreLeadingSpace)
std::vector< css::beans::PropertyValues > m_aListItems
void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::text::XTextRange > m_xStart
Imports <loext:list-item> inside <loext:content-control>.
XMLContentControlContext & m_rContentControl
XMLListItemContext(SvXMLImport &rImport, XMLContentControlContext &rContentControl)
void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override