29 namespace drawing {
class XShape; }
30 namespace awt {
class XControlModel; }
31 namespace script {
struct ScriptEventDescriptor; }
298 void SetRect(
const Size& rPageSize, sal_Int32 nScaleX, sal_Int32 nScaleY,
304 sal_uInt16 tmpFirstRow, tmpTY, tmpLastRow, tmpBY;
312 rAnchor.
maFirst.
mnRow =
static_cast<sal_uInt32
> (tmpFirstRow);
313 rAnchor.
mnTY =
static_cast<sal_uInt32
> (tmpTY);
314 rAnchor.
maLast.
mnRow =
static_cast<sal_uInt32
> (tmpLastRow);
315 rAnchor.
mnBY =
static_cast<sal_uInt32
> (tmpBY);
322 sal_uInt16 tmpFirstRow, tmpTY, tmpLastRow, tmpBY;
326 tmpFirstRow =
rStrm.ReaduInt16();
327 tmpTY =
rStrm.ReaduInt16();
330 tmpLastRow =
rStrm.ReaduInt16();
331 tmpBY =
rStrm.ReaduInt16();
333 rAnchor.
maFirst.
mnRow =
static_cast<sal_uInt32
> (tmpFirstRow);
334 rAnchor.
mnTY =
static_cast<sal_uInt32
> (tmpTY);
335 rAnchor.
maLast.
mnRow =
static_cast<sal_uInt32
> (tmpLastRow);
336 rAnchor.
mnBY =
static_cast<sal_uInt32
> (tmpBY);
419 static css::uno::Reference< css::awt::XControlModel >
420 GetControlModel( css::uno::Reference< css::drawing::XShape >
const & xShape );
424 css::script::ScriptEventDescriptor& rDescriptor,
426 const OUString& rXclMacroName,
430 const css::script::ScriptEventDescriptor& rDescriptor,
SvStream & WriteUInt16(sal_uInt16 nUInt16)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
Provides static helper functions for form controls.
static OUString ExtractFromMacroDescriptor(const css::script::ScriptEventDescriptor &rDescriptor, XclTbxEventType eEventType)
Tries to extract an Excel macro name from the passed macro descriptor.
static bool FillMacroDescriptor(css::script::ScriptEventDescriptor &rDescriptor, XclTbxEventType eEventType, const OUString &rXclMacroName, SfxObjectShell *pDocShell)
Fills the macro descriptor according to the passed macro name.
static css::uno::Reference< css::awt::XControlModel > GetControlModel(css::uno::Reference< css::drawing::XShape > const &xShape)
Returns the API control model from the passed API shape object.
This class is used to import record oriented streams.
Access to global data for a filter object (imported or exported document) from other classes.
Represents the position (anchor) of an object in a Calc document.
sal_uInt32 mnTY
X offset in left column (1/1024 of column width).
tools::Rectangle GetRect(const XclRoot &rRoot, SCTAB nScTab, MapUnit eMapUnit) const
Calculates a rectangle from the contained coordinates.
sal_uInt32 mnBY
X offset in right column (1/1024 of column width).
sal_uInt16 mnRX
Y offset in top row (1/256 of row height).
void SetRect(const XclRoot &rRoot, SCTAB nScTab, const tools::Rectangle &rRect, MapUnit eMapUnit)
Initializes the anchor coordinates for a sheet.
XclObjAnchor()
Y offset in bottom row (1/256 of row height).
void ReadTxo8(XclImpStream &rStrm)
Reads text data from a BIFF8 TXO record.
sal_uInt8 GetHorAlign() const
void ReadObj3(XclImpStream &rStrm)
Reads text data from a BIFF3/BIFF4 OBJ record.
sal_uInt8 GetVerAlign() const
void ReadObj5(XclImpStream &rStrm)
Reads text data from a BIFF5 OBJ record.
A 2D cell range address struct with Excel column and row indexes.
const sal_uInt16 EXC_OBJ_PIC_MANUALSIZE
const sal_uInt16 EXC_ID_OBJPICTFMLA
Option flags.
const sal_uInt8 EXC_OBJ_LINE_SOLID
const sal_uInt16 EXC_OBJ_ORIENT_STACKED
const sal_uInt8 EXC_OBJ_ARC_TL
const sal_uInt16 EXC_OBJ_DROPDOWN_SIMPLE
Dropdown listbox with editable text.
const sal_uInt8 EXC_OBJ_LINE_BL
const sal_Int32 EXC_OBJ_TEXT_MARGIN
const sal_uInt16 EXC_ID_OBJBUTTON
Macro link.
const sal_uInt8 EXC_OBJ_LINE_MEDTRANS
const sal_uInt16 EXC_OBJTYPE_NOTE
const sal_uInt8 EXC_OBJ_ARC_TR
Automatic text margin (EMUs).
SvStream & WriteXclObjAnchor(SvStream &rStrm, const XclObjAnchor &rAnchor)
const sal_uInt8 EXC_OBJ_VER_CENTER
const sal_uInt16 EXC_OBJCMO_AUTOFILL
Automatic line formatting.
const sal_uInt16 EXC_OBJ_BUTTON_CLOSE
const sal_uInt16 EXC_OBJTYPE_DRAWING
const sal_uInt8 EXC_OBJ_ARROW_NONE
const sal_uInt16 EXC_OBJ_EDIT_DOUBLE
const sal_uInt16 EXC_OBJ_CHECKBOX_FLAT
const sal_uInt16 EXC_OBJ_DROPDOWN_LISTBOX
const sal_uInt16 EXC_ESC_ANCHOR_LOCKED
const sal_uInt16 EXC_OBJ_FRAME_SHADOW
const sal_uInt16 EXC_OBJTYPE_CHART
const sal_uInt16 EXC_OBJ_PIC_DDE
const sal_uInt16 EXC_OBJ_EDIT_TEXT
const sal_uInt8 EXC_OBJ_ARROW_NARROW
const sal_uInt16 EXC_OBJCMO_AUTOLINE
Object printable.
const sal_uInt16 EXC_OBJTYPE_EDIT
const sal_uInt16 EXC_OBJ_CHECKBOX_CHECKED
const sal_uInt8 EXC_OBJ_LINE_THICK
const sal_uInt8 EXC_OBJ_LINE_HAIR
const sal_uInt16 EXC_OBJ_PIC_CONTROL
const sal_uInt16 EXC_ID_OBJCMO
Check box/radio button cell link.
const sal_uInt16 EXC_OBJ_CHECKBOX_TRISTATE
const sal_uInt8 EXC_OBJ_LISTBOX_RANGE
Multi selection.
const sal_uInt16 EXC_ID3_IMGDATA
const sal_uInt16 EXC_IMGDATA_BMP
const sal_uInt8 EXC_OBJ_VER_JUSTIFY
const sal_uInt16 EXC_OBJ_PIC_CTLSSTREAM
Form control (BIFF8).
const sal_uInt16 EXC_ID_OBJEDODATA
Group box data.
const sal_uInt8 EXC_OBJ_LINE_BR
const sal_uInt8 EXC_OBJ_LINE_TR
const sal_uInt8 EXC_OBJ_VER_BOTTOM
const sal_uInt8 EXC_OBJ_LINE_DASHDOT
const sal_uInt8 EXC_OBJ_LINE_AUTO
const sal_uInt8 EXC_OBJ_ARROW_FILLED
const sal_uInt16 EXC_OBJ_CHECKBOX_UNCHECKED
const sal_uInt16 EXC_ID_OBJGMO
Button data.
const sal_uInt16 EXC_OBJ_PIC_SYMBOL
const sal_uInt8 EXC_OBJ_ARC_BR
const sal_uInt16 EXC_OBJTYPE_UNKNOWN
const sal_uInt16 EXC_ID_OBJCBLSFMLA
List box/combo box data.
const sal_uInt16 EXC_ID8_IMGDATA
const sal_uInt16 EXC_OBJ_BUTTON_CANCEL
const sal_uInt16 EXC_OBJ_POLY_CLOSED
const sal_uInt16 EXC_OBJ_GROUPBOX_FLAT
Dropdown style: filtered.
const sal_uInt16 EXC_OBJ_EDIT_INTEGER
const sal_uInt8 EXC_OBJ_VER_TOP
const sal_uInt16 EXC_OBJTYPE_POLYGON
const sal_uInt16 EXC_ID_OBJGBODATA
Scroll bar/list box/combo box cell link.
const sal_uInt16 EXC_ID_OBJRBODATA
Edit box data.
const sal_uInt8 EXC_OBJ_LINE_DARKTRANS
const sal_uInt8 EXC_OBJ_FILL_AUTOCOLOR
const sal_uInt16 EXC_OBJTYPE_ARC
const sal_uInt16 EXC_OBJTYPE_GROUPBOX
const sal_uInt8 EXC_OBJ_ARC_BL
const sal_uInt8 EXC_OBJ_ARROW_MEDIUM
const sal_uInt16 EXC_IMGDATA_WIN
const sal_uInt8 EXC_OBJ_LINE_TL
const sal_uInt16 EXC_OBJ_SCROLLBAR_DEFFLAGS
const sal_uInt16 EXC_OBJTYPE_DROPDOWN
const sal_uInt16 EXC_ID_OBJSBS
Radio button group data.
const sal_uInt16 EXC_OBJ_DROPDOWN_MAX
Dropdown button only, no text area.
const sal_uInt16 EXC_OBJTYPE_OPTIONBUTTON
const sal_uInt8 EXC_OBJ_LINE_MEDIUM
const sal_uInt16 EXC_ID_OBJNTS
Scroll bar data.
const sal_uInt16 EXC_OBJ_TEXT_LOCKED
const sal_uInt16 EXC_OBJTYPE_BUTTON
const sal_uInt16 EXC_OBJ_ORIENT_90CCW
Stacked top to bottom.
const sal_uInt16 EXC_OBJTYPE_GROUP
const sal_uInt32 EXC_IMGDATA_MAXCONT8
const sal_uInt8 EXC_OBJ_LINE_THIN
const sal_uInt8 EXC_OBJ_LINE_NONE
const sal_uInt16 EXC_ID_OBJCBLS
OLE link formula.
const sal_uInt8 EXC_OBJ_HOR_CENTER
const sal_uInt16 EXC_OBJ_ORIENT_NONE
const sal_uInt16 EXC_OBJ_EDIT_FORMULA
const sal_uInt16 EXC_OBJTYPE_RECTANGLE
const sal_uInt8 EXC_OBJ_ARROW_OPEN
const sal_uInt8 EXC_OBJ_ARROW_OPENBOTH
const sal_uInt16 EXC_OBJ_TEXT_AUTOSIZE
90 degr. clockwise.
const sal_uInt16 EXC_ID_OBJFLAGS
Clipboard format.
SvStream & operator>>(SvStream &rStrm, XclObjAnchor &rAnchor)
const sal_uInt8 EXC_OBJ_HOR_LEFT
const sal_uInt16 EXC_IMGDATA_WMF
const sal_uInt16 EXC_ID_MSODRAWINGSEL
const sal_uInt16 EXC_OBJ_PRINTABLE
const sal_uInt16 EXC_ID_OBJ
const sal_uInt8 EXC_OBJ_ARROW_WIDE
const sal_uInt16 EXC_OBJTYPE_LINE
const sal_uInt16 EXC_ID_OBJUNKNOWN
Common object settings.
const sal_uInt8 EXC_OBJ_FILL_AUTO
XclCtrlBindMode
Automatic fill formatting.
@ EXC_CTRL_BINDPOSITION
Binds cell to content of control.
const sal_uInt16 EXC_OBJ_SCROLLBAR_FLAT
const sal_uInt16 EXC_OBJCMO_PRINTABLE
For internal use only.
@ EXC_TBX_EVENT_VALUE
XTextListener.textChanged.
@ EXC_TBX_EVENT_MOUSE
XActionListener.actionPerformed.
@ EXC_TBX_EVENT_CHANGE
XAdjustmentListener.adjustmentValueChanged.
@ EXC_TBX_EVENT_TEXT
XMouseListener.mouseReleased.
const sal_uInt16 EXC_OBJTYPE_TEXT
const sal_uInt8 EXC_OBJ_LINE_DASH
const sal_uInt16 EXC_ID_OBJSBSFMLA
Note data.
const sal_uInt16 EXC_OBJ_DROPDOWN_FILTERED
const sal_uInt8 EXC_OBJ_LISTBOX_SINGLE
const sal_uInt16 EXC_OBJ_PIC_AUTOLOAD
Data in Ctls stream (BIFF8).
const sal_uInt16 EXC_ID_OBJCBLSDATA
Radio button group data.
const sal_uInt16 EXC_OBJ_LISTBOX_EDIT
Range selection.
const sal_uInt8 EXC_OBJ_LINE_DOT
const sal_uInt16 EXC_OBJ_SCROLLBAR_MIN
const sal_uInt16 EXC_NOTE5_MAXLEN
const sal_uInt8 EXC_OBJ_LISTBOX_MULTI
Single selection.
const sal_uInt8 EXC_OBJ_HOR_RIGHT
const sal_uInt16 EXC_ID_TXO
const sal_uInt16 EXC_OBJ_SCROLLBAR_MAX
const sal_uInt16 EXC_ID_MSODRAWING
const sal_uInt16 EXC_OBJTYPE_LABEL
const sal_uInt16 EXC_OBJTYPE_OVAL
const sal_uInt16 EXC_OBJ_VISIBLE
const sal_uInt16 EXC_ID_OBJLBSDATA
Check box/radio button data.
const sal_uInt16 EXC_OBJ_BUTTON_HELP
const sal_uInt16 EXC_OBJ_EDIT_REFERENCE
const sal_uInt16 EXC_ID_OBJMACRO
End of OBJ.
const sal_uInt16 EXC_OBJ_DROPDOWN_COMBOBOX
Listbox, text not editable.
const sal_uInt16 EXC_OBJTYPE_DIALOG
const sal_uInt8 EXC_OBJ_HOR_JUSTIFY
const sal_uInt16 EXC_OBJTYPE_SCROLLBAR
const sal_uInt16 EXC_ID_OBJCF
Group marker.
const sal_uInt16 EXC_OBJ_SCROLLBAR_HOR
const sal_uInt16 EXC_ID_COORDLIST
const sal_uInt16 EXC_ID_OBJRBO
Check box/radio button data.
const sal_uInt8 EXC_OBJ_LINE_AUTOCOLOR
const sal_uInt16 EXC_OBJTYPE_CHECKBOX
const sal_uInt16 EXC_ID_OBJEND
const sal_uInt16 EXC_ID_NOTE
const sal_uInt16 EXC_OBJ_ORIENT_90CW
90 degr. counterclockwise.
const sal_uInt16 EXC_ESC_ANCHOR_SIZELOCKED
const sal_uInt16 EXC_OBJ_BUTTON_DEFAULT
Auto-load form control (BIFF8).
const sal_uInt8 EXC_OBJ_LINE_LIGHTTRANS
const sal_uInt16 EXC_ID_MSODRAWINGGROUP
const sal_uInt16 EXC_ESC_ANCHOR_POSLOCKED
const sal_uInt16 EXC_OBJTYPE_SPIN
const sal_uInt16 EXC_OBJ_INVALID_ID
const sal_uInt16 EXC_OBJ_LISTBOX_FLAT
const sal_uInt16 EXC_NOTE_VISIBLE
const sal_uInt16 EXC_IMGDATA_MAC
const sal_uInt16 EXC_OBJ_HIDDEN
For internal use only.
const sal_uInt32 EXC_IMGDATA_MAXREC8
const sal_uInt8 EXC_OBJ_LINE_DASHDOTDOT
const sal_uInt8 EXC_OBJ_ARROW_FILLEDBOTH
const sal_uInt16 EXC_OBJTYPE_PICTURE
const sal_uInt16 EXC_OBJTYPE_LISTBOX
const sal_uInt8 EXC_PATT_NONE