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 <memory>
23 
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 
58 {
59 private:
60  css::uno::Reference< css::chart::XChartDocument > mxChartDoc;
62 
63 public:
64 
66 
72  SvXMLImport& rImport,
73  const css::uno::Reference< css::frame::XModel >& rChartModel );
74 
78  void SetAutoStylesContext( SvXMLStylesContext* pAutoStyles ) { mpAutoStyles = pAutoStyles; }
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 
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: */
exports com.sun.star. xml
SvXMLStylesContext * GetAutoStylesContext() const
void FillAutoStyle(const OUString &rAutoStyleName, const css::uno::Reference< css::beans::XPropertySet > &rProp)
Fill in the autostyle.
XmlStyleFamily
Definition: families.hxx:47
exports com.sun.star. chart2
exports com.sun.star. frame
static void DeleteDataSeries(const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const css::uno::Reference< css::chart2::XChartDocument > &xDoc)
SvXMLImportContext * CreateChartContext(SvXMLImport &rImport, const css::uno::Reference< css::frame::XModel > &rChartModel)
get the context for reading the element with subelements.
void SetAutoStylesContext(SvXMLStylesContext *pAutoStyles)
set the auto-style context that will be used to retrieve auto-styles used inside the following
static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries(const css::uno::Reference< css::chart2::XChartDocument > &xDoc, sal_Int32 nCoordinateSystemIndex, const OUString &rChartTypeName, bool bPushLastChartType)
class SAL_NO_VTABLE XPropertySet
static XmlStyleFamily GetChartFamilyID()
With this class you can import a element containing its data as element o...
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:45
const css::uno::Reference< css::chart::XChartDocument > & GetChartDocument() const
css::uno::Reference< css::chart::XChartDocument > mxChartDoc
SvXMLStylesContext * mpAutoStyles