LibreOffice Module sc (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
XclExpXmlStream Class Reference

#include <xestream.hxx>

Inheritance diagram for XclExpXmlStream:
[legend]
Collaboration diagram for XclExpXmlStream:
[legend]

Public Member Functions

 XclExpXmlStream (const css::uno::Reference< css::uno::XComponentContext > &rCC, bool bExportVBA, bool bExportTemplate)
 
virtual ~XclExpXmlStream () override
 
const XclExpRootGetRoot () const
 Returns the filter root data. More...
 
sax_fastparser::FSHelperPtrGetCurrentStream ()
 
void PushStream (sax_fastparser::FSHelperPtr const &aStream)
 
void PopStream ()
 
sax_fastparser::FSHelperPtr GetStreamForPath (const OUString &rPath)
 
template<typename Str , typename... Args>
void WriteAttributes (sal_Int32 nAttribute, Str &&value, Args &&...rest)
 
sax_fastparser::FSHelperPtr CreateOutputStream (const OUString &sFullStream, const OUString &sRelativeStream, const css::uno::Reference< css::io::XOutputStream > &xParentRelation, const char *sContentType, std::u16string_view sRelationshipType, OUString *pRelationshipId=nullptr)
 
virtual bool exportDocument () override
 
virtual bool importDocument () override throw ()
 
virtual oox::vml::DrawinggetVmlDrawing () override
 
virtual const oox::drawingml::ThemegetCurrentTheme () const override
 
virtual oox::drawingml::table::TableStyleListPtr getTableStyles () override
 
virtual oox::drawingml::chart::ChartConvertergetChartConverter () override
 
- Public Member Functions inherited from oox::core::XmlFilterBase
 XmlFilterBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~XmlFilterBase () override
 
virtual void useInternalChartDataTable (bool)
 
OUString getFragmentPathFromFirstTypeFromOfficeDoc (const OUString &rPart)
 
bool importFragment (const rtl::Reference< FragmentHandler > &rxHandler)
 
bool importFragment (const rtl::Reference< FragmentHandler > &rxHandler, FastParser &rParser)
 
css::uno::Reference< css::xml::dom::XDocument > importFragment (const OUString &rFragmentPath)
 
bool importFragment (const ::rtl::Reference< FragmentHandler > &rxHandler, const css::uno::Reference< css::xml::sax::XFastSAXSerializable > &rxSerializer)
 
RelationsRef importRelations (const OUString &rFragmentPath)
 
OUString addRelation (const OUString &rType, const OUString &rTarget)
 
OUString addRelation (const css::uno::Reference< css::io::XOutputStream > &rOutputStream, const OUString &rType, const OUString &rTarget, bool bExternal=false)
 
TextFieldStackgetTextFieldStack () const
 
css::uno::Reference< css::io::XOutputStream > openFragmentStream (const OUString &rStreamName, const OUString &rMediaType)
 
::sax_fastparser::FSHelperPtr openFragmentStreamWithSerializer (const OUString &rStreamName, const OUString &rMediaType)
 
sal_Int32 GetUniqueId ()
 
void exportDocumentProperties (const css::uno::Reference< css::document::XDocumentProperties > &xProperties, bool bSecurityOptOpenReadOnly)
 
void exportCustomFragments ()
 
void importDocumentProperties ()
 
bool isMSO2007Document () const
 
void setMissingExtDrawing ()
 
void setDiagramFontHeights (NamedShapePairs *pDiagramFontHeights)
 
NamedShapePairsgetDiagramFontHeights ()
 
void checkDocumentProperties (const css::uno::Reference< css::document::XDocumentProperties > &xDocProps)
 
OUString getNamespaceURL (sal_Int32 nNSID) const
 
- Public Member Functions inherited from oox::core::FilterBase
 FilterBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~FilterBase () override
 
bool isImportFilter () const
 
bool isExportFilter () const
 
OoxmlVersion getVersion () const
 
const css::uno::Reference< css::uno::XComponentContext > & getComponentContext () const
 
const css::uno::Reference< css::frame::XModel > & getModel () const
 
const css::uno::Reference< css::lang::XMultiServiceFactory > & getModelFactory () const
 
const css::uno::Reference< css::frame::XFrame > & getTargetFrame () const
 
const css::uno::Reference< css::task::XStatusIndicator > & getStatusIndicator () const
 
::comphelper::SequenceAsHashMapgetFilterData () const
 
utl::MediaDescriptorgetMediaDescriptor () const
 
const OUString & getFileUrl () const
 
OUString getAbsoluteUrl (const OUString &rUrl) const
 
StorageRef const & getStorage () const
 
css::uno::Reference< css::io::XInputStream > openInputStream (const OUString &rStreamName) const
 
css::uno::Reference< css::io::XOutputStream > openOutputStream (const OUString &rStreamName) const
 
void commitStorage () const
 
GraphicHelpergetGraphicHelper () const
 
ModelObjectHelpergetModelObjectHelper () const
 
ModelObjectHelpergetModelObjectHelperForModel (const css::uno::Reference< css::lang::XMultiServiceFactory > &xFactory) const
 
::oox::ole::OleObjectHelpergetOleObjectHelper () const
 
::oox::ole::VbaProjectgetVbaProject () const
 
bool importBinaryData (StreamDataSequence &orDataSeq, const OUString &rStreamName)
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &rArgs) override
 
virtual void SAL_CALL setTargetDocument (const css::uno::Reference< css::lang::XComponent > &rxDocument) override
 
virtual void SAL_CALL setSourceDocument (const css::uno::Reference< css::lang::XComponent > &rxDocument) override
 
virtual sal_Bool SAL_CALL filter (const css::uno::Sequence< css::beans::PropertyValue > &rMediaDescSeq) override
 
virtual void SAL_CALL cancel () override
 
bool exportVBA () const
 
bool isExportTemplate () const
 

Private Types

typedef std::map< OUString, std::pair< OUString, sax_fastparser::FSHelperPtr > > XclExpXmlPathToStateMap
 

Private Member Functions

virtual ::oox::ole::VbaProjectimplCreateVbaProject () const override
 
virtual OUString SAL_CALL getImplementationName () override
 
ScDocShellgetDocShell ()
 
void WriteAttribute (sal_Int32 nAttr, const OUString &sVal)
 
void WriteAttribute (sal_Int32 nAttr, const OString &sVal)
 
void WriteAttribute (sal_Int32 nAttr, const char *sVal)
 
void validateTabNames (std::vector< OUString > &aOriginalTabNames)
 
void restoreTabNames (const std::vector< OUString > &aOriginalTabNames)
 
void renameTab (SCTAB aTab, OUString aNewName)
 

Private Attributes

const XclExpRootmpRoot
 
std::stack< sax_fastparser::FSHelperPtrmaStreams
 
XclExpXmlPathToStateMap maOpenedStreamMap
 
bool mbExportVBA
 
bool mbExportTemplate
 

Additional Inherited Members

- Static Public Member Functions inherited from oox::core::XmlFilterBase
static void putPropertiesToDocumentGrabBag (const css::uno::Reference< css::lang::XComponent > &xDstDoc, const comphelper::SequenceAsHashMap &rProperties)
 
static FastParsercreateParser ()
 
- Protected Member Functions inherited from oox::core::XmlFilterBase
virtual css::uno::Reference< css::io::XInputStream > implGetInputStream (utl::MediaDescriptor &rMediaDesc) const override
 
virtual css::uno::Reference< css::io::XStream > implGetOutputStream (utl::MediaDescriptor &rMediaDesc) const override
 
virtual bool implFinalizeExport (utl::MediaDescriptor &rMediaDescriptor) override
 
- Protected Member Functions inherited from oox::core::FilterBase
css::uno::Reference< css::io::XStream > const & getMainDocumentStream () const
 
- Protected Attributes inherited from oox::core::XmlFilterBase
bool mbMissingExtDrawing
 

Detailed Description

Definition at line 283 of file xestream.hxx.

Member Typedef Documentation

typedef std::map< OUString, std::pair< OUString, sax_fastparser::FSHelperPtr > > XclExpXmlStream::XclExpXmlPathToStateMap
private

Definition at line 348 of file xestream.hxx.

Constructor & Destructor Documentation

XclExpXmlStream::XclExpXmlStream ( const css::uno::Reference< css::uno::XComponentContext > &  rCC,
bool  bExportVBA,
bool  bExportTemplate 
)

Definition at line 896 of file xestream.cxx.

XclExpXmlStream::~XclExpXmlStream ( )
overridevirtual

Definition at line 904 of file xestream.cxx.

References assert(), and maStreams.

Member Function Documentation

sax_fastparser::FSHelperPtr XclExpXmlStream::CreateOutputStream ( const OUString &  sFullStream,
const OUString &  sRelativeStream,
const css::uno::Reference< css::io::XOutputStream > &  xParentRelation,
const char *  sContentType,
std::u16string_view  sRelationshipType,
OUString *  pRelationshipId = nullptr 
)
bool XclExpXmlStream::exportDocument ( )
overridevirtual
oox::drawingml::chart::ChartConverter * XclExpXmlStream::getChartConverter ( )
overridevirtual

Implements oox::core::XmlFilterBase.

Definition at line 982 of file xestream.cxx.

sax_fastparser::FSHelperPtr & XclExpXmlStream::GetCurrentStream ( )

Definition at line 909 of file xestream.cxx.

References maStreams.

Referenced by exportDocument(), lcl_WriteBorder(), lcl_WriteCell(), lcl_WriteRun(), lcl_WriteUserNamesXml(), XclExpTbxControlObj::SaveControlPropertiesXml(), XclExpXmlPivotCaches::SavePivotCacheXml(), XclExpXmlPivotTables::SavePivotTableXml(), XclExpTbxControlObj::SaveSheetXml(), XclExpTables::SaveTableXml(), XclExpXmlPivotCaches::SaveXml(), XclExpWindow1::SaveXml(), XclExpHeaderFooter::SaveXml(), XclExpExtCfvo::SaveXml(), XclExpSetup::SaveXml(), XclExpExtNegativeColor::SaveXml(), XclExpXmlPivotTables::SaveXml(), XclExpExtAxisColor::SaveXml(), XclExpPageBreaks::SaveXml(), XclExpExtIcon::SaveXml(), XclExpMergedcells::SaveXml(), XclExpPane::SaveXml(), XclExpExtCF::SaveXml(), XclExpXmlStartElementRecord::SaveXml(), XclExpSstImpl::SaveXml(), XclExpExtDataBar::SaveXml(), XclExpHyperlink::SaveXml(), XclExpXmlEndElementRecord::SaveXml(), XclExpSelection::SaveXml(), XclExpXmlStartSingleElementRecord::SaveXml(), XclExpExtIconSet::SaveXml(), XclExpXmlEndSingleElementRecord::SaveXml(), XclExpExtCfRule::SaveXml(), XclExpTabViewSettings::SaveXml(), XclExpNameManagerImpl::SaveXml(), XclExpImgData::SaveXml(), XclExpExtConditionalFormatting::SaveXml(), XclExpFont::SaveXml(), XclExpExtCondFormat::SaveXml(), XclExpSheetProtection::SaveXml(), XclExpExtCalcPr::SaveXml(), XclExpDxfFont::SaveXml(), XclExpDateFormat::SaveXml(), XclObjComment::SaveXml(), XclExtLst::SaveXml(), XclExpCfvo::SaveXml(), XclExpColScaleCol::SaveXml(), XclExpChTrHeader::SaveXml(), XclExpCondfmt::SaveXml(), XclExpFontBuffer::SaveXml(), XclExpXmlChTrHeaders::SaveXml(), XclExpColorScale::SaveXml(), XclExpPaletteImpl::SaveXml(), XclExpTbxControlObj::SaveXml(), XclExpXmlChTrHeader::SaveXml(), XclExpNumFmt::SaveXml(), XclExpDataBar::SaveXml(), XclObjAny::SaveXml(), XclExpIconSet::SaveXml(), XclExpNumFmtBuffer::SaveXml(), XclExpXmlSheetPr::SaveXml(), XclExpCellProt::SaveXml(), XclExpChartObj::SaveXml(), XclExpDV::SaveXml(), ExcBundlesheet8::SaveXml(), XclExpCellAlign::SaveXml(), ExcFilterCondition::SaveXml(), XclExpDval::SaveXml(), XclExpNumberCell::SaveXml(), XclExpCellBorder::SaveXml(), ExcEScenarioCell::SaveXml(), XclExpBooleanCell::SaveXml(), XclExpAutofilter::SaveXml(), XclExpComments::SaveXml(), XclExpCellArea::SaveXml(), ExcAutoFilterRecs::SaveXml(), XclExpColor::SaveXml(), ExcEScenario::SaveXml(), XclExpLabelCell::SaveXml(), ExcEScenarioManager::SaveXml(), XclExpFormulaCell::SaveXml(), XclExpXF::SaveXml(), XclExpChTrCellContent::SaveXml(), XclExpChTrInsert::SaveXml(), XclExpChTrInsertTab::SaveXml(), XclExpStyle::SaveXml(), XclExpChTrMoveRange::SaveXml(), XclExpChTr0x014A::SaveXml(), XclExpCFImpl::SaveXml(), XclExpXFBuffer::SaveXml(), XclExpDimensions::SaveXml(), XclExpColinfo::SaveXml(), XclExpDxf::SaveXml(), XclExpDxfs::SaveXml(), XclExpXmlStyleSheet::SaveXml(), XclExpColinfoBuffer::SaveXml(), XclExpRow::SaveXml(), XclExpRowBuffer::SaveXml(), XclExpCellTable::SaveXml(), XclExpDxf::SaveXmlExt(), WriteAttribute(), ExcTable::WriteXml(), ExcDocument::WriteXml(), XclExpString::WriteXml(), XclExpNote::WriteXml(), XclExpChangeTrack::WriteXml(), XclExpBlankCell::WriteXmlContents(), and XclExpRkCell::WriteXmlContents().

const oox::drawingml::Theme * XclExpXmlStream::getCurrentTheme ( ) const
overridevirtual

Implements oox::core::XmlFilterBase.

Definition at line 972 of file xestream.cxx.

ScDocShell * XclExpXmlStream::getDocShell ( )
private
OUString XclExpXmlStream::getImplementationName ( )
overrideprivatevirtual

Definition at line 1130 of file xestream.cxx.

const XclExpRoot& XclExpXmlStream::GetRoot ( ) const
inline
sax_fastparser::FSHelperPtr XclExpXmlStream::GetStreamForPath ( const OUString &  rPath)

Definition at line 926 of file xestream.cxx.

References maOpenedStreamMap.

Referenced by ExcTable::WriteXml().

oox::drawingml::table::TableStyleListPtr XclExpXmlStream::getTableStyles ( )
overridevirtual

Implements oox::core::XmlFilterBase.

Definition at line 977 of file xestream.cxx.

oox::vml::Drawing * XclExpXmlStream::getVmlDrawing ( )
overridevirtual

Implements oox::core::XmlFilterBase.

Definition at line 967 of file xestream.cxx.

oox::ole::VbaProject * XclExpXmlStream::implCreateVbaProject ( ) const
overrideprivatevirtual
bool XclExpXmlStream::importDocument ( )
throw (
)
overridevirtual

Implements oox::core::FilterBase.

Definition at line 962 of file xestream.cxx.

void XclExpXmlStream::PopStream ( )
void XclExpXmlStream::PushStream ( sax_fastparser::FSHelperPtr const &  aStream)
void XclExpXmlStream::renameTab ( SCTAB  aTab,
OUString  aNewName 
)
private
void XclExpXmlStream::restoreTabNames ( const std::vector< OUString > &  aOriginalTabNames)
private
void XclExpXmlStream::validateTabNames ( std::vector< OUString > &  aOriginalTabNames)
private
void XclExpXmlStream::WriteAttribute ( sal_Int32  nAttr,
const OUString &  sVal 
)
private

Definition at line 933 of file xestream.cxx.

References GetCurrentStream().

Referenced by WriteAttribute(), and WriteAttributes().

void XclExpXmlStream::WriteAttribute ( sal_Int32  nAttr,
const OString &  sVal 
)
inlineprivate

Definition at line 332 of file xestream.hxx.

References WriteAttribute().

void XclExpXmlStream::WriteAttribute ( sal_Int32  nAttr,
const char *  sVal 
)
inlineprivate

Definition at line 336 of file xestream.hxx.

References WriteAttribute().

template<typename Str , typename... Args>
void XclExpXmlStream::WriteAttributes ( sal_Int32  nAttribute,
Str &&  value,
Args &&...  rest 
)
inline

Member Data Documentation

XclExpXmlPathToStateMap XclExpXmlStream::maOpenedStreamMap
private

Definition at line 352 of file xestream.hxx.

Referenced by CreateOutputStream(), exportDocument(), and GetStreamForPath().

std::stack< sax_fastparser::FSHelperPtr > XclExpXmlStream::maStreams
private

Definition at line 351 of file xestream.hxx.

Referenced by GetCurrentStream(), PopStream(), PushStream(), and ~XclExpXmlStream().

bool XclExpXmlStream::mbExportTemplate
private

Definition at line 355 of file xestream.hxx.

Referenced by exportDocument().

bool XclExpXmlStream::mbExportVBA
private

Definition at line 354 of file xestream.hxx.

Referenced by exportDocument().

const XclExpRoot* XclExpXmlStream::mpRoot
private

Definition at line 350 of file xestream.hxx.

Referenced by exportDocument(), and GetRoot().


The documentation for this class was generated from the following files: