23#include <oox/token/namespaces.hxx>
40 switch( getCurrentElement() )
43 if( nElement == XLS_TOKEN( chartsheet ) )
return this;
46 case XLS_TOKEN( chartsheet ):
49 case XLS_TOKEN( sheetViews ):
return this;
61 case XLS_TOKEN( sheetViews ):
65 case XLS_TOKEN( headerFooter ):
68 case XLS_TOKEN( firstHeader ):
69 case XLS_TOKEN( firstFooter ):
70 case XLS_TOKEN( oddHeader ):
71 case XLS_TOKEN( oddFooter ):
72 case XLS_TOKEN( evenHeader ):
73 case XLS_TOKEN( evenFooter ):
return this;
77 case XLS_TOKEN( sheetPr ):
90 switch( getCurrentElement() )
92 case XLS_TOKEN( firstHeader ):
93 case XLS_TOKEN( firstFooter ):
94 case XLS_TOKEN( oddHeader ):
95 case XLS_TOKEN( oddFooter ):
96 case XLS_TOKEN( evenHeader ):
97 case XLS_TOKEN( evenFooter ):
105 switch( getCurrentElement() )
135 static const RecordInfo spRecInfos[] =
std::optional< OUString > getString(sal_Int32 nAttrToken) const
static OUString readString(SequenceInputStream &rStrm, bool b32BitLen=true)
Reads a BIFF12 string with leading 16-bit or 32-bit length field.
virtual void onCharacters(const OUString &rChars) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
ChartsheetFragment(const WorksheetHelper &rHelper, const OUString &rFragmentPath)
void importDrawing(const AttributeList &rAttribs)
Imports the relation identifier for the DrawingML part.
virtual void initializeImport() override
virtual const ::oox::core::RecordInfo * getRecordInfos() const override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void finalizeImport() override
void importChartPageSetup(const ::oox::core::Relations &rRelations, const AttributeList &rAttribs)
Imports pageSetup element for chart sheets.
void importPicture(const ::oox::core::Relations &rRelations, const AttributeList &rAttribs)
Imports the picture element.
void importHeaderFooterCharacters(std::u16string_view rChars, sal_Int32 nElement)
Imports header/footer characters from a headerFooter element.
void importPageMargins(const AttributeList &rAttribs)
Imports pageMarings element containing page margins.
void importHeaderFooter(const AttributeList &rAttribs)
Imports header and footer settings from a headerFooter element.
void importChartSheetView(const AttributeList &rAttribs)
Imports the sheetView element containing view settings of a chart sheet.
Fragment handler derived from the WorksheetHelper helper class.
PageSettings & getPageSettings() const
Returns the page/print settings for this sheet.
WorksheetSettings & getWorksheetSettings() const
Returns the worksheet settings object.
void setDrawingPath(const OUString &rDrawingPath)
Sets the path to the DrawingML fragment of this sheet.
void finalizeWorksheetImport()
Final conversion after importing the worksheet.
SheetViewSettings & getSheetViewSettings() const
Returns the view settings for this sheet.
void initializeWorksheetImport()
Initial conversion before importing the worksheet.
void importChartSheetPr(const AttributeList &rAttribs)
Imports chart sheet settings from the sheetPr element.
void importTabColor(const AttributeList &rAttribs)
Imports the sheet tab color from the tabColor element.
void importChartProtection(const AttributeList &rAttribs)
Imports protection settings from the sheetProtection element of a chart sheet.
const sal_Int32 XML_ROOT_CONTEXT
const sal_Int32 BIFF12_ID_WORKSHEET
const sal_Int32 BIFF12_ID_PAGEMARGINS
const sal_Int32 BIFF12_ID_CHARTPROTECTION
const sal_Int32 BIFF12_ID_CUSTOMCHARTVIEW
const sal_Int32 BIFF12_ID_CHARTSHEETVIEW
const sal_Int32 BIFF12_ID_PICTURE
const sal_Int32 BIFF12_ID_CHARTPAGESETUP
const sal_Int32 BIFF12_ID_CHARTSHEETPR
const sal_Int32 BIFF12_ID_CHARTSHEETVIEWS
const sal_Int32 BIFF12_ID_CUSTOMCHARTVIEWS
const sal_Int32 BIFF12_ID_DRAWING
const sal_Int32 BIFF12_ID_HEADERFOOTER