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/families.hxx>
25 
26 namespace com::sun::star::chart { class XChartDocument; }
27 namespace com::sun::star::beans { class XPropertySet; }
28 
29 namespace com::sun::star {
30  namespace frame {
31  class XModel;
32  }
33  namespace xml {
34  namespace sax {
35  class XAttributeList;
36  }
37  }
38  namespace chart2 {
39  class XChartDocument;
40  class XDataSeries;
41  }
42 }
43 
44 class SvXMLStylesContext;
45 class SvXMLImportContext;
46 class SvXMLImport;
47 
48 
56 {
57 private:
58  css::uno::Reference< css::chart::XChartDocument > mxChartDoc;
60 
61 public:
62 
64 
70  SvXMLImport& rImport,
71  const css::uno::Reference< css::frame::XModel >& rChartModel );
72 
76  void SetAutoStylesContext( SvXMLStylesContext* pAutoStyles ) { mpAutoStyles = pAutoStyles; }
78 
80  void FillAutoStyle(const OUString& rAutoStyleName, const css::uno::Reference<css::beans::XPropertySet>& rProp);
81 
82  const css::uno::Reference< css::chart::XChartDocument >& GetChartDocument() const
83  { return mxChartDoc; }
84 
86 
99  static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries(
100  const css::uno::Reference< css::chart2::XChartDocument > & xDoc,
101  sal_Int32 nCoordinateSystemIndex,
102  const OUString & rChartTypeName,
103  bool bPushLastChartType );
104 
105  static void DeleteDataSeries(
106  const css::uno::Reference< css::chart2::XDataSeries >& xSeries,
107  const css::uno::Reference< css::chart2::XChartDocument > & xDoc );
108 };
109 
110 #endif // INCLUDED_XMLOFF_SCHXMLIMPORTHELPER_HXX
111 
112 /* 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:44
const css::uno::Reference< css::chart::XChartDocument > & GetChartDocument() const
css::uno::Reference< css::chart::XChartDocument > mxChartDoc
SvXMLStylesContext * mpAutoStyles