LibreOffice Module sc (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
oox::xls::WorkbookGlobals Class Reference
Collaboration diagram for oox::xls::WorkbookGlobals:
[legend]

Public Member Functions

 WorkbookGlobals (const WorkbookGlobals &)=delete
 
const WorkbookGlobalsoperator= (const WorkbookGlobals &)=delete
 
 WorkbookGlobals (ExcelFilter &rFilter)
 
 ~WorkbookGlobals ()
 
bool isValid () const
 Returns true, if this helper refers to a valid document. More...
 
FilterBase & getBaseFilter () const
 Returns the base filter object (base class of all filters). More...
 
SegmentProgressBargetProgressBar () const
 Returns the filter progress bar. More...
 
const StorageRefgetVbaProjectStorage () const
 Returns the VBA project storage. More...
 
sal_Int16 getCurrentSheetIndex () const
 Returns the index of the current Calc sheet, if filter currently processes a sheet. More...
 
bool isGeneratorKnownGood () const
 Returns true when reading a file generated by a known good generator. More...
 
void setVbaProjectStorage (const StorageRef &rxVbaPrjStrg)
 Sets the VBA project storage used to import VBA source code and forms. More...
 
void setCurrentSheetIndex (SCTAB nSheet)
 Sets the index of the current Calc sheet, if filter currently processes a sheet. More...
 
ScEditEngineDefaultergetEditEngine () const
 
ScDocumentgetScDocument ()
 
ScDocumentImportgetDocImport ()
 
const Reference< XSpreadsheetDocument > & getDocument () const
 Returns a reference to the source/target spreadsheet document model. More...
 
Reference< XNameContainer > getStyleFamily (bool bPageStyles) const
 Returns the cell or page styles container from the Calc document. More...
 
Reference< XStyle > getStyleObject (const OUString &rStyleName, bool bPageStyle) const
 Returns the specified cell or page style from the Calc document. More...
 
ScRangeDatacreateNamedRangeObject (OUString &orName, const Sequence< FormulaToken > &rTokens, sal_Int32 nIndex, sal_Int32 nNameFlags)
 Creates and returns a defined name on-the-fly in the Calc document. More...
 
ScRangeDatacreateLocalNamedRangeObject (OUString &orName, const Sequence< FormulaToken > &rTokens, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab)
 Creates and returns a defined name on the-fly in the correct Calc sheet. More...
 
Reference< XDatabaseRange > createDatabaseRangeObject (OUString &orName, const ScRange &rRangeAddr)
 Creates and returns a database range on-the-fly in the Calc document. More...
 
Reference< XDatabaseRange > createUnnamedDatabaseRangeObject (const ScRange &rRangeAddr)
 Creates and returns an unnamed database range on-the-fly in the Calc document. More...
 
ScDBDatafindDatabaseRangeByIndex (sal_uInt16 nIndex)
 Finds the (already existing) database range of the given formula token index. More...
 
Reference< XStyle > createStyleObject (OUString &orStyleName, bool bPageStyle)
 Creates and returns a com.sun.star.style.Style object for cells or pages. More...
 
void useInternalChartDataTable (bool bInternal)
 Helper to switch chart data table - specifically for xlsx imports. More...
 
FormulaBuffergetFormulaBuffer () const
 
WorkbookSettingsgetWorkbookSettings () const
 Returns the global workbook settings object. More...
 
ViewSettingsgetViewSettings () const
 Returns the workbook and sheet view settings object. More...
 
WorksheetBuffergetWorksheets () const
 Returns the worksheet buffer containing sheet names and properties. More...
 
ThemeBuffergetTheme () const
 Returns the office theme object read from the theme substorage. More...
 
StylesBuffergetStyles () const
 Returns all cell formatting objects read from the styles substream. More...
 
SharedStringsBuffergetSharedStrings () const
 Returns the shared strings read from the shared strings substream. More...
 
ExternalLinkBuffergetExternalLinks () const
 Returns the external links read from the external links substream. More...
 
DefinedNamesBuffergetDefinedNames () const
 Returns the defined names read from the workbook globals. More...
 
TableBuffergetTables () const
 Returns the tables collection (equivalent to Calc's database ranges). More...
 
ScenarioBuffergetScenarios () const
 Returns the scenarios collection. More...
 
ConnectionsBuffergetConnections () const
 Returns the collection of external data connections. More...
 
PivotCacheBuffergetPivotCaches () const
 Returns the collection of pivot caches. More...
 
PivotTableBuffergetPivotTables ()
 Returns the collection of pivot tables. More...
 
FormulaParsergetFormulaParser () const
 Returns a shared import formula parser. More...
 
FormulaParsercreateFormulaParser ()
 Returns an unshared import formula parser. More...
 
UnitConvertergetUnitConverter () const
 Returns the measurement unit converter. More...
 
AddressConvertergetAddressConverter () const
 Returns the converter for string to cell address/range conversion. More...
 
oox::drawingml::chart::ChartConvertergetChartConverter () const
 Returns the chart object converter. More...
 
PageSettingsConvertergetPageSettingsConverter () const
 Returns the page/print settings converter. More...
 
XmlFilterBase & getOoxFilter () const
 Returns the base OOXML/BIFF12 filter object. More...
 
rtl_TextEncoding getTextEncoding () const
 Returns the text encoding used to import/export byte strings. More...
 

Private Types

typedef ::std::unique_ptr< ScEditEngineDefaulterEditEngineDefaulterPtr
 
typedef ::std::unique_ptr< FormulaBufferFormulaBufferPtr
 
typedef ::std::unique_ptr< SegmentProgressBarProgressBarPtr
 
typedef ::std::unique_ptr< WorkbookSettingsWorkbookSettPtr
 
typedef ::std::unique_ptr< ViewSettingsViewSettingsPtr
 
typedef ::std::unique_ptr< WorksheetBufferWorksheetBfrPtr
 
typedef ::std::shared_ptr< ThemeBufferThemeBfrRef
 
typedef ::std::unique_ptr< StylesBufferStylesBfrPtr
 
typedef ::std::unique_ptr< SharedStringsBufferSharedStrBfrPtr
 
typedef ::std::unique_ptr< ExternalLinkBufferExtLinkBfrPtr
 
typedef ::std::unique_ptr< DefinedNamesBufferDefNamesBfrPtr
 
typedef ::std::unique_ptr< TableBufferTableBfrPtr
 
typedef ::std::unique_ptr< ScenarioBufferScenarioBfrPtr
 
typedef ::std::unique_ptr< ConnectionsBufferConnectionsBfrPtr
 
typedef ::std::unique_ptr< PivotCacheBufferPivotCacheBfrPtr
 
typedef ::std::unique_ptr< PivotTableBufferPivotTableBfrPtr
 
typedef ::std::unique_ptr< FormulaParserFormulaParserPtr
 
typedef ::std::unique_ptr< UnitConverterUnitConvPtr
 
typedef ::std::unique_ptr< AddressConverterAddressConvPtr
 
typedef ::std::unique_ptr< oox::drawingml::chart::ChartConverterExcelChartConvPtr
 
typedef ::std::unique_ptr< PageSettingsConverterPageSettConvPtr
 

Private Member Functions

void initialize ()
 Initializes some basic members and sets needed document properties. More...
 
void finalize ()
 Finalizes the filter process (sets some needed document properties). More...
 

Private Attributes

OUString maCellStyles
 
OUString maPageStyles
 Style family name for cell styles. More...
 
OUString maCellStyleServ
 Style family name for page styles. More...
 
OUString maPageStyleServ
 Service name for a cell style. More...
 
Reference< XSpreadsheetDocument > mxDoc
 Service name for a page style. More...
 
FilterBase & mrBaseFilter
 Document model. More...
 
ExcelFiltermrExcelFilter
 Base filter object. More...
 
ProgressBarPtr mxProgressBar
 Base object for registration of this structure. More...
 
StorageRef mxVbaPrjStrg
 The progress bar. More...
 
sal_Int16 mnCurrSheet
 Storage containing the VBA project. More...
 
bool mbGeneratorKnownGood
 Current sheet index in Calc document. More...
 
FormulaBufferPtr mxFormulaBuffer
 Whether reading a file generated by Excel or Calc. More...
 
WorkbookSettPtr mxWorkbookSettings
 
ViewSettingsPtr mxViewSettings
 Global workbook settings. More...
 
WorksheetBfrPtr mxWorksheets
 Workbook and sheet view settings. More...
 
ThemeBfrRef mxTheme
 Sheet info buffer. More...
 
StylesBfrPtr mxStyles
 Formatting theme from theme substream. More...
 
SharedStrBfrPtr mxSharedStrings
 All cell style objects from styles substream. More...
 
ExtLinkBfrPtr mxExtLinks
 All strings from shared strings substream. More...
 
DefNamesBfrPtr mxDefNames
 All external links. More...
 
TableBfrPtr mxTables
 All defined names. More...
 
ScenarioBfrPtr mxScenarios
 All tables (database ranges). More...
 
ConnectionsBfrPtr mxConnections
 All scenarios. More...
 
PivotCacheBfrPtr mxPivotCaches
 All external data connections. More...
 
PivotTableBfrPtr mxPivotTables
 All pivot caches in the document. More...
 
FormulaParserPtr mxFmlaParser
 All pivot tables in the document. More...
 
UnitConvPtr mxUnitConverter
 Import formula parser. More...
 
AddressConvPtr mxAddrConverter
 General unit converter. More...
 
ExcelChartConvPtr mxChartConverter
 Cell address and cell range address converter. More...
 
PageSettConvPtr mxPageSettConverter
 Chart object converter. More...
 
EditEngineDefaulterPtr mxEditEngine
 Page/print settings converter. More...
 
XmlFilterBase * mpOoxFilter
 
rtl_TextEncoding meTextEnc
 Base OOXML/BIFF12 filter object. More...
 
ScDocumentmpDoc
 BIFF byte string text encoding. More...
 
ScDocShellmpDocShell
 
std::unique_ptr< ScDocumentImportmxDocImport
 

Detailed Description

Definition at line 103 of file workbookhelper.cxx.

Member Typedef Documentation

typedef ::std::unique_ptr< AddressConverter > oox::xls::WorkbookGlobals::AddressConvPtr
private

Definition at line 247 of file workbookhelper.cxx.

Definition at line 242 of file workbookhelper.cxx.

typedef ::std::unique_ptr< DefinedNamesBuffer > oox::xls::WorkbookGlobals::DefNamesBfrPtr
private

Definition at line 239 of file workbookhelper.cxx.

Definition at line 229 of file workbookhelper.cxx.

Definition at line 248 of file workbookhelper.cxx.

typedef ::std::unique_ptr< ExternalLinkBuffer > oox::xls::WorkbookGlobals::ExtLinkBfrPtr
private

Definition at line 238 of file workbookhelper.cxx.

typedef ::std::unique_ptr< FormulaBuffer > oox::xls::WorkbookGlobals::FormulaBufferPtr
private

Definition at line 230 of file workbookhelper.cxx.

typedef ::std::unique_ptr< FormulaParser > oox::xls::WorkbookGlobals::FormulaParserPtr
private

Definition at line 245 of file workbookhelper.cxx.

Definition at line 249 of file workbookhelper.cxx.

typedef ::std::unique_ptr< PivotCacheBuffer > oox::xls::WorkbookGlobals::PivotCacheBfrPtr
private

Definition at line 243 of file workbookhelper.cxx.

typedef ::std::unique_ptr< PivotTableBuffer > oox::xls::WorkbookGlobals::PivotTableBfrPtr
private

Definition at line 244 of file workbookhelper.cxx.

typedef ::std::unique_ptr< SegmentProgressBar > oox::xls::WorkbookGlobals::ProgressBarPtr
private

Definition at line 231 of file workbookhelper.cxx.

typedef ::std::unique_ptr< ScenarioBuffer > oox::xls::WorkbookGlobals::ScenarioBfrPtr
private

Definition at line 241 of file workbookhelper.cxx.

Definition at line 237 of file workbookhelper.cxx.

typedef ::std::unique_ptr< StylesBuffer > oox::xls::WorkbookGlobals::StylesBfrPtr
private

Definition at line 236 of file workbookhelper.cxx.

typedef ::std::unique_ptr< TableBuffer > oox::xls::WorkbookGlobals::TableBfrPtr
private

Definition at line 240 of file workbookhelper.cxx.

typedef ::std::shared_ptr< ThemeBuffer > oox::xls::WorkbookGlobals::ThemeBfrRef
private

Definition at line 235 of file workbookhelper.cxx.

typedef ::std::unique_ptr< UnitConverter > oox::xls::WorkbookGlobals::UnitConvPtr
private

Definition at line 246 of file workbookhelper.cxx.

typedef ::std::unique_ptr< ViewSettings > oox::xls::WorkbookGlobals::ViewSettingsPtr
private

Definition at line 233 of file workbookhelper.cxx.

typedef ::std::unique_ptr< WorkbookSettings > oox::xls::WorkbookGlobals::WorkbookSettPtr
private

Definition at line 232 of file workbookhelper.cxx.

typedef ::std::unique_ptr< WorksheetBuffer > oox::xls::WorkbookGlobals::WorksheetBfrPtr
private

Definition at line 234 of file workbookhelper.cxx.

Constructor & Destructor Documentation

oox::xls::WorkbookGlobals::WorkbookGlobals ( const WorkbookGlobals )
delete
oox::xls::WorkbookGlobals::WorkbookGlobals ( ExcelFilter rFilter)
explicit
oox::xls::WorkbookGlobals::~WorkbookGlobals ( )

Member Function Documentation

Reference< XDatabaseRange > oox::xls::WorkbookGlobals::createDatabaseRangeObject ( OUString &  orName,
const ScRange rRangeAddr 
)
FormulaParser* oox::xls::WorkbookGlobals::createFormulaParser ( )
inline

Returns an unshared import formula parser.

Definition at line 202 of file workbookhelper.cxx.

Referenced by oox::xls::WorkbookHelper::createFormulaParser(), and initialize().

ScRangeData * oox::xls::WorkbookGlobals::createLocalNamedRangeObject ( OUString &  orName,
const Sequence< FormulaToken > &  rTokens,
sal_Int32  nIndex,
sal_Int32  nNameFlags,
sal_Int32  nTab 
)

Creates and returns a defined name on the-fly in the correct Calc sheet.

Definition at line 404 of file workbookhelper.cxx.

References ScDocument::GetRangeName(), and getScDocument().

Referenced by oox::xls::WorkbookHelper::createLocalNamedRangeObject().

ScRangeData * oox::xls::WorkbookGlobals::createNamedRangeObject ( OUString &  orName,
const Sequence< FormulaToken > &  rTokens,
sal_Int32  nIndex,
sal_Int32  nNameFlags 
)

Creates and returns a defined name on-the-fly in the Calc document.

Definition at line 387 of file workbookhelper.cxx.

References ScDocument::GetRangeName(), and getScDocument().

Referenced by oox::xls::WorkbookHelper::createNamedRangeObject().

Reference< XStyle > oox::xls::WorkbookGlobals::createStyleObject ( OUString &  orStyleName,
bool  bPageStyle 
)

Creates and returns a com.sun.star.style.Style object for cells or pages.

Definition at line 485 of file workbookhelper.cxx.

References Any, Exception, getStyleFamily(), oox::ContainerHelper::insertByUnusedName(), maCellStyleServ, maPageStyleServ, and mrBaseFilter.

Referenced by oox::xls::WorkbookHelper::createStyleObject().

Reference< XDatabaseRange > oox::xls::WorkbookGlobals::createUnnamedDatabaseRangeObject ( const ScRange rRangeAddr)
void oox::xls::WorkbookGlobals::finalize ( )
private
ScDBData * oox::xls::WorkbookGlobals::findDatabaseRangeByIndex ( sal_uInt16  nIndex)

Finds the (already existing) database range of the given formula token index.

Definition at line 477 of file workbookhelper.cxx.

References ScDBCollection::NamedDBs::findByIndex(), ScDocument::GetDBCollection(), ScDBCollection::getNamedDBs(), and getScDocument().

Referenced by oox::xls::WorkbookHelper::findDatabaseRangeByIndex().

AddressConverter& oox::xls::WorkbookGlobals::getAddressConverter ( ) const
inline

Returns the converter for string to cell address/range conversion.

Definition at line 206 of file workbookhelper.cxx.

References mxAddrConverter.

Referenced by createDatabaseRangeObject(), createUnnamedDatabaseRangeObject(), and oox::xls::WorkbookHelper::getAddressConverter().

FilterBase& oox::xls::WorkbookGlobals::getBaseFilter ( ) const
inline

Returns the base filter object (base class of all filters).

Definition at line 120 of file workbookhelper.cxx.

References mrBaseFilter.

Referenced by oox::xls::WorkbookHelper::getBaseFilter().

oox::drawingml::chart::ChartConverter* oox::xls::WorkbookGlobals::getChartConverter ( ) const
inline

Returns the chart object converter.

Definition at line 208 of file workbookhelper.cxx.

References mxChartConverter.

Referenced by oox::xls::WorkbookHelper::getChartConverter().

ConnectionsBuffer& oox::xls::WorkbookGlobals::getConnections ( ) const
inline

Returns the collection of external data connections.

Definition at line 191 of file workbookhelper.cxx.

References mxConnections.

Referenced by oox::xls::WorkbookHelper::getConnections().

sal_Int16 oox::xls::WorkbookGlobals::getCurrentSheetIndex ( ) const
inline

Returns the index of the current Calc sheet, if filter currently processes a sheet.

Definition at line 126 of file workbookhelper.cxx.

References mnCurrSheet.

Referenced by oox::xls::WorkbookHelper::getCurrentSheetIndex().

DefinedNamesBuffer& oox::xls::WorkbookGlobals::getDefinedNames ( ) const
inline

Returns the defined names read from the workbook globals.

Definition at line 185 of file workbookhelper.cxx.

References mxDefNames.

Referenced by oox::xls::WorkbookHelper::getDefinedNames().

ScDocumentImport & oox::xls::WorkbookGlobals::getDocImport ( )

Definition at line 316 of file workbookhelper.cxx.

References mxDocImport.

Referenced by oox::xls::WorkbookHelper::getDocImport().

const Reference< XSpreadsheetDocument >& oox::xls::WorkbookGlobals::getDocument ( ) const
inline

Returns a reference to the source/target spreadsheet document model.

Definition at line 147 of file workbookhelper.cxx.

References mxDoc.

Referenced by oox::xls::WorkbookHelper::getDocument().

ScEditEngineDefaulter& oox::xls::WorkbookGlobals::getEditEngine ( ) const
inline

Definition at line 137 of file workbookhelper.cxx.

References mxEditEngine.

Referenced by oox::xls::WorkbookHelper::getEditEngine().

ExternalLinkBuffer& oox::xls::WorkbookGlobals::getExternalLinks ( ) const
inline

Returns the external links read from the external links substream.

Definition at line 183 of file workbookhelper.cxx.

References mxExtLinks.

Referenced by oox::xls::WorkbookHelper::getExternalLinks().

FormulaBuffer& oox::xls::WorkbookGlobals::getFormulaBuffer ( ) const
inline
FormulaParser& oox::xls::WorkbookGlobals::getFormulaParser ( ) const
inline

Returns a shared import formula parser.

Definition at line 200 of file workbookhelper.cxx.

References mxFmlaParser.

Referenced by oox::xls::WorkbookHelper::getFormulaParser().

XmlFilterBase& oox::xls::WorkbookGlobals::getOoxFilter ( ) const
inline

Returns the base OOXML/BIFF12 filter object.

Definition at line 215 of file workbookhelper.cxx.

References mpOoxFilter.

Referenced by oox::xls::WorkbookHelper::getOoxFilter().

PageSettingsConverter& oox::xls::WorkbookGlobals::getPageSettingsConverter ( ) const
inline

Returns the page/print settings converter.

Definition at line 210 of file workbookhelper.cxx.

References mxPageSettConverter.

Referenced by oox::xls::WorkbookHelper::getPageSettingsConverter().

PivotCacheBuffer& oox::xls::WorkbookGlobals::getPivotCaches ( ) const
inline

Returns the collection of pivot caches.

Definition at line 193 of file workbookhelper.cxx.

References mxPivotCaches.

Referenced by oox::xls::WorkbookHelper::getPivotCaches().

PivotTableBuffer& oox::xls::WorkbookGlobals::getPivotTables ( )
inline

Returns the collection of pivot tables.

Definition at line 195 of file workbookhelper.cxx.

References mxPivotTables.

Referenced by oox::xls::WorkbookHelper::getPivotTables().

SegmentProgressBar& oox::xls::WorkbookGlobals::getProgressBar ( ) const
inline

Returns the filter progress bar.

Definition at line 122 of file workbookhelper.cxx.

References mxProgressBar.

Referenced by oox::xls::WorkbookHelper::getProgressBar().

ScDocument& oox::xls::WorkbookGlobals::getScDocument ( )
inline
ScenarioBuffer& oox::xls::WorkbookGlobals::getScenarios ( ) const
inline

Returns the scenarios collection.

Definition at line 189 of file workbookhelper.cxx.

References mxScenarios.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), and oox::xls::WorkbookHelper::getScenarios().

SharedStringsBuffer& oox::xls::WorkbookGlobals::getSharedStrings ( ) const
inline

Returns the shared strings read from the shared strings substream.

Definition at line 181 of file workbookhelper.cxx.

References mxSharedStrings.

Referenced by oox::xls::WorkbookHelper::getSharedStrings().

Reference< XNameContainer > oox::xls::WorkbookGlobals::getStyleFamily ( bool  bPageStyles) const

Returns the cell or page styles container from the Calc document.

Definition at line 321 of file workbookhelper.cxx.

References Exception, maCellStyles, maPageStyles, and mxDoc.

Referenced by createStyleObject(), oox::xls::WorkbookHelper::getCellStyleFamily(), and getStyleObject().

Reference< XStyle > oox::xls::WorkbookGlobals::getStyleObject ( const OUString &  rStyleName,
bool  bPageStyle 
) const

Returns the specified cell or page style from the Calc document.

Definition at line 337 of file workbookhelper.cxx.

References Exception, and getStyleFamily().

Referenced by oox::xls::WorkbookHelper::getStyleObject().

StylesBuffer& oox::xls::WorkbookGlobals::getStyles ( ) const
inline

Returns all cell formatting objects read from the styles substream.

Definition at line 179 of file workbookhelper.cxx.

References mxStyles.

Referenced by oox::xls::WorkbookHelper::getStyles().

TableBuffer& oox::xls::WorkbookGlobals::getTables ( ) const
inline

Returns the tables collection (equivalent to Calc's database ranges).

Definition at line 187 of file workbookhelper.cxx.

References mxTables.

Referenced by oox::xls::WorkbookHelper::getTables().

rtl_TextEncoding oox::xls::WorkbookGlobals::getTextEncoding ( ) const
inline

Returns the text encoding used to import/export byte strings.

Definition at line 220 of file workbookhelper.cxx.

References meTextEnc.

Referenced by oox::xls::WorkbookHelper::getTextEncoding().

ThemeBuffer& oox::xls::WorkbookGlobals::getTheme ( ) const
inline

Returns the office theme object read from the theme substorage.

Definition at line 177 of file workbookhelper.cxx.

References mxTheme.

Referenced by oox::xls::WorkbookHelper::getTheme().

UnitConverter& oox::xls::WorkbookGlobals::getUnitConverter ( ) const
inline

Returns the measurement unit converter.

Definition at line 204 of file workbookhelper.cxx.

References mxUnitConverter.

Referenced by oox::xls::WorkbookHelper::getUnitConverter().

const StorageRef& oox::xls::WorkbookGlobals::getVbaProjectStorage ( ) const
inline

Returns the VBA project storage.

Definition at line 124 of file workbookhelper.cxx.

References mxVbaPrjStrg.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport().

ViewSettings& oox::xls::WorkbookGlobals::getViewSettings ( ) const
inline

Returns the workbook and sheet view settings object.

Definition at line 173 of file workbookhelper.cxx.

References mxViewSettings.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), and oox::xls::WorkbookHelper::getViewSettings().

WorkbookSettings& oox::xls::WorkbookGlobals::getWorkbookSettings ( ) const
inline

Returns the global workbook settings object.

Definition at line 171 of file workbookhelper.cxx.

References mxWorkbookSettings.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), and oox::xls::WorkbookHelper::getWorkbookSettings().

WorksheetBuffer& oox::xls::WorkbookGlobals::getWorksheets ( ) const
inline

Returns the worksheet buffer containing sheet names and properties.

Definition at line 175 of file workbookhelper.cxx.

References mxWorksheets.

Referenced by oox::xls::WorkbookHelper::getWorksheets().

void oox::xls::WorkbookGlobals::initialize ( )
private
bool oox::xls::WorkbookGlobals::isGeneratorKnownGood ( ) const
inline

Returns true when reading a file generated by a known good generator.

Definition at line 128 of file workbookhelper.cxx.

References mbGeneratorKnownGood.

Referenced by oox::xls::WorkbookHelper::isGeneratorKnownGood().

bool oox::xls::WorkbookGlobals::isValid ( ) const
inline

Returns true, if this helper refers to a valid document.

Definition at line 115 of file workbookhelper.cxx.

References mxDoc.

const WorkbookGlobals& oox::xls::WorkbookGlobals::operator= ( const WorkbookGlobals )
delete
void oox::xls::WorkbookGlobals::setCurrentSheetIndex ( SCTAB  nSheet)
inline

Sets the index of the current Calc sheet, if filter currently processes a sheet.

Definition at line 133 of file workbookhelper.cxx.

References mnCurrSheet.

Referenced by oox::xls::WorkbookHelper::setCurrentSheetIndex().

void oox::xls::WorkbookGlobals::setVbaProjectStorage ( const StorageRef rxVbaPrjStrg)
inline

Sets the VBA project storage used to import VBA source code and forms.

Definition at line 131 of file workbookhelper.cxx.

References mxVbaPrjStrg.

Referenced by oox::xls::WorkbookHelper::setVbaProjectStorage().

void oox::xls::WorkbookGlobals::useInternalChartDataTable ( bool  bInternal)

Helper to switch chart data table - specifically for xlsx imports.

Definition at line 501 of file workbookhelper.cxx.

References mxChartConverter.

Referenced by oox::xls::WorkbookHelper::useInternalChartDataTable().

Member Data Documentation

OUString oox::xls::WorkbookGlobals::maCellStyles
private

Definition at line 251 of file workbookhelper.cxx.

Referenced by getStyleFamily(), and initialize().

OUString oox::xls::WorkbookGlobals::maCellStyleServ
private

Style family name for page styles.

Definition at line 253 of file workbookhelper.cxx.

Referenced by createStyleObject(), and initialize().

OUString oox::xls::WorkbookGlobals::maPageStyles
private

Style family name for cell styles.

Definition at line 252 of file workbookhelper.cxx.

Referenced by getStyleFamily(), and initialize().

OUString oox::xls::WorkbookGlobals::maPageStyleServ
private

Service name for a cell style.

Definition at line 254 of file workbookhelper.cxx.

Referenced by createStyleObject(), and initialize().

bool oox::xls::WorkbookGlobals::mbGeneratorKnownGood
private

Current sheet index in Calc document.

Definition at line 261 of file workbookhelper.cxx.

Referenced by initialize(), and isGeneratorKnownGood().

rtl_TextEncoding oox::xls::WorkbookGlobals::meTextEnc
private

Base OOXML/BIFF12 filter object.

Definition at line 292 of file workbookhelper.cxx.

Referenced by getTextEncoding(), and initialize().

sal_Int16 oox::xls::WorkbookGlobals::mnCurrSheet
private

Storage containing the VBA project.

Definition at line 260 of file workbookhelper.cxx.

Referenced by getCurrentSheetIndex(), initialize(), and setCurrentSheetIndex().

ScDocument* oox::xls::WorkbookGlobals::mpDoc
private

BIFF byte string text encoding.

Definition at line 293 of file workbookhelper.cxx.

Referenced by finalize(), getScDocument(), and initialize().

ScDocShell* oox::xls::WorkbookGlobals::mpDocShell
private

Definition at line 294 of file workbookhelper.cxx.

Referenced by finalize(), and initialize().

XmlFilterBase* oox::xls::WorkbookGlobals::mpOoxFilter
private

Definition at line 289 of file workbookhelper.cxx.

Referenced by getOoxFilter().

FilterBase& oox::xls::WorkbookGlobals::mrBaseFilter
private

Document model.

Definition at line 256 of file workbookhelper.cxx.

Referenced by createStyleObject(), finalize(), getBaseFilter(), and initialize().

ExcelFilter& oox::xls::WorkbookGlobals::mrExcelFilter
private

Base filter object.

Definition at line 257 of file workbookhelper.cxx.

Referenced by WorkbookGlobals(), and ~WorkbookGlobals().

AddressConvPtr oox::xls::WorkbookGlobals::mxAddrConverter
private

General unit converter.

Definition at line 282 of file workbookhelper.cxx.

Referenced by getAddressConverter(), and initialize().

ExcelChartConvPtr oox::xls::WorkbookGlobals::mxChartConverter
private

Cell address and cell range address converter.

Definition at line 283 of file workbookhelper.cxx.

Referenced by getChartConverter(), initialize(), and useInternalChartDataTable().

ConnectionsBfrPtr oox::xls::WorkbookGlobals::mxConnections
private

All scenarios.

Definition at line 275 of file workbookhelper.cxx.

Referenced by getConnections(), and initialize().

DefNamesBfrPtr oox::xls::WorkbookGlobals::mxDefNames
private

All external links.

Definition at line 272 of file workbookhelper.cxx.

Referenced by getDefinedNames(), and initialize().

Reference< XSpreadsheetDocument > oox::xls::WorkbookGlobals::mxDoc
private

Service name for a page style.

Definition at line 255 of file workbookhelper.cxx.

Referenced by createDatabaseRangeObject(), getDocument(), getStyleFamily(), initialize(), and isValid().

std::unique_ptr<ScDocumentImport> oox::xls::WorkbookGlobals::mxDocImport
private

Definition at line 295 of file workbookhelper.cxx.

Referenced by getDocImport(), and initialize().

EditEngineDefaulterPtr oox::xls::WorkbookGlobals::mxEditEngine
private

Page/print settings converter.

Definition at line 286 of file workbookhelper.cxx.

Referenced by getEditEngine(), and initialize().

ExtLinkBfrPtr oox::xls::WorkbookGlobals::mxExtLinks
private

All strings from shared strings substream.

Definition at line 271 of file workbookhelper.cxx.

Referenced by getExternalLinks(), and initialize().

FormulaParserPtr oox::xls::WorkbookGlobals::mxFmlaParser
private

All pivot tables in the document.

Definition at line 280 of file workbookhelper.cxx.

Referenced by getFormulaParser(), and initialize().

FormulaBufferPtr oox::xls::WorkbookGlobals::mxFormulaBuffer
private

Whether reading a file generated by Excel or Calc.

Definition at line 264 of file workbookhelper.cxx.

Referenced by getFormulaBuffer(), and initialize().

PageSettConvPtr oox::xls::WorkbookGlobals::mxPageSettConverter
private

Chart object converter.

Definition at line 284 of file workbookhelper.cxx.

Referenced by getPageSettingsConverter(), and initialize().

PivotCacheBfrPtr oox::xls::WorkbookGlobals::mxPivotCaches
private

All external data connections.

Definition at line 276 of file workbookhelper.cxx.

Referenced by getPivotCaches(), and initialize().

PivotTableBfrPtr oox::xls::WorkbookGlobals::mxPivotTables
private

All pivot caches in the document.

Definition at line 277 of file workbookhelper.cxx.

Referenced by getPivotTables(), and initialize().

ProgressBarPtr oox::xls::WorkbookGlobals::mxProgressBar
private

Base object for registration of this structure.

Definition at line 258 of file workbookhelper.cxx.

Referenced by getProgressBar(), and initialize().

ScenarioBfrPtr oox::xls::WorkbookGlobals::mxScenarios
private

All tables (database ranges).

Definition at line 274 of file workbookhelper.cxx.

Referenced by getScenarios(), and initialize().

SharedStrBfrPtr oox::xls::WorkbookGlobals::mxSharedStrings
private

All cell style objects from styles substream.

Definition at line 270 of file workbookhelper.cxx.

Referenced by getSharedStrings(), and initialize().

StylesBfrPtr oox::xls::WorkbookGlobals::mxStyles
private

Formatting theme from theme substream.

Definition at line 269 of file workbookhelper.cxx.

Referenced by getStyles(), and initialize().

TableBfrPtr oox::xls::WorkbookGlobals::mxTables
private

All defined names.

Definition at line 273 of file workbookhelper.cxx.

Referenced by getTables(), and initialize().

ThemeBfrRef oox::xls::WorkbookGlobals::mxTheme
private

Sheet info buffer.

Definition at line 268 of file workbookhelper.cxx.

Referenced by getTheme(), and initialize().

UnitConvPtr oox::xls::WorkbookGlobals::mxUnitConverter
private

Import formula parser.

Definition at line 281 of file workbookhelper.cxx.

Referenced by getUnitConverter(), and initialize().

StorageRef oox::xls::WorkbookGlobals::mxVbaPrjStrg
private

The progress bar.

Definition at line 259 of file workbookhelper.cxx.

Referenced by getVbaProjectStorage(), and setVbaProjectStorage().

ViewSettingsPtr oox::xls::WorkbookGlobals::mxViewSettings
private

Global workbook settings.

Definition at line 266 of file workbookhelper.cxx.

Referenced by getViewSettings(), and initialize().

WorkbookSettPtr oox::xls::WorkbookGlobals::mxWorkbookSettings
private

Definition at line 265 of file workbookhelper.cxx.

Referenced by getWorkbookSettings(), and initialize().

WorksheetBfrPtr oox::xls::WorkbookGlobals::mxWorksheets
private

Workbook and sheet view settings.

Definition at line 267 of file workbookhelper.cxx.

Referenced by getWorksheets(), and initialize().


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