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