LibreOffice Module sc (master) 1
|
#include <excelfilter.hxx>
Public Member Functions | |
ExcelFilter (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~ExcelFilter () override |
void | registerWorkbookGlobals (WorkbookGlobals &rBookGlob) |
WorkbookGlobals & | getWorkbookGlobals () const |
void | unregisterWorkbookGlobals () |
virtual bool | importDocument () override |
virtual bool | exportDocument () noexcept override |
virtual const ::oox::drawingml::Theme * | getCurrentTheme () const override |
virtual ::oox::vml::Drawing * | getVmlDrawing () override |
virtual ::oox::drawingml::table::TableStyleListPtr | getTableStyles () override |
virtual ::oox::drawingml::chart::ChartConverter * | getChartConverter () override |
virtual void | useInternalChartDataTable (bool bInternal) override |
virtual sal_Bool SAL_CALL | filter (const css::uno::Sequence< css::beans::PropertyValue > &rDescriptor) 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 Member Functions | |
virtual GraphicHelper * | implCreateGraphicHelper () const override |
virtual ::oox::ole::VbaProject * | implCreateVbaProject () const override |
virtual OUString SAL_CALL | getImplementationName () override |
Private Attributes | |
WorkbookGlobals * | mpBookGlob |
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 28 of file excelfilter.hxx.
|
explicit |
css::uno::RuntimeException |
Definition at line 47 of file excelfilter.cxx.
|
overridevirtual |
Definition at line 53 of file excelfilter.cxx.
References mpBookGlob.
|
overridevirtualnoexcept |
Implements oox::core::FilterBase.
Definition at line 134 of file excelfilter.cxx.
|
overridevirtual |
Reimplemented from oox::core::FilterBase.
Definition at line 174 of file excelfilter.cxx.
References oox::core::FilterBase::exportVBA(), oox::core::FilterBase::getComponentContext(), oox::core::FilterBase::getModel(), oox::core::FilterBase::isExportFilter(), and oox::core::FilterBase::isExportTemplate().
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 154 of file excelfilter.cxx.
References oox::xls::WorkbookHelper::getChartConverter(), and getWorkbookGlobals().
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 139 of file excelfilter.cxx.
References oox::xls::WorkbookHelper::getTheme(), and getWorkbookGlobals().
|
overrideprivatevirtual |
Definition at line 199 of file excelfilter.cxx.
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 149 of file excelfilter.cxx.
|
overridevirtual |
Implements oox::core::XmlFilterBase.
Definition at line 144 of file excelfilter.cxx.
WorkbookGlobals & oox::xls::ExcelFilter::getWorkbookGlobals | ( | ) | const |
Definition at line 63 of file excelfilter.cxx.
References mpBookGlob.
Referenced by getChartConverter(), getCurrentTheme(), implCreateGraphicHelper(), and useInternalChartDataTable().
|
overrideprivatevirtual |
Reimplemented from oox::core::FilterBase.
Definition at line 164 of file excelfilter.cxx.
References getWorkbookGlobals().
|
overrideprivatevirtual |
Implements oox::core::FilterBase.
Definition at line 169 of file excelfilter.cxx.
References oox::core::FilterBase::getComponentContext(), and oox::core::FilterBase::getModel().
|
overridevirtual |
Implements oox::core::FilterBase.
Definition at line 74 of file excelfilter.cxx.
References oox::xls::WorkbookHelper::constructGlobals(), Exception, ScDocument::GetDocumentShell(), SfxObjectShell::GetErrorCode(), oox::core::XmlFilterBase::getFragmentPathFromFirstTypeFromOfficeDoc(), SfxObjectShell::GetMedium(), oox::core::XmlFilterBase::importDocumentProperties(), oox::core::XmlFilterBase::importFragment(), oox::xls::AddressConverter::isColOverflow(), oox::xls::AddressConverter::isRowOverflow(), oox::xls::AddressConverter::isTabOverflow(), SAL_WARN, SCWARN_IMPORT_COLUMN_OVERFLOW, SCWARN_IMPORT_ROW_OVERFLOW, SCWARN_IMPORT_SHEET_OVERFLOW, SfxObjectShell::SetError(), ScDocShell::SetInitialLinkUpdate(), TOOLS_WARN_EXCEPTION, and u.
void oox::xls::ExcelFilter::registerWorkbookGlobals | ( | WorkbookGlobals & | rBookGlob | ) |
Definition at line 58 of file excelfilter.cxx.
References mpBookGlob.
Referenced by oox::xls::WorkbookGlobals::WorkbookGlobals().
void oox::xls::ExcelFilter::unregisterWorkbookGlobals | ( | ) |
Definition at line 69 of file excelfilter.cxx.
References mpBookGlob.
Referenced by oox::xls::WorkbookGlobals::ImplDestroy().
|
overridevirtual |
Reimplemented from oox::core::XmlFilterBase.
Definition at line 159 of file excelfilter.cxx.
References getWorkbookGlobals(), and oox::xls::WorkbookHelper::useInternalChartDataTable().
|
private |
Definition at line 56 of file excelfilter.hxx.
Referenced by getWorkbookGlobals(), registerWorkbookGlobals(), unregisterWorkbookGlobals(), and ~ExcelFilter().