LibreOffice Module sc (master) 1
|
Access to global data for a filter object (imported or exported document) from other classes. More...
#include <xlroot.hxx>
Public Member Functions | |
XclRoot (XclRootData &rRootData) | |
XclRoot (const XclRoot &rRoot) | |
virtual | ~XclRoot () |
XclRoot & | operator= (const XclRoot &rRoot) |
RootData & | GetOldRoot () const |
Returns old RootData struct. More... | |
XclBiff | GetBiff () const |
Returns the current BIFF version of the importer/exporter. More... | |
XclOutput | GetOutput () const |
Returns the current output format of the importer/exporter. More... | |
bool | IsImport () const |
Returns true, if currently a document is imported. More... | |
rtl_TextEncoding | GetTextEncoding () const |
Returns the text encoding to import/export byte strings. More... | |
LanguageType | GetSysLanguage () const |
Returns the system language, i.e. More... | |
LanguageType | GetDocLanguage () const |
Returns the document language. More... | |
LanguageType | GetUILanguage () const |
Returns the UI language. More... | |
sal_Int16 | GetDefApiScript () const |
Returns the default script type, e.g. More... | |
tools::Long | GetCharWidth () const |
Returns the width of the '0' character (default font) for the current printer (twips). More... | |
tools::Long | GetSpaceWidth () const |
bool | IsInGlobals () const |
Returns the current Calc sheet index. More... | |
SCTAB | GetCurrScTab () const |
Returns the current Calc sheet index. More... | |
sal_Int32 | GetHmmFromPixelX (double fPixelX) const |
Calculates the width of the passed number of pixels in 1/100 mm. More... | |
sal_Int32 | GetHmmFromPixelY (double fPixelY) const |
Calculates the height of the passed number of pixels in 1/100 mm. More... | |
SfxMedium & | GetMedium () const |
Returns the medium to import from. More... | |
const OUString & | GetDocUrl () const |
Returns the document URL of the imported/exported file. More... | |
const OUString & | GetBasePath () const |
Returns the base path of the imported/exported file. More... | |
const OUString & | GetUserName () const |
Returns the current user name. More... | |
css::uno::Sequence< css::beans::NamedValue > | RequestEncryptionData (::comphelper::IDocPasswordVerifier &rVerifier) const |
Requests and verifies a password from the medium or the user. More... | |
const tools::SvRef< SotStorage > & | GetRootStorage () const |
Returns the OLE2 root storage of the imported/exported file. More... | |
bool | HasVbaStorage () const |
Returns true, if the document contains a VBA storage. More... | |
tools::SvRef< SotStorage > | OpenStorage (tools::SvRef< SotStorage > const &xStrg, const OUString &rStrgName) const |
Tries to open a storage as child of the specified storage for reading or writing. More... | |
tools::SvRef< SotStorage > | OpenStorage (const OUString &rStrgName) const |
Tries to open a storage as child of the root storage for reading or writing. More... | |
tools::SvRef< SotStorageStream > | OpenStream (tools::SvRef< SotStorage > const &xStrg, const OUString &rStrmName) const |
Tries to open a new stream in the specified storage for reading or writing. More... | |
tools::SvRef< SotStorageStream > | OpenStream (const OUString &rStrmName) const |
Tries to open a new stream in the root storage for reading or writing. More... | |
ScDocument & | GetDoc () const |
Returns reference to the destination document (import) or source document (export). More... | |
SfxObjectShell * | GetDocShell () const |
Returns the object shell of the Calc document. More... | |
ScModelObj * | GetDocModelObj () const |
Returns the object model of the Calc document. More... | |
OutputDevice * | GetPrinter () const |
Returns pointer to the printer of the Calc document. More... | |
ScStyleSheetPool & | GetStyleSheetPool () const |
Returns the style sheet pool of the Calc document. More... | |
ScRangeName & | GetNamedRanges () const |
Returns the defined names container of the Calc document. More... | |
SdrPage * | GetSdrPage (SCTAB nScTab) const |
Returns the drawing layer page of the passed sheet, if present. More... | |
SvNumberFormatter & | GetFormatter () const |
Returns the number formatter of the Calc document. More... | |
DateTime | GetNullDate () const |
Returns the null date of the current number formatter. More... | |
sal_uInt16 | GetBaseYear () const |
Returns the base year depending on the current null date (1900 or 1904). More... | |
double | GetDoubleFromDateTime (const DateTime &rDateTime) const |
Converts a date/time value to a floating-point value. More... | |
DateTime | GetDateTimeFromDouble (double fValue) const |
Converts a floating-point value to a date/time value. More... | |
ScEditEngineDefaulter & | GetEditEngine () const |
Returns the edit engine for import/export of rich strings etc. More... | |
ScHeaderEditEngine & | GetHFEditEngine () const |
Returns the edit engine for import/export of headers/footers. More... | |
EditEngine & | GetDrawEditEngine () const |
Returns the edit engine for import/export of drawing text boxes. More... | |
XclFontPropSetHelper & | GetFontPropSetHelper () const |
Returns the property set helper for fonts. More... | |
XclChPropSetHelper & | GetChartPropSetHelper () const |
Returns the property set helper for the chart filters. More... | |
ScExtDocOptions & | GetExtDocOptions () const |
Returns the extended document options. More... | |
XclTracer & | GetTracer () const |
Returns the filter tracer. More... | |
const ScAddress & | GetScMaxPos () const |
Returns the highest possible cell address in a Calc document. More... | |
const ScAddress & | GetXclMaxPos () const |
Returns the highest possible cell address in an Excel document (using current BIFF version). More... | |
const ScAddress & | GetMaxPos () const |
Returns the highest possible cell address valid in Calc and Excel (using current BIFF version). More... | |
void | SetDocLanguage (LanguageType eLang) |
Sets the document language. More... | |
void | SetUILanguage (LanguageType eLang) |
Sets the UI language, i.e. More... | |
void | SetTextEncoding (rtl_TextEncoding eTextEnc) |
Sets the text encoding to import/export byte strings. More... | |
void | SetCharWidth (const XclFontData &rFontData) |
Sets the width of the '0' - '9' digit character as well as the ' ' space char (using the default font) for the current printer (twips). More... | |
void | SetCurrScTab (SCTAB nScTab) |
Sets the current Calc sheet index. More... | |
void | IncCurrScTab () |
Increases the current Calc sheet index by 1. More... | |
Static Public Member Functions | |
static OUString | GetDefaultPassword () |
Returns the default password used for stream encryption. More... | |
Private Attributes | |
XclRootData & | mrData |
Access to global data for a filter object (imported or exported document) from other classes.
Definition at line 127 of file xlroot.hxx.
|
explicit |
Definition at line 167 of file xlroot.cxx.
References GetDocUrl(), XclDebugObjCounter::mnObjCnt, mrData, mrData, and XclRootData::mxTracer.
XclRoot::XclRoot | ( | const XclRoot & | rRoot | ) |
Definition at line 178 of file xlroot.cxx.
References XclDebugObjCounter::mnObjCnt, mrData, and mrData.
|
virtual |
Definition at line 186 of file xlroot.cxx.
References XclDebugObjCounter::mnObjCnt, and mrData.
|
inline |
Returns the base path of the imported/exported file.
Definition at line 174 of file xlroot.hxx.
References XclRootData::maBasePath, and mrData.
Referenced by XclExpHyperlink::BuildFileName(), XclImpUrlHelper::DecodeUrl(), and XclExpUrlHelper::EncodeUrl().
sal_uInt16 XclRoot::GetBaseYear | ( | ) | const |
Returns the base year depending on the current null date (1900 or 1904).
Definition at line 332 of file xlroot.cxx.
References GetNullDate().
|
inline |
Returns the current BIFF version of the importer/exporter.
Definition at line 141 of file xlroot.hxx.
References XclRootData::meBiff, and mrData.
Referenced by XclExpStringHelper::AppendChar(), XclExpMergedcells::AppendRange(), XclExpStringHelper::AppendString(), ImportExcel::Array25(), ImportExcel::Array34(), ImportExcel::Bof5(), ImportExcel::Boundsheet(), XclExpChType::Convert(), XclExpChText::ConvertDataLabel(), XclExpChDataFormat::ConvertDataSeries(), XclExpChFrameBase::ConvertFrameBase(), XclImpColRowSettings::ConvertHiddenFlags(), XclExpChText::ConvertTrendLineEquation(), XclExpNameManagerImpl::CreateBuiltInNames(), XclExpStringHelper::CreateString(), XclImpXFBuffer::CreateUserStyles(), ImportExcel::DocPassword(), ImportExcel::DocProtect(), XclExpUrlHelper::EncodeUrl(), ImportExcel::EndSheet(), ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeaderBinary(), ExcTable::FillAsTableBinary(), ImportExcel::Formula25(), ExcelToSc::GetAbsRefs(), XclImpChChart::GetDefaultText(), XclExpXF::Init(), XclExpLabelCell::Init(), XclExpXF::InitDefault(), XclExpFontBuffer::InitDefaultFonts(), XclExpTablesManager::Initialize(), XclExpRoot::InitializeGlobals(), XclExpRoot::InitializeTable(), XclImpRoot::InitializeTable(), XclExpDval::InsertCellRange(), XclImpName::InsertName(), XclImpChChart::IsManualPlotArea(), ImportExcel::NewTable(), XclExpHyperlinkHelper::ProcessUrlField(), ImportExcel::Read(), ImportExcel8::Read(), XclImpDrawing::ReadBmp(), XclImpPageSettings::ReadCenter(), XclImpFont::ReadCFFontBlock(), XclImpChAreaFormat::ReadChAreaFormat(), XclImpChart::ReadChartSubStream(), XclImpChText::ReadChFrLabelProps(), XclImpChLineFormat::ReadChLineFormat(), XclImpChMarkerFormat::ReadChMarkerFormat(), XclImpChTick::ReadChTick(), XclImpChType::ReadChType(), XclImpRoot::ReadCodeName(), ImportExcel::ReadDimensions(), ExcDocument::ReadDoc(), XclImpValidationManager::ReadDV(), XclImpValidationManager::ReadDval(), XclImpHyperlink::ReadEmbeddedData(), ExcelToSc::ReadExtensionArray(), ExcelToSc::ReadExtensionMemArea(), XclImpFont::ReadFont(), XclImpNumFmtBuffer::ReadFormat(), XclImpPageSettings::ReadHeaderFooter(), XclImpChText::ReadHeaderRecord(), XclImpChSeries::ReadHeaderRecord(), ImportExcel::ReadLabel(), XclImpLabelranges::ReadLabelranges(), XclImpDrawing::ReadMsoDrawing(), XclImpObjectManager::ReadMsoDrawingGroup(), XclImpSheetDrawing::ReadNote(), XclImpDrawing::ReadObj(), XclImpPageSettings::ReadPageBreaks(), XclImpPictureObj::ReadPictFmla(), XclImpWebQueryBuffer::ReadQsi(), XclImpPageSettings::ReadSetup(), XclImpStyle::ReadStyle(), XclImpChText::ReadSubRecord(), XclImpTabViewSettings::ReadTabBgColor(), XclImpSheetDrawing::ReadTabChart(), XclImpDocViewSettings::ReadWindow1(), XclImpTabViewSettings::ReadWindow2(), XclImpXF::ReadXF(), ImportExcel::Row25(), ImportExcel::Row34(), XclExpChSourceLink::Save(), XclExpChLabelRange::Save(), XclExpMergedcells::Save(), XclExpPageSettings::Save(), XclExpExtCF::SaveXml(), XclExpChChart::SetManualPlotArea(), ImportExcel::SheetPassword(), ImportExcel::SheetProtect(), ImportExcel::WinProtection(), ExportBiff5::Write(), XclExpChText::WriteBody(), XclExpChSeries::WriteBody(), XclExpChType::WriteBody(), XclExpChTick::WriteBody(), XclExpFont::WriteBody(), XclExpXF::WriteBody(), XclExpWindow2::WriteBody(), XclExpNumFmtBuffer::WriteFormatRecord(), XclDefaultPalette::XclDefaultPalette(), XclExpCFImpl::XclExpCFImpl(), XclExpChEscherFormat::XclExpChEscherFormat(), XclExpChSeries::XclExpChSeries(), XclExpDimensions::XclExpDimensions(), XclExpDxfs::XclExpDxfs(), XclExpFileSharing::XclExpFileSharing(), XclExpFont::XclExpFont(), XclExpFontBuffer::XclExpFontBuffer(), XclExpLabelCell::XclExpLabelCell(), XclExpLinkManager::XclExpLinkManager(), XclExpNote::XclExpNote(), XclExpNumFmtBuffer::XclExpNumFmtBuffer(), XclExpStream::XclExpStream(), XclExpStringRec::XclExpStringRec(), XclExpTabViewSettings::XclExpTabViewSettings(), XclFunctionProvider::XclFunctionProvider(), XclImpFontBuffer::XclImpFontBuffer(), XclImpName::XclImpName(), XclImpRoot::XclImpRoot(), and XclNumFmtBuffer::XclNumFmtBuffer().
XclChPropSetHelper & XclRoot::GetChartPropSetHelper | ( | ) | const |
Returns the property set helper for the chart filters.
Definition at line 424 of file xlroot.cxx.
References mrData, and XclRootData::mxChPropSetHlp.
Referenced by XclImpChRoot::ConvertAreaFormat(), XclExpChRoot::ConvertAreaFormat(), XclImpChRoot::ConvertEscherFormat(), XclExpChRoot::ConvertEscherFormat(), XclImpChRoot::ConvertLineFormat(), and XclExpChRoot::ConvertLineFormat().
|
inline |
Returns the width of the '0' character (default font) for the current printer (twips).
Definition at line 157 of file xlroot.hxx.
References XclRootData::mnCharWidth, and mrData.
Referenced by ImportExcel::Colinfo(), ImportExcel::Colwidth(), ImportExcel::DefColWidth(), XclExpColinfo::SaveXml(), ImportExcel::Standardwidth(), and XclExpColinfo::XclExpColinfo().
|
inline |
Returns the current Calc sheet index.
Definition at line 162 of file xlroot.hxx.
References XclRootData::mnScTab, and mrData.
Referenced by XclExpProgressBar::ActivateCreateRowsSegment(), xcl::exp::SparklineExt::addSparklineGroup(), ImportExcel::Array25(), ImportExcel::Array34(), ImportExcel8::AutoFilter(), ImportExcel8::AutoFilterInfo(), ImportExcel::Cellmerging(), XclEscherEx::ConvertTbxMacro(), XclExpFormulaCompiler::CreateFormula(), XclImpXFBuffer::CreateUserStyles(), ExcelToSc::ExcRelToScRel(), ImportExcel8::Feat(), ImportExcel8::FeatHdr(), ImportExcel8::FilterMode(), XclImpPageSettings::Finalize(), XclImpXFRangeBuffer::Finalize(), XclImpTabViewSettings::Finalize(), XclImpChartObj::FinalizeTabChart(), XclImpRoot::FinalizeTable(), ImportExcel::Formula(), ExcelToSc::GetAbsRefs(), ExcelToSc8::GetAbsRefs(), XclImpRoot::GetCurrSheetDrawing(), XclExpRowBuffer::GetOrCreateRow(), XclImpHyperlink::InsertUrl(), XclExpFmlaCompImpl::IsRef2D(), ImportExcel8::Labelsst(), ImportExcel::Mulblank(), ImportExcel::Mulrk(), ImportExcel::NewTable(), ImportExcel::Olesize(), XclExpFmlaCompImpl::ProcessDefinedName(), ImportExcel::Read(), ImportExcel8::Read(), ImportExcel::ReadBlank(), ImportExcel::ReadBoolErr(), XclImpCondFormat::ReadCF(), XclImpRoot::ReadCodeName(), XclImpCondFormat::ReadCondfmt(), ImportExcel::ReadDimensions(), XclImpValidationManager::ReadDV(), ImportExcel::ReadInteger(), ImportExcel::ReadLabel(), XclImpLabelranges::ReadLabelranges(), ImportExcel::ReadNumber(), XclImpDrawObjBase::ReadObj3(), XclImpDrawObjBase::ReadObj4(), XclImpDrawObjBase::ReadObj5(), XclImpDrawObjBase::ReadObj8(), XclImpWebQueryBuffer::ReadQsi(), ImportExcel::ReadRk(), XclImpPivotTable::ReadSxview(), ImportExcel::Rstring(), xcl::exp::SparklineExt::SaveXml(), ImportExcel::SheetPassword(), ImportExcel::SheetProtect(), ImportExcel::Shrfmla(), xcl::exp::SparklineBuffer::SparklineBuffer(), ImportExcel::TableOp(), XclExpCellTable::XclExpCellTable(), XclExpColinfo::XclExpColinfo(), XclExpCondFormatBuffer::XclExpCondFormatBuffer(), XclExpDffNoteAnchor::XclExpDffNoteAnchor(), XclExpFormulaCell::XclExpFormulaCell(), XclExpGuts::XclExpGuts(), XclExpLabelranges::XclExpLabelranges(), XclExpOutlineBuffer::XclExpOutlineBuffer(), XclExpPageSettings::XclExpPageSettings(), XclExpRow::XclExpRow(), and XclExpWebQueryBuffer::XclExpWebQueryBuffer().
DateTime XclRoot::GetDateTimeFromDouble | ( | double | fValue | ) | const |
Converts a floating-point value to a date/time value.
Definition at line 352 of file xlroot.cxx.
References Date::AddDays(), GetNullDate(), theExcelCutOverDate, and theOurCompatNullDate.
Referenced by XclExpPCField::InitStandardField(), and XclExpPCField::SetDateGroupLimit().
|
inline |
Returns the default script type, e.g.
for blank cells.
Definition at line 155 of file xlroot.hxx.
References XclRootData::mnDefApiScript, and mrData.
Referenced by XclExpChFontBase::ConvertFontBase(), XclExpFontHelper::GetFirstUsedScript(), XclExpStringHelper::GetLeadingScriptType(), XclExpXFBuffer::InsertDefaultRecords(), XclExpBlankCell::XclExpBlankCell(), XclExpColinfo::XclExpColinfo(), and XclExpXF::XclExpXF().
|
inlinestatic |
Returns the default password used for stream encryption.
Definition at line 179 of file xlroot.hxx.
References XclRootData::gaDefPassword.
Referenced by XclExpRoot::GenerateDefaultEncryptionData().
ScDocument & XclRoot::GetDoc | ( | ) | const |
Returns reference to the destination document (import) or source document (export).
Definition at line 285 of file xlroot.cxx.
References mrData, and XclRootData::mrDoc.
Referenced by xcl::exp::SparklineExt::addSparklineGroup(), ScRangeListTabs::Append(), XclExpHFConverter::AppendPortion(), XclImpAutoFilterData::Apply(), XclImpChangeTrack::Apply(), XclImpCondFormat::Apply(), XclImpValidationManager::Apply(), XclImpWebQueryBuffer::Apply(), XclImpDocProtectBuffer::Apply(), XclImpSheetProtectBuffer::Apply(), ExcScenario::Apply(), XclImpPivotTable::ApplyMergeFlags(), XclImpXF::ApplyPattern(), XclImpXF::ApplyPatternToAttrVector(), ImportExcel::Array25(), ImportExcel::Array34(), ImportExcel8::AutoFilter(), XclExpTabInfo::CalcSortedIndexes(), XclImpOutlineDataBuffer::Convert(), XclImpPivotTable::Convert(), XclImpChChart::Convert(), XclImpColRowSettings::Convert(), ExcelToSc8::Convert(), XclExpChSourceLink::ConvertDataSequence(), ExcelToSc8::ConvertExternName(), XclImpColRowSettings::ConvertHiddenFlags(), XclImpObjectManager::ConvertObjects(), XclImpSheetDrawing::ConvertObjects(), XclImpChartDrawing::ConvertObjects(), XclExpFmlaCompImpl::ConvertRefData(), XclExpChSourceLink::ConvertStringSequence(), XclExpNameManagerImpl::CreateBuiltInNames(), XclExpStringHelper::CreateCellString(), XclImpChSourceLink::CreateDataSequence(), XclExpFormulaCompiler::CreateFormula(), XclExpNameManagerImpl::CreateName(), XclExpTableopBuffer::CreateOrExtendTableop(), XclImpXF::CreatePattern(), XclExpPivotTableManager::CreatePivotTables(), XclExpChangeTrack::CreateTempChangeTrack(), XclExpNameManagerImpl::CreateUserNames(), XclImpXFBuffer::CreateUserStyles(), XclImpGroupObj::DoCreateSdrObj(), XclImpLineObj::DoCreateSdrObj(), XclImpRectObj::DoCreateSdrObj(), XclImpOvalObj::DoCreateSdrObj(), XclImpArcObj::DoCreateSdrObj(), XclImpPolygonObj::DoCreateSdrObj(), XclImpTextObj::DoCreateSdrObj(), XclImpChartObj::DoCreateSdrObj(), XclImpPictureObj::DoCreateSdrObj(), XclImpChangeTrack::DoDeleteRange(), XclImpNoteObj::DoPreProcessSdrObj(), ExcAutoFilterRecs::ExcAutoFilterRecs(), ExcEScenario::ExcEScenario(), ExcEScenarioManager::ExcEScenarioManager(), ExcelToSc8::ExcRelToScRel8(), ExcTable::FillAsHeaderBinary(), ExcTable::FillAsHeaderXml(), ExcTable::FillAsTableBinary(), ExcTable::FillAsTableXml(), XclImpChSourceLink::FillSourceLink(), XclImpPageSettings::Finalize(), XclImpDocViewSettings::Finalize(), XclImpTabViewSettings::Finalize(), XclImpDffConverter::FinalizeObj(), XclExpArrayBuffer::FindArray(), XclImpChSourceLink::GetCellCount(), XclExpChTrCellContent::GetCellData(), GetDocShell(), GetDrawEditEngine(), GetEditEngine(), ExcelToSc8::GetExternalFileIdFromXti(), GetFormatter(), GetHFEditEngine(), XclExpStringHelper::GetLeadingScriptType(), GetNamedRanges(), XclExpRowBuffer::GetOrCreateRow(), GetPrinter(), XclObjAnchor::GetRect(), XclExpFmlaCompImpl::GetScTab(), ExtSheetBuffer::GetScTabIndex(), GetSdrPage(), XclImpSupbook::GetSharedStringPool(), GetStyleSheetPool(), ExcelToSc8::HandleOleLink(), XclImpColRowSettings::HideCol(), XclImpColRowSettings::HideColRange(), XclExpFmlaCompImpl::Init(), XclExpTablesManager::Initialize(), XclExpProgressBar::Initialize(), XclExpXmlPivotTableManager::Initialize(), XclExpRoot::InitializeGlobals(), XclImpRoot::InitializeTable(), XclExpPCField::InitStandardField(), XclExpNameManagerImpl::InsertBuiltInName(), XclExpXFBuffer::InsertCellXF(), XclImpName::InsertName(), XclExpNameManagerImpl::InsertName(), XclExpPCField::InsertNumDateGroupItems(), XclImpAutoFilterData::InsertQueryParam(), XclExpXFBuffer::InsertUserStyles(), XclExpRoot::IsDocumentEncrypted(), lcl_AddCalcPr(), lcl_AddWorkbookProtection(), XclImpSupbook::LoadCachedValues(), ImportExcel::PostDocLoad(), XclExpFmlaCompImpl::ProcessExternalCellRef(), XclExpFmlaCompImpl::ProcessExternalName(), XclExpFmlaCompImpl::ProcessExternalRangeRef(), ImportExcel8::Read(), XclImpChangeTrack::Read3DTabRefInfo(), XclImpChangeTrack::ReadCell(), XclImpCondFormat::ReadCF(), XclImpRoot::ReadCodeName(), ExcDocument::ReadDoc(), XclImpValidationManager::ReadDV(), XclImpHyperlink::ReadEmbeddedData(), ExcelToSc::ReadExtensionArray(), XclImpLabelranges::ReadLabelranges(), XclImpSheetDrawing::ReadNote3(), XclImpPivotCache::ReadPivotCacheStream(), ImportExcel::ReadUsesElfs(), ImportExcel::Row25(), ImportExcel::Row34(), XclExpTbxControlObj::SaveControlPropertiesXml(), XclExpXmlPivotCaches::SavePivotCacheXml(), XclExpTbxControlObj::SaveVml(), xcl::exp::SparklineExt::SaveXml(), XclExpChTrCellContent::SaveXml(), XclExpChTrInsert::SaveXml(), XclExpChTrMoveRange::SaveXml(), XclExpExtCF::SaveXml(), XclExpDimensions::SaveXml(), XclImpXFRangeBuffer::SetBorderLine(), XclImpAutoFilterData::SetCellAttribs(), XclImpXFRangeColumn::SetDefaultXF(), XclImpColRowSettings::SetDefaultXF(), XclImpColRowSettings::SetHeight(), XclImpColRowSettings::SetManualRowHeight(), XclObjAnchor::SetRect(), XclImpXFRangeBuffer::SetRowDefXF(), XclImpColRowSettings::SetRowSettings(), XclImpColRowSettings::SetWidthRange(), xcl::exp::SparklineBuffer::SparklineBuffer(), XclEscherEx::StartShape(), ImportExcel::TableOp(), XclExpNote::WriteXml(), ExcDocument::WriteXml(), XclExpCellTable::XclExpCellTable(), XclExpCFImpl::XclExpCFImpl(), XclExpColinfo::XclExpColinfo(), XclExpCondfmt::XclExpCondfmt(), XclExpCondFormatBuffer::XclExpCondFormatBuffer(), XclExpDV::XclExpDV(), XclExpDxfs::XclExpDxfs(), XclExpGuts::XclExpGuts(), XclExpHyperlink::XclExpHyperlink(), XclExpLabelranges::XclExpLabelranges(), XclExpNote::XclExpNote(), XclExpOutlineBuffer::XclExpOutlineBuffer(), XclExpPageSettings::XclExpPageSettings(), XclExpPivotCache::XclExpPivotCache(), XclExpRow::XclExpRow(), XclExpSheetProtectOptions::XclExpSheetProtectOptions(), XclExpTabInfo::XclExpTabInfo(), XclExpTabViewSettings::XclExpTabViewSettings(), XclExpWindow1::XclExpWindow1(), XclImpChangeTrack::XclImpChangeTrack(), XclImpChEscherFormat::XclImpChEscherFormat(), and ImportExcel::~ImportExcel().
|
inline |
Returns the document language.
Definition at line 151 of file xlroot.hxx.
References XclRootData::meDocLang, and mrData.
Referenced by XclExpCountry::XclExpCountry().
ScModelObj * XclRoot::GetDocModelObj | ( | ) | const |
Returns the object model of the Calc document.
Definition at line 295 of file xlroot.cxx.
References GetDocShell(), and SfxObjectShell::GetModel().
Referenced by ImportExcel::AdjustRowHeight(), and ImportExcel::PostDocLoad().
SfxObjectShell * XclRoot::GetDocShell | ( | ) | const |
Returns the object shell of the Calc document.
May be 0 (i.e. import from clipboard).
Definition at line 290 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetDocumentShell().
Referenced by XclExpHFConverter::AppendPortion(), XclImpControlHelper::ApplySheetLinkProps(), ExcelToSc8::ConvertExternName(), XclEscherEx::ConvertTbxMacro(), XclEscherEx::CreateOCXCtrlObj(), XclImpDffConverter::CreateSdrObject(), XclImpChartObj::DoCreateSdrObj(), XclImpPictureObj::DoPreProcessSdrObj(), XclImpPalette::ExportPalette(), ExcTable::FillAsHeaderBinary(), XclImpTbxObjBase::FillMacroDescriptor(), GetDocModelObj(), ExcelToSc8::GetExternalFileIdFromXti(), ExtSheetBuffer::GetScTabIndex(), ExcelToSc8::HandleOleLink(), XclImpDffConverter::InitControlForm(), XclImpChRoot::InitConversion(), XclImpDffConverter::InsertControl(), XclImpSupbook::LoadCachedValues(), XclImpDrawObjBase::NotifyMacroEventRead(), ImportExcel::PostDocLoad(), ImportExcel8::PostDocLoad(), XclImpDrawObjBase::PreProcessSdrObject(), ImportExcel::Read(), ImportExcel8::Read(), ImportExcel8::ReadBasic(), XclImpHyperlink::ReadEmbeddedData(), ImportExcel::ReadFileSharing(), XclImpFont::SetFontData(), XclImpDffConverter::StartProgressBar(), ExportBiff5::Write(), ExcDocument::WriteXml(), and XclExpWebQueryBuffer::XclExpWebQueryBuffer().
|
inline |
Returns the document URL of the imported/exported file.
Definition at line 172 of file xlroot.hxx.
References XclRootData::maDocUrl, and mrData.
Referenced by ImportExcel::NewTable(), and XclRoot().
double XclRoot::GetDoubleFromDateTime | ( | const DateTime & | rDateTime | ) | const |
Converts a date/time value to a floating-point value.
Definition at line 341 of file xlroot.cxx.
References GetNullDate(), DateTime::Sub(), theExcelCutOverDate, and theOurCompatNullDate.
Referenced by XclImpPTItem::GetItemName(), XclImpPCField::GetScDateGroupInfo(), and XclImpPCItem::WriteToSource().
EditEngine & XclRoot::GetDrawEditEngine | ( | ) | const |
Returns the edit engine for import/export of drawing text boxes.
Definition at line 404 of file xlroot.cxx.
References EditEngine::EnableUndo(), EditEngine::GetControlWord(), GetDoc(), GetStyleSheetPool(), mrData, XclRootData::mxDrawEditEng, EditEngine::SetControlWord(), EditEngine::SetRefMapMode(), EditEngine::SetStyleSheetPool(), and EditEngine::SetUpdateLayout().
Referenced by XclExpStringHelper::CreateString().
ScEditEngineDefaulter & XclRoot::GetEditEngine | ( | ) | const |
Returns the edit engine for import/export of rich strings etc.
Definition at line 365 of file xlroot.cxx.
References EditEngine::EnableUndo(), EditEngine::GetControlWord(), GetDoc(), mrData, XclRootData::mxEditEngine, EditEngine::SetControlWord(), EditEngine::SetEditTextObjectPool(), EditEngine::SetRefMapMode(), and EditEngine::SetUpdateLayout().
Referenced by XclExpStringHelper::CreateCellString().
ScExtDocOptions & XclRoot::GetExtDocOptions | ( | ) | const |
Returns the extended document options.
Definition at line 429 of file xlroot.cxx.
References mrData, and XclRootData::mxExtDocOpt.
Referenced by ExcScenario::Apply(), XclExpXmlStream::exportDocument(), ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeaderBinary(), ExcTable::FillAsHeaderXml(), ExcTable::FillAsTableBinary(), XclImpDocViewSettings::Finalize(), XclImpTabViewSettings::Finalize(), XclImpObjectManager::GetOleNameOverride(), ExtSheetBuffer::GetScTabIndex(), XclImpName::InsertName(), XclImpSupbook::LoadCachedValues(), ImportExcel::PostDocLoad(), XclImpRoot::ReadCodeName(), ImportExcel::ReadDimensions(), ExcDocument::ReadDoc(), XclExpTabInfo::XclExpTabInfo(), XclExpTabViewSettings::XclExpTabViewSettings(), and XclExpWindow1::XclExpWindow1().
XclFontPropSetHelper & XclRoot::GetFontPropSetHelper | ( | ) | const |
Returns the property set helper for fonts.
Definition at line 419 of file xlroot.cxx.
References mrData, and XclRootData::mxFontPropSetHlp.
Referenced by XclExpChRoot::ConvertFont(), XclImpFont::WriteFontProperties(), and XclExpTbxControlObj::XclExpTbxControlObj().
SvNumberFormatter & XclRoot::GetFormatter | ( | ) | const |
Returns the number formatter of the Calc document.
Definition at line 322 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetFormatTable().
Referenced by XclExpAutofilter::AddEntry(), XclImpNumFmtBuffer::CreateScFormats(), XclImpNumFmtBuffer::FillScFmtToItemSet(), GetNullDate(), XclExpXF::Init(), XclExpPCField::InitStandardField(), XclImpChangeTrack::ReadCell(), XclExpXmlPivotCaches::SavePivotCacheXml(), XclExpCellTable::XclExpCellTable(), and XclExpFormulaCell::XclExpFormulaCell().
ScHeaderEditEngine & XclRoot::GetHFEditEngine | ( | ) | const |
Returns the edit engine for import/export of headers/footers.
Definition at line 380 of file xlroot.cxx.
References ATTR_CJK_FONT_HEIGHT(), ATTR_CTL_FONT_HEIGHT(), ATTR_FONT_HEIGHT(), SfxPoolItem::CloneSetWhich(), EditEngine::CreatePool(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EditEngine::EnableUndo(), ScPatternAttr::FillToEditItemSet(), get(), SfxItemSet::Get(), EditEngine::GetControlWord(), GetDoc(), EditEngine::GetEmptyItemSet(), mrData, XclRootData::mxHFEditEngine, EditEngine::SetControlWord(), ScEditEngineDefaulter::SetDefaults(), EditEngine::SetRefMapMode(), and EditEngine::SetUpdateLayout().
sal_Int32 XclRoot::GetHmmFromPixelX | ( | double | fPixelX | ) | const |
Calculates the width of the passed number of pixels in 1/100 mm.
Definition at line 239 of file xlroot.cxx.
References XclRootData::mfScreenPixelX, and mrData.
Referenced by XclChRootData::InitConversion().
sal_Int32 XclRoot::GetHmmFromPixelY | ( | double | fPixelY | ) | const |
Calculates the height of the passed number of pixels in 1/100 mm.
Definition at line 244 of file xlroot.cxx.
References XclRootData::mfScreenPixelY, and mrData.
Referenced by XclChRootData::InitConversion().
|
inline |
Returns the highest possible cell address valid in Calc and Excel (using current BIFF version).
Definition at line 248 of file xlroot.hxx.
References XclRootData::maMaxPos, and mrData.
Referenced by XclExpRowBuffer::CreateRows(), XclExpRow::Finalize(), XclImpDocViewSettings::GetDisplScTab(), XclExpColinfoBuffer::Initialize(), and XclExpCellTable::XclExpCellTable().
|
inline |
Returns the medium to import from.
Definition at line 170 of file xlroot.hxx.
References mrData, and XclRootData::mrMedium.
Referenced by XclImpDffConverter::CreateSdrObject(), XclImpChartObj::DoCreateSdrObj(), XclExpRoot::GetEncryptionData(), ImportExcel8::ReadBasic(), ImportExcel::ReadFileSharing(), and XclEscherExGlobal::XclEscherExGlobal().
ScRangeName & XclRoot::GetNamedRanges | ( | ) | const |
Returns the defined names container of the Calc document.
Definition at line 311 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetRangeName().
Referenced by XclExpNameManagerImpl::CreateUserNames(), and XclExpWebQueryBuffer::XclExpWebQueryBuffer().
DateTime XclRoot::GetNullDate | ( | ) | const |
Returns the null date of the current number formatter.
Definition at line 327 of file xlroot.cxx.
References GetFormatter(), and SvNumberFormatter::GetNullDate().
Referenced by GetBaseYear(), GetDateTimeFromDouble(), and GetDoubleFromDateTime().
|
inline |
Returns old RootData struct.
Deprecated.
Definition at line 138 of file xlroot.hxx.
References mrData, and XclRootData::mxRD.
Referenced by ExcelToSc::Convert(), ExportBiff5::ExportBiff5(), XclExpXmlStream::exportDocument(), ExcTable::FillAsHeaderBinary(), ExcTable::FillAsHeaderXml(), ExcTable::FillAsTableBinary(), XclImpXFRangeBuffer::Finalize(), XclImpRoot::FinalizeTable(), XclImpRoot::GetFilterManager(), XclImpRoot::GetOldFmlaConverter(), ExcelToSc::GetSharedFormula(), ImportExcel::ImportExcel(), XclImpPictureObj::ReadPictFmla(), XclExpChangeTrack::XclExpChangeTrack(), XclImpName::XclImpName(), and XclImpRoot::XclImpRoot().
|
inline |
Returns the current output format of the importer/exporter.
Definition at line 143 of file xlroot.hxx.
References XclRootData::meOutput, and mrData.
Referenced by XclExpAutofilter::AddEntry(), XclExpFmlaCompImpl::AppendDefaultParam(), XclExpNameManagerImpl::CreateName(), ExcTable::FillAsHeaderBinary(), XclExpFmlaCompImpl::FinishFunction(), XclExpFmlaCompImpl::Init(), XclExpFontBuffer::InitDefaultFonts(), XclExpRoot::InitializeGlobals(), XclExpFmlaCompImpl::PrepareFunction(), XclExpObjectManager::ProcessDrawing(), ExcDocument::ReadDoc(), XclMacroHelper::SetMacroLink(), XclExpChangeTrack::XclExpChangeTrack(), XclExpDV::XclExpDV(), and XclExpHyperlink::XclExpHyperlink().
OutputDevice * XclRoot::GetPrinter | ( | ) | const |
Returns pointer to the printer of the Calc document.
Definition at line 301 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetRefDevice().
Referenced by XclImpFont::GuessScriptType(), and SetCharWidth().
|
inline |
Returns the OLE2 root storage of the imported/exported file.
Definition at line 186 of file xlroot.hxx.
References mrData, and XclRootData::mxRootStrg.
Referenced by XclImpDffConverter::CreateSdrObject(), HasVbaStorage(), OpenStorage(), OpenStream(), ImportExcel8::PostDocLoad(), ImportExcel8::ReadBasic(), and ExportBiff5::Write().
|
inline |
Returns the highest possible cell address in a Calc document.
Definition at line 244 of file xlroot.hxx.
References XclRootData::maScMaxPos, and mrData.
Referenced by XclImpTabViewSettings::Finalize(), ImportExcel8::Read(), and ImportExcel::ReadDimensions().
Returns the drawing layer page of the passed sheet, if present.
Definition at line 316 of file xlroot.cxx.
References GetDoc(), ScDocument::GetDrawLayer(), and SdrModel::GetPage().
Referenced by XclImpSheetDrawing::ConvertObjects(), XclImpChartDrawing::ConvertObjects(), XclEscherEx::ConvertTbxMacro(), ExcTable::FillAsTableBinary(), and ExcTable::FillAsTableXml().
|
inline |
Definition at line 158 of file xlroot.hxx.
References XclRootData::mnSpaceWidth, and mrData.
Referenced by XclExpCellAlign::FillFromItemSet().
ScStyleSheetPool & XclRoot::GetStyleSheetPool | ( | ) | const |
Returns the style sheet pool of the Calc document.
Definition at line 306 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetStyleSheetPool().
Referenced by XclImpStyle::CreateStyleSheet(), XclImpXFBuffer::CreateUserStyles(), XclImpPageSettings::Finalize(), GetDrawEditEngine(), XclExpXFBuffer::InsertDefaultRecords(), XclExpXFBuffer::InsertUserStyles(), ImportExcel::PostDocLoad(), XclImpCondFormat::ReadCF(), XclExpCFImpl::XclExpCFImpl(), and XclExpPageSettings::XclExpPageSettings().
|
inline |
Returns the system language, i.e.
for number formats.
Definition at line 149 of file xlroot.hxx.
References XclRootData::meSysLang, and mrData.
|
inline |
Returns the text encoding to import/export byte strings.
Definition at line 147 of file xlroot.hxx.
References XclRootData::meTextEnc, and mrData.
Referenced by XclExpStringHelper::AppendChar(), XclExpStringHelper::AppendString(), XclExpStringHelper::CreateString(), ExcBundlesheet::ExcBundlesheet(), XclImpFont::FillToItemSet(), XclImpFont::GetFontEncoding(), ImportExcel::ReadLabel(), XclImpStream::ReadRawByteString(), SetCharWidth(), XclExpFont::WriteBody(), XclExpNumFmtBuffer::WriteFormatRecord(), XclExpFileSharing::XclExpFileSharing(), XclExpHyperlink::XclExpHyperlink(), XclExpNote::XclExpNote(), and ImportExcel::~ImportExcel().
XclTracer & XclRoot::GetTracer | ( | ) | const |
Returns the filter tracer.
Definition at line 434 of file xlroot.cxx.
References mrData, and XclRootData::mxTracer.
Referenced by ExcelToSc::Convert(), ExcelToSc8::Convert(), XclImpXF::CreatePattern(), XclImpDrawObjBase::DoPreProcessSdrObj(), XclImpChType::Finalize(), ImportExcel::PostDocLoad(), ImportExcel::Read(), ImportExcel8::Read(), XclImpChart::ReadChartSubStream(), XclImpValidationManager::ReadDV(), XclImpChLegend::ReadHeaderRecord(), XclImpDrawObjBase::ReadObj3(), XclImpDrawObjBase::ReadObj4(), XclImpDrawObjBase::ReadObj5(), XclImpDrawObjBase::ReadObj8(), XclImpPivotCache::ReadSxvs(), and ImportExcel::TableOp().
|
inline |
Returns the UI language.
Definition at line 153 of file xlroot.hxx.
References XclRootData::meUILang, and mrData.
Referenced by XclExpFmlaCompImpl::AppendAddInCallToken().
|
inline |
Returns the current user name.
Definition at line 176 of file xlroot.hxx.
References XclRootData::maUserName, and mrData.
Referenced by ExcEScenario::ExcEScenario(), ExcDocument::WriteXml(), and XclExpFileSharing::XclExpFileSharing().
|
inline |
Returns the highest possible cell address in an Excel document (using current BIFF version).
Definition at line 246 of file xlroot.hxx.
References XclRootData::maXclMaxPos, and mrData.
Referenced by XclImpColRowSettings::ConvertHiddenFlags(), XclExpNameManagerImpl::CreateBuiltInNames(), XclExpPageSettings::Save(), XclExpPageSettings::SaveXml(), XclObjAnchor::SetRect(), XclExpChTrInsert::XclExpChTrInsert(), and XclExpTabViewSettings::XclExpTabViewSettings().
bool XclRoot::HasVbaStorage | ( | ) | const |
Returns true, if the document contains a VBA storage.
Definition at line 255 of file xlroot.cxx.
References EXC_STORAGE_VBA_PROJECT, GetRootStorage(), and tools::SvRef< typename T >::is().
Referenced by ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeaderBinary(), and ExcTable::FillAsTableBinary().
|
inline |
Increases the current Calc sheet index by 1.
Definition at line 263 of file xlroot.hxx.
References XclRootData::mnScTab, and mrData.
Referenced by ImportExcel::Eof(), ImportExcel::Read(), and ImportExcel8::Read().
|
inline |
Returns true, if currently a document is imported.
Definition at line 145 of file xlroot.hxx.
References XclRootData::mbExport, and mrData.
Referenced by XclFunctionProvider::XclFunctionProvider().
|
inline |
Returns the current Calc sheet index.
Definition at line 160 of file xlroot.hxx.
References XclRootData::mnScTab, mrData, and SCTAB_GLOBAL.
Referenced by XclImpRoot::GetCurrSheetDrawing(), and XclExpRoot::GetLocalLinkMgrRef().
tools::SvRef< SotStorage > XclRoot::OpenStorage | ( | const OUString & | rStrgName | ) | const |
Tries to open a storage as child of the root storage for reading or writing.
Definition at line 268 of file xlroot.cxx.
References GetRootStorage(), and OpenStorage().
tools::SvRef< SotStorage > XclRoot::OpenStorage | ( | tools::SvRef< SotStorage > const & | xStrg, |
const OUString & | rStrgName | ||
) | const |
Tries to open a storage as child of the specified storage for reading or writing.
Definition at line 261 of file xlroot.cxx.
References XclRootData::mbExport, mrData, ScfTools::OpenStorageRead(), and ScfTools::OpenStorageWrite().
Referenced by OpenStorage(), XclImpPivotCache::ReadPivotCacheStream(), and XclExpPivotCache::WriteCacheStream().
tools::SvRef< SotStorageStream > XclRoot::OpenStream | ( | const OUString & | rStrmName | ) | const |
Tries to open a new stream in the root storage for reading or writing.
Definition at line 280 of file xlroot.cxx.
References GetRootStorage(), and OpenStream().
tools::SvRef< SotStorageStream > XclRoot::OpenStream | ( | tools::SvRef< SotStorage > const & | xStrg, |
const OUString & | rStrmName | ||
) | const |
Tries to open a new stream in the specified storage for reading or writing.
Definition at line 273 of file xlroot.cxx.
References XclRootData::mbExport, mrData, ScfTools::OpenStorageStreamRead(), and ScfTools::OpenStorageStreamWrite().
Referenced by XclEscherEx::CreateOCXCtrlObj(), OpenStream(), XclImpPivotCache::ReadPivotCacheStream(), XclExpChangeTrack::Write(), XclExpPivotCache::WriteCacheStream(), XclExpChangeTrack::WriteUserNamesStream(), XclImpChangeTrack::XclImpChangeTrack(), and XclImpDffConverter::XclImpDffConverter().
Definition at line 193 of file xlroot.cxx.
References mrData.
uno::Sequence< beans::NamedValue > XclRoot::RequestEncryptionData | ( | ::comphelper::IDocPasswordVerifier & | rVerifier | ) | const |
Requests and verifies a password from the medium or the user.
Definition at line 249 of file xlroot.cxx.
References XclRootData::gaDefPassword, mrData, XclRootData::mrMedium, and ScfApiHelper::QueryEncryptionDataForMedium().
void XclRoot::SetCharWidth | ( | const XclFontData & | rFontData | ) |
Sets the width of the '0' - '9' digit character as well as the ' ' space char (using the default font) for the current printer (twips).
rFontData | The font used for the '0' character. |
Definition at line 207 of file xlroot.cxx.
References XclFontData::GetFontEncoding(), GetPrinter(), XclFontData::GetScFamily(), XclFontData::GetScWeight(), GetTextEncoding(), XclFontData::maName, XclRootData::mnCharWidth, XclFontData::mnHeight, XclRootData::mnSpaceWidth, mrData, SAL_WARN, vcl::Font::SetCharSet(), vcl::Font::SetFamily(), and vcl::Font::SetWeight().
Referenced by XclExpFontBuffer::Insert(), and XclImpFontBuffer::UpdateAppFont().
|
inline |
Sets the current Calc sheet index.
Definition at line 261 of file xlroot.hxx.
References XclRootData::mnScTab, and mrData.
Referenced by XclExpRoot::InitializeGlobals(), XclExpRoot::InitializeTable(), ExcTable::Write(), and ExcTable::WriteXml().
|
inline |
Sets the document language.
Definition at line 251 of file xlroot.hxx.
References XclRootData::meDocLang, and mrData.
Referenced by ImportExcel::Country().
void XclRoot::SetTextEncoding | ( | rtl_TextEncoding | eTextEnc | ) |
Sets the text encoding to import/export byte strings.
Definition at line 201 of file xlroot.cxx.
References XclRootData::meTextEnc, and mrData.
Referenced by ImportExcel::ReadLabel(), and XclImpRoot::SetCodePage().
|
inline |
Sets the UI language, i.e.
if it has been read from a file.
Definition at line 253 of file xlroot.hxx.
References XclRootData::meUILang, and mrData.
Referenced by ImportExcel::Country().
|
private |
Definition at line 266 of file xlroot.hxx.
Referenced by GetBasePath(), GetBiff(), GetChartPropSetHelper(), GetCharWidth(), GetCurrScTab(), GetDefApiScript(), GetDoc(), GetDocLanguage(), GetDocUrl(), GetDrawEditEngine(), GetEditEngine(), GetExtDocOptions(), GetFontPropSetHelper(), GetHFEditEngine(), GetHmmFromPixelX(), GetHmmFromPixelY(), GetMaxPos(), GetMedium(), GetOldRoot(), GetOutput(), GetRootStorage(), GetScMaxPos(), GetSpaceWidth(), GetSysLanguage(), GetTextEncoding(), GetTracer(), GetUILanguage(), GetUserName(), GetXclMaxPos(), IncCurrScTab(), IsImport(), IsInGlobals(), OpenStorage(), OpenStream(), operator=(), RequestEncryptionData(), SetCharWidth(), SetCurrScTab(), SetDocLanguage(), SetTextEncoding(), SetUILanguage(), XclRoot(), and ~XclRoot().