#include <xlroot.hxx>


Public Member Functions | |
| XclRoot (XclRootData &rRootData) | |
| XclRoot (const XclRoot &rRoot) | |
| virtual | ~XclRoot () |
| XclRoot & | operator= (const XclRoot &rRoot) |
| const XclRoot & | GetRoot () const |
| Returns this root instance - for code readability in derived classes. | |
| RootData & | GetOldRoot () 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. | |
| SfxMedium & | GetMedium () 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. | |
| ScDocument & | GetDoc () const |
| Returns the destination document (import) or source document (export). | |
| ScDocument * | GetDocPtr () const |
| Returns pointer to the destination document (import) or source document (export). | |
| SfxObjectShell * | GetDocShell () const |
| Returns the object shell of the Calc document. | |
| ScModelObj * | GetDocModelObj () const |
| Returns the object model of the Calc document. | |
| OutputDevice * | GetPrinter () const |
| Returns pointer to the printer of the Calc document. | |
| ScStyleSheetPool & | GetStyleSheetPool () const |
| Returns the style sheet pool of the Calc document. | |
| ScRangeName & | GetNamedRanges () const |
| Returns the defined names container of the Calc document. | |
| ScDBCollection & | GetDatabaseRanges () const |
| Returns the database ranges container of the Calc document. | |
| SdrPage * | GetSdrPage (SCTAB nScTab) const |
| Returns the drawing layer page of the passed sheet, if present. | |
| SvNumberFormatter & | GetFormatter () 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. | |
| ScEditEngineDefaulter & | GetEditEngine () const |
| Returns the edit engine for import/export of rich strings etc. | |
| ScHeaderEditEngine & | GetHFEditEngine () const |
| Returns the edit engine for import/export of headers/footers. | |
| EditEngine & | GetDrawEditEngine () const |
| Returns the edit engine for import/export of drawing text boxes. | |
| XclFontPropSetHelper & | GetFontPropSetHelper () const |
| Returns the property set helper for fonts. | |
| XclChPropSetHelper & | GetChartPropSetHelper () const |
| Returns the property set helper for the chart filters. | |
| ScExtDocOptions & | GetExtDocOptions () const |
| Returns the extended document options. | |
| XclTracer & | GetTracer () const |
| Returns the filter tracer. | |
| const ScAddress & | GetScMaxPos () const |
| Returns the highest possible cell address in a Calc document. | |
| const ScAddress & | GetXclMaxPos () const |
| Returns the highest possible cell address in an Excel document (using current BIFF version). | |
| const ScAddress & | GetMaxPos () 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 | |
| XclRootData & | mrData |
Definition at line 140 of file xlroot.hxx.
| XclRoot::XclRoot | ( | XclRootData & | rRootData | ) | [explicit] |
Definition at line 143 of file xlroot.cxx.
References GetDocUrl(), IsExport(), XclDebugObjCounter::mnObjCnt, mrData, and XclRootData::mxTracer.
| XclRoot::XclRoot | ( | const XclRoot & | rRoot | ) |
| XclRoot::~XclRoot | ( | ) | [virtual] |
| 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] |
Returns old RootData struct.
Deprecated.
Definition at line 153 of file xlroot.hxx.
References mrData, and XclRootData::mxRD.
Referenced by ExcAutoFilterRecs::AddObjRecs(), ExcelToSc::Convert(), XclEscherEx::EndShape(), ExportBiff5::ExportBiff5(), ExportXml2007::ExportXml2007(), ExcTable::FillAsHeader(), ExcTable::FillAsTable(), ExcTable::FillAsXmlTable(), XclImpXFRangeBuffer::Finalize(), XclImpRoot::FinalizeTable(), XclImpRoot::GetFilterManager(), XclImpRoot::GetOldFmlaConverter(), XclImpRoot::GetPrintAreaBuffer(), ExcelToSc::GetShrFmla(), XclImpRoot::GetTitleAreaBuffer(), ImportExcel::ImportExcel(), ExcDocument::ReadDoc(), XclImpPictureObj::ReadPictFmla(), XclEscherEx::StartShape(), ExcDocument::Write(), ExcDocument::WriteXml(), XclExpChangeTrack::XclExpChangeTrack(), XclExpNote::XclExpNote(), XclImpName::XclImpName(), XclImpRoot::XclImpRoot(), and XclObj::XclObj().
| 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] |
Returns the text encoding to import/export byte strings.
Definition at line 164 of file xlroot.hxx.
References XclRootData::meTextEnc, and mrData.
Referenced by XclExpStringHelper::AppendChar(), XclExpStringHelper::AppendString(), XclExpStringHelper::CreateString(), ExcBundlesheet::ExcBundlesheet(), XclImpFont::FillToItemSet(), XclImpFont::GetFontEncoding(), XclExpExternSheet::Init(), ImportExcel::ReadLabel(), XclImpStream::ReadRawByteString(), ImportExcel::Rstring(), SetCharWidth(), XclExpFont::WriteBody(), XclExpHeaderFooter::WriteBody(), XclExpStyle::WriteBody(), XclExpNumFmtBuffer::WriteFormatRecord(), XclExpFileSharing::XclExpFileSharing(), XclExpHyperlink::XclExpHyperlink(), XclExpNote::XclExpNote(), and ImportExcel::~ImportExcel().
| 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] |
Returns the default script type, e.g.
for blank cells.
Definition at line 172 of file xlroot.hxx.
References XclRootData::mnDefApiScript, and mrData.
Referenced by XclExpChFontBase::ConvertFontBase(), XclExpFontHelper::GetFirstUsedScript(), XclExpStringHelper::GetLeadingScriptType(), XclExpXFBuffer::InsertDefaultRecords(), XclExpBlankCell::XclExpBlankCell(), XclExpColinfo::XclExpColinfo(), and XclExpXF::XclExpXF().
| 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.
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 |
Tries to open a new stream in the specified storage for reading or writing.
Definition at line 230 of file xlroot.cxx.
References XclRootData::mbExport, mrData, ScfTools::OpenStorageStreamRead(), and ScfTools::OpenStorageStreamWrite().
Referenced by OpenStream(), XclImpPivotCache::ReadPivotCacheStream(), XclExpChangeTrack::Write(), XclExpPivotCache::WriteCacheStream(), XclExpChangeTrack::WriteUserNamesStream(), XclImpChangeTrack::XclImpChangeTrack(), and XclImpDffManager::XclImpDffManager().
| 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] |
Returns pointer to the destination document (import) or source document (export).
Definition at line 212 of file xlroot.hxx.
References mrData, and XclRootData::mrDoc.
Referenced by XclImpPivotTable::Convert(), XclExpFmlaCompImpl::Init(), XclExpPCField::InsertNumDateGroupItems(), XclImpChangeTrack::ReadCell(), XclImpCondFormat::ReadCF(), ShrfmlaBuffer::Store(), XclImpChangeTrack::XclImpChangeTrack(), and XclImpName::XclImpName().
| SfxObjectShell * XclRoot::GetDocShell | ( | void | ) | const |
Returns the object shell of the Calc document.
May be 0 (i.e. import from clipboard).
Definition at line 242 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetDocumentShell().
Referenced by XclExpHFConverter::AppendPortion(), XclImpControlHelper::ApplySheetLinkProps(), XclImpDffManager::CreateSdrObject(), XclImpChartObj::DoCreateSdrObj(), XclImpPictureObj::DoProcessSdrObj(), XclImpPalette::ExportPalette(), ExcTable::FillAsHeader(), GetDocModelObj(), ExcelToSc8::GetExternalFileIdFromXti(), ExtSheetBuffer::GetScTabIndex(), XclImpSupbook::LoadCachedValues(), ImportExcel8::PostDocLoad(), XclImpDrawObjBase::ProcessSdrObject(), ImportExcel8::Read(), ImportExcel::Read(), ImportExcel8::ReadBasic(), XclImpHyperlink::ReadEmbeddedData(), ImportExcel::ReadFileSharing(), XclImpDrawObjBase::ReadMacro8(), XclImpDffManager::SetCurrentForm(), XclImpFont::SetFontData(), XclImpDffManager::StartProgressBar(), ExportBiff5::Write(), ExportXml2007::Write(), ExcDocument::WriteXml(), and XclExpWebQueryBuffer::XclExpWebQueryBuffer().
| 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 |
Returns the style sheet pool of the Calc document.
Definition at line 258 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetStyleSheetPool().
Referenced by XclImpStyle::CreateStyleSheet(), XclImpXFBuffer::CreateUserStyles(), XclImpPageSettings::Finalize(), XclExpXFBuffer::InsertDefaultRecords(), XclExpXFBuffer::InsertUserStyles(), ImportExcel::PostDocLoad(), XclImpCondFormat::ReadCF(), XclExpCFImpl::XclExpCFImpl(), and XclExpPageSettings::XclExpPageSettings().
| ScRangeName & XclRoot::GetNamedRanges | ( | ) | const |
Returns the defined names container of the Calc document.
Definition at line 263 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetRangeName().
Referenced by XclExpNameManagerImpl::CreateUserNames(), XclTokenArrayHelper::GetSharedFormula(), XclExpNameManagerImpl::InsertName(), ShrfmlaBuffer::Store(), XclExpWebQueryBuffer::XclExpWebQueryBuffer(), and XclImpName::XclImpName().
| ScDBCollection & XclRoot::GetDatabaseRanges | ( | ) | const |
Returns the database ranges container of the Calc document.
Definition at line 268 of file xlroot.cxx.
References ScDocument::GetDBCollection(), and GetDoc().
Referenced by XclExpNameManagerImpl::CreateDatabaseNames(), XclImpAutoFilterData::CreateScDBData(), ExcAutoFilterRecs::ExcAutoFilterRecs(), and XclExpNameManagerImpl::InsertDBRange().
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 |
Returns the number formatter of the Calc document.
Definition at line 279 of file xlroot.cxx.
References GetDoc(), and ScDocument::GetFormatTable().
Referenced by XclExpAutofilter::AddEntry(), XclImpNumFmtBuffer::CreateScFormats(), XclImpNumFmtBuffer::FillScFmtToItemSet(), XclExpNumFmtBuffer::GetFormatCode(), GetNullDate(), XclExpPCField::InitStandardField(), lclSetValue(), XclImpChangeTrack::ReadCell(), XclExpXct::StoreCellRange(), and XclExpCellTable::XclExpCellTable().
| 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 |
Returns the edit engine for import/export of rich strings etc.
Definition at line 307 of file xlroot.cxx.
References EE_CNTRL_ALLOWBIGOBJS, EditEngine::EnableUndo(), FALSE, EditEngine::GetControlWord(), GetDoc(), MAP_100TH_MM, mrData, XclRootData::mxEditEngine, EditEngine::SetControlWord(), EditEngine::SetEditTextObjectPool(), EditEngine::SetRefMapMode(), and EditEngine::SetUpdateMode().
Referenced by XclImpStringHelper::CreateCell(), XclExpStringHelper::CreateCellString(), lclCreateTextObject(), and lclInsertUrl().
| ScHeaderEditEngine & XclRoot::GetHFEditEngine | ( | ) | const |
Returns the edit engine for import/export of headers/footers.
Definition at line 322 of file xlroot.cxx.
References aItemSet, ATTR_CJK_FONT_HEIGHT, ATTR_CTL_FONT_HEIGHT, ATTR_FONT_HEIGHT, ATTR_PATTERN_END, ATTR_PATTERN_START, EditEngine::CreatePool(), EE_CHAR_FONTHEIGHT, EE_CHAR_FONTHEIGHT_CJK, EE_CHAR_FONTHEIGHT_CTL, EE_CNTRL_ALLOWBIGOBJS, EditEngine::EnableUndo(), FALSE, ScPatternAttr::FillToEditItemSet(), EditEngine::GetControlWord(), GetDoc(), EditEngine::GetEmptyItemSet(), MAP_TWIP, mrData, XclRootData::mxHFEditEngine, SfxItemSet::Put(), EditEngine::SetControlWord(), ScEditEngineDefaulter::SetDefaults(), EditEngine::SetRefMapMode(), EditEngine::SetUpdateMode(), and TRUE.
| EditEngine & XclRoot::GetDrawEditEngine | ( | ) | const |
Returns the edit engine for import/export of drawing text boxes.
Definition at line 346 of file xlroot.cxx.
References EE_CNTRL_ALLOWBIGOBJS, EditEngine::EnableUndo(), FALSE, EditEngine::GetControlWord(), GetDoc(), MAP_100TH_MM, mrData, XclRootData::mxDrawEditEng, EditEngine::SetControlWord(), EditEngine::SetRefMapMode(), and EditEngine::SetUpdateMode().
Referenced by XclExpStringHelper::CreateString().
| 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 |
Returns the property set helper for the chart filters.
Definition at line 365 of file xlroot.cxx.
References mrData, and XclRootData::mxChPropSetHlp.
Referenced by XclExpChMarkerFormat::Convert(), XclImpChMarkerFormat::Convert(), XclExpChLegend::Convert(), XclExpChRoot::ConvertAreaFormat(), XclImpChRoot::ConvertAreaFormat(), XclExpChRoot::ConvertEscherFormat(), XclImpChRoot::ConvertEscherFormat(), XclExpChRoot::ConvertLineFormat(), XclImpChRoot::ConvertLineFormat(), XclImpChFontBase::ConvertRotationBase(), XclExpChFontBase::ConvertRotationBase(), and XclImpChLegend::CreateLegend().
| ScExtDocOptions & XclRoot::GetExtDocOptions | ( | ) | const |
Returns the extended document options.
Definition at line 370 of file xlroot.cxx.
References mrData, and XclRootData::mxExtDocOpt.
Referenced by ExcScenario::Apply(), ImportExcel8::Codename(), ExcTable::FillAsEmptyTable(), ExcTable::FillAsHeader(), ExcTable::FillAsTable(), ExcTable::FillAsXmlTable(), XclImpDocViewSettings::Finalize(), XclImpTabViewSettings::Finalize(), XclImpObjectManager::GetOleNameOverride(), ExtSheetBuffer::GetScTabIndex(), XclImpSupbook::LoadCachedValues(), ImportExcel::Olesize(), ImportExcel::PostDocLoad(), ImportExcel::ReadDimensions(), ExcDocument::ReadDoc(), XclExpSupbookBuffer::XclExpSupbookBuffer(), XclExpTabInfo::XclExpTabInfo(), XclExpTabViewSettings::XclExpTabViewSettings(), XclExpWindow1::XclExpWindow1(), and XclImpName::XclImpName().
| XclTracer & XclRoot::GetTracer | ( | ) | const |
Returns the filter tracer.
Definition at line 375 of file xlroot.cxx.
References mrData, and XclRootData::mxTracer.
Referenced by ExcelToSc8::Convert(), ExcelToSc::Convert(), XclImpXF::CreatePattern(), XclImpDrawObjBase::DoProcessSdrObj(), XclImpChType::Finalize(), ImportExcel::PostDocLoad(), ImportExcel8::Read(), ImportExcel::Read(), XclImpChart::ReadChartSubStream(), XclImpValidationManager::ReadDV(), XclImpChLegend::ReadHeaderRecord(), XclImpDrawObjBase::ReadObj3(), XclImpDrawObjBase::ReadObj4(), XclImpDrawObjBase::ReadObj5(), XclImpDrawObjBase::ReadObj8(), XclImpPivotCache::ReadSxvs(), and ImportExcel::TableOp().
| 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).
| 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().
XclRootData& XclRoot::mrData [mutable, private] |
Definition at line 276 of file xlroot.hxx.
Referenced by GetBasePath(), GetBiff(), GetChartPropSetHelper(), GetCharWidth(), GetCurrScTab(), GetDefApiScript(), GetDefaultPassword(), GetDoc(), GetDocLanguage(), GetDocPtr(), GetDocUrl(), GetDrawEditEngine(), GetEditEngine(), GetExtDocOptions(), GetFontPropSetHelper(), GetHFEditEngine(), GetMaxPos(), GetMedium(), GetOldRoot(), GetOutput(), GetRootStorage(), GetScMaxPos(), GetSysLanguage(), GetTextEncoding(), GetTracer(), GetUILanguage(), GetUserName(), GetXclMaxPos(), IncCurrScTab(), IsExport(), IsImport(), IsInGlobals(), OpenStorage(), OpenStream(), operator=(), RequestPassword(), SetCharWidth(), SetCurrScTab(), SetDocLanguage(), SetTextEncoding(), SetUILanguage(), XclRoot(), and ~XclRoot().
1.5.6