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:

Inheritance graph
[legend]
Collaboration diagram for XclRoot:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 XclRoot (XclRootData &rRootData)
 XclRoot (const XclRoot &rRoot)
virtual ~XclRoot ()
XclRootoperator= (const XclRoot &rRoot)
const XclRootGetRoot () const
 Returns this root instance - for code readability in derived classes.
RootDataGetOldRoot () const
 Returns old RootData struct.
XclBiff GetBiff () const
 Returns the current BIFF version of the importer/exporter.
XclOutput GetOutput () const
 Returns the current output format of the importer/exporter.
bool IsImport () const
 Returns true, if currently a document is imported.
bool IsExport () const
 Returns true, if currently a document is exported.
rtl_TextEncoding GetTextEncoding () const
 Returns the text encoding to import/export byte strings.
LanguageType GetSysLanguage () const
 Returns the system language, i.e.
LanguageType GetDocLanguage () const
 Returns the document language.
LanguageType GetUILanguage () const
 Returns the UI language.
sal_Int16 GetDefApiScript () const
 Returns the default script type, e.g.
long GetCharWidth () const
 Returns the width of the '0' character (default font) for the current printer (twips).
bool IsInGlobals () const
 Returns the current Calc sheet index.
SCTAB GetCurrScTab () const
 Returns the current Calc sheet index.
SfxMediumGetMedium () const
 Returns the medium to import from.
const String & GetDocUrl () const
 Returns the document URL of the imported/exported file.
const String & GetBasePath () const
 Returns the base path of the imported/exported file.
const String & GetUserName () const
 Returns the current user name.
const String & GetDefaultPassword () const
 Returns the default password used for stream encryption.
String RequestPassword (::comphelper::IDocPasswordVerifier &rVerifier) const
 Requests and verifies a password from the medium or the user.
SotStorageRef GetRootStorage () const
 Returns the OLE2 root storage of the imported/exported file.
bool HasVbaStorage () const
 Returns true, if the document contains a VBA storage.
SotStorageRef OpenStorage (SotStorageRef xStrg, const String &rStrgName) const
 Tries to open a storage as child of the specified storage for reading or writing.
SotStorageRef OpenStorage (const String &rStrgName) const
 Tries to open a storage as child of the root storage for reading or writing.
SotStorageStreamRef OpenStream (SotStorageRef xStrg, const String &rStrmName) const
 Tries to open a new stream in the specified storage for reading or writing.
SotStorageStreamRef OpenStream (const String &rStrmName) const
 Tries to open a new stream in the root storage for reading or writing.
ScDocumentGetDoc () const
 Returns the destination document (import) or source document (export).
ScDocumentGetDocPtr () const
 Returns pointer to the destination document (import) or source document (export).
SfxObjectShellGetDocShell () const
 Returns the object shell of the Calc document.
ScModelObjGetDocModelObj () const
 Returns the object model of the Calc document.
OutputDeviceGetPrinter () const
 Returns pointer to the printer of the Calc document.
ScStyleSheetPoolGetStyleSheetPool () const
 Returns the style sheet pool of the Calc document.
ScRangeNameGetNamedRanges () const
 Returns the defined names container of the Calc document.
ScDBCollectionGetDatabaseRanges () const
 Returns the database ranges container of the Calc document.
SdrPageGetSdrPage (SCTAB nScTab) const
 Returns the drawing layer page of the passed sheet, if present.
SvNumberFormatterGetFormatter () const
 Returns the number formatter of the Calc document.
DateTime GetNullDate () const
 Returns the null date of the current number formatter.
double GetDoubleFromDateTime (const DateTime &rDateTime) const
 Converts a date/time value to a floating-point value.
DateTime GetDateTimeFromDouble (double fValue) const
 Converts a floating-point value to a date/time value.
ScEditEngineDefaulterGetEditEngine () const
 Returns the edit engine for import/export of rich strings etc.
ScHeaderEditEngineGetHFEditEngine () const
 Returns the edit engine for import/export of headers/footers.
EditEngineGetDrawEditEngine () const
 Returns the edit engine for import/export of drawing text boxes.
XclFontPropSetHelperGetFontPropSetHelper () const
 Returns the property set helper for fonts.
XclChPropSetHelperGetChartPropSetHelper () const
 Returns the property set helper for the chart filters.
ScExtDocOptionsGetExtDocOptions () const
 Returns the extended document options.
XclTracerGetTracer () const
 Returns the filter tracer.
const ScAddressGetScMaxPos () const
 Returns the highest possible cell address in a Calc document.
const ScAddressGetXclMaxPos () const
 Returns the highest possible cell address in an Excel document (using current BIFF version).
const ScAddressGetMaxPos () const
 Returns the highest possible cell address valid in Calc and Excel (using current BIFF version).
void SetDocLanguage (LanguageType eLang)
 Sets the document language.
void SetUILanguage (LanguageType eLang)
 Sets the UI language, i.e.
void SetTextEncoding (rtl_TextEncoding eTextEnc)
 Sets the text encoding to import/export byte strings.
void SetCharWidth (const XclFontData &rFontData)
 Sets the width of the '0' character (default font) for the current printer (twips).
void SetCurrScTab (SCTAB nScTab)
 Sets the current Calc sheet index.
void IncCurrScTab ()
 Increases the current Calc sheet index by 1.

Private Attributes

XclRootDatamrData


Detailed Description

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

Definition at line 140 of file xlroot.hxx.


Constructor & Destructor Documentation

XclRoot::XclRoot ( XclRootData rRootData  )  [explicit]

XclRoot::XclRoot ( const XclRoot rRoot  ) 

Definition at line 156 of file xlroot.cxx.

References XclDebugObjCounter::mnObjCnt, and mrData.

XclRoot::~XclRoot (  )  [virtual]

Definition at line 164 of file xlroot.cxx.

References XclDebugObjCounter::mnObjCnt, and mrData.


Member Function Documentation

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

Definition at line 171 of file xlroot.cxx.

References mrData, and void().

const XclRoot& XclRoot::GetRoot (  )  const [inline]

Returns this root instance - for code readability in derived classes.

Reimplemented in XclExpRoot, XclImpRoot, and XclExpRoot.

Definition at line 151 of file xlroot.hxx.

RootData& XclRoot::GetOldRoot (  )  const [inline]

XclBiff XclRoot::GetBiff (  )  const [inline]

Returns the current BIFF version of the importer/exporter.

Definition at line 156 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(), XclExpChText::ConvertDataLabel(), XclExpChDataFormat::ConvertDataSeries(), XclExpChFrameBase::ConvertFrameBase(), XclImpColRowSettings::ConvertHiddenFlags(), XclExpChText::ConvertTrendLineEquation(), XclExpNameManagerImpl::CreateBuiltInNames(), XclExpStringHelper::CreateString(), XclImpXFBuffer::CreateUserStyles(), ImportExcel::DocPasssword(), ImportExcel::DocProtect(), XclExpUrlHelper::EncodeUrl(), ImportExcel::EndSheet(), ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeader(), ExcTable::FillAsTable(), ImportExcel::Formula25(), ExcelToSc::GetAbsRefs(), XclImpChChart::GetDefaultText(), XclExpExternSheet::Init(), XclExpXF::Init(), XclExpLabelCell::Init(), XclExpXF::InitDefault(), XclExpFontBuffer::InitDefaultFonts(), XclExpRoot::InitializeGlobals(), XclExpRoot::InitializeTable(), XclImpRoot::InitializeTable(), XclExpDval::InsertCellRange(), XclExpHyperlinkHelper::ProcessUrlField(), ImportExcel8::Read(), ImportExcel::Read(), XclImpString::Read(), XclImpObjectManager::ReadBmp(), XclImpPageSettings::ReadCenter(), XclImpFont::ReadCFFontBlock(), XclImpChAreaFormat::ReadChAreaFormat(), XclImpChText::ReadChFrLabelProps(), XclImpChLineFormat::ReadChLineFormat(), XclImpChMarkerFormat::ReadChMarkerFormat(), XclImpChTick::ReadChTick(), XclImpChType::ReadChType(), 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(), XclImpObjectManager::ReadMsoDrawing(), XclImpObjectManager::ReadMsoDrawingGroup(), XclImpObjectManager::ReadNote(), XclImpObjectManager::ReadObj(), XclImpPageSettings::ReadPageBreaks(), XclImpPictureObj::ReadPictFmla(), XclImpWebQueryBuffer::ReadQsi(), XclImpPageSettings::ReadSetup(), XclImpStyle::ReadStyle(), XclImpChText::ReadSubRecord(), XclImpTabViewSettings::ReadTabBgColor(), XclImpObjectManager::ReadTabChart(), XclImpTabInfo::ReadTabid(), XclImpDocViewSettings::ReadWindow1(), XclImpTabViewSettings::ReadWindow2(), XclImpXF::ReadXF(), ImportExcel::Row25(), XclExpNote::Save(), XclExpMultiCellBase::Save(), XclExpMergedcells::Save(), XclExpChSourceLink::Save(), XclExpPageBreaks::Save(), XclExpCachedMatrix::Save(), XclExpSubStream::Save(), XclExpPageSettings::Save(), XclExpSingleCellBase::Save(), XclExpName::SetLocalTab(), ImportExcel::SheetPassword(), ImportExcel::SheetProtect(), ImportExcel::WinProtection(), ExportBiff5::Write(), ExcDocument::Write(), XclExpChText::WriteBody(), XclExpChMarkerFormat::WriteBody(), XclExpChSeries::WriteBody(), XclExpNote::WriteBody(), XclExpFont::WriteBody(), XclExpXF::WriteBody(), XclExpDefrowheight::WriteBody(), XclExpPageBreaks::WriteBody(), XclExpChType::WriteBody(), XclExpDimensions::WriteBody(), XclExpPane::WriteBody(), XclExpChAreaFormat::WriteBody(), XclExpWindow2::WriteBody(), XclExpChTick::WriteBody(), XclExpScl::WriteBody(), XclExpSetup::WriteBody(), XclExpHeaderFooter::WriteBody(), XclExpChLineFormat::WriteBody(), XclExpStyle::WriteBody(), XclExpLabelCell::WriteContents(), XclExpFormulaCell::WriteContents(), XclExpNumFmtBuffer::WriteFormatRecord(), XclDefaultPalette::XclDefaultPalette(), XclExpCFImpl::XclExpCFImpl(), XclExpChEscherFormat::XclExpChEscherFormat(), XclExpChSeries::XclExpChSeries(), XclExpDimensions::XclExpDimensions(), XclExpFileSharing::XclExpFileSharing(), XclExpFont::XclExpFont(), XclExpFontBuffer::XclExpFontBuffer(), XclExpLabelCell::XclExpLabelCell(), XclExpLinkManager::XclExpLinkManager(), XclExpName::XclExpName(), XclExpNote::XclExpNote(), XclExpNumFmtBuffer::XclExpNumFmtBuffer(), XclExpStream::XclExpStream(), XclExpStringRec::XclExpStringRec(), XclExpTabViewSettings::XclExpTabViewSettings(), XclFunctionProvider::XclFunctionProvider(), XclImpCachedMatrix::XclImpCachedMatrix(), XclImpFontBuffer::XclImpFontBuffer(), XclImpName::XclImpName(), XclImpRoot::XclImpRoot(), and XclNumFmtBuffer::XclNumFmtBuffer().

XclOutput XclRoot::GetOutput (  )  const [inline]

Returns the current output format of the importer/exporter.

Definition at line 158 of file xlroot.hxx.

References XclRootData::meOutput, and mrData.

Referenced by ExcTable::FillAsHeader(), ExcTable::FillAsTable(), and XclExpFontBuffer::InitDefaultFonts().

bool XclRoot::IsImport (  )  const [inline]

Returns true, if currently a document is imported.

Definition at line 160 of file xlroot.hxx.

References XclRootData::mbExport, and mrData.

Referenced by XclFunctionProvider::XclFunctionProvider().

bool XclRoot::IsExport (  )  const [inline]

Returns true, if currently a document is exported.

Definition at line 162 of file xlroot.hxx.

References XclRootData::mbExport, and mrData.

Referenced by XclRoot().

rtl_TextEncoding XclRoot::GetTextEncoding (  )  const [inline]

LanguageType XclRoot::GetSysLanguage (  )  const [inline]

Returns the system language, i.e.

for number formats.

Definition at line 166 of file xlroot.hxx.

References XclRootData::meSysLang, and mrData.

LanguageType XclRoot::GetDocLanguage (  )  const [inline]

Returns the document language.

Definition at line 168 of file xlroot.hxx.

References XclRootData::meDocLang, and mrData.

Referenced by lclSetValue(), and XclExpCountry::XclExpCountry().

LanguageType XclRoot::GetUILanguage (  )  const [inline]

Returns the UI language.

Definition at line 170 of file xlroot.hxx.

References XclRootData::meUILang, and mrData.

Referenced by XclExpFmlaCompImpl::AppendAddInCallToken().

sal_Int16 XclRoot::GetDefApiScript (  )  const [inline]

long XclRoot::GetCharWidth (  )  const [inline]

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

Definition at line 174 of file xlroot.hxx.

References XclRootData::mnCharWidth, and mrData.

Referenced by ImportExcel::Colinfo(), ImportExcel::Colwidth(), ImportExcel::DefColWidth(), ImportExcel::Standardwidth(), and XclExpColinfo::XclExpColinfo().

bool XclRoot::IsInGlobals (  )  const [inline]

Returns the current Calc sheet index.

Definition at line 176 of file xlroot.hxx.

References XclRootData::mnScTab, mrData, and SCTAB_GLOBAL.

Referenced by XclExpFmlaCompImpl::ConvertRefData(), XclExpRoot::GetLocalLinkMgrRef(), and XclExpFmlaCompImpl::GetScTab().

SCTAB XclRoot::GetCurrScTab (  )  const [inline]

Returns the current Calc sheet index.

Definition at line 178 of file xlroot.hxx.

References XclRootData::mnScTab, and mrData.

Referenced by XclExpProgressBar::ActivateCreateRowsSegment(), XclEscher::AddSdrPage(), ImportExcel::Array25(), ImportExcel::Array34(), ImportExcel8::AutoFilter(), ImportExcel8::AutoFilterInfo(), ImportExcel::Cellmerging(), ImportExcel8::Codename(), XclExpFmlaCompImpl::ConvertRefData(), XclExpFormulaCompiler::CreateFormula(), XclExpLinkManagerImpl5::CreateInternal(), XclImpXFBuffer::CreateUserStyles(), ExcelToSc::ExcRelToScRel(), ExcelToSc8::ExcRelToScRel8(), ImportExcel8::FilterMode(), XclImpXFRangeBuffer::Finalize(), XclImpTabViewSettings::Finalize(), XclImpPageSettings::Finalize(), XclImpRoot::FinalizeTable(), XclExpArrayBuffer::FindArray(), ImportExcel::Formula(), ExcelToSc::GetAbsRefs(), ExcelToSc8::GetAbsRefs(), ExcelToSc::GetShrFmla(), XclImpDrawObjBase::ImplReadObj3(), XclImpDrawObjBase::ImplReadObj4(), XclImpDrawObjBase::ImplReadObj5(), XclImpHyperlink::InsertUrl(), XclExpFmlaCompImpl::IsRef2D(), ImportExcel8::Labelsst(), ImportExcel::Mulblank(), ImportExcel::Mulrk(), ImportExcel::NeueTabelle(), ImportExcel::Olesize(), XclExpFmlaCompImpl::ProcessDefinedName(), ImportExcel8::Read(), ImportExcel::Read(), ImportExcel::ReadBlank(), ImportExcel::ReadBoolErr(), XclImpCondFormat::ReadCF(), XclImpCondFormat::ReadCondfmt(), ImportExcel::ReadDimensions(), XclImpValidationManager::ReadDV(), XclImpValidationManager::ReadDval(), ImportExcel::ReadInteger(), ImportExcel::ReadLabel(), XclImpLabelranges::ReadLabelranges(), XclImpObjectManager::ReadMsoDrawing(), XclImpObjectManager::ReadNote3(), XclImpObjectManager::ReadNote8(), ImportExcel::ReadNumber(), XclImpWebQueryBuffer::ReadQsi(), ImportExcel::ReadRk(), XclImpPivotTable::ReadSxpi(), XclImpPivotTable::ReadSxview(), ImportExcel::Rstring(), ImportExcel::SheetPassword(), ImportExcel::SheetProtect(), ImportExcel8::SheetProtection(), ImportExcel::Shrfmla(), ImportExcel::TableOp(), XclExpCellTable::XclExpCellTable(), XclExpColinfo::XclExpColinfo(), XclExpCondfmt::XclExpCondfmt(), XclExpGuts::XclExpGuts(), XclExpLabelranges::XclExpLabelranges(), XclExpOutlineBuffer::XclExpOutlineBuffer(), XclExpPageSettings::XclExpPageSettings(), XclExpRow::XclExpRow(), and XclExpWebQueryBuffer::XclExpWebQueryBuffer().

SfxMedium& XclRoot::GetMedium (  )  const [inline]

Returns the medium to import from.

Definition at line 181 of file xlroot.hxx.

References mrData, and XclRootData::mrMedium.

Referenced by XclExpRoot::GetPassword(), and ImportExcel::ReadFileSharing().

const String& XclRoot::GetDocUrl (  )  const [inline]

Returns the document URL of the imported/exported file.

Definition at line 183 of file xlroot.hxx.

References XclRootData::maDocUrl, and mrData.

Referenced by XclRoot().

const String& XclRoot::GetBasePath (  )  const [inline]

Returns the base path of the imported/exported file.

Definition at line 185 of file xlroot.hxx.

References XclRootData::maBasePath, and mrData.

Referenced by XclExpHyperlink::BuildFileName(), XclImpUrlHelper::DecodeUrl(), and XclExpUrlHelper::EncodeUrl().

const String& XclRoot::GetUserName (  )  const [inline]

Returns the current user name.

Definition at line 187 of file xlroot.hxx.

References XclRootData::maUserName, and mrData.

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

const String& XclRoot::GetDefaultPassword (  )  const [inline]

Returns the default password used for stream encryption.

Definition at line 190 of file xlroot.hxx.

References XclRootData::maDefPassword, and mrData.

Referenced by XclExpBiff8Encrypter::XclExpBiff8Encrypter().

String XclRoot::RequestPassword ( ::comphelper::IDocPasswordVerifier &  rVerifier  )  const

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

Definition at line 205 of file xlroot.cxx.

References XclRootData::maDefPassword, mrData, XclRootData::mrMedium, and ScfApiHelper::QueryPasswordForMedium().

Referenced by XclImpDecryptHelper::ReadFilepass().

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

References mrData, and XclRootData::mxRootStrg.

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

bool XclRoot::HasVbaStorage (  )  const

Returns true, if the document contains a VBA storage.

Definition at line 212 of file xlroot.cxx.

References EXC_STORAGE_VBA_PROJECT, and GetRootStorage().

Referenced by ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeader(), ExcTable::FillAsTable(), and ExcTable::FillAsXmlTable().

SotStorageRef XclRoot::OpenStorage ( SotStorageRef  xStrg,
const String &  rStrgName 
) const

Tries to open a storage as child of the specified storage for reading or writing.

Definition at line 218 of file xlroot.cxx.

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

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

SotStorageRef XclRoot::OpenStorage ( const String &  rStrgName  )  const

Tries to open a storage as child of the root storage for reading or writing.

Definition at line 225 of file xlroot.cxx.

References GetRootStorage(), and OpenStorage().

SotStorageStreamRef XclRoot::OpenStream ( SotStorageRef  xStrg,
const String &  rStrmName 
) const

SotStorageStreamRef XclRoot::OpenStream ( const String &  rStrmName  )  const

Tries to open a new stream in the root storage for reading or writing.

Definition at line 237 of file xlroot.cxx.

References GetRootStorage(), and OpenStream().

ScDocument& XclRoot::GetDoc ( void   )  const [inline]

Returns the destination document (import) or source document (export).

Definition at line 210 of file xlroot.hxx.

References mrData, and XclRootData::mrDoc.

Referenced by XclExpHFConverter::AppendPortion(), ExcScenario::Apply(), XclImpDocProtectBuffer::Apply(), XclImpCondFormat::Apply(), XclImpWebQueryBuffer::Apply(), XclImpSheetProtectBuffer::Apply(), XclImpChangeTrack::Apply(), XclImpValidationManager::Apply(), XclImpPivotTable::ApplyMergeFlags(), XclExpTabInfo::CalcSortedIndexes(), ImportExcel8::Codename(), ExcelToSc8::Convert(), XclImpPivotTable::Convert(), XclImpColRowSettings::Convert(), ExcelToSc::Convert(), XclImpOutlineDataBuffer::Convert(), XclImpColRowSettings::ConvertHiddenFlags(), XclImpObjectManager::ConvertObjects(), XclExpFmlaCompImpl::ConvertRefData(), XclExpNameManagerImpl::CreateBuiltInNames(), XclImpStringHelper::CreateCell(), XclExpStringHelper::CreateCellString(), XclImpXF::CreatePattern(), XclExpPivotTableManager::CreatePivotTables(), XclImpDrawObjBase::CreateSdrObject(), XclExpChangeTrack::CreateTempChangeTrack(), XclImpXFBuffer::CreateUserStyles(), XclImpNoteObj::DoProcessSdrObj(), ExcEScenario::ExcEScenario(), ExcEScenarioManager::ExcEScenarioManager(), ExportBiff8::ExportBiff8(), ExportXml2007::ExportXml2007(), ExcTable::FillAsHeader(), ExcTable::FillAsTable(), XclImpXFRangeBuffer::Finalize(), XclImpDocViewSettings::Finalize(), XclImpTabViewSettings::Finalize(), XclImpPageSettings::Finalize(), XclImpChartObj::FinalizeTabChart(), XclImpDrawObjBase::GetAnchorRect(), GetDatabaseRanges(), GetDocShell(), GetDrawEditEngine(), GetEditEngine(), ExcelToSc8::GetExternalFileIdFromXti(), GetFormatter(), GetHFEditEngine(), XclExpStringHelper::GetLeadingScriptType(), GetNamedRanges(), GetPrinter(), ExtSheetBuffer::GetScTabIndex(), GetSdrPage(), GetStyleSheetPool(), XclExpSupbookBuffer::GetXti(), XclExpProgressBar::Initialize(), XclExpPCField::InitStandardField(), XclExpXFBuffer::InsertCellXF(), XclExpExtNameBuffer::InsertDde(), XclImpAutoFilterData::InsertQueryParam(), XclExpXFBuffer::InsertUserStyles(), XclExpRoot::IsDocumentEncrypted(), ImportExcel8::Labelsst(), lclCreateFormattedString(), lclCreateTextObject(), lclInsertUrl(), lclSetValue(), XclImpSupbook::LoadCachedValues(), ImportExcel::Mulrk(), ImportExcel::PostDocLoad(), XclExpFmlaCompImpl::ProcessExternalName(), ImportExcel8::Read(), XclImpChangeTrack::Read3DTabRefInfo(), ImportExcel8::ReadBasic(), ImportExcel::ReadBoolErr(), ExcDocument::ReadDoc(), XclImpValidationManager::ReadDV(), ImportExcel::ReadInteger(), ImportExcel::ReadLabel(), XclImpLabelranges::ReadLabelranges(), XclImpObjectManager::ReadNote3(), ImportExcel::ReadNumber(), XclImpPivotCache::ReadPivotCacheStream(), ImportExcel::ReadRk(), ImportExcel::ReadUsesElfs(), ImportExcel::Rstring(), XclImpXFRangeBuffer::SetBorderLine(), XclImpAutoFilterData::SetCellAttribs(), XclExpSupbookBuffer::StoreCell(), XclExpSupbookBuffer::StoreCellRange(), XclExpXct::StoreCellRange(), XclExpDffAnchor::WriteData(), XclImpPCField::WriteFieldNameToSource(), XclImpPCItem::WriteToSource(), XclExpCellTable::XclExpCellTable(), XclExpCFImpl::XclExpCFImpl(), XclExpColinfo::XclExpColinfo(), XclExpCondfmt::XclExpCondfmt(), XclExpCondFormatBuffer::XclExpCondFormatBuffer(), XclExpDffAnchor::XclExpDffAnchor(), XclExpDffNoteAnchor::XclExpDffNoteAnchor(), XclExpDV::XclExpDV(), XclExpGuts::XclExpGuts(), XclExpLabelranges::XclExpLabelranges(), XclExpOutlineBuffer::XclExpOutlineBuffer(), XclExpPageSettings::XclExpPageSettings(), XclExpPivotCache::XclExpPivotCache(), XclExpRow::XclExpRow(), XclExpSheetProtectOptions::XclExpSheetProtectOptions(), XclExpSupbook::XclExpSupbook(), XclExpTabInfo::XclExpTabInfo(), XclExpTabViewSettings::XclExpTabViewSettings(), XclExpWindow1::XclExpWindow1(), XclImpChEscherFormat::XclImpChEscherFormat(), XclImpName::XclImpName(), and ImportExcel::~ImportExcel().

ScDocument* XclRoot::GetDocPtr (  )  const [inline]

SfxObjectShell * XclRoot::GetDocShell ( void   )  const

ScModelObj * XclRoot::GetDocModelObj (  )  const

Returns the object model of the Calc document.

Definition at line 247 of file xlroot.cxx.

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

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

OutputDevice * XclRoot::GetPrinter (  )  const

Returns pointer to the printer of the Calc document.

Definition at line 253 of file xlroot.cxx.

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

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

ScStyleSheetPool & XclRoot::GetStyleSheetPool (  )  const

ScRangeName & XclRoot::GetNamedRanges (  )  const

ScDBCollection & XclRoot::GetDatabaseRanges (  )  const

SdrPage * XclRoot::GetSdrPage ( SCTAB  nScTab  )  const

Returns the drawing layer page of the passed sheet, if present.

Definition at line 273 of file xlroot.cxx.

References GetDoc(), ScDocument::GetDrawLayer(), and SdrModel::GetPage().

Referenced by XclEscher::AddSdrPage(), XclImpObjectManager::ConvertObjects(), XclImpDffManager::ProcessShContainer(), and XclImpDffManager::SetCurrentForm().

SvNumberFormatter & XclRoot::GetFormatter (  )  const

DateTime XclRoot::GetNullDate (  )  const

Returns the null date of the current number formatter.

Definition at line 284 of file xlroot.cxx.

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

Referenced by GetDateTimeFromDouble(), and GetDoubleFromDateTime().

double XclRoot::GetDoubleFromDateTime ( const DateTime &  rDateTime  )  const

Converts a date/time value to a floating-point value.

Definition at line 289 of file xlroot.cxx.

References GetNullDate().

Referenced by XclImpPCField::GetScDateGroupInfo(), and XclImpPCItem::WriteToSource().

DateTime XclRoot::GetDateTimeFromDouble ( double  fValue  )  const

Converts a floating-point value to a date/time value.

Definition at line 298 of file xlroot.cxx.

References GetNullDate().

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

ScEditEngineDefaulter & XclRoot::GetEditEngine ( void   )  const

ScHeaderEditEngine & XclRoot::GetHFEditEngine (  )  const

EditEngine & XclRoot::GetDrawEditEngine (  )  const

XclFontPropSetHelper & XclRoot::GetFontPropSetHelper (  )  const

Returns the property set helper for fonts.

Definition at line 360 of file xlroot.cxx.

References mrData, and XclRootData::mxFontPropSetHlp.

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

XclChPropSetHelper & XclRoot::GetChartPropSetHelper (  )  const

ScExtDocOptions & XclRoot::GetExtDocOptions (  )  const

XclTracer & XclRoot::GetTracer (  )  const

const ScAddress& XclRoot::GetScMaxPos (  )  const [inline]

Returns the highest possible cell address in a Calc document.

Definition at line 255 of file xlroot.hxx.

References XclRootData::maScMaxPos, and mrData.

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

const ScAddress& XclRoot::GetXclMaxPos (  )  const [inline]

Returns the highest possible cell address in an Excel document (using current BIFF version).

Definition at line 257 of file xlroot.hxx.

References XclRootData::maXclMaxPos, and mrData.

Referenced by XclExpNameManagerImpl::CreateBuiltInNames(), XclExpPageSettings::Save(), XclExpPageSettings::SaveXml(), XclExpChTrInsert::XclExpChTrInsert(), and XclExpTabViewSettings::XclExpTabViewSettings().

const ScAddress& XclRoot::GetMaxPos (  )  const [inline]

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

Definition at line 259 of file xlroot.hxx.

References XclRootData::maMaxPos, and mrData.

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

void XclRoot::SetDocLanguage ( LanguageType  eLang  )  [inline]

Sets the document language.

Definition at line 262 of file xlroot.hxx.

References XclRootData::meDocLang, and mrData.

Referenced by ImportExcel::Country().

void XclRoot::SetUILanguage ( LanguageType  eLang  )  [inline]

Sets the UI language, i.e.

if it has been read from a file.

Definition at line 264 of file xlroot.hxx.

References XclRootData::meUILang, and mrData.

Referenced by ImportExcel::Country().

void XclRoot::SetTextEncoding ( rtl_TextEncoding  eTextEnc  ) 

Sets the text encoding to import/export byte strings.

Definition at line 179 of file xlroot.cxx.

References XclRootData::meTextEnc, and mrData.

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

void XclRoot::SetCharWidth ( const XclFontData rFontData  ) 

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

Parameters:
rFontData The font used for the '0' character.

Definition at line 185 of file xlroot.cxx.

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

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

void XclRoot::SetCurrScTab ( SCTAB  nScTab  )  [inline]

Sets the current Calc sheet index.

Definition at line 271 of file xlroot.hxx.

References XclRootData::mnScTab, and mrData.

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

void XclRoot::IncCurrScTab (  )  [inline]

Increases the current Calc sheet index by 1.

Definition at line 273 of file xlroot.hxx.

References XclRootData::mnScTab, and mrData.

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


Member Data Documentation

XclRootData& XclRoot::mrData [mutable, private]


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

Generated on Thu Apr 29 18:54:52 2010 for ooo-build Module sc (ooo/OOO320_m15) by  doxygen 1.5.6