22#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
23#include <osl/diagnose.h>
33#include <document.hxx>
45using ::oox::drawingml::table::TableStyleListPtr;
48 XmlFilterBase( rxContext ),
55 OSL_ENSURE( !
mpBookGlob,
"ExcelFilter::~ExcelFilter - workbook data not cleared" );
65 OSL_ENSURE(
mpBookGlob,
"ExcelFilter::getWorkbookGlobals - missing workbook data" );
83 if( aWorkbookPath.isEmpty() )
98 SAL_WARN(
"sc",
"exception when importing document properties");
108 ScDocument& rDoc = xWorkbookFragment->getScDocument();
176 if ( XmlFilterBase::filter( rDescriptor ) )
182 Reference< XExporter > xExporter(
185 Reference< XComponent > xDocument =
getModel();
186 Reference< XFilter > xFilter( xExporter, UNO_QUERY );
190 xExporter->setSourceDocument( xDocument );
191 if ( xFilter->filter( rDescriptor ) )
201 return "com.sun.star.comp.oox.xls.ExcelFilter";
207extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
209 css::uno::Sequence<css::uno::Any>
const &)
void SetInitialLinkUpdate(const SfxMedium *pMedium)
SfxObjectShell * GetDocumentShell() const
void SetError(ErrCode rErr)
ErrCode GetErrorCode() const
SfxMedium * GetMedium() const
bool isExportFilter() const
const css::uno::Reference< css::frame::XModel > & getModel() const
bool isExportTemplate() const
const css::uno::Reference< css::uno::XComponentContext > & getComponentContext() const
void importDocumentProperties()
OUString getFragmentPathFromFirstTypeFromOfficeDoc(std::u16string_view rPart)
bool importFragment(const rtl::Reference< FragmentHandler > &rxHandler)
Converter for cell addresses and cell ranges for OOXML and BIFF filters.
bool isRowOverflow() const
bool isTabOverflow() const
bool isColOverflow() const
virtual bool exportDocument() noexcept override
virtual bool importDocument() override
virtual GraphicHelper * implCreateGraphicHelper() const override
virtual sal_Bool SAL_CALL filter(const css::uno::Sequence< css::beans::PropertyValue > &rDescriptor) override
virtual ::oox::vml::Drawing * getVmlDrawing() override
virtual OUString SAL_CALL getImplementationName() override
virtual const ::oox::drawingml::Theme * getCurrentTheme() const override
virtual void useInternalChartDataTable(bool bInternal) override
virtual ::oox::drawingml::table::TableStyleListPtr getTableStyles() override
virtual ~ExcelFilter() override
virtual ::oox::drawingml::chart::ChartConverter * getChartConverter() override
void registerWorkbookGlobals(WorkbookGlobals &rBookGlob)
virtual ::oox::ole::VbaProject * implCreateVbaProject() const override
WorkbookGlobals * mpBookGlob
ExcelFilter(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
WorkbookGlobals & getWorkbookGlobals() const
void unregisterWorkbookGlobals()
Relative character height if escaped.
Special implementation of the VBA project for the Excel filters.
Helper class to provide access to global workbook data.
void useInternalChartDataTable(bool bInternal)
oox::drawingml::chart::ChartConverter * getChartConverter() const
Returns the chart object converter.
static WorkbookGlobalsRef constructGlobals(ExcelFilter &rFilter)
ThemeBuffer & getTheme() const
Returns the office theme object read from the theme substorage.
#define TOOLS_WARN_EXCEPTION(area, stream)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_oox_xls_ExcelFilter_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
#define SAL_WARN(area, stream)
std::shared_ptr< TableStyleList > TableStyleListPtr
std::shared_ptr< WorkbookGlobals > WorkbookGlobalsRef
#define SCWARN_IMPORT_ROW_OVERFLOW
#define SCWARN_IMPORT_COLUMN_OVERFLOW
#define SCWARN_IMPORT_SHEET_OVERFLOW