34class SharedStringPool;
70 SCTAB nScTab,
bool bWarn );
239 std::vector< XclImpHFPortionInfo >
272 const OUString& rEncodedUrl );
283 const OUString& rEncodedUrl );
289 static bool DecodeLink( OUString& rApplic, OUString& rTopic, std::u16string_view aEncUrl );
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
Accessor class to ScDocument.
Base class for import/export address converters.
Provides functions to convert Excel cell addresses to Calc cell addresses.
bool ConvertRange(ScRange &rScRange, const XclRange &rXclRange, SCTAB nScTab1, SCTAB nScTab2, bool bWarn)
Converts the passed Excel cell range to a Calc cell range.
void ConvertRangeList(ScRangeList &rScRanges, const XclRangeList &rXclRanges, SCTAB nScTab, bool bWarn)
Converts the passed Excel cell range list to a Calc cell range list.
bool CheckAddress(const XclAddress &rXclPos, bool bWarn)
Checks if the passed Excel cell address is valid.
XclImpAddressConverter(const XclImpRoot &rRoot)
bool ConvertAddress(ScAddress &rScPos, const XclAddress &rXclPos, SCTAB nScTab, bool bWarn)
Converts the passed Excel cell address to a Calc cell address.
ScAddress CreateValidAddress(const XclAddress &rXclPos, SCTAB nScTab, bool bWarn)
Returns a valid cell address by moving it into allowed dimensions.
Contains cached values in a 2-dimensional array.
std::vector< std::unique_ptr< XclImpCachedValue > > XclImpValueList
SCSIZE mnScRows
Number of cached columns.
SCSIZE mnScCols
List of cached cell values.
XclImpCachedMatrix(XclImpStream &rStrm)
XclImpValueList maValueList
ScMatrixRef CreateScMatrix(svl::SharedStringPool &rPool) const
Creates a new ScMatrix object and fills it with the contained values.
This class stores one cached value of a cached value list (used for instance in CRN,...
XclImpCachedValue(const XclImpCachedValue &)=delete
delete copy constructor
bool GetBool() const
Returns the cached Boolean value, if this value has Boolean type, else false.
const OUString & GetString() const
Returns the cached string value, if this value is a string, else an empty string.
sal_uInt8 mnType
Boolean value or Excel error code.
sal_uInt8 mnBoolErr
Cached value is a formula or error code or Boolean.
sal_uInt8 GetXclError() const
Returns the cached Calc error code, if this value has Error type, else 0.
sal_uInt8 GetType() const
Returns the type of the cached value (EXC_CACHEDVAL_*).
::std::unique_ptr< const ScTokenArray > ScTokenArrayPtr
double GetValue() const
Returns the cached number, if this value has number type, else 0.0.
ScTokenArrayPtr mxTokArr
Cached value is a double.
double mfValue
Cached value is a string.
const XclImpCachedValue & operator=(const XclImpCachedValue &)=delete
delete copy-assignment operator
FormulaError GetScError() const
Returns the cached Calc error code, if this value has Error type, else 0.
virtual ~XclImpCachedValue()
Converts an Excel header/footer string into three edit engine text objects.
void ParseString(const OUString &rHFString)
Parses the passed string and creates three new edit engine text objects.
void InsertLineBreak()
Inserts a line break and adjusts the current selection object.
void FillToItemSet(SfxItemSet &rItemSet, sal_uInt16 nWhichId) const
Creates a ScPageHFItem and inserts it into the passed item set.
XclImpHFConverter(const XclImpHFConverter &)=delete
delete copy constructor
const XclImpHFConverter & operator=(const XclImpHFConverter &)=delete
delete copy-assignment operator
sal_uInt16 GetMaxLineHeight(XclImpHFPortion ePortion) const
Returns the maximum line height of the specified portion.
void InsertField(const SvxFieldItem &rFieldItem)
Inserts the passed text field and adjusts the current selection object.
std::vector< XclImpHFPortionInfo > maInfos
The header/footer edit engine.
::std::unique_ptr< XclFontData > XclFontDataPtr
XclImpHFPortion meCurrObj
Font data of current text.
void ResetFontData()
Resets font data to application default font.
ESelection & GetCurrSel()
Returns the current selection.
void SetAttribs()
Sets the font attributes at the current selection.
XclFontDataPtr mxFontData
Current text to insert into edit engine.
void InsertText()
Inserts maCurrText into edit engine and adjusts the current selection object.
void CreateCurrObject()
Creates the edit engine text object of current portion from edit engine.
XclImpHFPortion
Enumerates the supported header/footer portions.
sal_Int32 GetTotalHeight() const
Returns the total height of the converted header or footer in twips.
XclImpHFPortionInfo::EditTextObjectRef & GetCurrObj()
Returns the current edit engine text object.
void UpdateCurrMaxLineHeight()
Updates the current maximum line height, using the current font size.
void UpdateMaxLineHeight(XclImpHFPortion ePortion)
Updates the maximum line height of the specified portion, using the current font size.
virtual ~XclImpHFConverter() override
void SetNewPortion(XclImpHFPortion eNew)
Changes current header/footer portion to eNew.
OUStringBuffer maCurrText
Edit engine text objects for all portions.
XclImpHFPortionInfo & GetCurrInfo()
Returns the current edit engine text object.
Access to global data from other classes.
This class is used to import record oriented streams.
This class provides methods to convert an XclImpString.
static std::unique_ptr< EditTextObject > CreateTextObject(const XclImpRoot &rRoot, const XclImpString &rString)
Returns a new edit engine text object.
XclImpStringHelper(const XclImpStringHelper &)=delete
delete copy constructor
XclImpStringHelper()=delete
We don't want anybody to instantiate this class, since it is just a collection of static methods.
static void SetToDocument(ScDocumentImport &rDoc, const ScAddress &rPos, const XclImpRoot &rRoot, const XclImpString &rString, sal_uInt16 nXFIndex)
const XclImpStringHelper & operator=(const XclImpStringHelper &)=delete
delete copy-assignment operator
This class represents an unformatted or formatted string and provides importing from stream.
This class contains static methods to decode a URL stored in an Excel file.
static void DecodeUrl(OUString &rUrl, OUString &rTabName, bool &rbSameWb, const XclImpRoot &rRoot, const OUString &rEncodedUrl)
Decodes an encoded external document URL with optional sheet name.
XclImpUrlHelper(const XclImpUrlHelper &)=delete
delete copy constructor
const XclImpUrlHelper & operator=(const XclImpUrlHelper &)=delete
delete copy-assignment operator
static bool DecodeLink(OUString &rApplic, OUString &rTopic, std::u16string_view aEncUrl)
Decodes the passed URL to OLE or DDE link components.
XclImpUrlHelper()=delete
We don't want anybody to instantiate this class, since it is just a collection of static methods.
A 2D cell range address list with Excel column and row indexes.
These need to be in global namespace just like their respective types are.
A 2D cell address struct with Excel column and row indexes.
This struct helps reading and writing Excel fonts.
Contains all information about a header/footer portion.
XclImpHFPortionInfo()
Maximum font height for the current text line.
sal_uInt16 mnMaxLineHt
Height of previous lines in twips.
sal_Int32 mnHeight
Edit engine selection.
ESelection maSel
Edit engine text object.
std::shared_ptr< EditTextObject > EditTextObjectRef
A 2D cell range address struct with Excel column and row indexes.
::boost::intrusive_ptr< ScMatrix > ScMatrixRef
const sal_uInt8 EXC_ERR_NA
const sal_uInt8 EXC_CACHEDVAL_ERROR
const sal_uInt8 EXC_CACHEDVAL_BOOL