LibreOffice Module reportdesign (master) 1
xmlCell.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#ifndef INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLCELL_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLCELL_HXX
21
22#include <xmloff/xmlictxt.hxx>
23#include <com/sun/star/report/XReportComponent.hpp>
24
25namespace rptxml
26{
27 class ORptFilter;
28 class OXMLTable;
30 {
31 css::uno::Reference< css::report::XReportComponent > m_xComponent;
34 OUString m_sStyleName;
35 OUString m_sText;
36 sal_Int32 m_nCurrentCount;
38
40 OXMLCell(const OXMLCell&) = delete;
41 OXMLCell& operator =(const OXMLCell&) = delete;
42 public:
43
45 ,const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList
46 ,OXMLTable* _pContainer
47 ,OXMLCell* _pCell = nullptr);
48 virtual ~OXMLCell() override;
49
50 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
51 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
52
53 virtual void SAL_CALL characters( const OUString& rChars ) override;
54 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
55
56 void setComponent(const css::uno::Reference< css::report::XReportComponent >& _xComponent);
57 void setContainsShape(bool _bContainsShapes);
58 };
59
60} // namespace rptxml
61
62
63#endif // INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLCELL_HXX
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString m_sStyleName
Definition: xmlCell.hxx:34
OXMLTable * m_pContainer
Definition: xmlCell.hxx:32
virtual ~OXMLCell() override
Definition: xmlCell.cxx:83
OXMLCell(ORptFilter &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, OXMLTable *_pContainer, OXMLCell *_pCell=nullptr)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: xmlCell.cxx:87
css::uno::Reference< css::report::XReportComponent > m_xComponent
Definition: xmlCell.hxx:31
OXMLCell * m_pCell
Definition: xmlCell.hxx:33
virtual void SAL_CALL characters(const OUString &rChars) override
Definition: xmlCell.cxx:239
void setContainsShape(bool _bContainsShapes)
Definition: xmlCell.cxx:253
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
Definition: xmlCell.cxx:169
bool m_bContainsShape
Definition: xmlCell.hxx:37
ORptFilter & GetOwnImport()
Definition: xmlCell.cxx:228
OXMLCell & operator=(const OXMLCell &)=delete
void setComponent(const css::uno::Reference< css::report::XReportComponent > &_xComponent)
Definition: xmlCell.cxx:233
sal_Int32 m_nCurrentCount
Definition: xmlCell.hxx:36
OUString m_sText
Definition: xmlCell.hxx:35
OXMLCell(const OXMLCell &)=delete