LibreOffice Module xmloff (master) 1
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 <com/sun/star/uno/Reference.hxx>
24#include <xmloff/dllapi.h>
25#include <xmloff/families.hxx>
26
27namespace com::sun::star::chart { class XChartDocument; }
28namespace com::sun::star::beans { class XPropertySet; }
29
30namespace com::sun::star {
31 namespace frame {
32 class XModel;
33 }
34 namespace xml {
35 namespace sax {
36 class XAttributeList;
37 }
38 }
39 namespace chart2 {
40 class XChartDocument;
41 class XDataSeries;
42 }
43}
44
47class SvXMLImport;
48
49
57{
58private:
59 css::uno::Reference< css::chart::XChartDocument > mxChartDoc;
61
62public:
63
65
71 SvXMLImport& rImport,
72 const css::uno::Reference< css::frame::XModel >& rChartModel );
73
77 void SetAutoStylesContext( SvXMLStylesContext* pAutoStyles ) { mpAutoStyles = pAutoStyles; }
79
81 void FillAutoStyle(const OUString& rAutoStyleName, const css::uno::Reference<css::beans::XPropertySet>& rProp);
82
83 const css::uno::Reference< css::chart::XChartDocument >& GetChartDocument() const
84 { return mxChartDoc; }
85
87
100 static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries(
101 const css::uno::Reference< css::chart2::XChartDocument > & xDoc,
102 sal_Int32 nCoordinateSystemIndex,
103 const OUString & rChartTypeName,
104 bool bPushLastChartType );
105
106 static void DeleteDataSeries(
107 const css::uno::Reference< css::chart2::XDataSeries >& xSeries,
108 const css::uno::Reference< css::chart2::XChartDocument > & xDoc );
109};
110
111XMLOFF_DLLPUBLIC void setDataProvider(css::uno::Reference<css::chart2::XChartDocument> const & xChartDoc, OUString const & sDataPilotSource);
112
113#endif // INCLUDED_XMLOFF_SCHXMLIMPORTHELPER_HXX
114
115/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XMLOFF_DLLPUBLIC void setDataProvider(css::uno::Reference< css::chart2::XChartDocument > const &xChartDoc, OUString const &sDataPilotSource)
With this class you can import a <chart:chart> element containing its data as <table:table> element o...
const css::uno::Reference< css::chart::XChartDocument > & GetChartDocument() const
void SetAutoStylesContext(SvXMLStylesContext *pAutoStyles)
set the auto-style context that will be used to retrieve auto-styles used inside the following <chart...
static void DeleteDataSeries(const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const css::uno::Reference< css::chart2::XChartDocument > &xDoc)
css::uno::Reference< css::chart::XChartDocument > mxChartDoc
SvXMLStylesContext * GetAutoStylesContext() const
SvXMLImportContext * CreateChartContext(SvXMLImport &rImport, const css::uno::Reference< css::frame::XModel > &rChartModel)
get the context for reading the <chart:chart> element with subelements.
void FillAutoStyle(const OUString &rAutoStyleName, const css::uno::Reference< css::beans::XPropertySet > &rProp)
Fill in the autostyle.
SvXMLStylesContext * mpAutoStyles
static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries(const css::uno::Reference< css::chart2::XChartDocument > &xDoc, sal_Int32 nCoordinateSystemIndex, const OUString &rChartTypeName, bool bPushLastChartType)
static XmlStyleFamily GetChartFamilyID()
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
XmlStyleFamily
Definition: families.hxx:50
class SAL_NO_VTABLE XPropertySet