LibreOffice Module xmloff (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
xmloff
SchXMLImportHelper.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_XMLOFF_SCHXMLIMPORTHELPER_HXX
20
#define INCLUDED_XMLOFF_SCHXMLIMPORTHELPER_HXX
21
22
#include <memory>
23
24
#include <
salhelper/simplereferenceobject.hxx
>
25
#include <
xmloff/families.hxx
>
26
#include <
xmloff/xmltkmap.hxx
>
27
28
namespace
com::sun::star::chart
{
class
XChartDocument; }
29
namespace
com::sun::star::beans
{
class
XPropertySet
; }
30
31
namespace
com::sun::star
{
32
namespace
frame
{
33
class
XModel;
34
}
35
namespace
xml
{
36
namespace
sax
{
37
class
XAttributeList;
38
}
39
}
40
namespace
chart2
{
41
class
XChartDocument;
42
class
XDataSeries;
43
}
44
}
45
46
class
SvXMLStylesContext
;
47
class
SvXMLImportContext
;
48
class
SvXMLImport
;
49
50
57
class
SchXMLImportHelper
final :
public
salhelper::SimpleReferenceObject
58
{
59
private
:
60
css::uno::Reference< css::chart::XChartDocument >
mxChartDoc
;
61
SvXMLStylesContext
*
mpAutoStyles
;
62
63
public
:
64
65
SchXMLImportHelper
();
66
71
SvXMLImportContext
*
CreateChartContext
(
72
SvXMLImport
& rImport,
73
const
css::uno::Reference< css::frame::XModel >& rChartModel );
74
78
void
SetAutoStylesContext
(
SvXMLStylesContext
* pAutoStyles ) { mpAutoStyles = pAutoStyles; }
79
SvXMLStylesContext
*
GetAutoStylesContext
()
const
{
return
mpAutoStyles
; }
80
82
void
FillAutoStyle
(
const
OUString& rAutoStyleName,
const
css::uno::Reference<css::beans::XPropertySet>& rProp);
83
84
const
css::uno::Reference< css::chart::XChartDocument >&
GetChartDocument
()
const
85
{
return
mxChartDoc
; }
86
87
static
XmlStyleFamily
GetChartFamilyID
() {
return
XmlStyleFamily::SCH_CHART_ID
; }
88
101
static
css::uno::Reference< css::chart2::XDataSeries >
GetNewDataSeries
(
102
const
css::uno::Reference< css::chart2::XChartDocument > & xDoc,
103
sal_Int32 nCoordinateSystemIndex,
104
const
OUString & rChartTypeName,
105
bool
bPushLastChartType );
106
107
static
void
DeleteDataSeries
(
108
const
css::uno::Reference< css::chart2::XDataSeries >& xSeries,
109
const
css::uno::Reference< css::chart2::XChartDocument > & xDoc );
110
};
111
112
#endif // INCLUDED_XMLOFF_SCHXMLIMPORTHELPER_HXX
113
114
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvXMLStylesContext
Definition:
xmlstyle.hxx:121
com::sun::star
#file
xml
exports com.sun.star. xml
SchXMLImportHelper::GetAutoStylesContext
SvXMLStylesContext * GetAutoStylesContext() const
Definition:
SchXMLImportHelper.hxx:79
salhelper::SimpleReferenceObject
SchXMLImportHelper::FillAutoStyle
void FillAutoStyle(const OUString &rAutoStyleName, const css::uno::Reference< css::beans::XPropertySet > &rProp)
Fill in the autostyle.
Definition:
SchXMLImport.cxx:106
XmlStyleFamily::SCH_CHART_ID
XmlStyleFamily
XmlStyleFamily
Definition:
families.hxx:47
simplereferenceobject.hxx
families.hxx
chart2
exports com.sun.star. chart2
frame
exports com.sun.star. frame
SchXMLImportHelper::DeleteDataSeries
static void DeleteDataSeries(const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const css::uno::Reference< css::chart2::XChartDocument > &xDoc)
Definition:
SchXMLImport.cxx:125
SchXMLImportHelper::CreateChartContext
SvXMLImportContext * CreateChartContext(SvXMLImport &rImport, const css::uno::Reference< css::frame::XModel > &rChartModel)
get the context for reading the
element with subelements.
Definition:
SchXMLImport.cxx:86
SchXMLImportHelper::SetAutoStylesContext
void SetAutoStylesContext(SvXMLStylesContext *pAutoStyles)
set the auto-style context that will be used to retrieve auto-styles used inside the following
Definition:
SchXMLImportHelper.hxx:78
sax
SchXMLImportHelper::GetNewDataSeries
static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries(const css::uno::Reference< css::chart2::XChartDocument > &xDoc, sal_Int32 nCoordinateSystemIndex, const OUString &rChartTypeName, bool bPushLastChartType)
Definition:
SchXMLImport.cxx:163
com::sun::star::beans::XPropertySet
class SAL_NO_VTABLE XPropertySet
SchXMLImportHelper::SchXMLImportHelper
SchXMLImportHelper()
Definition:
SchXMLImport.cxx:81
SchXMLImportHelper::GetChartFamilyID
static XmlStyleFamily GetChartFamilyID()
Definition:
SchXMLImportHelper.hxx:87
SchXMLImportHelper
With this class you can import a
element containing its data as
element o...
Definition:
SchXMLImportHelper.hxx:57
xmltkmap.hxx
SvXMLImportContext
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition:
xmlictxt.hxx:45
SchXMLImportHelper::GetChartDocument
const css::uno::Reference< css::chart::XChartDocument > & GetChartDocument() const
Definition:
SchXMLImportHelper.hxx:84
com::sun::star::beans
SvXMLImport
Definition:
xmlimp.hxx:177
com::sun::star::chart
SchXMLImportHelper::mxChartDoc
css::uno::Reference< css::chart::XChartDocument > mxChartDoc
Definition:
SchXMLImportHelper.hxx:60
SchXMLImportHelper::mpAutoStyles
SvXMLStylesContext * mpAutoStyles
Definition:
SchXMLImportHelper.hxx:61
Generated on Sat Feb 27 2021 02:56:17 for LibreOffice Module xmloff (master) by
1.8.10