LibreOffice Module sc (master) 1
|
Helper class to provide access to global workbook data. More...
#include <workbookhelper.hxx>
Public Types | |
typedef std::pair< ScRangeData *, bool > | RangeDataRet |
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... | |
bool | hasCalculatedFormulaCells () const |
Returns true if any formula cell is calculated. More... | |
void | setCalculatedFormulaCells () |
Set if any formula cell is calculated. 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... | |
RangeDataRet | createNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, bool bHidden) const |
Creates and returns a defined name on-the-fly in the Calc document. More... | |
RangeDataRet | createLocalNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab, bool bHidden) 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.
typedef std::pair<ScRangeData*, bool> oox::xls::WorkbookHelper::RangeDataRet |
Definition at line 168 of file workbookhelper.hxx.
|
inline |
Definition at line 104 of file workbookhelper.hxx.
|
virtual |
Definition at line 659 of file workbookhelper.cxx.
|
default |
|
default |
|
static |
Definition at line 663 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 906 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 1005 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createFormulaParser(), and mrBookGlob.
Referenced by oox::xls::SheetDataContext::SheetDataContext().
WorkbookHelper::RangeDataRet oox::xls::WorkbookHelper::createLocalNamedRangeObject | ( | OUString & | orName, |
sal_Int32 | nIndex, | ||
sal_Int32 | nNameFlags, | ||
sal_Int32 | nTab, | ||
bool | bHidden | ||
) | 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 901 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createLocalNamedRangeObject(), mrBookGlob, and nIndex.
Referenced by oox::xls::DefinedName::createNameObject().
WorkbookHelper::RangeDataRet oox::xls::WorkbookHelper::createNamedRangeObject | ( | OUString & | orName, |
sal_Int32 | nIndex, | ||
sal_Int32 | nNameFlags, | ||
bool | bHidden | ||
) | 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 896 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::createNamedRangeObject(), mrBookGlob, and nIndex.
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 921 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 911 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 713 of file workbookhelper.cxx.
References Any, aProperties, aSeq, formula::FormulaGrammar::CONV_A1_XL_A1, oox::xls::FormulaBuffer::finalizeImport(), oox::xls::PivotTableBuffer::finalizeImport(), oox::xls::ScenarioBuffer::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::WorkbookSettings::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, PROP_FirstPageNumber, 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 916 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::findDatabaseRangeByIndex(), mrBookGlob, and nIndex.
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 1015 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getAddressConverter(), and mrBookGlob.
Referenced by oox::xls::SheetDataBuffer::addColXfStyleProcessRowRanges(), oox::xls::ShapeAnchor::calcAnchorRectEmu(), oox::xls::WorksheetGlobals::convertColumnFormat(), oox::xls::DefinedName::convertFormula(), oox::xls::FormulaProcessorBase::extractCellRangeList(), oox::xls::Comment::finalizeImport(), oox::xls::PivotTable::finalizeImport(), oox::xls::QueryTable::finalizeImport(), oox::xls::Scenario::finalizeImport(), oox::xls::SheetViewSettings::finalizeImport(), oox::xls::PivotCache::finalizeInternalSheetSource(), oox::xls::SheetDataBuffer::finalizeTableOperation(), oox::xls::ExternalSheetDataContext::importCell(), oox::xls::CondFormat::importCondFormatting(), oox::xls::CondFormat::importConditionalFormatting(), 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(), and oox::xls::PivotCache::writeSourceHeaderCells().
FilterBase & oox::xls::WorkbookHelper::getBaseFilter | ( | ) | const |
Returns the base filter object (base class of all filters).
Definition at line 673 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::QueryTable::finalizeImport(), oox::xls::Font::finalizeImport(), oox::xls::Fill::finalizeImport(), oox::xls::SheetViewSettings::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::WorkbookSettings::finalizeImport(), oox::xls::WorksheetSettings::finalizeImport(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::Border::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::ExtCfDataBarRule::importPositiveFillColor(), 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 872 of file workbookhelper.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), Exception, getSheetFromDoc(), ScAddress::Row(), and ScAddress::Tab().
Referenced by oox::xls::PivotTable::finalizeImport(), and oox::xls::ViewSettings::finalizeImport().
Reference< XNameContainer > oox::xls::WorkbookHelper::getCellStyleFamily | ( | ) | const |
Returns the cell styles container from the Calc document.
Definition at line 886 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 1020 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 983 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getConnections(), and mrBookGlob.
Referenced by oox::xls::QueryTable::finalizeImport(), oox::xls::ConnectionsFragment::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 683 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 968 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getDefinedNames(), and mrBookGlob.
Referenced by oox::xls::QueryTable::finalizeImport(), oox::xls::WorkbookFragment::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 824 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getDocImport(), and mrBookGlob.
Referenced by oox::xls::Xf::applyPatternToAttrList(), oox::xls::WorksheetGlobals::convertColumnFormat(), oox::xls::PivotTable::finalizeFieldsImport(), oox::xls::FormulaBuffer::finalizeImport(), oox::xls::PivotTableBuffer::finalizeImport(), oox::xls::SheetDataBuffer::finalizeImport(), oox::xls::WorkbookFragment::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 829 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 839 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::Scenario::finalizeImport(), oox::xls::Font::finalizeImport(), oox::xls::UnitConverter::finalizeImport(), oox::xls::ViewSettings::finalizeImport(), oox::xls::WorkbookSettings::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 834 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 963 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getExternalLinks(), and mrBookGlob.
Referenced by oox::xls::DefinedNamesBuffer::finalizeImport(), oox::xls::FormulaBuffer::finalizeImport(), oox::xls::ExternalName::importDefinedName(), 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 928 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 1000 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::WorksheetFragment::importOleObject(), oox::xls::SheetDataBuffer::setFormulaCell(), 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 1037 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 1030 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 988 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 993 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 678 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getProgressBar(), and mrBookGlob.
Referenced by oox::xls::FormulaBuffer::finalizeImport(), and oox::xls::WorkbookFragment::finalizeImport().
ScDocument & oox::xls::WorkbookHelper::getScDocument | ( | ) |
Definition at line 814 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::WorksheetGlobals::finalizeDrawings(), oox::xls::ColorFilter::finalizeImport(), oox::xls::RevisionHeadersFragment::finalizeImport(), oox::xls::WorkbookFragment::finalizeImport(), oox::xls::AutoFilter::finalizeImport(), oox::xls::WorksheetBuffer::finalizeImport(), finalizeWorkbookImport(), oox::xls::WorksheetGlobals::finalizeWorksheetImport(), oox::xls::DefinedName::getAbsoluteRange(), oox::xls::WorksheetGlobals::getCellPosition(), oox::xls::DefinedName::getScTokens(), oox::xls::ExternalName::importDefinedName(), oox::xls::RevisionLogFragment::importRrc(), oox::xls::WorksheetBuffer::insertEmptySheet(), oox::xls::DefinedName::isValid(), oox::xls::ExtGlobalWorkbookContext::onCreateContext(), and oox::xls::WorkbookFragment::recalcFormulaCells().
const ScDocument & oox::xls::WorkbookHelper::getScDocument | ( | ) | const |
Definition at line 819 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getScDocument(), and mrBookGlob.
ScenarioBuffer & oox::xls::WorkbookHelper::getScenarios | ( | ) | const |
Returns the scenarios collection.
Definition at line 978 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 958 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 | ( | const OUString & | rSheet | ) | const |
Returns a reference to the specified spreadsheet in the document model.
Definition at line 858 of file workbookhelper.cxx.
References Exception, and getDocument().
Reference< XSpreadsheet > oox::xls::WorkbookHelper::getSheetFromDoc | ( | sal_Int32 | nSheet | ) | const |
Returns a reference to the specified spreadsheet in the document model.
Definition at line 844 of file workbookhelper.cxx.
References Exception, and getDocument().
Referenced by oox::xls::DefinedName::convertFormula(), oox::xls::PivotTable::finalizeImport(), oox::xls::Scenario::finalizeImport(), oox::xls::WorksheetGlobals::finalizeValidationRanges(), and getCellRangeFromDoc().
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 891 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 953 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getStyles(), and mrBookGlob.
Referenced by oox::xls::SheetDataBuffer::addColXfStyles(), oox::xls::Xf::applyPatternToAttrList(), oox::xls::WorksheetGlobals::convertColumnFormat(), oox::xls::HeaderFooterParser::convertFontName(), oox::xls::CellStyle::createCellStyle(), oox::xls::Xf::createPattern(), oox::xls::CondFormatRule::finalizeImport(), oox::xls::SheetDataBuffer::finalizeImport(), oox::xls::UnitConverter::finalizeImport(), oox::xls::StylesFragment::finalizeImport(), oox::xls::RichStringPortion::finalizeImport(), oox::xls::Xf::getFont(), oox::xls::ExcelGraphicHelper::getPaletteColor(), oox::xls::ColorFilter::importAttribs(), oox::xls::Dxf::importDxf(), oox::xls::Dxf::importNumFmt(), oox::xls::WorksheetGlobals::initializeWorksheetImport(), oox::xls::ExtConditionalFormattingContext::onCreateContext(), oox::xls::IndexedColorsContext::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 973 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getTables(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::finalizeImport(), and oox::xls::PivotCache::finalizeInternalSheetSource().
rtl_TextEncoding oox::xls::WorkbookHelper::getTextEncoding | ( | ) | const |
Returns the text encoding used to import/export byte strings.
Definition at line 1054 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 948 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(), oox::xls::ExtCfDataBarRule::importPositiveFillColor(), oox::xls::SparklineGroupsContext::onCreateContext(), and oox::xls::DrawingFragment::onEndElement().
UnitConverter & oox::xls::WorkbookHelper::getUnitConverter | ( | ) | const |
Returns the measurement unit converter.
Definition at line 1010 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getUnitConverter(), and mrBookGlob.
Referenced by oox::xls::ShapeAnchor::calcCellAnchorEmu(), oox::xls::WorksheetGlobals::convertColumns(), oox::xls::PivotCacheField::createDateGroupField(), oox::xls::Alignment::finalizeImport(), oox::xls::StylesBuffer::finalizeImport(), oox::xls::PivotCacheItemList::importArray(), oox::xls::PivotCacheItemList::importItem(), oox::xls::PivotCacheField::importPCDFRangePr(), oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), oox::xls::ExternalSheetDataContext::onCharacters(), oox::xls::ExternalLinkFragment::onEndElement(), oox::xls::WorksheetGlobals::setBaseColumnWidth(), oox::xls::SheetDataBuffer::setDateCell(), oox::xls::WorkbookSettings::setDateMode(), oox::xls::SheetDataBuffer::setDateTimeCell(), and oox::xls::SheetDataBuffer::setErrorCell().
ViewSettings & oox::xls::WorkbookHelper::getViewSettings | ( | ) | const |
Returns the workbook and sheet view settings object.
Definition at line 938 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getViewSettings(), and mrBookGlob.
Referenced by oox::xls::WorksheetGlobals::finalizeDrawings(), oox::xls::SheetViewSettings::finalizeImport(), oox::xls::WorkbookFragment::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 933 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 943 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::getWorksheets(), and mrBookGlob.
Referenced by oox::xls::ViewSettings::finalizeImport(), oox::xls::WorkbookFragment::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::hasCalculatedFormulaCells | ( | ) | const |
Returns true if any formula cell is calculated.
Definition at line 693 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::hasCalculatedFormulaCells(), and mrBookGlob.
Referenced by oox::xls::WorkbookFragment::recalcFormulaCells().
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::PivotCacheDefinitionFragment::finalizeImport(), oox::xls::RevisionHeadersFragment::finalizeImport(), oox::xls::WorkbookFragment::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 688 of file workbookhelper.cxx.
References oox::xls::WorkbookGlobals::isGeneratorKnownGood(), and mrBookGlob.
|
delete |
|
delete |
void oox::xls::WorkbookHelper::setCalculatedFormulaCells | ( | ) |
Set if any formula cell is calculated.
Definition at line 698 of file workbookhelper.cxx.
References mrBookGlob, and oox::xls::WorkbookGlobals::setCalculatedFormulaCells().
void oox::xls::WorkbookHelper::setCurrentSheetIndex | ( | SCTAB | nSheet | ) |
Sets the index of the current Calc sheet, if filter currently processes a sheet.
Definition at line 708 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 703 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 1025 of file workbookhelper.cxx.
References mrBookGlob, and oox::xls::WorkbookGlobals::useInternalChartDataTable().
Referenced by oox::xls::ExcelFilter::useInternalChartDataTable().
|
private |
Definition at line 272 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(), hasCalculatedFormulaCells(), isGeneratorKnownGood(), setCalculatedFormulaCells(), setCurrentSheetIndex(), setVbaProjectStorage(), and useInternalChartDataTable().