LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
XclRoot Class Reference

Access to global data for a filter object (imported or exported document) from other classes. More...

#include <xlroot.hxx>

Inheritance diagram for XclRoot:
[legend]
Collaboration diagram for XclRoot:
[legend]

Public Member Functions

 XclRoot (XclRootData &rRootData)
 
 XclRoot (const XclRoot &rRoot)
 
virtual ~XclRoot ()
 
XclRootoperator= (const XclRoot &rRoot)
 
RootDataGetOldRoot () 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...
 
SfxMediumGetMedium () 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< SotStorageOpenStorage (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< SotStorageOpenStorage (const OUString &rStrgName) const
 Tries to open a storage as child of the root storage for reading or writing. More...
 
tools::SvRef< SotStorageStreamOpenStream (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< SotStorageStreamOpenStream (const OUString &rStrmName) const
 Tries to open a new stream in the root storage for reading or writing. More...
 
ScDocumentGetDoc () const
 Returns reference to the destination document (import) or source document (export). More...
 
SfxObjectShellGetDocShell () const
 Returns the object shell of the Calc document. More...
 
ScModelObjGetDocModelObj () const
 Returns the object model of the Calc document. More...
 
OutputDeviceGetPrinter () const
 Returns pointer to the printer of the Calc document. More...
 
ScStyleSheetPoolGetStyleSheetPool () const
 Returns the style sheet pool of the Calc document. More...
 
ScRangeNameGetNamedRanges () const
 Returns the defined names container of the Calc document. More...
 
SdrPageGetSdrPage (SCTAB nScTab) const
 Returns the drawing layer page of the passed sheet, if present. More...
 
SvNumberFormatterGetFormatter () 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...
 
ScEditEngineDefaulterGetEditEngine () const
 Returns the edit engine for import/export of rich strings etc. More...
 
ScHeaderEditEngineGetHFEditEngine () const
 Returns the edit engine for import/export of headers/footers. More...
 
EditEngineGetDrawEditEngine () const
 Returns the edit engine for import/export of drawing text boxes. More...
 
XclFontPropSetHelperGetFontPropSetHelper () const
 Returns the property set helper for fonts. More...
 
XclChPropSetHelperGetChartPropSetHelper () const
 Returns the property set helper for the chart filters. More...
 
ScExtDocOptionsGetExtDocOptions () const
 Returns the extended document options. More...
 
XclTracerGetTracer () const
 Returns the filter tracer. More...
 
const ScAddressGetScMaxPos () const
 Returns the highest possible cell address in a Calc document. More...
 
const ScAddressGetXclMaxPos () const
 Returns the highest possible cell address in an Excel document (using current BIFF version). More...
 
const ScAddressGetMaxPos () 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

XclRootDatamrData
 

Detailed Description

Access to global data for a filter object (imported or exported document) from other classes.

Definition at line 127 of file xlroot.hxx.

Constructor & Destructor Documentation

◆ XclRoot() [1/2]

XclRoot::XclRoot ( XclRootData rRootData)
explicit

◆ XclRoot() [2/2]

XclRoot::XclRoot ( const XclRoot rRoot)

Definition at line 178 of file xlroot.cxx.

References XclDebugObjCounter::mnObjCnt, mrData, and mrData.

◆ ~XclRoot()

XclRoot::~XclRoot ( )
virtual

Definition at line 186 of file xlroot.cxx.

References XclDebugObjCounter::mnObjCnt, and mrData.

Member Function Documentation

◆ GetBasePath()

const OUString & XclRoot::GetBasePath ( ) const
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().

◆ GetBaseYear()

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().

◆ GetBiff()

XclBiff XclRoot::GetBiff ( ) const
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().

◆ GetChartPropSetHelper()

XclChPropSetHelper & XclRoot::GetChartPropSetHelper ( ) const

◆ GetCharWidth()

tools::Long XclRoot::GetCharWidth ( ) const
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().

◆ GetCurrScTab()

SCTAB XclRoot::GetCurrScTab ( ) const
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().

◆ GetDateTimeFromDouble()

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().

◆ GetDefApiScript()

sal_Int16 XclRoot::GetDefApiScript ( ) const
inline

◆ GetDefaultPassword()

static OUString XclRoot::GetDefaultPassword ( )
inlinestatic

Returns the default password used for stream encryption.

Definition at line 179 of file xlroot.hxx.

References XclRootData::gaDefPassword.

Referenced by XclExpRoot::GenerateDefaultEncryptionData().

◆ GetDoc()

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().

◆ GetDocLanguage()

LanguageType XclRoot::GetDocLanguage ( ) const
inline

Returns the document language.

Definition at line 151 of file xlroot.hxx.

References XclRootData::meDocLang, and mrData.

Referenced by XclExpCountry::XclExpCountry().

◆ GetDocModelObj()

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().

◆ GetDocShell()

SfxObjectShell * XclRoot::GetDocShell ( ) const

◆ GetDocUrl()

const OUString & XclRoot::GetDocUrl ( ) const
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().

◆ GetDoubleFromDateTime()

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().

◆ GetDrawEditEngine()

EditEngine & XclRoot::GetDrawEditEngine ( ) const

◆ GetEditEngine()

ScEditEngineDefaulter & XclRoot::GetEditEngine ( ) const

◆ GetExtDocOptions()

ScExtDocOptions & XclRoot::GetExtDocOptions ( ) const

◆ GetFontPropSetHelper()

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().

◆ GetFormatter()

SvNumberFormatter & XclRoot::GetFormatter ( ) const

◆ GetHFEditEngine()

ScHeaderEditEngine & XclRoot::GetHFEditEngine ( ) const

◆ GetHmmFromPixelX()

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().

◆ GetHmmFromPixelY()

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().

◆ GetMaxPos()

const ScAddress & XclRoot::GetMaxPos ( ) const
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().

◆ GetMedium()

SfxMedium & XclRoot::GetMedium ( ) const
inline

◆ GetNamedRanges()

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().

◆ GetNullDate()

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().

◆ GetOldRoot()

RootData & XclRoot::GetOldRoot ( ) const
inline

◆ GetOutput()

XclOutput XclRoot::GetOutput ( ) const
inline

◆ GetPrinter()

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().

◆ GetRootStorage()

const tools::SvRef< SotStorage > & XclRoot::GetRootStorage ( ) const
inline

Returns the OLE2 root storage of the imported/exported file.

Returns
Pointer to root storage or 0, if the file is a simple stream.

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().

◆ GetScMaxPos()

const ScAddress & XclRoot::GetScMaxPos ( ) const
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().

◆ GetSdrPage()

SdrPage * XclRoot::GetSdrPage ( SCTAB  nScTab) const

◆ GetSpaceWidth()

tools::Long XclRoot::GetSpaceWidth ( ) const
inline

Definition at line 158 of file xlroot.hxx.

References XclRootData::mnSpaceWidth, and mrData.

Referenced by XclExpCellAlign::FillFromItemSet().

◆ GetStyleSheetPool()

ScStyleSheetPool & XclRoot::GetStyleSheetPool ( ) const

◆ GetSysLanguage()

LanguageType XclRoot::GetSysLanguage ( ) const
inline

Returns the system language, i.e.

for number formats.

Definition at line 149 of file xlroot.hxx.

References XclRootData::meSysLang, and mrData.

◆ GetTextEncoding()

rtl_TextEncoding XclRoot::GetTextEncoding ( ) const
inline

◆ GetTracer()

XclTracer & XclRoot::GetTracer ( ) const

◆ GetUILanguage()

LanguageType XclRoot::GetUILanguage ( ) const
inline

Returns the UI language.

Definition at line 153 of file xlroot.hxx.

References XclRootData::meUILang, and mrData.

Referenced by XclExpFmlaCompImpl::AppendAddInCallToken().

◆ GetUserName()

const OUString & XclRoot::GetUserName ( ) const
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().

◆ GetXclMaxPos()

const ScAddress & XclRoot::GetXclMaxPos ( ) const
inline

◆ HasVbaStorage()

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().

◆ IncCurrScTab()

void XclRoot::IncCurrScTab ( )
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().

◆ IsImport()

bool XclRoot::IsImport ( ) const
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().

◆ IsInGlobals()

bool XclRoot::IsInGlobals ( ) const
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().

◆ OpenStorage() [1/2]

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().

◆ OpenStorage() [2/2]

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().

◆ OpenStream() [1/2]

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().

◆ OpenStream() [2/2]

tools::SvRef< SotStorageStream > XclRoot::OpenStream ( tools::SvRef< SotStorage > const &  xStrg,
const OUString &  rStrmName 
) const

◆ operator=()

XclRoot & XclRoot::operator= ( const XclRoot rRoot)

Definition at line 193 of file xlroot.cxx.

References mrData.

◆ RequestEncryptionData()

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().

◆ SetCharWidth()

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).

Parameters
rFontDataThe 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().

◆ SetCurrScTab()

void XclRoot::SetCurrScTab ( SCTAB  nScTab)
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().

◆ SetDocLanguage()

void XclRoot::SetDocLanguage ( LanguageType  eLang)
inline

Sets the document language.

Definition at line 251 of file xlroot.hxx.

References XclRootData::meDocLang, and mrData.

Referenced by ImportExcel::Country().

◆ SetTextEncoding()

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().

◆ SetUILanguage()

void XclRoot::SetUILanguage ( LanguageType  eLang)
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().

Member Data Documentation

◆ mrData

XclRootData& XclRoot::mrData
private

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