LibreOffice Module sc (master) 1
|
#include <xestream.hxx>
Public Member Functions | |
XclExpXmlStream (const css::uno::Reference< css::uno::XComponentContext > &rCC, bool bExportVBA, bool bExportTemplate) | |
virtual | ~XclExpXmlStream () override |
const XclExpRoot & | GetRoot () const |
Returns the filter root data. More... | |
sax_fastparser::FSHelperPtr & | GetCurrentStream () |
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, std::u16string_view 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 () noexcept override |
virtual oox::vml::Drawing * | getVmlDrawing () override |
virtual const oox::drawingml::Theme * | getCurrentTheme () const override |
virtual oox::drawingml::table::TableStyleListPtr | getTableStyles () override |
virtual oox::drawingml::chart::ChartConverter * | getChartConverter () override |
Public Member Functions inherited from oox::core::XmlFilterBase | |
XmlFilterBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~XmlFilterBase () override |
virtual const ::oox::drawingml::Theme * | getCurrentTheme () const=0 |
virtual std::shared_ptr<::oox::drawingml::Theme > | getCurrentThemePtr () const |
virtual ::oox::vml::Drawing * | getVmlDrawing ()=0 |
virtual ::oox::drawingml::chart::ChartConverter * | getChartConverter ()=0 |
virtual void | useInternalChartDataTable (bool) |
virtual ::oox::drawingml::table::TableStyleListPtr | getTableStyles ()=0 |
OUString | getFragmentPathFromFirstTypeFromOfficeDoc (std::u16string_view 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, std::u16string_view rTarget) |
OUString | addRelation (const css::uno::Reference< css::io::XOutputStream > &rOutputStream, const OUString &rType, std::u16string_view rTarget, bool bExternal=false) |
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 () |
sal_Int32 | GetMaxDocId () |
void | SetMaxDocId (sal_Int32 maxDocId) |
void | exportDocumentProperties (const css::uno::Reference< css::document::XDocumentProperties > &xProperties, bool bSecurityOptOpenReadOnly) |
void | exportCustomFragments () |
void | importDocumentProperties () |
bool | isMSO2007Document () const |
bool | isMSODocument () const |
void | setMissingExtDrawing () |
void | setDiagramFontHeights (NamedShapePairs *pDiagramFontHeights) |
NamedShapePairs * | getDiagramFontHeights () |
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 |
virtual bool | importDocument ()=0 |
virtual bool | exportDocument ()=0 |
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::SequenceAsHashMap & | getFilterData () const |
utl::MediaDescriptor & | getMediaDescriptor () 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 |
GraphicHelper & | getGraphicHelper () const |
ModelObjectHelper & | getModelObjectHelper () const |
ModelObjectHelper & | getModelObjectHelperForModel (const css::uno::Reference< css::lang::XMultiServiceFactory > &xFactory) const |
::oox::ole::OleObjectHelper & | getOleObjectHelper () const |
::oox::ole::VbaProject & | getVbaProject () 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::VbaProject * | implCreateVbaProject () const override |
virtual OUString SAL_CALL | getImplementationName () override |
ScDocShell * | getDocShell () |
void | WriteAttribute (sal_Int32 nAttr, std::u16string_view sVal) |
void | WriteAttribute (sal_Int32 nAttr, std::string_view 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 XclExpRoot * | mpRoot |
std::stack< sax_fastparser::FSHelperPtr > | maStreams |
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 FastParser * | createParser () |
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 | |
virtual css::uno::Reference< css::io::XInputStream > | implGetInputStream (utl::MediaDescriptor &rMediaDesc) const |
virtual css::uno::Reference< css::io::XStream > | implGetOutputStream (utl::MediaDescriptor &rMediaDesc) const |
virtual bool | implFinalizeExport (utl::MediaDescriptor &rMediaDescriptor) |
css::uno::Reference< css::io::XStream > const & | getMainDocumentStream () const |
Protected Attributes inherited from oox::core::XmlFilterBase | |
bool | mbMissingExtDrawing |
Definition at line 284 of file xestream.hxx.
|
private |
Definition at line 349 of file xestream.hxx.
XclExpXmlStream::XclExpXmlStream | ( | const css::uno::Reference< css::uno::XComponentContext > & | rCC, |
bool | bExportVBA, | ||
bool | bExportTemplate | ||
) |
Definition at line 910 of file xestream.cxx.
|
overridevirtual |
Definition at line 918 of file xestream.cxx.
References maStreams.
sax_fastparser::FSHelperPtr XclExpXmlStream::CreateOutputStream | ( | const OUString & | sFullStream, |
std::u16string_view | sRelativeStream, | ||
const css::uno::Reference< css::io::XOutputStream > & | xParentRelation, | ||
const char * | sContentType, | ||
std::u16string_view | sRelationshipType, | ||
OUString * | pRelationshipId = nullptr |
||
) |
Definition at line 952 of file xestream.cxx.
References oox::core::XmlFilterBase::addRelation(), maOpenedStreamMap, oox::core::XmlFilterBase::openFragmentStreamWithSerializer(), and p.
Referenced by exportDocument(), lcl_WriteUserNamesXml(), and XclExpChangeTrack::WriteXml().
|
overridevirtual |
Implements oox::core::FilterBase.
Definition at line 1014 of file xestream.cxx.
References aData, oox::core::XmlFilterBase::addRelation(), Biff8, oox::core::FilterBase::commitStorage(), VbaExport::containsVBAProject(), comphelper::OStorageHelper::CopyInputToOutput(), CreateOutputStream(), ScExternalRefManager::disableSkipUnusedFileIds(), RootData::eDateiTyp, EXC_BIFF8, EXC_MAXCOL_XML_2007, EXC_MAXROW_XML_2007, EXC_MAXTAB_XML_2007, EXC_OUTPUT_XML_2007, VbaExport::exportVBA(), tools::SvRef< typename T >::get(), msfilter::util::getBestTextEncodingFromLocale(), ScDocShell::GetBestViewShell(), GetCurrentStream(), getDocShell(), ScDocShell::GetDocument(), XclRoot::GetExtDocOptions(), ScDocument::GetExternalRefManager(), oox::core::FilterBase::getFileUrl(), AllSettings::GetLanguageTag(), LanguageTag::getLocale(), SfxObjectShell::GetMedium(), oox::core::FilterBase::getModel(), XclRoot::GetOldRoot(), getOutputStream(), INetURLObject::GetPath(), ScDocument::GetRefreshTimerControlAddress(), oox::getRelationship(), Application::GetSettings(), oox::core::FilterBase::getStatusIndicator(), ScDocShell::GetViewData(), ScTabView::GetViewData(), maOpenedStreamMap, mbExportTemplate, mbExportVBA, mpRoot, oox::core::XmlFilterBase::openFragmentStream(), RootData::pER, PopStream(), PushStream(), ExcDocument::ReadDoc(), restoreTabNames(), ScResId(), SvStream::Seek(), u, validateTabNames(), ScViewData::WriteExtOptions(), and ExcDocument::WriteXml().
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 996 of file xestream.cxx.
sax_fastparser::FSHelperPtr & XclExpXmlStream::GetCurrentStream | ( | ) |
Definition at line 923 of file xestream.cxx.
References maStreams.
Referenced by xcl::exp::SparklineExt::addSparklineGroup(), xcl::exp::SparklineExt::addSparklineGroupColors(), exportDocument(), lcl_WriteUserNamesXml(), xcl::exp::SparklineExt::SaveXml(), XclExpCellBorder::SaveXml(), XclExpChTrHeader::SaveXml(), XclExpChTrCellContent::SaveXml(), XclExpChTrInsert::SaveXml(), XclExpChTrMoveRange::SaveXml(), WriteAttribute(), and XclExpChangeTrack::WriteXml().
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 986 of file xestream.cxx.
|
private |
Definition at line 1002 of file xestream.cxx.
References ScModelObj::GetEmbeddedObject(), oox::core::FilterBase::getModel(), and xModel.
Referenced by exportDocument(), renameTab(), restoreTabNames(), and validateTabNames().
|
overrideprivatevirtual |
Definition at line 1169 of file xestream.cxx.
|
inline |
Returns the filter root data.
Definition at line 291 of file xestream.hxx.
References mpRoot.
Referenced by XclExpCellBorder::SaveXml(), XclExpChTrCellContent::SaveXml(), XclExpChTrInsert::SaveXml(), and XclExpChTrMoveRange::SaveXml().
sax_fastparser::FSHelperPtr XclExpXmlStream::GetStreamForPath | ( | const OUString & | rPath | ) |
Definition at line 940 of file xestream.cxx.
References maOpenedStreamMap.
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 991 of file xestream.cxx.
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 981 of file xestream.cxx.
|
overrideprivatevirtual |
Implements oox::core::FilterBase.
Definition at line 1164 of file xestream.cxx.
References oox::core::FilterBase::getComponentContext(), and oox::core::FilterBase::getModel().
|
overridevirtualnoexcept |
Implements oox::core::FilterBase.
Definition at line 976 of file xestream.cxx.
void XclExpXmlStream::PopStream | ( | ) |
Definition at line 934 of file xestream.cxx.
References maStreams.
Referenced by exportDocument(), and XclExpChangeTrack::WriteXml().
void XclExpXmlStream::PushStream | ( | sax_fastparser::FSHelperPtr const & | aStream | ) |
Definition at line 929 of file xestream.cxx.
References maStreams.
Referenced by exportDocument(), and XclExpChangeTrack::WriteXml().
|
private |
Definition at line 1269 of file xestream.cxx.
References ScDocument::EnableIdle(), getDocShell(), ScDocShell::GetDocument(), ScDocument::IsAutoCalcShellDisabled(), ScDocument::IsIdleEnabled(), ScDocument::RenameTab(), ScDocument::SetAutoCalcShellDisabled(), and SfxGetpApp().
Referenced by restoreTabNames(), and validateTabNames().
|
private |
Definition at line 1250 of file xestream.cxx.
References getDocShell(), ScDocShell::GetDocument(), ScDocument::GetName(), ScDocument::GetTableCount(), and renameTab().
Referenced by exportDocument().
|
private |
Definition at line 1174 of file xestream.cxx.
References getDocShell(), ScDocShell::GetDocument(), ScDocument::GetName(), ScDocument::GetTableCount(), i, and renameTab().
Referenced by exportDocument().
|
inlineprivate |
Definition at line 337 of file xestream.hxx.
References WriteAttribute().
|
inlineprivate |
Definition at line 333 of file xestream.hxx.
References WriteAttribute().
|
private |
Definition at line 947 of file xestream.cxx.
References GetCurrentStream().
Referenced by WriteAttribute(), and WriteAttributes().
|
inline |
Definition at line 300 of file xestream.hxx.
References value, WriteAttribute(), and WriteAttributes().
Referenced by XclExpChTrHeader::SaveXml(), and WriteAttributes().
|
private |
Definition at line 353 of file xestream.hxx.
Referenced by CreateOutputStream(), exportDocument(), and GetStreamForPath().
|
private |
Definition at line 352 of file xestream.hxx.
Referenced by GetCurrentStream(), PopStream(), PushStream(), and ~XclExpXmlStream().
|
private |
Definition at line 356 of file xestream.hxx.
Referenced by exportDocument().
|
private |
Definition at line 355 of file xestream.hxx.
Referenced by exportDocument().
|
private |
Definition at line 351 of file xestream.hxx.
Referenced by exportDocument(), and GetRoot().