20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XEESCHER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XEESCHER_HXX
29 #include <rtl/ustring.hxx>
34 namespace utl {
class TempFile; }
88 const Size& rPageSize, sal_Int32 nScaleX, sal_Int32 nScaleY );
173 css::uno::Reference< css::drawing::XShape >
const & xShape );
231 css::uno::Reference< css::drawing::XShape >
const & xShape,
233 const OUString& rClassName,
234 sal_uInt32 nStrmStart, sal_uInt32 nStrmSize );
253 css::uno::Reference< css::drawing::XShape >
const & xShape,
258 bool SetMacroLink(
const css::script::ScriptEventDescriptor& rEvent );
276 const css::uno::Reference< css::drawing::XShape >
mxShape;
311 css::uno::Reference< css::drawing::XShape >
const & xShape,
320 const css::uno::Reference<css::chart::XChartDocument>&
GetChartDoc()
const;
325 css::uno::Reference< css::drawing::XShape >
mxShape;
326 css::uno::Reference< css::chart::XChartDocument >
mxChartDoc;
352 const OUString& rAddText );
427 sal_uInt16
AddObj( std::unique_ptr<XclObj> pObjRec );
448 const Size& rPageSize,
449 sal_Int32 nScaleX, sal_Int32 nScaleY );
This class stores an unformatted or formatted string for Excel export.
bool mbRowHidden
Column containing the comment is hidden.
virtual void WriteData(EscherEx &rEscherEx, const tools::Rectangle &rRect) override
Called from SVX DFF converter.
SdrTextHorzAdjust meTHA
true = permanently visible.
XclExpDffAnchorBase(const XclExpRoot &rRoot, sal_uInt16 nFlags=0)
Constructs a dummy client anchor.
Represents the entire chart substream (all records in BOF/EOF block).
ScAddress maScPos
Text and formatting data (OOXML)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
void WriteCellLinkSubRec(XclExpStream &rStrm, sal_uInt16 nSubRecId)
Writes a subrecord containing a cell link, or nothing, if no link present.
sal_uInt16 mnScrollMin
Scrollbar: Current value.
The MSODRAWINGGROUP record contains the DGGCONTAINER with global DFF data such as the picture contain...
sal_uInt32 mnStrmStart
Class name of the control.
const XclExpString & GetAuthor() const
Represents the position (anchor) of a note object.
virtual void Save(XclExpStream &rStrm) override
Writes the BITMAP record.
This class is used to export Excel record streams.
virtual void SaveXml(XclExpXmlStream &rStrm) override
sal_uInt16 mnObjId
Calc cell address of the note.
rtl::Reference< XclExpRecordBase > CreateDrawingGroup()
Creates and returns the MSODRAWINGGROUP record containing global DFF data in the DGGCONTAINER.
XclTokenArrayRef mxMacroLink
std::unique_ptr< XclObj > RemoveLastObj()
void ConvertSheetLinks(css::uno::Reference< css::drawing::XShape > const &xShape)
Tries to get spreadsheet cell link and source range link from the passed shape.
virtual void WriteSubRecs(XclExpStream &rStrm) override
virtual void Save(XclExpStream &rStrm) override
Writes the NOTE record, if the respective Escher object is present.
void EndDocument()
Finalizes the object manager after conversion of all sheets.
Represents a NOTE record containing the relevant data of a cell note.
bool mbAutoFill
Position & Size locked.
virtual ~XclExpObjectManager() override
sal_uInt16 mnScrollPage
Scrollbar: Single step.
std::shared_ptr< XclEscherEx > mxEscherEx
bool mbFlatButton
Scrollbar: Page step.
XclExpShapeObj(XclExpObjectManager &rRoot, css::uno::Reference< css::drawing::XShape > const &xShape, ScDocument *pDoc)
virtual void ImplSetFlags(const SdrObject &rSdrObj) override
void SetSdrObject(const SdrObject &rSdrObj)
Sets the anchor position and flags according to the passed SdrObject.
bool SetMacroLink(const css::script::ScriptEventDescriptor &rEvent)
Sets the name of a macro attached to this control.
void StartSheet()
Initializes the object manager for a new sheet.
void SetFlags(const SdrObject &rSdrObj)
Sets the flags according to the passed SdrObject.
virtual ~XclExpControlHelper() override
sal_Int16 mnLineCount
Checked/unchecked state.
XclExpNote(const XclExpRoot &rRoot, const ScAddress &rScPos, const ScPostIt *pScNote, const OUString &rAddText)
Constructs a NOTE record from the passed note object and/or the text.
std::shared_ptr< XclExpChart > XclExpChartRef
XclExpOcxControlObj(XclExpObjectManager &rObjMgr, css::uno::Reference< css::drawing::XShape > const &xShape, const tools::Rectangle *pChildAnchor, const OUString &rClassName, sal_uInt32 nStrmStart, sal_uInt32 nStrmSize)
Access to global data from other classes.
const css::uno::Reference< css::chart::XChartDocument > & GetChartDoc() const
static void WriteFormulaSubRec(XclExpStream &rStrm, sal_uInt16 nSubRecId, const XclTokenArray &rTokArr)
Writes a formula subrecord with special style only valid in OBJ records.
Additional class containing cell annotation data.
bool SetMacroLink(const css::script::ScriptEventDescriptor &rEvent, const XclTbxEventType &nEventType)
Sets the name of a macro for object of passed type.
Represents an OBJ record for an OCX form control.
XclExpDffEmbeddedAnchor(const XclExpRoot &rRoot, const Size &rPageSize, sal_Int32 nScaleX, sal_Int32 nScaleY)
sal_uInt16 GetSourceEntryCount() const
Returns the number of entries in the source range, or 0, if no source set.
void SaveSheetXml(XclExpXmlStream &rStrm, const OUString &aIdFormControlPr) const
Base class for all Excel records.
Base class for records holding DFF stream fragments.
sal_uInt16 mnScrollStep
Scrollbar: Maximum value.
OString maNoteText
Name of the author.
tools::Rectangle maAreaTo
virtual void ImplCalcAnchorRect(const tools::Rectangle &rRect, MapUnit eMapUnit) override
Represents the position (anchor) of a shape in an embedded draw page.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the NOTE record.
bool mbPrint
Scrollbar: true = horizontal.
XclExpMsoDrawingGroup(XclEscherEx &rEscherEx)
bool mbAutoScale
text vertical adjust
void WriteXml(sal_Int32 nAuthorId, XclExpXmlStream &rStrm)
const XclTokenArray * GetCellLinkTokArr() const
Returns the Excel token array of the cell link, or 0, if no link present.
void WriteSbs(XclExpStream &rStrm)
Writes the ftSbs sub structure containing scrollbar data.
static void WriteFormula(XclExpStream &rStrm, const XclTokenArray &rTokArr)
Writes a formula with special style only valid in OBJ records.
virtual void SaveXml(XclExpXmlStream &rStrm) override
tools::Rectangle maCommentFrom
Row containing the comment is hidden.
ScAddress mxCellLinkAddress
Number of entries in source range.
XclExpDffDropDownAnchor(const XclExpRoot &rRoot, const ScAddress &rScPos)
Base class for DFF client anchor atoms used in spreadsheets.
bool mbMultiSel
False = 3D border style; True = Flat border style.
virtual void ImplCalcAnchorRect(const tools::Rectangle &rRect, MapUnit eMapUnit) override
Represents an OBJ record for a TBX form control.
sal_uInt16 mnEntryCount
Formula for source data range.
Represents the position (anchor) of a cell dropdown object.
void InitStream(bool bTempFile)
Represents the position (anchor) of an object in a Calc document.
XclExpStringRef mpNoteContents
Main text of the note (<=BIFF7).
std::unique_ptr< SvStream > mxDffStrm
sal_uInt16 mnScrollMax
Scrollbar: Minimum value.
virtual ~XclExpShapeObj() override
sal_uInt16 mnState
Height of the control.
XclExpTbxControlObj(XclExpObjectManager &rObjMgr, css::uno::Reference< css::drawing::XShape > const &xShape, const tools::Rectangle *pChildAnchor)
XclEscherEx & GetEscherEx()
virtual void ImplSetFlags(const SdrObject &rSdrObj)
virtual void ImplCalcAnchorRect(const tools::Rectangle &rRect, MapUnit eMapUnit)
tools::Rectangle maAreaFrom
XclExpImgData(const Graphic &rGraphic, sal_uInt16 nRecId)
const XclTokenArray * GetSourceRangeTokArr() const
Returns the Excel token array of the source range, or 0, if no link present.
virtual void ImplSetFlags(const SdrObject &rSdrObj) override
const XclExpRoot & mrRoot
sal_Int16 mnSelEntry
Combobox dropdown line count.
virtual ~XclExpChartObj() override
sal_uInt32 mnFragmentKey
Reference to the DFF converter containing the DFF stream.
XclMacroHelper(const XclExpRoot &rRoot)
Token array containing a link to an attached macro.
sal_uInt16 mnFlags
The client anchor data.
One or more MSODRAWING records contain the DFF stream data for a drawing shape.
SdrTextVertAdjust meTVA
text horizontal adjust
XclTbxEventType meEventType
Indexes of all selected entries in a multi selection.
Binary representation of an Excel token array.
XclTokenArrayRef mxSrcRange
Formula for linked cell.
rtl::Reference< XclExpRecordBase > ProcessDrawing(const SdrPage *pSdrPage)
Processes a drawing page and returns the record block containing all related records (MSODRAWING...
OUString SaveControlPropertiesXml(XclExpXmlStream &rStrm) const
sal_uInt16 mnRecId
The VCL graphic.
css::uno::Reference< css::chart::XChartDocument > mxChartDoc
XclExpControlHelper(const XclExpRoot &rRoot)
rtl::Reference< XclExpObjList > mxObjList
bool mbFlatBorder
False = 3D button style; True = Flat button style.
void setShapeId(sal_Int32 aShapeId)
Provides export of bitmap data to an IMGDATA record.
const css::uno::Reference< css::drawing::XShape > mxShape
bool mbScrollHor
true = Multi selection in listbox.
virtual void WriteSubRecs(XclExpStream &rStrm) override
std::shared_ptr< ::utl::TempFile > mxTempFile
bool mbVisible
Escher object ID (BIFF8).
virtual XclExpDffAnchorBase * CreateDffAnchor() const
Creates a new DFF client anchor object.
void WriteDffData(EscherEx &rEscherEx) const
Writes the DFF client anchor structure with the current anchor position.
css::uno::Reference< css::drawing::XShape > mxShape
The chart itself (BOF/EOF substream data).
virtual void Save(XclExpStream &rStrm) override
Writes the OBJ record and the entire chart substream.
virtual void SaveXml(XclExpXmlStream &rStrm) override
sal_Int32 mnHeight
Type of supported macro event.
virtual XclExpDffAnchorBase * CreateDffAnchor() const override
Creates a new DFF client anchor object for embedded objects according to the scaling data passed to t...
sal_uInt16 mnScrollValue
Selected entry in combobox (1-based).
tools::Rectangle maCommentTo
From and From Offset.
Represents the position (anchor) of an object in a Calc sheet.
XclExpObjectManager(const XclExpRoot &rRoot)
sal_uInt32 mnStrmSize
Start position in 'Ctls' stream.
XclExpDffSheetAnchor(const XclExpRoot &rRoot)
std::shared_ptr< XclExpString > XclExpStringRef
XclExpDffNoteAnchor(const XclExpRoot &rRoot, const tools::Rectangle &rRect)
XclExpMsoDrawing(XclEscherEx &rEscherEx)
virtual ~XclMacroHelper() override
virtual void WriteSubRecs(XclExpStream &rStrm) override
void WriteMacroSubRec(XclExpStream &rStrm)
Writes an ftMacro subrecord containing a macro link, or nothing, if no macro present.
XclExpChartObj(XclExpObjectManager &rObjMgr, css::uno::Reference< css::drawing::XShape > const &xShape, const tools::Rectangle *pChildAnchor, ScDocument *pDoc)
XclExpEmbeddedObjectManager(const XclExpObjectManager &rParent, const Size &rPageSize, sal_Int32 nScaleX, sal_Int32 nScaleY)
XclExpMsoDrawing * GetMsodrawingPerSheet()
Helper class for form controls to manage spreadsheet links .
bool mbLocked
Auto scale text.
XclTokenArrayRef mxCellLink
sal_uInt16 AddObj(std::unique_ptr< XclObj > pObjRec)
Base class for single records with any content.
XclExpMsoDrawingBase(XclEscherEx &rEscherEx, sal_uInt16 nRecId)
bool mbColHidden
Auto Fill Style.