29namespace comphelper {
class IDocPasswordVerifier; }
113 rtl_TextEncoding eTextEnc,
bool bExport );
181 css::uno::Sequence< css::beans::NamedValue >
Extended options held by an ScDocument containing additional settings for filters.
Helper class for usage of property sets.
Helper class for usage of property sets.
Access to global data for a filter object (imported or exported document) from other classes.
SfxObjectShell * GetDocShell() const
Returns the object shell of the Calc document.
LanguageType GetDocLanguage() const
Returns the document language.
ScModelObj * GetDocModelObj() const
Returns the object model of the Calc document.
tools::SvRef< SotStorage > OpenStorage(tools::SvRef< SotStorage > const &xStrg, const OUString &rStrgName) const
Tries to open a storage as child of the specified storage for reading or writing.
const tools::SvRef< SotStorage > & GetRootStorage() const
Returns the OLE2 root storage of the imported/exported file.
ScHeaderEditEngine & GetHFEditEngine() const
Returns the edit engine for import/export of headers/footers.
XclOutput GetOutput() const
Returns the current output format of the importer/exporter.
const OUString & GetDocUrl() const
Returns the document URL of the imported/exported file.
const OUString & GetBasePath() const
Returns the base path of the imported/exported file.
ScExtDocOptions & GetExtDocOptions() const
Returns the extended document options.
static OUString GetDefaultPassword()
Returns the default password used for stream encryption.
const ScAddress & GetScMaxPos() const
Returns the highest possible cell address in a Calc document.
rtl_TextEncoding GetTextEncoding() const
Returns the text encoding to import/export byte strings.
void SetDocLanguage(LanguageType eLang)
Sets the document language.
XclRoot(XclRootData &rRootData)
OutputDevice * GetPrinter() const
Returns pointer to the printer of the Calc document.
tools::Long GetCharWidth() const
Returns the width of the '0' character (default font) for the current printer (twips).
bool IsImport() const
Returns true, if currently a document is imported.
css::uno::Sequence< css::beans::NamedValue > RequestEncryptionData(::comphelper::IDocPasswordVerifier &rVerifier) const
Requests and verifies a password from the medium or the user.
SfxMedium & GetMedium() const
Returns the medium to import from.
void SetTextEncoding(rtl_TextEncoding eTextEnc)
Sets the text encoding to import/export byte strings.
DateTime GetNullDate() const
Returns the null date of the current number formatter.
XclTracer & GetTracer() const
Returns the filter tracer.
SvNumberFormatter & GetFormatter() const
Returns the number formatter of the Calc document.
tools::SvRef< SotStorageStream > OpenStream(tools::SvRef< SotStorage > const &xStrg, const OUString &rStrmName) const
Tries to open a new stream in the specified storage for reading or writing.
sal_Int32 GetHmmFromPixelX(double fPixelX) const
Calculates the width of the passed number of pixels in 1/100 mm.
bool IsInGlobals() const
Returns the current Calc sheet index.
ScEditEngineDefaulter & GetEditEngine() const
Returns the edit engine for import/export of rich strings etc.
const ScAddress & GetMaxPos() const
Returns the highest possible cell address valid in Calc and Excel (using current BIFF version).
sal_Int16 GetDefApiScript() const
Returns the default script type, e.g.
void SetUILanguage(LanguageType eLang)
Sets the UI language, i.e.
LanguageType GetUILanguage() const
Returns the UI language.
SCTAB GetCurrScTab() const
Returns the current Calc sheet index.
tools::Long GetSpaceWidth() const
EditEngine & GetDrawEditEngine() const
Returns the edit engine for import/export of drawing text boxes.
void SetCharWidth(const XclFontData &rFontData)
Sets the width of the '0' - '9' digit character as well as the ' ' space char (using the default font...
LanguageType GetSysLanguage() const
Returns the system language, i.e.
XclChPropSetHelper & GetChartPropSetHelper() const
Returns the property set helper for the chart filters.
const OUString & GetUserName() const
Returns the current user name.
bool HasVbaStorage() const
Returns true, if the document contains a VBA storage.
ScStyleSheetPool & GetStyleSheetPool() const
Returns the style sheet pool of the Calc document.
XclBiff GetBiff() const
Returns the current BIFF version of the importer/exporter.
RootData & GetOldRoot() const
Returns old RootData struct.
sal_Int32 GetHmmFromPixelY(double fPixelY) const
Calculates the height of the passed number of pixels in 1/100 mm.
DateTime GetDateTimeFromDouble(double fValue) const
Converts a floating-point value to a date/time value.
ScRangeName & GetNamedRanges() const
Returns the defined names container of the Calc document.
XclRoot & operator=(const XclRoot &rRoot)
double GetDoubleFromDateTime(const DateTime &rDateTime) const
Converts a date/time value to a floating-point value.
void IncCurrScTab()
Increases the current Calc sheet index by 1.
sal_uInt16 GetBaseYear() const
Returns the base year depending on the current null date (1900 or 1904).
void SetCurrScTab(SCTAB nScTab)
Sets the current Calc sheet index.
const ScAddress & GetXclMaxPos() const
Returns the highest possible cell address in an Excel document (using current BIFF version).
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).
SdrPage * GetSdrPage(SCTAB nScTab) const
Returns the drawing layer page of the passed sheet, if present.
XclFontPropSetHelper & GetFontPropSetHelper() const
Returns the property set helper for fonts.
This class wraps an MSFilterTracer to create trace logs for import/export filters.
Counts the number of created root objects.
This struct helps reading and writing Excel fonts.
Stores global buffers and data needed elsewhere in the Excel filters.
XclChPropSetHlpRef mxChPropSetHlp
Property set helper for fonts.
std::shared_ptr< ScEditEngineDefaulter > ScEEDefaulterRef
std::shared_ptr< ScExtDocOptions > ScExtDocOptRef
LanguageType meDocLang
System language.
tools::SvRef< SotStorage > mxRootStrg
The medium to import from.
rtl_TextEncoding meTextEnc
The default password used for stream encryption.
XclFontPropSetHlpRef mxFontPropSetHlp
Edit engine for text boxes.
ScAddress maMaxPos
Highest Excel cell position.
ScAddress maScMaxPos
Default script type for blank cells (API constant).
std::shared_ptr< ScHeaderEditEngine > ScHeaderEERef
ScAddress maXclMaxPos
Highest Calc cell position.
const bool mbExport
Current Calc sheet index.
XclOutput meOutput
Current BIFF version.
double mfScreenPixelX
Old RootData struct. Will be removed.
SfxMedium & mrMedium
Current Output format.
tools::Long mnCharWidth
Height of a screen pixel (1/100 mm).
EditEngineRef mxDrawEditEng
Edit engine for header/footer.
std::shared_ptr< RootData > RootDataRef
std::shared_ptr< XclFontPropSetHelper > XclFontPropSetHlpRef
OUString maBasePath
Document URL of imported/exported file.
LanguageType meSysLang
Text encoding to import/export byte strings.
static constexpr OUStringLiteral gaDefPassword
Current user name.
RootDataRef mxRD
Filter tracer.
OUString maDocUrl
The source or destination document.
LanguageType meUILang
Document language (import: from file, export: from system).
SCTAB mnScTab
Width of space char ' ' using default font.
ScExtDocOptRef mxExtDocOpt
Property set helper for chart filter.
ScHeaderEERef mxHFEditEngine
Edit engine for rich strings etc.
OUString maUserName
Base path of imported/exported file (path of maDocUrl).
sal_Int16 mnDefApiScript
UI language (import: from file, export: from system).
XclTracerRef mxTracer
Extended document options.
std::shared_ptr< EditEngine > EditEngineRef
ScDocument & mrDoc
The root OLE storage of imported/exported file.
tools::Long mnSpaceWidth
Width of '0' in default font (twips).
std::shared_ptr< XclTracer > XclTracerRef
ScEEDefaulterRef mxEditEngine
Highest position valid in Calc and Excel.
std::shared_ptr< XclChPropSetHelper > XclChPropSetHlpRef
double mfScreenPixelY
Width of a screen pixel (1/100 mm).
XclRootData(XclBiff eBiff, SfxMedium &rMedium, tools::SvRef< SotStorage > xRootStrg, ScDocument &rDoc, rtl_TextEncoding eTextEnc, bool bExport)
false = Import, true = Export.
const SCTAB SCTAB_GLOBAL
An invalid Calc sheet index, for common use.
XclBiff
An enumeration for all Excel file format types (BIFF types).
XclOutput
An enumeration for all Excel output format types.