LibreOffice Module sc (master)
1
|
Helper class to provide access to global workbook data. More...
#include <workbookhelper.hxx>
Public Member Functions | |
WorkbookHelper (WorkbookGlobals &rBookGlob) | |
virtual | ~WorkbookHelper () |
WorkbookHelper (WorkbookHelper const &)=default | |
WorkbookHelper (WorkbookHelper &&)=default | |
WorkbookHelper & | operator= (WorkbookHelper const &)=delete |
WorkbookHelper & | operator= (WorkbookHelper &&)=delete |
::oox::core::FilterBase & | getBaseFilter () const |
Returns the base filter object (base class of all filters). More... | |
SegmentProgressBar & | getProgressBar () const |
Returns the filter progress bar. 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... | |
void | finalizeWorkbookImport () |
Final conversion after importing the workbook. More... | |
void | useInternalChartDataTable (bool bInternal) |
ScDocument & | getScDocument () |
const ScDocument & | getScDocument () const |
ScDocumentImport & | getDocImport () |
const ScDocumentImport & | getDocImport () const |
ScEditEngineDefaulter & | getEditEngine () const |
const css::uno::Reference< css::sheet::XSpreadsheetDocument > & | getDocument () const |
Returns a reference to the source/target spreadsheet document model. More... | |
css::uno::Reference< css::sheet::XSpreadsheet > | getSheetFromDoc (sal_Int32 nSheet) const |
Returns a reference to the specified spreadsheet in the document model. More... | |
css::uno::Reference< css::sheet::XSpreadsheet > | getSheetFromDoc (const OUString &rSheet) const |
Returns a reference to the specified spreadsheet in the document model. More... | |
css::uno::Reference< css::table::XCellRange > | getCellRangeFromDoc (const ScRange &rRange) const |
Returns the XCellRange interface for the passed cell range address. More... | |
css::uno::Reference< css::container::XNameContainer > | getCellStyleFamily () const |
Returns the cell styles container from the Calc document. More... | |
css::uno::Reference< css::style::XStyle > | getStyleObject (const OUString &rStyleName, bool bPageStyle) const |
Returns the specified cell or page style from the Calc document. More... | |
ScRangeData * | createNamedRangeObject (OUString &orName, const css::uno::Sequence< css::sheet::FormulaToken > &rTokens, sal_Int32 nIndex, sal_Int32 nNameFlags) const |
Creates and returns a defined name on-the-fly in the Calc document. More... | |
ScRangeData * | createLocalNamedRangeObject (OUString &orName, const css::uno::Sequence< css::sheet::FormulaToken > &rTokens, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab) const |
Creates and returns a defined name on-the-fly in the sheet. More... | |
css::uno::Reference< css::sheet::XDatabaseRange > | createDatabaseRangeObject (OUString &orName, const ScRange &rRangeAddr) const |
Creates and returns a database range on-the-fly in the Calc document. More... | |
css::uno::Reference< css::sheet::XDatabaseRange > | createUnnamedDatabaseRangeObject (const ScRange &rRangeAddr) const |
Creates and returns an unnamed database range on-the-fly in the Calc document. More... | |
ScDBData * | findDatabaseRangeByIndex (sal_uInt16 nIndex) const |
Finds the (already existing) database range of the given formula token index. More... | |
css::uno::Reference< css::style::XStyle > | createStyleObject (OUString &orStyleName, bool bPageStyle) const |
Creates and returns a com.sun.star.style.Style object for cells or pages. More... | |
FormulaBuffer & | getFormulaBuffer () const |
WorkbookSettings & | getWorkbookSettings () const |
Returns the global workbook settings object. More... | |
ViewSettings & | getViewSettings () const |
Returns the workbook and sheet view settings object. More... | |
WorksheetBuffer & | getWorksheets () const |
Returns the worksheet buffer containing sheet names and properties. More... | |
ThemeBuffer & | getTheme () const |
Returns the office theme object read from the theme substorage. More... | |
StylesBuffer & | getStyles () const |
Returns all cell formatting objects read from the styles substream. More... | |
SharedStringsBuffer & | getSharedStrings () const |
Returns the shared strings read from the shared strings substream. More... | |
ExternalLinkBuffer & | getExternalLinks () const |
Returns the external links read from the external links substream. More... | |
DefinedNamesBuffer & | getDefinedNames () const |
Returns the defined names read from the workbook globals. More... | |
TableBuffer & | getTables () const |
Returns the tables collection (equivalent to Calc's database ranges). More... | |
ScenarioBuffer & | getScenarios () const |
Returns the scenarios collection. More... | |
ConnectionsBuffer & | getConnections () const |
Returns the collection of external data connections. More... | |
PivotCacheBuffer & | getPivotCaches () const |
Returns the collection of pivot caches. More... | |
PivotTableBuffer & | getPivotTables () const |
Returns the collection of pivot tables. More... | |
FormulaParser & | getFormulaParser () const |
Returns a shared import formula parser (import filter only!). More... | |
FormulaParser * | createFormulaParser () const |
Returns an unshared import formula parser (import filter only!). More... | |
UnitConverter & | getUnitConverter () const |
Returns the measurement unit converter. More... | |
AddressConverter & | getAddressConverter () const |
Returns the converter for string to cell address/range conversion. More... | |
oox::drawingml::chart::ChartConverter * | getChartConverter () const |
Returns the chart object converter. More... | |
PageSettingsConverter & | getPageSettingsConverter () const |
Returns the page and print settings converter. More... | |
::oox::core::XmlFilterBase & | getOoxFilter () const |
Returns the base OOXML/BIFF12 filter object. More... | |
bool | importOoxFragment (const rtl::Reference< oox::core::FragmentHandler > &rxHandler) |
Imports a fragment using the passed fragment handler, which contains the full path to the fragment stream. More... | |
bool | importOoxFragment (const rtl::Reference< oox::core::FragmentHandler > &rxHandler, oox::core::FastParser &rParser) |
rtl_TextEncoding | getTextEncoding () const |
Returns the text encoding used to import/export byte strings. More... | |
Static Public Member Functions | |
static WorkbookGlobalsRef | constructGlobals (ExcelFilter &rFilter) |
Private Attributes | |
WorkbookGlobals & | mrBookGlob |
Helper class to provide access to global workbook data.
All classes derived from this helper class will have access to a singleton object of type WorkbookGlobals containing global workbook settings, buffers, converters, etc. Nearly all classes in this filter implementation are derived directly or indirectly from this class.
This class contains just a simple reference to the WorkbookGlobals object to prevent circular references, as the WorkbookGlobals object contains a lot of objects derived from this class.
Definition at line 101 of file workbookhelper.hxx.
|
inline |
Definition at line 104 of file workbookhelper.hxx.
|
virtual |
Definition at line 635 of file workbookhelper.cxx.
|
default |
|
default |
|
static |
Definition at line 639 of file workbookhelper.cxx.
Referenced by oox::xls::ExcelFilter::importDocument().
Reference< XDatabaseRange > oox::xls::WorkbookHelper::createDatabaseRangeObject | ( | OUString & | orName, |
const ScRange & | rRangeAddr | ||
) | const |
Creates and returns a database range on-the-fly in the Calc document.
The range will not be buffered in the global table buffer.
orName | (in/out-parameter) Returns the resulting used name. |
Definition at line 872 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createDatabaseRangeObject(), and mrBookGlob.
Referenced by oox::xls::Table::finalizeImport().
FormulaParser * oox::xls::WorkbookHelper::createFormulaParser | ( | ) | const |
Returns an unshared import formula parser (import filter only!).
Definition at line 971 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createFormulaParser(), and mrBookGlob.
Referenced by oox::xls::SheetDataContext::SheetDataContext().
ScRangeData * oox::xls::WorkbookHelper::createLocalNamedRangeObject | ( | OUString & | orName, |
const css::uno::Sequence< css::sheet::FormulaToken > & | rTokens, | ||
sal_Int32 | nIndex, | ||
sal_Int32 | nNameFlags, | ||
sal_Int32 | nTab | ||
) | const |
Creates and returns a defined name on-the-fly in the sheet.
The name will not be buffered in the global defined names buffer.
orName | (in/out-parameter) Returns the resulting used name. |
Definition at line 867 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createLocalNamedRangeObject(), and mrBookGlob.
Referenced by oox::xls::DefinedName::createNameObject().
ScRangeData * oox::xls::WorkbookHelper::createNamedRangeObject | ( | OUString & | orName, |
const css::uno::Sequence< css::sheet::FormulaToken > & | rTokens, | ||
sal_Int32 | nIndex, | ||
sal_Int32 | nNameFlags | ||
) | const |
Creates and returns a defined name on-the-fly in the Calc document.
The name will not be buffered in the global defined names buffer.
orName | (in/out-parameter) Returns the resulting used name. |
Definition at line 862 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createNamedRangeObject(), and mrBookGlob.
Referenced by oox::xls::DefinedName::createNameObject().
Reference< XStyle > oox::xls::WorkbookHelper::createStyleObject | ( | OUString & | orStyleName, |
bool | bPageStyle | ||
) | const |
Creates and returns a com.sun.star.style.Style object for cells or pages.
Definition at line 887 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createStyleObject(), and mrBookGlob.
Referenced by oox::xls::PageSettings::finalizeImport().
Reference< XDatabaseRange > oox::xls::WorkbookHelper::createUnnamedDatabaseRangeObject | ( | const ScRange & | rRangeAddr | ) | const |
Creates and returns an unnamed database range on-the-fly in the Calc document.
The range will not be buffered in the global table buffer.
Definition at line 877 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createUnnamedDatabaseRangeObject(), and mrBookGlob.
Referenced by oox::xls::AutoFilterBuffer::finalizeImport().
void oox::xls::WorkbookHelper::finalizeWorkbookImport | ( | ) |
Final conversion after importing the workbook.
Definition at line 679 of file workbookhelper.cxx.
References Any, aProperties, aSeq, formula::FormulaGrammar::CONV_A1_XL_A1, oox::xls::FormulaBuffer::finalizeImport(), oox::xls::WorkbookSettings::finalizeImport(), oox::xls::ScenarioBuffer::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::PivotTableBuffer::finalizeImport(), getBaseFilter(), ScDocument::GetCalcConfig(), getDocument(), oox::xls::WorkbookGlobals::getFormulaBuffer(), getPivotTables(), getScDocument(), oox::xls::WorkbookGlobals::getScenarios(), getStyleObject(), oox::core::FilterBase::getVbaProject(), oox::xls::WorkbookGlobals::getVbaProjectStorage(), oox::xls::WorkbookGlobals::getViewSettings(), oox::xls::WorkbookGlobals::getWorkbookSettings(), oox::ole::VbaProject::importModulesAndForms(), ScCalcConfig::meStringRefAddressSyntax, mrBookGlob, SC_ACTIVETABLE, SC_POSITIONLEFT, SC_POSITIONTOP, SC_TABLES, ScDocument::SetCalcConfig(), ScDocument::SetPosLeft(), ScDocument::SetPosTop(), oox::PropertySet::setProperty(), ScDocument::SetVisibleTab(), and sName.
Referenced by oox::xls::WorkbookFragment::finalizeImport().
ScDBData * oox::xls::WorkbookHelper::findDatabaseRangeByIndex | ( | sal_uInt16 | nIndex | ) | const |
Finds the (already existing) database range of the given formula token index.
Definition at line 882 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::findDatabaseRangeByIndex(), and mrBookGlob.
Referenced by oox::xls::Table::applyTableColumns().
AddressConverter & oox::xls::WorkbookHelper::getAddressConverter | ( | ) | const |
Returns the converter for string to cell address/range conversion.
Definition at line 981 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getAddressConverter(), and mrBookGlob.
Referenced by oox::xls::ShapeAnchor::calcAnchorRectEmu(), oox::xls::WorksheetGlobals::convertColumnFormat(), oox::xls::DefinedName::convertFormula(), oox::xls::FormulaProcessorBase::extractCellRangeList(), oox::xls::QueryTable::finalizeImport(), oox::xls::Comment::finalizeImport(), oox::xls::Scenario::finalizeImport(), oox::xls::SheetViewSettings::finalizeImport(), oox::xls::SheetDataBuffer::finalizeImport(), oox::xls::PivotTable::finalizeImport(), oox::xls::PivotCache::finalizeInternalSheetSource(), oox::xls::SheetDataBuffer::finalizeTableOperation(), oox::xls::ExternalSheetDataContext::importCell(), oox::xls::CondFormat::importCondFormatting(), oox::xls::CondFormat::importConditionalFormatting(), oox::xls::DataValidationsContextBase::importDataValidation(), oox::xls::ExcelFilter::importDocument(), oox::xls::WorksheetFragment::importHyperlink(), oox::xls::WorksheetFragment::importMergeCell(), oox::xls::ViewSettings::importOleSize(), oox::xls::SheetViewSettings::importPane(), oox::xls::PivotCache::importPCRecord(), oox::xls::WorksheetSettings::importProtectedRange(), oox::xls::SheetViewSettings::importSelection(), oox::xls::SheetViewSettings::importSheetView(), oox::xls::PivotCache::prepareSourceDataSheet(), oox::xls::ExternalSheetDataContext::setCellValue(), oox::xls::WorksheetGlobals::setColumnModel(), oox::xls::ExternalName::setResultSize(), oox::xls::WorksheetGlobals::setRowModel(), oox::xls::DataValidationsContextBase::SetValidation(), and oox::xls::PivotCache::writeSourceHeaderCells().
FilterBase & oox::xls::WorkbookHelper::getBaseFilter | ( | ) | const |
Returns the base filter object (base class of all filters).
Definition at line 649 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getBaseFilter(), and mrBookGlob.
Referenced by oox::xls::Border::convertBorderLine(), oox::xls::VmlDrawing::convertControlBackground(), oox::xls::VmlDrawing::convertControlTextColor(), oox::xls::VmlDrawing::createAndInsertClientXShape(), oox::xls::ExcelChartConverter::createDataProvider(), oox::xls::HeaderFooterParser::createField(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::QueryTable::finalizeImport(), oox::xls::WorkbookSettings::finalizeImport(), oox::xls::WorksheetSettings::finalizeImport(), oox::xls::SheetViewSettings::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::Font::finalizeImport(), oox::xls::Fill::finalizeImport(), finalizeWorkbookImport(), oox::xls::WorksheetGlobals::getCellRangeList(), oox::xls::ColorPalette::getColor(), oox::xls::WorksheetGlobals::getHyperlinkUrl(), oox::xls::ExtCfDataBarRule::importAxisColor(), oox::xls::ColorScaleRule::importColor(), oox::xls::DataBarRule::importColor(), oox::xls::WorksheetFragment::importEmbeddedOleData(), oox::xls::ExtCfDataBarRule::importNegativeFillColor(), oox::xls::PageSettings::importPictureData(), oox::xls::AddressConverter::initializeMaxPos(), oox::xls::FormulaParserImpl::resolveOleTarget(), oox::xls::ExternalLink::setExternalTargetUrl(), and oox::xls::UnitConverter::UnitConverter().
Reference< XCellRange > oox::xls::WorkbookHelper::getCellRangeFromDoc | ( | const ScRange & | rRange | ) | const |
Returns the XCellRange interface for the passed cell range address.
Definition at line 838 of file workbookhelper.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), Exception, getSheetFromDoc(), ScAddress::Row(), and ScAddress::Tab().
Referenced by oox::xls::ViewSettings::finalizeImport(), and oox::xls::PivotTable::finalizeImport().
Reference< XNameContainer > oox::xls::WorkbookHelper::getCellStyleFamily | ( | ) | const |
Returns the cell styles container from the Calc document.
Definition at line 852 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getStyleFamily(), and mrBookGlob.
Referenced by oox::xls::CellStyleBuffer::finalizeImport().
oox::drawingml::chart::ChartConverter * oox::xls::WorkbookHelper::getChartConverter | ( | ) | const |
Returns the chart object converter.
Definition at line 986 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getChartConverter(), and mrBookGlob.
Referenced by oox::xls::ExcelFilter::getChartConverter().
ConnectionsBuffer & oox::xls::WorkbookHelper::getConnections | ( | ) | const |
Returns the collection of external data connections.
Definition at line 949 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getConnections(), and mrBookGlob.
Referenced by oox::xls::ConnectionsFragment::finalizeImport(), oox::xls::QueryTable::finalizeImport(), oox::xls::ConnectionsFragment::onCreateContext(), and oox::xls::ConnectionsFragment::onCreateRecordContext().
sal_Int16 oox::xls::WorkbookHelper::getCurrentSheetIndex | ( | ) | const |
Returns the index of the current Calc sheet, if filter currently processes a sheet.
Definition at line 659 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getCurrentSheetIndex(), and mrBookGlob.
Referenced by oox::xls::ExcelChartConverter::createDataSequence(), and oox::xls::WorksheetGlobals::finalizeValidationRanges().
DefinedNamesBuffer & oox::xls::WorkbookHelper::getDefinedNames | ( | ) | const |
Returns the defined names read from the workbook globals.
Definition at line 934 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getDefinedNames(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::finalizeImport(), oox::xls::QueryTable::finalizeImport(), oox::xls::AutoFilterBuffer::finalizeImport(), oox::xls::PivotCache::finalizeInternalSheetSource(), oox::xls::WorkbookFragment::importDefinedName(), oox::xls::FormulaParser::importMacroName(), oox::xls::WorkbookFragment::onCreateRecordContext(), and oox::xls::FormulaParserImpl::resolveDefinedName().
ScDocumentImport & oox::xls::WorkbookHelper::getDocImport | ( | ) |
Definition at line 790 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getDocImport(), and mrBookGlob.
Referenced by oox::xls::WorksheetGlobals::convertColumnFormat(), oox::xls::PivotTable::finalizeFieldsImport(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::FormulaBuffer::finalizeImport(), oox::xls::SheetDataBuffer::finalizeImport(), oox::xls::SheetDataBuffer::finalizeTableOperation(), oox::xls::WorksheetBuffer::getAllSheetCount(), oox::xls::WorksheetGlobals::getHyperlinkUrl(), oox::xls::WorksheetHelper::getScDocument(), oox::xls::WorksheetGlobals::initializeWorksheetImport(), oox::xls::WorksheetGlobals::insertHyperlink(), oox::xls::WorksheetHelper::putFormulaTokens(), oox::xls::WorksheetHelper::putRichString(), oox::xls::WorkbookFragment::recalcFormulaCells(), oox::xls::SheetDataBuffer::setStringCell(), and oox::xls::SheetDataBuffer::setValueCell().
const ScDocumentImport & oox::xls::WorkbookHelper::getDocImport | ( | ) | const |
Definition at line 795 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getDocImport(), and mrBookGlob.
const Reference< XSpreadsheetDocument > & oox::xls::WorkbookHelper::getDocument | ( | ) | const |
Returns a reference to the source/target spreadsheet document model.
Definition at line 805 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getDocument(), and mrBookGlob.
Referenced by oox::xls::Table::applyAutoFilters(), oox::xls::WorksheetBuffer::createSheet(), oox::xls::QueryTable::finalizeImport(), oox::xls::UnitConverter::finalizeImport(), oox::xls::Scenario::finalizeImport(), oox::xls::WorkbookSettings::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::Font::finalizeImport(), finalizeWorkbookImport(), oox::xls::ExternalName::getDdeLinkData(), getSheetFromDoc(), oox::xls::AddressConverter::initializeMaxPos(), oox::xls::SheetDataBuffer::setDateTimeCell(), and oox::xls::ExternalLink::setExternalTargetUrl().
ScEditEngineDefaulter & oox::xls::WorkbookHelper::getEditEngine | ( | ) | const |
Definition at line 800 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getEditEngine(), and mrBookGlob.
Referenced by oox::xls::WorksheetHelper::putRichString().
ExternalLinkBuffer & oox::xls::WorkbookHelper::getExternalLinks | ( | ) | const |
Returns the external links read from the external links substream.
Definition at line 929 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getExternalLinks(), and mrBookGlob.
Referenced by oox::xls::FormulaBuffer::finalizeImport(), oox::xls::DefinedNamesBuffer::finalizeImport(), oox::xls::WorkbookFragment::importExternalRef(), oox::xls::WorkbookFragment::importExternalReference(), oox::xls::FormulaParser::importMacroName(), oox::xls::WorkbookFragment::onCreateRecordContext(), oox::xls::FormulaParserImpl::resolveBadFuncName(), and oox::xls::FormulaParserImpl::resolveOleTarget().
FormulaBuffer & oox::xls::WorkbookHelper::getFormulaBuffer | ( | ) | const |
Definition at line 894 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getFormulaBuffer(), and mrBookGlob.
Referenced by oox::xls::WorksheetHelper::createSharedFormulaMapEntry(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::PivotCacheRecordsFragment::PivotCacheRecordsFragment(), oox::xls::SheetDataBuffer::setBooleanCell(), oox::xls::WorksheetHelper::setCellArrayFormula(), oox::xls::WorksheetHelper::setCellFormula(), oox::xls::WorksheetHelper::setCellFormulaValue(), and oox::xls::SheetDataBuffer::setErrorCell().
FormulaParser & oox::xls::WorkbookHelper::getFormulaParser | ( | ) | const |
Returns a shared import formula parser (import filter only!).
Definition at line 966 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getFormulaParser(), and mrBookGlob.
Referenced by oox::xls::CondFormatRule::appendFormula(), oox::xls::DefinedName::convertFormula(), oox::xls::VmlDrawing::createAndInsertClientXShape(), oox::xls::ExcelChartConverter::createDataSequence(), oox::xls::DefinedName::getAbsoluteRange(), oox::xls::CondFormatRule::importCfRule(), oox::xls::DataValidationsContextBase::importDataValidation(), oox::xls::WorksheetFragment::importOleObject(), oox::xls::SheetDataBuffer::setFormulaCell(), oox::xls::DataValidationsContextBase::SetValidation(), and oox::xls::Shape::Shape().
XmlFilterBase & oox::xls::WorkbookHelper::getOoxFilter | ( | ) | const |
Returns the base OOXML/BIFF12 filter object.
Must not be called, if current filter is not the OOXML/BIFF12 filter.
Definition at line 1003 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getOoxFilter(), and mrBookGlob.
Referenced by oox::xls::WorkbookSettings::getNullDate(), and oox::xls::DrawingFragment::onEndElement().
PageSettingsConverter & oox::xls::WorkbookHelper::getPageSettingsConverter | ( | ) | const |
Returns the page and print settings converter.
Definition at line 996 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getPageSettingsConverter(), and mrBookGlob.
Referenced by oox::xls::PageSettings::finalizeImport().
PivotCacheBuffer & oox::xls::WorkbookHelper::getPivotCaches | ( | ) | const |
Returns the collection of pivot caches.
Definition at line 954 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getPivotCaches(), and mrBookGlob.
Referenced by oox::xls::PivotTable::finalizeImport(), and oox::xls::WorkbookFragment::importPivotCacheDefFragment().
PivotTableBuffer & oox::xls::WorkbookHelper::getPivotTables | ( | ) | const |
Returns the collection of pivot tables.
Definition at line 959 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getPivotTables(), and mrBookGlob.
Referenced by finalizeWorkbookImport().
SegmentProgressBar & oox::xls::WorkbookHelper::getProgressBar | ( | ) | const |
Returns the filter progress bar.
Definition at line 654 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getProgressBar(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::finalizeImport(), and oox::xls::FormulaBuffer::finalizeImport().
ScDocument & oox::xls::WorkbookHelper::getScDocument | ( | ) |
Definition at line 780 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getScDocument(), and mrBookGlob.
Referenced by oox::xls::Xf::applyPatternToAttrList(), oox::xls::WorksheetGlobals::convertColumns(), oox::xls::DefinedName::convertFormula(), oox::xls::WorksheetGlobals::convertRows(), oox::xls::WorksheetBuffer::convertSheetNameRef(), oox::xls::CellStyle::createCellStyle(), oox::xls::StylesBuffer::createDxfStyle(), oox::xls::StylesBuffer::createExtDxfStyle(), oox::xls::Xf::createPattern(), oox::xls::NumberFormat::fillToItemSet(), oox::xls::RevisionHeadersFragment::finalizeImport(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::WorksheetBuffer::finalizeImport(), oox::xls::AutoFilter::finalizeImport(), finalizeWorkbookImport(), oox::xls::WorksheetGlobals::finalizeWorksheetImport(), oox::xls::DefinedName::getAbsoluteRange(), oox::xls::DefinedName::getScTokens(), oox::xls::ExcelFilter::importDocument(), oox::xls::RevisionLogFragment::importRrc(), oox::xls::WorksheetBuffer::insertEmptySheet(), oox::xls::ExtGlobalWorkbookContext::onCreateContext(), and oox::xls::WorkbookFragment::recalcFormulaCells().
const ScDocument & oox::xls::WorkbookHelper::getScDocument | ( | ) | const |
Definition at line 785 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getScDocument(), and mrBookGlob.
ScenarioBuffer & oox::xls::WorkbookHelper::getScenarios | ( | ) | const |
Returns the scenarios collection.
Definition at line 944 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getScenarios(), and mrBookGlob.
SharedStringsBuffer & oox::xls::WorkbookHelper::getSharedStrings | ( | ) | const |
Returns the shared strings read from the shared strings substream.
Definition at line 924 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getSharedStrings(), and mrBookGlob.
Referenced by oox::xls::SharedStringsFragment::finalizeImport(), oox::xls::SharedStringsFragment::onCreateContext(), oox::xls::SharedStringsFragment::onCreateRecordContext(), and oox::xls::SheetDataBuffer::setStringCell().
Reference< XSpreadsheet > oox::xls::WorkbookHelper::getSheetFromDoc | ( | sal_Int32 | nSheet | ) | const |
Returns a reference to the specified spreadsheet in the document model.
Definition at line 810 of file workbookhelper.cxx.
References Exception, and getDocument().
Referenced by oox::xls::DefinedName::convertFormula(), oox::xls::Scenario::finalizeImport(), oox::xls::PivotTable::finalizeImport(), oox::xls::WorksheetGlobals::finalizeValidationRanges(), and getCellRangeFromDoc().
Reference< XSpreadsheet > oox::xls::WorkbookHelper::getSheetFromDoc | ( | const OUString & | rSheet | ) | const |
Returns a reference to the specified spreadsheet in the document model.
Definition at line 824 of file workbookhelper.cxx.
References Exception, and getDocument().
Reference< XStyle > oox::xls::WorkbookHelper::getStyleObject | ( | const OUString & | rStyleName, |
bool | bPageStyle | ||
) | const |
Returns the specified cell or page style from the Calc document.
Definition at line 857 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getStyleObject(), and mrBookGlob.
Referenced by finalizeWorkbookImport().
StylesBuffer & oox::xls::WorkbookHelper::getStyles | ( | ) | const |
Returns all cell formatting objects read from the styles substream.
Definition at line 919 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getStyles(), and mrBookGlob.
Referenced by oox::xls::Xf::applyPatternToAttrList(), oox::xls::WorksheetGlobals::convertColumnFormat(), oox::xls::HeaderFooterParser::convertFontName(), oox::xls::CellStyle::createCellStyle(), oox::xls::Xf::createPattern(), oox::xls::RichStringPortion::finalizeImport(), oox::xls::UnitConverter::finalizeImport(), oox::xls::StylesFragment::finalizeImport(), oox::xls::SheetDataBuffer::finalizeImport(), oox::xls::CondFormatRule::finalizeImport(), oox::xls::Xf::getFont(), oox::xls::ExcelGraphicHelper::getPaletteColor(), oox::xls::Dxf::importDxf(), oox::xls::Dxf::importNumFmt(), oox::xls::WorksheetGlobals::initializeWorksheetImport(), oox::xls::IndexedColorsContext::onCreateContext(), oox::xls::ExtConditionalFormattingContext::onCreateContext(), oox::xls::StylesFragment::onCreateContext(), oox::xls::IndexedColorsContext::onCreateRecordContext(), oox::xls::StylesFragment::onCreateRecordContext(), oox::xls::ExtConditionalFormattingContext::onEndElement(), oox::xls::HeaderFooterParser::parse(), oox::xls::SheetDataBuffer::setCellFormat(), oox::xls::HeaderFooterParser::setNewPortion(), oox::xls::SheetDataBuffer::setStringCell(), and oox::xls::Xf::writeToDoc().
TableBuffer & oox::xls::WorkbookHelper::getTables | ( | ) | const |
Returns the tables collection (equivalent to Calc's database ranges).
Definition at line 939 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getTables(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::finalizeImport(), oox::xls::PivotCache::finalizeInternalSheetSource(), and oox::xls::WorksheetGlobals::finalizeWorksheetImport().
rtl_TextEncoding oox::xls::WorkbookHelper::getTextEncoding | ( | ) | const |
Returns the text encoding used to import/export byte strings.
Definition at line 1020 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getTextEncoding(), and mrBookGlob.
Referenced by oox::xls::Font::fillToItemSet().
ThemeBuffer & oox::xls::WorkbookHelper::getTheme | ( | ) | const |
Returns the office theme object read from the theme substorage.
Definition at line 914 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getTheme(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::finalizeImport(), oox::xls::ExcelFilter::getCurrentTheme(), oox::xls::StylesBuffer::getDefaultFontModel(), oox::xls::ExcelGraphicHelper::getSchemeColor(), oox::xls::Font::importAttribs(), oox::xls::ExtCfDataBarRule::importAxisColor(), oox::xls::ColorScaleRule::importColor(), oox::xls::DataBarRule::importColor(), oox::xls::ExtCfDataBarRule::importNegativeFillColor(), and oox::xls::DrawingFragment::onEndElement().
UnitConverter & oox::xls::WorkbookHelper::getUnitConverter | ( | ) | const |
Returns the measurement unit converter.
Definition at line 976 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getUnitConverter(), and mrBookGlob.
Referenced by oox::xls::ShapeAnchor::calcCellAnchorEmu(), oox::xls::WorksheetGlobals::convertColumns(), oox::xls::PageSettingsConverter::convertHeaderFooterData(), oox::xls::WorksheetGlobals::convertRows(), oox::xls::VmlDrawing::createAndInsertClientXShape(), oox::xls::PivotCacheField::createDateGroupField(), oox::xls::Alignment::finalizeImport(), oox::xls::StylesBuffer::finalizeImport(), oox::xls::PivotCacheField::importPCDFRangePr(), oox::xls::ExternalSheetDataContext::onCharacters(), oox::xls::ExternalLinkFragment::onEndElement(), oox::xls::WorksheetGlobals::setBaseColumnWidth(), oox::xls::SheetDataBuffer::setDateCell(), oox::xls::WorkbookSettings::setDateMode(), oox::xls::SheetDataBuffer::setDateTimeCell(), oox::xls::SheetDataBuffer::setErrorCell(), oox::xls::PageSettingsConverter::writeHeaderFooter(), and oox::xls::PageSettingsConverter::writePageSettingsProperties().
ViewSettings & oox::xls::WorkbookHelper::getViewSettings | ( | ) | const |
Returns the workbook and sheet view settings object.
Definition at line 904 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getViewSettings(), and mrBookGlob.
Referenced by oox::xls::WorksheetGlobals::finalizeDrawings(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::SheetViewSettings::finalizeImport(), oox::xls::WorkbookFragment::onCreateContext(), and oox::xls::WorkbookFragment::onCreateRecordContext().
WorkbookSettings & oox::xls::WorkbookHelper::getWorkbookSettings | ( | ) | const |
Returns the global workbook settings object.
Definition at line 899 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getWorkbookSettings(), and mrBookGlob.
Referenced by oox::xls::PivotTableField::convertPageField(), oox::xls::PivotTableField::convertRowColPageField(), oox::xls::ViewSettings::finalizeImport(), oox::xls::WorkbookFragment::onCreateContext(), and oox::xls::WorkbookFragment::onCreateRecordContext().
WorksheetBuffer & oox::xls::WorkbookHelper::getWorksheets | ( | ) | const |
Returns the worksheet buffer containing sheet names and properties.
Definition at line 909 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getWorksheets(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::PivotCache::finalizeInternalSheetSource(), oox::xls::ViewSettings::getActiveCalcSheet(), oox::xls::WorksheetGlobals::getHyperlinkUrl(), oox::xls::DefinedName::importDefinedName(), oox::xls::WorkbookFragment::onCreateContext(), oox::xls::WorkbookFragment::onCreateRecordContext(), oox::xls::PivotCacheRecordsFragment::PivotCacheRecordsFragment(), and oox::xls::PivotCache::prepareSourceDataSheet().
bool oox::xls::WorkbookHelper::importOoxFragment | ( | const rtl::Reference< oox::core::FragmentHandler > & | rxHandler | ) |
Imports a fragment using the passed fragment handler, which contains the full path to the fragment stream.
Referenced by oox::xls::WorksheetGlobals::finalizeDrawings(), oox::xls::RevisionHeadersFragment::finalizeImport(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::PivotCacheDefinitionFragment::finalizeImport(), oox::xls::WorkbookFragment::importExternalLinkFragment(), oox::xls::PivotCacheBuffer::importPivotCacheFragment(), oox::xls::WorksheetFragment::initializeImport(), and oox::xls::WorksheetFragment::WorksheetFragment().
bool oox::xls::WorkbookHelper::importOoxFragment | ( | const rtl::Reference< oox::core::FragmentHandler > & | rxHandler, |
oox::core::FastParser & | rParser | ||
) |
bool oox::xls::WorkbookHelper::isGeneratorKnownGood | ( | ) | const |
Returns true when reading a file generated by a known good generator.
Definition at line 664 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::isGeneratorKnownGood(), and mrBookGlob.
Referenced by oox::xls::FormulaBuffer::finalizeImport().
|
delete |
|
delete |
Sets the index of the current Calc sheet, if filter currently processes a sheet.
Definition at line 674 of file workbookhelper.cxx.
References mrBookGlob, and oox::xls::WorkbookGlobals::setCurrentSheetIndex().
Referenced by oox::xls::WorksheetGlobals::finalizeDrawingImport(), and oox::xls::WorksheetGlobals::initializeWorksheetImport().
void oox::xls::WorkbookHelper::setVbaProjectStorage | ( | const StorageRef & | rxVbaPrjStrg | ) |
Sets the VBA project storage used to import VBA source code and forms.
Definition at line 669 of file workbookhelper.cxx.
References mrBookGlob, and oox::xls::WorkbookGlobals::setVbaProjectStorage().
Referenced by oox::xls::WorkbookFragment::finalizeImport().
void oox::xls::WorkbookHelper::useInternalChartDataTable | ( | bool | bInternal | ) |
Definition at line 991 of file workbookhelper.cxx.
References mrBookGlob, and oox::xls::WorkbookGlobals::useInternalChartDataTable().
Referenced by oox::xls::ExcelFilter::useInternalChartDataTable().
|
private |
Definition at line 267 of file workbookhelper.hxx.
Referenced by createDatabaseRangeObject(), createFormulaParser(), createLocalNamedRangeObject(), createNamedRangeObject(), createStyleObject(), createUnnamedDatabaseRangeObject(), finalizeWorkbookImport(), findDatabaseRangeByIndex(), getAddressConverter(), getBaseFilter(), getCellStyleFamily(), getChartConverter(), getConnections(), getCurrentSheetIndex(), getDefinedNames(), getDocImport(), getDocument(), getEditEngine(), getExternalLinks(), getFormulaBuffer(), getFormulaParser(), getOoxFilter(), getPageSettingsConverter(), getPivotCaches(), getPivotTables(), getProgressBar(), getScDocument(), getScenarios(), getSharedStrings(), getStyleObject(), getStyles(), getTables(), getTextEncoding(), getTheme(), getUnitConverter(), getViewSettings(), getWorkbookSettings(), getWorksheets(), isGeneratorKnownGood(), setCurrentSheetIndex(), setVbaProjectStorage(), and useInternalChartDataTable().