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...
 
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' character (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::XclRoot ( XclRootData rRootData)
explicit
XclRoot::XclRoot ( const XclRoot rRoot)

Definition at line 176 of file xlroot.cxx.

References XclDebugObjCounter::mnObjCnt, mrData, and mrData.

XclRoot::~XclRoot ( )
virtual

Definition at line 184 of file xlroot.cxx.

References XclDebugObjCounter::mnObjCnt, and mrData.

Member Function Documentation

const OUString& XclRoot::GetBasePath ( ) const
inline

Returns the base path of the imported/exported file.

Definition at line 173 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 323 of file xlroot.cxx.

References GetNullDate().

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(), XclExpLabelCell::Init(), XclExpXF::Init(), XclExpXF::InitDefault(), XclExpFontBuffer::InitDefaultFonts(), XclExpTablesManager::Initialize(), XclExpRoot::InitializeGlobals(), XclImpRoot::InitializeTable(), XclExpRoot::InitializeTable(), XclExpDval::InsertCellRange(), XclImpName::InsertName(), XclImpChChart::IsManualPlotArea(), ImportExcel::NewTable(), XclExpHyperlinkHelper::ProcessUrlField(), ImportExcel8::Read(), XclImpString::Read(), ImportExcel::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(), XclImpDecryptHelper::ReadFilepass(), XclImpFont::ReadFont(), XclImpNumFmtBuffer::ReadFormat(), XclImpString::ReadFormats(), 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(), XclImpTabInfo::ReadTabid(), XclImpDocViewSettings::ReadWindow1(), XclImpTabViewSettings::ReadWindow2(), XclImpXF::ReadXF(), ImportExcel::Row25(), ImportExcel::Row34(), XclExpPageBreaks::Save(), XclExpMergedcells::Save(), XclExpPageSettings::Save(), XclExpSingleCellBase::Save(), XclExpNote::Save(), XclExpSubStream::Save(), XclExpChSourceLink::Save(), XclExpCachedMatrix::Save(), XclExpMultiCellBase::Save(), XclExpChLabelRange::Save(), XclExpExtCF::SaveXml(), XclExpChChart::SetManualPlotArea(), ImportExcel::SheetPassword(), ImportExcel::SheetProtect(), ImportExcel::WinProtection(), ExportBiff5::Write(), XclExpHeaderFooter::WriteBody(), XclExpWindow2::WriteBody(), XclExpSetup::WriteBody(), XclExpScl::WriteBody(), XclExpPageBreaks::WriteBody(), XclExpPane::WriteBody(), XclExpFont::WriteBody(), XclExpChLineFormat::WriteBody(), XclExpChAreaFormat::WriteBody(), XclExpNote::WriteBody(), XclExpXF::WriteBody(), XclExpChText::WriteBody(), XclExpStyle::WriteBody(), XclExpChMarkerFormat::WriteBody(), XclExpDimensions::WriteBody(), XclExpChSeries::WriteBody(), XclExpChType::WriteBody(), XclExpDefrowheight::WriteBody(), XclExpChTick::WriteBody(), XclExpLabelCell::WriteContents(), XclExpFormulaCell::WriteContents(), 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(), XclImpCachedMatrix::XclImpCachedMatrix(), XclImpFontBuffer::XclImpFontBuffer(), XclImpName::XclImpName(), XclImpRoot::XclImpRoot(), and XclNumFmtBuffer::XclNumFmtBuffer().

XclChPropSetHelper & XclRoot::GetChartPropSetHelper ( ) const
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().

SCTAB XclRoot::GetCurrScTab ( ) const
inline

Returns the current Calc sheet index.

Definition at line 161 of file xlroot.hxx.

References XclRootData::mnScTab, and mrData.

Referenced by XclExpProgressBar::ActivateCreateRowsSegment(), 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(), XclImpTabViewSettings::Finalize(), XclImpXFRangeBuffer::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(), ImportExcel8::Read(), ImportExcel::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(), XclExpFormulaCell::SaveXml(), ImportExcel::SheetPassword(), ImportExcel::SheetProtect(), ImportExcel::Shrfmla(), 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 343 of file xlroot.cxx.

References Date::AddDays(), GetNullDate(), theExcelCutOverDate, and theOurCompatNullDate.

Referenced by XclExpPCField::InitStandardField(), and XclExpPCField::SetDateGroupLimit().

sal_Int16 XclRoot::GetDefApiScript ( ) const
inline
static OUString XclRoot::GetDefaultPassword ( )
inlinestatic

Returns the default password used for stream encryption.

Definition at line 178 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 276 of file xlroot.cxx.

References mrData, and XclRootData::mrDoc.

Referenced by XclExpHFConverter::AppendPortion(), ExcScenario::Apply(), XclImpAutoFilterData::Apply(), XclImpChangeTrack::Apply(), XclImpCondFormat::Apply(), XclImpValidationManager::Apply(), XclImpWebQueryBuffer::Apply(), XclImpDocProtectBuffer::Apply(), XclImpSheetProtectBuffer::Apply(), XclImpPivotTable::ApplyMergeFlags(), XclImpXF::ApplyPattern(), XclImpXF::ApplyPatternToAttrVector(), ImportExcel::Array25(), ImportExcel::Array34(), ImportExcel8::AutoFilter(), XclExpTabInfo::CalcSortedIndexes(), XclImpColRowSettings::Convert(), XclImpOutlineDataBuffer::Convert(), ExcelToSc8::Convert(), XclImpPivotTable::Convert(), XclImpChChart::Convert(), XclExpChSourceLink::ConvertDataSequence(), ExcelToSc8::ConvertExternName(), XclImpColRowSettings::ConvertHiddenFlags(), XclImpSheetDrawing::ConvertObjects(), XclImpObjectManager::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(), XclImpDocViewSettings::Finalize(), XclImpPageSettings::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(), XclExpProgressBar::Initialize(), XclExpTablesManager::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_WriteCell(), 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(), XclExpXmlPivotTables::SavePivotTableXml(), XclExpTables::SaveTableXml(), XclExpMergedcells::SaveXml(), XclExpExtCF::SaveXml(), XclExpHyperlink::SaveXml(), XclExpSelection::SaveXml(), XclExpTabViewSettings::SaveXml(), XclExpExtConditionalFormatting::SaveXml(), XclExpSheetProtection::SaveXml(), XclObjAny::SaveXml(), XclExpDV::SaveXml(), ExcEScenarioCell::SaveXml(), ExcAutoFilterRecs::SaveXml(), XclExpFormulaCell::SaveXml(), XclExpChTrCellContent::SaveXml(), XclExpChTrInsert::SaveXml(), XclExpChTrMoveRange::SaveXml(), XclExpChTr0x014A::SaveXml(), XclExpDimensions::SaveXml(), XclImpXFRangeBuffer::SetBorderLine(), XclImpAutoFilterData::SetCellAttribs(), XclImpColRowSettings::SetDefaultXF(), XclImpColRowSettings::SetHeight(), XclImpColRowSettings::SetManualRowHeight(), XclObjAnchor::SetRect(), XclImpColRowSettings::SetRowSettings(), XclImpColRowSettings::SetWidthRange(), XclEscherEx::StartShape(), ImportExcel::TableOp(), ExcDocument::WriteXml(), XclExpNote::WriteXml(), XclExpCellTable::XclExpCellTable(), XclExpCFImpl::XclExpCFImpl(), XclExpColinfo::XclExpColinfo(), XclExpCondfmt::XclExpCondfmt(), XclExpCondFormatBuffer::XclExpCondFormatBuffer(), XclExpDV::XclExpDV(), XclExpDxfs::XclExpDxfs(), XclExpGuts::XclExpGuts(), 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().

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

ScModelObj * XclRoot::GetDocModelObj ( ) const

Returns the object model of the Calc document.

Definition at line 286 of file xlroot.cxx.

References GetDocShell(), and SfxObjectShell::GetModel().

Referenced by ImportExcel::AdjustRowHeight(), and ImportExcel::PostDocLoad().

SfxObjectShell * XclRoot::GetDocShell ( ) const
const OUString& XclRoot::GetDocUrl ( ) const
inline

Returns the document URL of the imported/exported file.

Definition at line 171 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 332 of file xlroot.cxx.

References GetNullDate(), 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 395 of file xlroot.cxx.

References GetDoc(), ScDocument::GetDrawLayer(), SdrModel::GetItemPool(), mrData, and XclRootData::mxDrawEditEng.

Referenced by XclExpStringHelper::CreateString().

ScEditEngineDefaulter & XclRoot::GetEditEngine ( ) const

Returns the edit engine for import/export of rich strings etc.

Definition at line 356 of file xlroot.cxx.

References GetDoc(), ScDocument::GetEnginePool(), mrData, and XclRootData::mxEditEngine.

Referenced by XclExpStringHelper::CreateCellString().

ScExtDocOptions & XclRoot::GetExtDocOptions ( ) const
XclFontPropSetHelper & XclRoot::GetFontPropSetHelper ( ) const

Returns the property set helper for fonts.

Definition at line 409 of file xlroot.cxx.

References mrData, and XclRootData::mxFontPropSetHlp.

Referenced by XclExpChRoot::ConvertFont(), XclImpFont::WriteFontProperties(), and XclExpTbxControlObj::XclExpTbxControlObj().

SvNumberFormatter & XclRoot::GetFormatter ( ) const
ScHeaderEditEngine & XclRoot::GetHFEditEngine ( ) const
sal_Int32 XclRoot::GetHmmFromPixelX ( double  fPixelX) const

Calculates the width of the passed number of pixels in 1/100 mm.

Definition at line 229 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 234 of file xlroot.cxx.

References XclRootData::mfScreenPixelY, and mrData.

Referenced by XclChRootData::InitConversion().

const ScAddress& XclRoot::GetMaxPos ( ) const
inline

Returns the highest possible cell address valid in Calc and Excel (using current BIFF version).

Definition at line 247 of file xlroot.hxx.

References XclRootData::maMaxPos, and mrData.

Referenced by XclExpRowBuffer::CreateRows(), XclExpRow::Finalize(), XclImpDocViewSettings::GetDisplScTab(), XclExpColinfoBuffer::Initialize(), XclExpColinfo::WriteBody(), and XclExpCellTable::XclExpCellTable().

SfxMedium& XclRoot::GetMedium ( ) const
inline
ScRangeName & XclRoot::GetNamedRanges ( ) const

Returns the defined names container of the Calc document.

Definition at line 302 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 318 of file xlroot.cxx.

References GetFormatter(), and SvNumberFormatter::GetNullDate().

Referenced by GetBaseYear(), GetDateTimeFromDouble(), and GetDoubleFromDateTime().

RootData& XclRoot::GetOldRoot ( ) const
inline
XclOutput XclRoot::GetOutput ( ) const
inline
OutputDevice * XclRoot::GetPrinter ( ) const

Returns pointer to the printer of the Calc document.

Definition at line 292 of file xlroot.cxx.

References GetDoc(), and ScDocument::GetRefDevice().

Referenced by XclImpFont::GuessScriptType(), and SetCharWidth().

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 185 of file xlroot.hxx.

References mrData, and XclRootData::mxRootStrg.

Referenced by XclImpDffConverter::CreateSdrObject(), HasVbaStorage(), OpenStorage(), OpenStream(), ImportExcel8::PostDocLoad(), ImportExcel8::ReadBasic(), and ExportBiff5::Write().

const ScAddress& XclRoot::GetScMaxPos ( ) const
inline

Returns the highest possible cell address in a Calc document.

Definition at line 243 of file xlroot.hxx.

References XclRootData::maScMaxPos, and mrData.

Referenced by XclImpTabViewSettings::Finalize(), ImportExcel8::Read(), and ImportExcel::ReadDimensions().

SdrPage * XclRoot::GetSdrPage ( SCTAB  nScTab) const
ScStyleSheetPool & XclRoot::GetStyleSheetPool ( ) const
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.

rtl_TextEncoding XclRoot::GetTextEncoding ( ) const
inline
XclTracer & XclRoot::GetTracer ( ) const
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().

const OUString& XclRoot::GetUserName ( ) const
inline

Returns the current user name.

Definition at line 175 of file xlroot.hxx.

References XclRootData::maUserName, and mrData.

Referenced by ExcEScenario::ExcEScenario(), and XclExpFileSharing::XclExpFileSharing().

const ScAddress& XclRoot::GetXclMaxPos ( ) const
inline
bool XclRoot::HasVbaStorage ( ) const

Returns true, if the document contains a VBA storage.

Definition at line 246 of file xlroot.cxx.

References EXC_STORAGE_VBA_PROJECT, GetRootStorage(), and tools::SvRef< class >::is().

Referenced by ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeaderBinary(), and ExcTable::FillAsTableBinary().

void XclRoot::IncCurrScTab ( )
inline

Increases the current Calc sheet index by 1.

Definition at line 261 of file xlroot.hxx.

References XclRootData::mnScTab, and mrData.

Referenced by ImportExcel::Eof(), ImportExcel8::Read(), and ImportExcel::Read().

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

bool XclRoot::IsInGlobals ( ) const
inline

Returns the current Calc sheet index.

Definition at line 159 of file xlroot.hxx.

References XclRootData::mnScTab, mrData, and SCTAB_GLOBAL.

Referenced by XclImpRoot::GetCurrSheetDrawing(), and XclExpRoot::GetLocalLinkMgrRef().

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 252 of file xlroot.cxx.

References XclRootData::mbExport, mrData, ScfTools::OpenStorageRead(), and ScfTools::OpenStorageWrite().

Referenced by OpenStorage(), XclImpPivotCache::ReadPivotCacheStream(), and XclExpPivotCache::WriteCacheStream().

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 259 of file xlroot.cxx.

References GetRootStorage(), and OpenStorage().

tools::SvRef< SotStorageStream > XclRoot::OpenStream ( tools::SvRef< SotStorage > const &  xStrg,
const OUString &  rStrmName 
) const
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 271 of file xlroot.cxx.

References GetRootStorage(), and OpenStream().

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

Definition at line 191 of file xlroot.cxx.

References mrData, and void().

uno::Sequence< beans::NamedValue > XclRoot::RequestEncryptionData ( ::comphelper::IDocPasswordVerifier rVerifier) const

Requests and verifies a password from the medium or the user.

Definition at line 239 of file xlroot.cxx.

References XclRootData::gaDefPassword, mrData, XclRootData::mrMedium, and ScfApiHelper::QueryEncryptionDataForMedium().

Referenced by XclImpDecryptHelper::ReadFilepass().

void XclRoot::SetCharWidth ( const XclFontData rFontData)

Sets the width of the '0' character (default font) for the current printer (twips).

Parameters
rFontDataThe font used for the '0' character.

Definition at line 205 of file xlroot.cxx.

References XclFontData::GetFontEncoding(), GetPrinter(), XclFontData::GetScFamily(), XclFontData::GetScWeight(), GetTextEncoding(), XclFontData::maName, XclRootData::mnCharWidth, XclFontData::mnHeight, mrData, SAL_WARN, vcl::Font::SetCharSet(), vcl::Font::SetFamily(), and vcl::Font::SetWeight().

Referenced by XclExpFontBuffer::Insert(), and XclImpFontBuffer::UpdateAppFont().

void XclRoot::SetCurrScTab ( SCTAB  nScTab)
inline

Sets the current Calc sheet index.

Definition at line 259 of file xlroot.hxx.

References XclRootData::mnScTab, and mrData.

Referenced by XclExpRoot::InitializeGlobals(), XclExpRoot::InitializeTable(), ExcTable::Write(), and ExcTable::WriteXml().

void XclRoot::SetDocLanguage ( LanguageType  eLang)
inline

Sets the document language.

Definition at line 250 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 199 of file xlroot.cxx.

References XclRootData::meTextEnc, and mrData.

Referenced by ImportExcel::ReadLabel(), and XclImpRoot::SetCodePage().

void XclRoot::SetUILanguage ( LanguageType  eLang)
inline

Sets the UI language, i.e.

if it has been read from a file.

Definition at line 252 of file xlroot.hxx.

References XclRootData::meUILang, and mrData.

Referenced by ImportExcel::Country().

Member Data Documentation

XclRootData& XclRoot::mrData
private

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