LibreOffice Module xmloff (master)  1
SchXMLImport.cxx
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 
20 #include <SchXMLImport.hxx>
21 #include "SchXMLChartContext.hxx"
22 #include "contexts.hxx"
23 #include "SchXMLTools.hxx"
24 
25 #include <sal/log.hxx>
27 #include <xmloff/namespacemap.hxx>
28 #include <xmloff/prstylei.hxx>
29 #include <xmloff/xmlnamespace.hxx>
30 #include <xmloff/xmltoken.hxx>
31 #include <xmloff/xmluconv.hxx>
32 #include <xmloff/xmlictxt.hxx>
33 #include <xmloff/xmlstyle.hxx>
34 #include <com/sun/star/chart/XChartDocument.hpp>
35 #include <com/sun/star/container/XChild.hpp>
36 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
37 #include <com/sun/star/uno/XComponentContext.hpp>
38 #include <com/sun/star/chart2/data/XDataReceiver.hpp>
39 #include <com/sun/star/chart2/XChartDocument.hpp>
40 #include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
41 #include <com/sun/star/chart2/XChartTypeContainer.hpp>
42 #include <com/sun/star/chart2/XDataSeriesContainer.hpp>
43 
44 #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
45 
46 #include <tools/diagnose_ex.h>
47 
48 using namespace com::sun::star;
49 using namespace ::xmloff::token;
50 
51 using ::com::sun::star::uno::Reference;
52 using ::com::sun::star::uno::Sequence;
53 
54 namespace
55 {
56 class lcl_MatchesChartType
57 {
58 public:
59  explicit lcl_MatchesChartType( const OUString & aChartTypeName ) :
60  m_aChartTypeName( aChartTypeName )
61  {}
62 
63  bool operator () ( const Reference< chart2::XChartType > & xChartType ) const
64  {
65  return (xChartType.is() &&
66  xChartType->getChartType() == m_aChartTypeName );
67  }
68 
69 private:
70  OUString m_aChartTypeName;
71 };
72 } // anonymous namespace
73 
74  // TokenMaps for distinguishing different
75  // tokens in different contexts
76 
77 // element maps
78 
79 // attribute maps
80 
82  mpAutoStyles( nullptr )
83 {
84 }
85 
87  SvXMLImport& rImport,
88  sal_uInt16 /*nPrefix*/, const OUString& rLocalName,
89  const Reference< frame::XModel >& rChartModel,
90  const Reference< xml::sax::XAttributeList >& )
91 {
92  SvXMLImportContext* pContext = nullptr;
93 
94  Reference< chart::XChartDocument > xDoc( rChartModel, uno::UNO_QUERY );
95  if( xDoc.is())
96  {
97  mxChartDoc = xDoc;
98  pContext = new SchXMLChartContext( *this, rImport, rLocalName );
99  }
100  else
101  {
102  SAL_WARN("xmloff.chart", "No valid XChartDocument given as XModel" );
103  }
104 
105  return pContext;
106 }
107 
108 void SchXMLImportHelper::FillAutoStyle(const OUString& rAutoStyleName, const uno::Reference<beans::XPropertySet>& rProp)
109 {
110  if (!rProp.is())
111  return;
112 
113  const SvXMLStylesContext* pStylesCtxt = GetAutoStylesContext();
114  if (pStylesCtxt)
115  {
116  SvXMLStyleContext* pStyle = const_cast<SvXMLStyleContext*>(pStylesCtxt->FindStyleChildContext(SchXMLImportHelper::GetChartFamilyID(), rAutoStyleName));
117 
118  if (XMLPropStyleContext* pPropStyle = dynamic_cast<XMLPropStyleContext*>(pStyle))
119  pPropStyle->FillPropertySet(rProp);
120  }
121 }
122 
123 // get various token maps
124 
126 {
127  if( ! mpChartDocElemTokenMap )
128  {
129  static const SvXMLTokenMapEntry aDocElemTokenMap[] =
130  {
136  };
137 
138  mpChartDocElemTokenMap = std::make_unique<SvXMLTokenMap>( aDocElemTokenMap );
139  } // if( ! mpChartDocElemTokenMap )
140 
141  return *mpChartDocElemTokenMap;
142 }
143 
145 {
146  if( ! mpTableElemTokenMap )
147  {
148  static const SvXMLTokenMapEntry aTableElemTokenMap[] =
149  {
157  };
158 
159  mpTableElemTokenMap = std::make_unique<SvXMLTokenMap>( aTableElemTokenMap );
160  } // if( ! mpTableElemTokenMap )
161 
162  return *mpTableElemTokenMap;
163 }
164 
166 {
167  if( ! mpChartElemTokenMap )
168  {
169  static const SvXMLTokenMapEntry aChartElemTokenMap[] =
170  {
177  };
178 
179  mpChartElemTokenMap = std::make_unique<SvXMLTokenMap>( aChartElemTokenMap );
180  } // if( ! mpChartElemTokenMap )
181 
182  return *mpChartElemTokenMap;
183 }
184 
186 {
187  if( ! mpPlotAreaElemTokenMap )
188  {
189  static const SvXMLTokenMapEntry aPlotAreaElemTokenMap[] =
190 {
202 };
203 
204  mpPlotAreaElemTokenMap = std::make_unique<SvXMLTokenMap>( aPlotAreaElemTokenMap );
205  } // if( ! mpPlotAreaElemTokenMap )
206 
207  return *mpPlotAreaElemTokenMap;
208 }
209 
211 {
212  if( ! mpSeriesElemTokenMap )
213  {
214  static const SvXMLTokenMapEntry aSeriesElemTokenMap[] =
215 {
224 };
225 
226  mpSeriesElemTokenMap = std::make_unique<SvXMLTokenMap>( aSeriesElemTokenMap );
227  } // if( ! mpSeriesElemTokenMap )
228 
229  return *mpSeriesElemTokenMap;
230 }
231 
233 {
234  if( ! mpChartAttrTokenMap )
235  {
236  static const SvXMLTokenMapEntry aChartAttrTokenMap[] =
237 {
247 };
248 
249  mpChartAttrTokenMap = std::make_unique<SvXMLTokenMap>( aChartAttrTokenMap );
250  } // if( ! mpChartAttrTokenMap )
251 
252  return *mpChartAttrTokenMap;
253 }
254 
256 {
257  if( ! mpPlotAreaAttrTokenMap )
258  {
259  static const SvXMLTokenMapEntry aPlotAreaAttrTokenMap[] =
260 {
280 };
281 
282  mpPlotAreaAttrTokenMap = std::make_unique<SvXMLTokenMap>( aPlotAreaAttrTokenMap );
283  } // if( ! mpPlotAreaAttrTokenMap )
284 
285  return *mpPlotAreaAttrTokenMap;
286 }
287 
289 {
290  if( ! mpCellAttrTokenMap )
291  {
292  static const SvXMLTokenMapEntry aCellAttrTokenMap[] =
293 {
297 };
298 
299  mpCellAttrTokenMap = std::make_unique<SvXMLTokenMap>( aCellAttrTokenMap );
300  } // if( ! mpCellAttrTokenMap )
301 
302  return *mpCellAttrTokenMap;
303 }
304 
306 {
307  if( ! mpSeriesAttrTokenMap )
308  {
309  static const SvXMLTokenMapEntry aSeriesAttrTokenMap[] =
310 {
319 };
320 
321  mpSeriesAttrTokenMap = std::make_unique<SvXMLTokenMap>( aSeriesAttrTokenMap );
322  } // if( ! mpSeriesAttrTokenMap )
323 
324  return *mpSeriesAttrTokenMap;
325 }
326 
328 {
330  {
331  static const SvXMLTokenMapEntry aPropMappingAttrTokenMap[] =
332  {
336  };
337 
338  mpPropMappingAttrTokenMap = std::make_unique<SvXMLTokenMap>( aPropMappingAttrTokenMap );
339  }
340 
342 }
343 
345 {
347  {
348  static const SvXMLTokenMapEntry aRegressionEquationAttrTokenMap[] =
349 {
356 };
357 
358  mpRegEquationAttrTokenMap = std::make_unique<SvXMLTokenMap>( aRegressionEquationAttrTokenMap );
359  } // if( ! mpRegEquationAttrTokenMap )
360 
362 }
363 
364 //static
366  const Reference< chart2::XDataSeries > & xSeries,
367  const Reference< chart2::XChartDocument > & xDoc )
368 {
369  if( !xDoc.is() )
370  return;
371  try
372  {
373  Reference< chart2::XCoordinateSystemContainer > xCooSysCnt(
374  xDoc->getFirstDiagram(), uno::UNO_QUERY_THROW );
375  const Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq(
376  xCooSysCnt->getCoordinateSystems());
377 
378  for( const auto& rCooSys : aCooSysSeq )
379  {
380  Reference< chart2::XChartTypeContainer > xCTCnt( rCooSys, uno::UNO_QUERY_THROW );
381  const Sequence< Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes());
382 
383  for( const auto& rChartType : aChartTypes )
384  {
385  Reference< chart2::XDataSeriesContainer > xSeriesCnt( rChartType, uno::UNO_QUERY_THROW );
386  Sequence< Reference< chart2::XDataSeries > > aSeriesSeq( xSeriesCnt->getDataSeries());
387 
388  if (std::find(aSeriesSeq.begin(), aSeriesSeq.end(), xSeries) != aSeriesSeq.end())
389  {
390  xSeriesCnt->removeDataSeries(xSeries);
391  return;
392  }
393  }
394  }
395  }
396  catch( const uno::Exception &)
397  {
398  DBG_UNHANDLED_EXCEPTION("xmloff.chart");
399  }
400 }
401 
402 // static
404  const Reference< chart2::XChartDocument > & xDoc,
405  sal_Int32 nCoordinateSystemIndex,
406  const OUString & rChartTypeName,
407  bool bPushLastChartType /* = false */ )
408 {
410  if(!xDoc.is())
411  return xResult;
412 
413  try
414  {
415  Reference< chart2::XCoordinateSystemContainer > xCooSysCnt(
416  xDoc->getFirstDiagram(), uno::UNO_QUERY_THROW );
417  Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq(
418  xCooSysCnt->getCoordinateSystems());
421 
422  if( nCoordinateSystemIndex < aCooSysSeq.getLength())
423  {
424  Reference< chart2::XChartType > xCurrentType;
425  {
426  Reference< chart2::XChartTypeContainer > xCTCnt( aCooSysSeq[ nCoordinateSystemIndex ], uno::UNO_QUERY_THROW );
427  Sequence< Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes());
428  // find matching chart type group
429  const Reference< chart2::XChartType > * pBegin = aChartTypes.getConstArray();
430  const Reference< chart2::XChartType > * pEnd = pBegin + aChartTypes.getLength();
431  const Reference< chart2::XChartType > * pIt =
432  ::std::find_if( pBegin, pEnd, lcl_MatchesChartType( rChartTypeName ));
433  if( pIt != pEnd )
434  xCurrentType.set( *pIt );
435  // if chart type is set at series and differs from current one,
436  // create a new chart type
437  if( !xCurrentType.is())
438  {
439  xCurrentType.set(
440  xContext->getServiceManager()->createInstanceWithContext( rChartTypeName, xContext ),
441  uno::UNO_QUERY );
442  if( xCurrentType.is())
443  {
444  if( bPushLastChartType && aChartTypes.hasElements())
445  {
446  sal_Int32 nIndex( aChartTypes.getLength() - 1 );
447  aChartTypes.realloc( aChartTypes.getLength() + 1 );
448  aChartTypes[ nIndex + 1 ] = aChartTypes[ nIndex ];
449  aChartTypes[ nIndex ] = xCurrentType;
450  xCTCnt->setChartTypes( aChartTypes );
451  }
452  else
453  xCTCnt->addChartType( xCurrentType );
454  }
455  }
456  }
457 
458  if( xCurrentType.is())
459  {
460  Reference< chart2::XDataSeriesContainer > xSeriesCnt( xCurrentType, uno::UNO_QUERY_THROW );
461 
462  if( xContext.is() )
463  {
464  xResult.set(
465  xContext->getServiceManager()->createInstanceWithContext(
466  "com.sun.star.chart2.DataSeries",
467  xContext ), uno::UNO_QUERY_THROW );
468  }
469  if( xResult.is() )
470  xSeriesCnt->addDataSeries( xResult );
471  }
472  }
473  }
474  catch( const uno::Exception & )
475  {
476  DBG_UNHANDLED_EXCEPTION("xmloff.chart");
477  }
478  return xResult;
479 }
480 
482  const Reference< uno::XComponentContext >& xContext,
483  OUString const & implementationName, SvXMLImportFlags nImportFlags ) :
484  SvXMLImport( xContext, implementationName, nImportFlags ),
485  maImportHelper(new SchXMLImportHelper)
486 {
489 }
490 
492 {
493  uno::Reference< chart2::XChartDocument > xChartDoc( GetModel(), uno::UNO_QUERY );
494  if( xChartDoc.is() && xChartDoc->hasControllersLocked() )
495  xChartDoc->unlockControllers();
496 }
497 
498 // create the main context (subcontexts are created
499 // by the one created here)
501  const uno::Reference< xml::sax::XFastAttributeList >& /*xAttrList*/ )
502 {
503  SvXMLImportContext* pContext = nullptr;
504 
505  switch (nElement)
506  {
509  {
510  uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
511  GetModel(), uno::UNO_QUERY);
512  // mst@: right now, this seems to be not supported, so it is untested
513  if (xDPS.is()) {
514  pContext = (nElement == XML_ELEMENT(OFFICE, XML_DOCUMENT_META))
515  ? new SvXMLMetaDocumentContext(*this, xDPS->getDocumentProperties())
516  // flat OpenDocument file format
517  : new SchXMLFlatDocContext_Impl(*maImportHelper, *this, nElement,
518  xDPS->getDocumentProperties());
519  }
520  }
521  break;
522  // accept <office:document>
525  pContext = new SchXMLDocContext(*maImportHelper, *this, nElement);
526  break;
527  }
528  return pContext;
529 }
530 
532 {
533  //#i103287# make sure that the version information is set before importing all the properties (especially stroke-opacity!)
535 
536  SvXMLStylesContext* pStylesCtxt = new SvXMLStylesContext( *this );
537 
538  // set context at base class, so that all auto-style classes are imported
539  SetAutoStyles( pStylesCtxt );
540  maImportHelper->SetAutoStylesContext( pStylesCtxt );
541 
542  return pStylesCtxt;
543 }
544 
545 void SAL_CALL SchXMLImport::setTargetDocument(const uno::Reference<lang::XComponent>& xDoc)
546 {
547  uno::Reference<chart2::XChartDocument> xOldDoc(GetModel(), uno::UNO_QUERY);
548  if (xOldDoc.is() && xOldDoc->hasControllersLocked())
549  xOldDoc->unlockControllers();
550 
552 
553  uno::Reference<chart2::XChartDocument> xChartDoc(GetModel(), uno::UNO_QUERY);
554 
555  if (!xChartDoc.is())
556  return;
557  try
558  {
559  // prevent rebuild of view during load (necessary especially if loaded not
560  // via load api, which is the case for example if binary files are loaded)
561  xChartDoc->lockControllers();
562 
563  uno::Reference<container::XChild> xChild(xChartDoc, uno::UNO_QUERY);
564  uno::Reference<chart2::data::XDataReceiver> xDataReceiver(xChartDoc, uno::UNO_QUERY);
565  if (xChild.is() && xDataReceiver.is())
566  {
567  Reference<lang::XMultiServiceFactory> xFact(xChild->getParent(), uno::UNO_QUERY);
568  if (xFact.is())
569  {
570  //if the parent has a number formatter we will use the numberformatter of the parent
571  Reference<util::XNumberFormatsSupplier> xNumberFormatsSupplier(xFact, uno::UNO_QUERY);
572  xDataReceiver->attachNumberFormatsSupplier(xNumberFormatsSupplier);
573  }
574  }
575  }
576  catch (const uno::Exception &)
577  {
578  TOOLS_INFO_EXCEPTION("xmloff.chart", "SchXMLChartContext::StartElement(): Exception caught");
579  }
580 }
581 
582 // first version: everything comes from one storage
583 
584 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
586  uno::Sequence<uno::Any> const& /*rSeq*/)
587 {
588  return cppu::acquire(new SchXMLImport(pCtx, "SchXMLImport", SvXMLImportFlags::ALL));
589 }
590 
591 // multiple storage version: one for content / styles / meta
592 
593 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
595  uno::XComponentContext* pCtx, uno::Sequence<uno::Any> const& /*rSeq*/)
596 {
597  return cppu::acquire(new SchXMLImport(pCtx, "SchXMLImport.Meta", SvXMLImportFlags::META));
598 }
599 
600 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
602  uno::XComponentContext* pCtx, uno::Sequence<uno::Any> const& /*rSeq*/)
603 {
604  return cppu::acquire(new SchXMLImport(pCtx, "SchXMLImport.Styles", SvXMLImportFlags::STYLES));
605 }
606 
607 extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
609  uno::XComponentContext* pCtx, uno::Sequence<uno::Any> const& /*rSeq*/)
610 {
611  return cppu::acquire(new SchXMLImport(pCtx, "SchXMLImport.Content",
614 }
615 
616 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~SchXMLImport() override
sal_Int32 nIndex
std::unique_ptr< SvXMLTokenMap > mpChartAttrTokenMap
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
std::unique_ptr< SvXMLTokenMap > mpChartDocElemTokenMap
void setBuildIDAtImportInfo(const uno::Reference< frame::XModel > &xModel, const Reference< beans::XPropertySet > &xImportInfo)
const SvXMLTokenMap & GetSeriesAttrTokenMap()
constexpr sal_uInt16 XML_NAMESPACE_CHART
constexpr sal_uInt16 XML_NAMESPACE_DR3D
SvXMLImportContext * CreateStylesContext()
std::unique_ptr< SvXMLTokenMap > mpSeriesAttrTokenMap
SvXMLStylesContext * GetAutoStylesContext() const
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Chart_XMLOasisMetaImporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr sal_uInt16 XML_NAMESPACE_XLINK
SvXMLNamespaceMap & GetNamespaceMap()
Definition: xmlimp.hxx:394
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Chart_XMLOasisContentImporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
std::unique_ptr< SvXMLTokenMap > mpRegEquationAttrTokenMap
void FillAutoStyle(const OUString &rAutoStyleName, const css::uno::Reference< css::beans::XPropertySet > &rProp)
Fill in the autostyle.
const SvXMLTokenMap & GetChartAttrTokenMap()
#define XML_TOKEN_MAP_END
Definition: xmltkmap.hxx:33
SvXMLImportFlags
Definition: xmlimp.hxx:108
static void DeleteDataSeries(const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const css::uno::Reference< css::chart2::XChartDocument > &xDoc)
const SvXMLTokenMap & GetPlotAreaElemTokenMap()
const SvXMLTokenMap & GetTableElemTokenMap()
const SvXMLTokenMap & GetPlotAreaAttrTokenMap()
SchXMLImport(const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, SvXMLImportFlags nImportFlags)
std::unique_ptr< SvXMLTokenMap > mpPlotAreaAttrTokenMap
#define DBG_UNHANDLED_EXCEPTION(...)
std::unique_ptr< SvXMLTokenMap > mpCellAttrTokenMap
constexpr sal_uInt16 XML_NAMESPACE_SVG
virtual SvXMLImportContext * CreateFastContext(sal_Int32 nElement, const ::css::uno::Reference<::css::xml::sax::XFastAttributeList > &xAttrList) override
static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries(const css::uno::Reference< css::chart2::XChartDocument > &xDoc, sal_Int32 nCoordinateSystemIndex, const OUString &rChartTypeName, bool bPushLastChartType)
const SvXMLTokenMap & GetPropMappingAttrTokenMap()
constexpr sal_uInt16 XML_NAMESPACE_CHART_EXT
std::unique_ptr< SvXMLTokenMap > mpTableElemTokenMap
static XmlStyleFamily GetChartFamilyID()
SvXMLImportContext * CreateChartContext(SvXMLImport &rImport, sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::frame::XModel > &rChartModel, const css::uno::Reference< css::xml::sax::XAttributeList > &rAttrList)
get the context for reading the element with subelements.
With this class you can import a element containing its data as element o...
const SvXMLTokenMap & GetChartElemTokenMap()
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:44
#define TOOLS_INFO_EXCEPTION(area, stream)
const SvXMLTokenMap & GetRegEquationAttrTokenMap()
const SvXMLTokenMap & GetSeriesElemTokenMap()
constexpr sal_uInt16 XML_NAMESPACE_TABLE
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
rtl::Reference< SchXMLImportHelper > maImportHelper
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
Definition: xmltoken.cxx:3378
std::unique_ptr< SvXMLTokenMap > mpPropMappingAttrTokenMap
Handling of tokens in XML:
#define XML_ELEMENT(prefix, name)
Definition: xmlimp.hxx:94
std::unique_ptr< SvXMLTokenMap > mpChartElemTokenMap
sal_uInt16 Add(const OUString &rPrefix, const OUString &rName, sal_uInt16 nKey=XML_NAMESPACE_UNKNOWN)
const css::uno::Reference< css::frame::XModel > & GetModel() const
Definition: xmlimp.hxx:400
Reference< XComponentContext > getProcessComponentContext()
void SetAutoStyles(SvXMLStylesContext *pAutoStyles)
Definition: xmlimp.cxx:1600
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
Definition: xmlstyle.cxx:808
const SvXMLTokenMap & GetDocElemTokenMap()
const css::uno::Reference< css::beans::XPropertySet > & getImportInfo() const
Definition: xmlimp.hxx:382
const SvXMLTokenMap & GetCellAttrTokenMap()
handles the top-level office:document-meta element of meta.xml documents
Definition: xmlmetai.hxx:35
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Chart_XMLOasisImporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)
#define SAL_WARN(area, stream)
const SvXMLTokenMapEntry aTableElemTokenMap[]
std::unique_ptr< SvXMLTokenMap > mpSeriesElemTokenMap
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
Definition: xmlimp.cxx:965
std::unique_ptr< SvXMLTokenMap > mpPlotAreaElemTokenMap
css::uno::Reference< css::chart::XChartDocument > mxChartDoc
SAL_DLLPUBLIC_EXPORT uno::XInterface * com_sun_star_comp_Chart_XMLOasisStylesImporter_get_implementation(uno::XComponentContext *pCtx, uno::Sequence< uno::Any > const &)