LibreOffice Module sc (master)  1
xlescher.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XLESCHER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XLESCHER_HXX
22 
23 #include <tools/gen.hxx>
24 #include <tools/mapunit.hxx>
25 #include "xladdress.hxx"
26 #include "xlstyle.hxx"
27 #include "xistream.hxx"
28 
29 namespace com::sun::star {
30  namespace drawing { class XShape; }
31  namespace awt { class XControlModel; }
32  namespace script { struct ScriptEventDescriptor; }
33 }
34 
35 // Constants and Enumerations =================================================
36 
37 // (0x001C) NOTE --------------------------------------------------------------
38 
39 const sal_uInt16 EXC_ID_NOTE = 0x001C;
40 const sal_uInt16 EXC_NOTE_VISIBLE = 0x0002;
41 const sal_uInt16 EXC_NOTE5_MAXLEN = 2048;
42 
43 // (0x005D) OBJ ---------------------------------------------------------------
44 
45 const sal_uInt16 EXC_ID_OBJ = 0x005D;
46 
47 const sal_uInt16 EXC_OBJ_INVALID_ID = 0;
48 
49 // object types
50 const sal_uInt16 EXC_OBJTYPE_GROUP = 0;
51 const sal_uInt16 EXC_OBJTYPE_LINE = 1;
52 const sal_uInt16 EXC_OBJTYPE_RECTANGLE = 2;
53 const sal_uInt16 EXC_OBJTYPE_OVAL = 3;
54 const sal_uInt16 EXC_OBJTYPE_ARC = 4;
55 const sal_uInt16 EXC_OBJTYPE_CHART = 5;
56 const sal_uInt16 EXC_OBJTYPE_TEXT = 6;
57 const sal_uInt16 EXC_OBJTYPE_BUTTON = 7;
58 const sal_uInt16 EXC_OBJTYPE_PICTURE = 8;
59 const sal_uInt16 EXC_OBJTYPE_POLYGON = 9; // new in BIFF4
60 const sal_uInt16 EXC_OBJTYPE_CHECKBOX = 11; // new in BIFF5
61 const sal_uInt16 EXC_OBJTYPE_OPTIONBUTTON = 12;
62 const sal_uInt16 EXC_OBJTYPE_EDIT = 13;
63 const sal_uInt16 EXC_OBJTYPE_LABEL = 14;
64 const sal_uInt16 EXC_OBJTYPE_DIALOG = 15;
65 const sal_uInt16 EXC_OBJTYPE_SPIN = 16;
66 const sal_uInt16 EXC_OBJTYPE_SCROLLBAR = 17;
67 const sal_uInt16 EXC_OBJTYPE_LISTBOX = 18;
68 const sal_uInt16 EXC_OBJTYPE_GROUPBOX = 19;
69 const sal_uInt16 EXC_OBJTYPE_DROPDOWN = 20;
70 const sal_uInt16 EXC_OBJTYPE_NOTE = 25; // new in BIFF8
71 const sal_uInt16 EXC_OBJTYPE_DRAWING = 30;
72 const sal_uInt16 EXC_OBJTYPE_UNKNOWN = 0xFFFF;
73 
74 // BIFF3-BIFF5 flags
75 const sal_uInt16 EXC_OBJ_HIDDEN = 0x0100;
76 const sal_uInt16 EXC_OBJ_VISIBLE = 0x0200;
77 const sal_uInt16 EXC_OBJ_PRINTABLE = 0x0400;
78 
79 // BIFF5 line formatting
81 
91 
96 
98 
104 
108 
113 
114 // BIFF5 fill formatting
116 
118 
119 // BIFF5 frame formatting
120 const sal_uInt16 EXC_OBJ_FRAME_SHADOW = 0x0002;
121 
122 // BIFF5 text objects
127 
132 
133 const sal_uInt16 EXC_OBJ_ORIENT_NONE = 0;
134 const sal_uInt16 EXC_OBJ_ORIENT_STACKED = 1;
135 const sal_uInt16 EXC_OBJ_ORIENT_90CCW = 2;
136 const sal_uInt16 EXC_OBJ_ORIENT_90CW = 3;
137 
138 const sal_uInt16 EXC_OBJ_TEXT_AUTOSIZE = 0x0080;
139 const sal_uInt16 EXC_OBJ_TEXT_LOCKED = 0x0200;
140 
141 const sal_Int32 EXC_OBJ_TEXT_MARGIN = 20000;
142 
143 // BIFF5 arc objects
148 
149 // BIFF5 polygon objects
150 const sal_uInt16 EXC_OBJ_POLY_CLOSED = 0x0100;
151 
152 // BIFF5 pictures/OLE objects
153 const sal_uInt16 EXC_OBJ_PIC_MANUALSIZE = 0x0001;
154 const sal_uInt16 EXC_OBJ_PIC_DDE = 0x0002;
155 const sal_uInt16 EXC_OBJ_PIC_SYMBOL = 0x0008;
156 const sal_uInt16 EXC_OBJ_PIC_CONTROL = 0x0010;
157 const sal_uInt16 EXC_OBJ_PIC_CTLSSTREAM = 0x0020;
158 const sal_uInt16 EXC_OBJ_PIC_AUTOLOAD = 0x0200;
159 
160 // BIFF5 button objects
161 const sal_uInt16 EXC_OBJ_BUTTON_DEFAULT = 0x0001;
162 const sal_uInt16 EXC_OBJ_BUTTON_HELP = 0x0002;
163 const sal_uInt16 EXC_OBJ_BUTTON_CANCEL = 0x0004;
164 const sal_uInt16 EXC_OBJ_BUTTON_CLOSE = 0x0008;
165 
166 // BIFF5 checkboxes, radio buttons
167 const sal_uInt16 EXC_OBJ_CHECKBOX_UNCHECKED = 0;
168 const sal_uInt16 EXC_OBJ_CHECKBOX_CHECKED = 1;
169 const sal_uInt16 EXC_OBJ_CHECKBOX_TRISTATE = 2;
170 const sal_uInt16 EXC_OBJ_CHECKBOX_FLAT = 0x0001;
171 
172 // BIFF5 editbox objects
173 const sal_uInt16 EXC_OBJ_EDIT_TEXT = 0;
174 const sal_uInt16 EXC_OBJ_EDIT_INTEGER = 1;
175 const sal_uInt16 EXC_OBJ_EDIT_DOUBLE = 2;
176 const sal_uInt16 EXC_OBJ_EDIT_REFERENCE = 3;
177 const sal_uInt16 EXC_OBJ_EDIT_FORMULA = 4;
178 
179 // BIFF5 scrollbars/spinbuttons
180 const sal_uInt16 EXC_OBJ_SCROLLBAR_MIN = 0;
181 const sal_uInt16 EXC_OBJ_SCROLLBAR_MAX = 30000;
182 
183 const sal_uInt16 EXC_OBJ_SCROLLBAR_HOR = 0x0001;
184 
185 const sal_uInt16 EXC_OBJ_SCROLLBAR_DEFFLAGS = 0x0001;
186 const sal_uInt16 EXC_OBJ_SCROLLBAR_FLAT = 0x0008;
187 
188 // BIFF5 listboxes/dropdowns
192 
193 const sal_uInt16 EXC_OBJ_LISTBOX_EDIT = 0x0002;
194 const sal_uInt16 EXC_OBJ_LISTBOX_FLAT = 0x0008;
195 
196 // BIFF5 dropdown listboxes
197 const sal_uInt16 EXC_OBJ_DROPDOWN_LISTBOX = 0;
198 const sal_uInt16 EXC_OBJ_DROPDOWN_COMBOBOX = 1;
199 const sal_uInt16 EXC_OBJ_DROPDOWN_SIMPLE = 2;
200 const sal_uInt16 EXC_OBJ_DROPDOWN_MAX = 3;
201 const sal_uInt16 EXC_OBJ_DROPDOWN_FILTERED = 0x0008;
202 
203 // BIFF5 groupboxes
204 const sal_uInt16 EXC_OBJ_GROUPBOX_FLAT = 0x0001;
205 
206 // BIFF8 sub records
207 const sal_uInt16 EXC_ID_OBJEND = 0x0000;
208 const sal_uInt16 EXC_ID_OBJMACRO = 0x0004;
209 const sal_uInt16 EXC_ID_OBJBUTTON = 0x0005;
210 const sal_uInt16 EXC_ID_OBJGMO = 0x0006;
211 const sal_uInt16 EXC_ID_OBJCF = 0x0007;
212 const sal_uInt16 EXC_ID_OBJFLAGS = 0x0008;
213 const sal_uInt16 EXC_ID_OBJPICTFMLA = 0x0009;
214 const sal_uInt16 EXC_ID_OBJCBLS = 0x000A;
215 const sal_uInt16 EXC_ID_OBJRBO = 0x000B;
216 const sal_uInt16 EXC_ID_OBJSBS = 0x000C;
217 const sal_uInt16 EXC_ID_OBJNTS = 0x000D;
218 const sal_uInt16 EXC_ID_OBJSBSFMLA = 0x000E;
219 const sal_uInt16 EXC_ID_OBJGBODATA = 0x000F;
220 const sal_uInt16 EXC_ID_OBJEDODATA = 0x0010;
221 const sal_uInt16 EXC_ID_OBJRBODATA = 0x0011;
222 const sal_uInt16 EXC_ID_OBJCBLSDATA = 0x0012;
223 const sal_uInt16 EXC_ID_OBJLBSDATA = 0x0013;
224 const sal_uInt16 EXC_ID_OBJCBLSFMLA = 0x0014;
225 const sal_uInt16 EXC_ID_OBJCMO = 0x0015;
226 const sal_uInt16 EXC_ID_OBJUNKNOWN = 0xFFFF;
227 
228 // BIFF8 OBJCMO: flags
229 const sal_uInt16 EXC_OBJCMO_PRINTABLE = 0x0010;
230 const sal_uInt16 EXC_OBJCMO_AUTOLINE = 0x2000;
231 const sal_uInt16 EXC_OBJCMO_AUTOFILL = 0x4000;
232 
235 {
238 };
239 
240 // (0x007F) IMGDATA -----------------------------------------------------------
241 
242 const sal_uInt16 EXC_ID3_IMGDATA = 0x007F;
243 const sal_uInt16 EXC_ID8_IMGDATA = 0x00E9;
244 
245 const sal_uInt16 EXC_IMGDATA_WMF = 2;
246 const sal_uInt16 EXC_IMGDATA_BMP = 9;
247 
248 const sal_uInt16 EXC_IMGDATA_WIN = 1;
249 const sal_uInt16 EXC_IMGDATA_MAC = 2;
250 
251 const sal_uInt32 EXC_IMGDATA_MAXREC8 = 0x201C;
252 const sal_uInt32 EXC_IMGDATA_MAXCONT8 = 0x2014;
253 
254 // (0x00A9) COORDLIST ---------------------------------------------------------
255 
256 const sal_uInt16 EXC_ID_COORDLIST = 0x00A9;
257 
258 // (0x00EB) MSODRAWINGGROUP ---------------------------------------------------
259 
260 const sal_uInt16 EXC_ID_MSODRAWINGGROUP = 0x00EB;
261 
262 // (0x00EC) MSODRAWING --------------------------------------------------------
263 
264 const sal_uInt16 EXC_ID_MSODRAWING = 0x00EC;
265 
266 // additional flags not extant in svx headers
267 const sal_uInt16 EXC_ESC_ANCHOR_POSLOCKED = 0x0001;
268 const sal_uInt16 EXC_ESC_ANCHOR_SIZELOCKED = 0x0002;
270 
271 // (0x00ED) MSODRAWINGSELECTION -----------------------------------------------
272 
273 const sal_uInt16 EXC_ID_MSODRAWINGSEL = 0x00ED;
274 
275 // (0x01B6) TXO ---------------------------------------------------------------
276 
277 const sal_uInt16 EXC_ID_TXO = 0x01B6;
278 
279 // TXO constants are equal to BIFF5 OBJ text object flags
280 
281 // Structs and classes ========================================================
282 
284 struct XclObjAnchor : public XclRange
285 {
286  sal_uInt16 mnLX;
287  sal_uInt32 mnTY;
288  sal_uInt16 mnRX;
289  sal_uInt32 mnBY;
290 
291  explicit XclObjAnchor();
292 
294  tools::Rectangle GetRect( const XclRoot& rRoot, SCTAB nScTab, MapUnit eMapUnit ) const;
296  void SetRect( const XclRoot& rRoot, SCTAB nScTab, const tools::Rectangle& rRect, MapUnit eMapUnit );
297 
299  void SetRect( const Size& rPageSize, sal_Int32 nScaleX, sal_Int32 nScaleY,
300  const tools::Rectangle& rRect, MapUnit eMapUnit );
301 };
302 
303 inline SvStream& operator>>( SvStream& rStrm, XclObjAnchor& rAnchor )
304 {
305  sal_uInt16 tmpFirstRow, tmpTY, tmpLastRow, tmpBY;
306 
307  rStrm
308  .ReadUInt16( rAnchor.maFirst.mnCol ).ReadUInt16( rAnchor.mnLX )
309  .ReadUInt16( tmpFirstRow ).ReadUInt16( tmpTY )
310  .ReadUInt16( rAnchor.maLast.mnCol ).ReadUInt16( rAnchor.mnRX )
311  .ReadUInt16( tmpLastRow ).ReadUInt16( tmpBY );
312 
313  rAnchor.maFirst.mnRow = static_cast<sal_uInt32> (tmpFirstRow);
314  rAnchor.mnTY = static_cast<sal_uInt32> (tmpTY);
315  rAnchor.maLast.mnRow = static_cast<sal_uInt32> (tmpLastRow);
316  rAnchor.mnBY = static_cast<sal_uInt32> (tmpBY);
317 
318  return rStrm;
319 }
320 
322 {
323  sal_uInt16 tmpFirstRow, tmpTY, tmpLastRow, tmpBY;
324 
325  rAnchor.maFirst.mnCol = rStrm.ReaduInt16();
326  rAnchor.mnLX = rStrm.ReaduInt16();
327  tmpFirstRow = rStrm.ReaduInt16();
328  tmpTY = rStrm.ReaduInt16();
329  rAnchor.maLast.mnCol = rStrm.ReaduInt16();
330  rAnchor.mnRX = rStrm.ReaduInt16();
331  tmpLastRow = rStrm.ReaduInt16();
332  tmpBY = rStrm.ReaduInt16();
333 
334  rAnchor.maFirst.mnRow = static_cast<sal_uInt32> (tmpFirstRow);
335  rAnchor.mnTY = static_cast<sal_uInt32> (tmpTY);
336  rAnchor.maLast.mnRow = static_cast<sal_uInt32> (tmpLastRow);
337  rAnchor.mnBY = static_cast<sal_uInt32> (tmpBY);
338 
339  return rStrm;
340 }
341 
342 inline SvStream& WriteXclObjAnchor( SvStream& rStrm, const XclObjAnchor& rAnchor )
343 {
344  return rStrm
345  .WriteUInt16( rAnchor.maFirst.mnCol ).WriteUInt16( rAnchor.mnLX )
346  .WriteUInt16( rAnchor.maFirst.mnRow ).WriteUInt16( rAnchor.mnTY )
347  .WriteUInt16( rAnchor.maLast.mnCol ).WriteUInt16( rAnchor.mnRX )
348  .WriteUInt16( rAnchor.maLast.mnRow).WriteUInt16(rAnchor.mnBY);
349 }
350 
352 {
357 
358  explicit XclObjLineData();
359 
360  bool IsAuto() const { return ::get_flag( mnAuto, EXC_OBJ_LINE_AUTO ); }
361  bool IsVisible() const { return IsAuto() || (mnStyle != EXC_OBJ_LINE_NONE); }
362 };
363 
364 XclImpStream& operator>>( XclImpStream& rStrm, XclObjLineData& rLineData );
365 
367 {
372 
373  explicit XclObjFillData();
374 
375  bool IsAuto() const { return ::get_flag( mnAuto, EXC_OBJ_FILL_AUTO ); }
376  bool IsFilled() const { return IsAuto() || (mnPattern != EXC_PATT_NONE); }
377 };
378 
379 XclImpStream& operator>>( XclImpStream& rStrm, XclObjFillData& rFillData );
380 
382 {
383  sal_uInt16 mnTextLen;
384  sal_uInt16 mnFormatSize;
385  sal_uInt16 mnLinkSize;
386  sal_uInt16 mnDefFontIdx;
387  sal_uInt16 mnFlags;
388  sal_uInt16 mnOrient;
389  sal_uInt16 mnButtonFlags;
390  sal_uInt16 mnShortcut;
391  sal_uInt16 mnShortcutEA;
392 
393  explicit XclObjTextData();
394 
396  void ReadObj3( XclImpStream& rStrm );
398  void ReadObj5( XclImpStream& rStrm );
400  void ReadTxo8( XclImpStream& rStrm );
401 
402  sal_uInt8 GetHorAlign() const { return ::extract_value< sal_uInt8 >( mnFlags, 1, 3 ); }
403  sal_uInt8 GetVerAlign() const { return ::extract_value< sal_uInt8 >( mnFlags, 4, 3 ); }
404 };
405 
407 {
413 };
414 
417 {
418 public:
420  static css::uno::Reference< css::awt::XControlModel >
421  GetControlModel( css::uno::Reference< css::drawing::XShape > const & xShape );
422 
424  static bool FillMacroDescriptor(
425  css::script::ScriptEventDescriptor& rDescriptor,
426  XclTbxEventType eEventType,
427  const OUString& rXclMacroName,
428  SfxObjectShell* pDocShell );
430  static OUString ExtractFromMacroDescriptor(
431  const css::script::ScriptEventDescriptor& rDescriptor,
432  XclTbxEventType eEventType );
433 };
434 
435 #endif
436 
437 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvStream & WriteXclObjAnchor(SvStream &rStrm, const XclObjAnchor &rAnchor)
Definition: xlescher.hxx:342
const sal_uInt16 EXC_NOTE5_MAXLEN
Definition: xlescher.hxx:41
const sal_uInt16 EXC_ID_OBJSBS
Radio button group data.
Definition: xlescher.hxx:216
const sal_uInt8 EXC_OBJ_LINE_MEDTRANS
Definition: xlescher.hxx:87
const sal_uInt8 EXC_OBJ_LINE_BL
Definition: xlescher.hxx:112
const sal_uInt16 EXC_ID_OBJEND
Definition: xlescher.hxx:207
const sal_uInt16 EXC_OBJ_POLY_CLOSED
Definition: xlescher.hxx:150
const sal_uInt16 EXC_OBJ_ORIENT_90CCW
Stacked top to bottom.
Definition: xlescher.hxx:135
const sal_uInt8 EXC_OBJ_FILL_AUTOCOLOR
Definition: xlescher.hxx:115
const sal_uInt8 EXC_OBJ_ARROW_NARROW
Definition: xlescher.hxx:105
sal_uInt16 mnFormatSize
Definition: xlescher.hxx:384
SvStream & WriteUInt16(sal_uInt16 nUInt16)
const sal_uInt16 EXC_OBJTYPE_UNKNOWN
Definition: xlescher.hxx:72
const sal_uInt32 EXC_IMGDATA_MAXCONT8
Definition: xlescher.hxx:252
sal_uInt16 mnOrient
Definition: xlescher.hxx:388
const sal_uInt16 EXC_OBJ_PIC_CONTROL
Definition: xlescher.hxx:156
sal_uInt8 mnPattern
Definition: xlescher.hxx:370
const sal_uInt16 EXC_OBJ_SCROLLBAR_DEFFLAGS
Definition: xlescher.hxx:185
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
const sal_uInt16 EXC_IMGDATA_MAC
Definition: xlescher.hxx:249
const sal_uInt16 EXC_ID_NOTE
Definition: xlescher.hxx:39
const sal_uInt16 EXC_OBJ_EDIT_INTEGER
Definition: xlescher.hxx:174
const sal_uInt16 EXC_OBJ_ORIENT_NONE
Definition: xlescher.hxx:133
sal_uInt16 mnRX
Y offset in top row (1/256 of row height).
Definition: xlescher.hxx:288
const sal_uInt16 EXC_OBJ_PIC_SYMBOL
Definition: xlescher.hxx:155
const sal_uInt8 EXC_OBJ_ARC_BL
Definition: xlescher.hxx:146
const sal_uInt16 EXC_ID_TXO
Definition: xlescher.hxx:277
const sal_uInt16 EXC_OBJ_INVALID_ID
Definition: xlescher.hxx:47
const sal_uInt16 EXC_ID_OBJPICTFMLA
Option flags.
Definition: xlescher.hxx:213
const sal_uInt8 EXC_OBJ_LISTBOX_MULTI
Single selection.
Definition: xlescher.hxx:190
const sal_uInt16 EXC_ID_MSODRAWINGGROUP
Definition: xlescher.hxx:260
const sal_uInt16 EXC_OBJ_SCROLLBAR_HOR
Definition: xlescher.hxx:183
const sal_uInt16 EXC_ID_OBJCMO
Check box/radio button cell link.
Definition: xlescher.hxx:225
bool IsAuto() const
Definition: xlescher.hxx:360
sal_uInt8 mnColorIdx
Definition: xlescher.hxx:353
exports com.sun.star. awt
const sal_uInt16 EXC_OBJ_DROPDOWN_FILTERED
Definition: xlescher.hxx:201
sal_Int16 script
static bool FillMacroDescriptor(css::script::ScriptEventDescriptor &rDescriptor, XclTbxEventType eEventType, const OUString &rXclMacroName, SfxObjectShell *pDocShell)
Fills the macro descriptor according to the passed macro name.
Definition: xlescher.cxx:320
XMouseListener.mouseReleased.
Definition: xlescher.hxx:410
const sal_Int32 EXC_OBJ_TEXT_MARGIN
Definition: xlescher.hxx:141
XclAddress maLast
Definition: xladdress.hxx:61
sal_uInt32 mnRow
Definition: xladdress.hxx:33
sal_uInt8 GetHorAlign() const
Definition: xlescher.hxx:402
const sal_uInt16 EXC_ID8_IMGDATA
Definition: xlescher.hxx:243
const sal_uInt16 EXC_IMGDATA_BMP
Definition: xlescher.hxx:246
const sal_uInt16 EXC_OBJ_PIC_MANUALSIZE
Definition: xlescher.hxx:153
XclAddress maFirst
Definition: xladdress.hxx:60
void ReadObj3(XclImpStream &rStrm)
Reads text data from a BIFF3/BIFF4 OBJ record.
Definition: xlescher.cxx:252
SvStream & operator>>(SvStream &rStrm, XclObjAnchor &rAnchor)
Definition: xlescher.hxx:303
const sal_uInt8 EXC_OBJ_LINE_NONE
Definition: xlescher.hxx:90
const sal_uInt16 EXC_OBJ_BUTTON_DEFAULT
Auto-load form control (BIFF8).
Definition: xlescher.hxx:161
void ReadObj5(XclImpStream &rStrm)
Reads text data from a BIFF5 OBJ record.
Definition: xlescher.cxx:264
const sal_uInt16 EXC_OBJCMO_PRINTABLE
For internal use only.
Definition: xlescher.hxx:229
const sal_uInt16 EXC_OBJ_VISIBLE
Definition: xlescher.hxx:76
const sal_uInt16 EXC_ID_OBJNTS
Scroll bar data.
Definition: xlescher.hxx:217
const sal_uInt8 EXC_OBJ_LINE_DOT
Definition: xlescher.hxx:84
sal_uInt8 mnWidth
Definition: xlescher.hxx:355
const sal_uInt16 EXC_ID_OBJFLAGS
Clipboard format.
Definition: xlescher.hxx:212
const sal_uInt16 EXC_ID_OBJSBSFMLA
Note data.
Definition: xlescher.hxx:218
XAdjustmentListener.adjustmentValueChanged.
Definition: xlescher.hxx:412
XTextListener.textChanged.
Definition: xlescher.hxx:411
const sal_uInt16 EXC_OBJ_EDIT_FORMULA
Definition: xlescher.hxx:177
const sal_uInt16 EXC_OBJTYPE_ARC
Definition: xlescher.hxx:54
const sal_uInt16 EXC_OBJ_LISTBOX_FLAT
Definition: xlescher.hxx:194
sal_uInt8 GetVerAlign() const
Definition: xlescher.hxx:403
const sal_uInt16 EXC_OBJTYPE_SCROLLBAR
Definition: xlescher.hxx:66
XclCtrlBindMode
Automatic fill formatting.
Definition: xlescher.hxx:234
const sal_uInt8 EXC_OBJ_LISTBOX_SINGLE
Definition: xlescher.hxx:189
sal_uInt8 mnBackColorIdx
Definition: xlescher.hxx:368
tools::Rectangle GetRect(const XclRoot &rRoot, SCTAB nScTab, MapUnit eMapUnit) const
Calculates a rectangle from the contained coordinates.
Definition: xlescher.cxx:146
XclTbxEventType
Definition: xlescher.hxx:406
const sal_uInt16 EXC_OBJ_DROPDOWN_COMBOBOX
Listbox, text not editable.
Definition: xlescher.hxx:198
const sal_uInt16 EXC_OBJTYPE_GROUP
Definition: xlescher.hxx:50
const sal_uInt16 EXC_IMGDATA_WIN
Definition: xlescher.hxx:248
const sal_uInt8 EXC_OBJ_LINE_THIN
Definition: xlescher.hxx:93
const sal_uInt16 EXC_ESC_ANCHOR_POSLOCKED
Definition: xlescher.hxx:267
const sal_uInt16 EXC_IMGDATA_WMF
Definition: xlescher.hxx:245
const sal_uInt16 EXC_OBJ_BUTTON_CANCEL
Definition: xlescher.hxx:163
const sal_uInt8 EXC_OBJ_HOR_JUSTIFY
Definition: xlescher.hxx:126
const sal_uInt16 EXC_OBJ_EDIT_DOUBLE
Definition: xlescher.hxx:175
const sal_uInt8 EXC_OBJ_LINE_DARKTRANS
Definition: xlescher.hxx:88
const sal_uInt16 EXC_ID3_IMGDATA
Definition: xlescher.hxx:242
const sal_uInt8 EXC_OBJ_LINE_SOLID
Definition: xlescher.hxx:82
const sal_uInt32 EXC_IMGDATA_MAXREC8
Definition: xlescher.hxx:251
const sal_uInt8 EXC_OBJ_ARROW_NONE
Definition: xlescher.hxx:99
const sal_uInt16 EXC_ID_OBJUNKNOWN
Common object settings.
Definition: xlescher.hxx:226
sal_uInt16 mnFlags
Definition: xlescher.hxx:387
const sal_uInt16 EXC_OBJ_SCROLLBAR_FLAT
Definition: xlescher.hxx:186
const sal_uInt8 EXC_OBJ_LINE_LIGHTTRANS
Definition: xlescher.hxx:89
const sal_uInt8 EXC_OBJ_VER_JUSTIFY
Definition: xlescher.hxx:131
sal_uInt32 mnBY
X offset in right column (1/1024 of column width).
Definition: xlescher.hxx:289
const sal_uInt16 EXC_OBJ_PIC_AUTOLOAD
Data in Ctls stream (BIFF8).
Definition: xlescher.hxx:158
const sal_uInt16 EXC_OBJTYPE_DRAWING
Definition: xlescher.hxx:71
sal_uInt16 mnDefFontIdx
Definition: xlescher.hxx:386
const sal_uInt16 EXC_ID_OBJRBODATA
Edit box data.
Definition: xlescher.hxx:221
const sal_uInt16 EXC_OBJTYPE_DROPDOWN
Definition: xlescher.hxx:69
const sal_uInt16 EXC_OBJTYPE_GROUPBOX
Definition: xlescher.hxx:68
const sal_uInt8 EXC_OBJ_HOR_RIGHT
Definition: xlescher.hxx:125
const sal_uInt16 EXC_ID_MSODRAWING
Definition: xlescher.hxx:264
const sal_uInt16 EXC_OBJ_DROPDOWN_SIMPLE
Dropdown listbox with editable text.
Definition: xlescher.hxx:199
const sal_uInt8 EXC_OBJ_LINE_MEDIUM
Definition: xlescher.hxx:94
const sal_uInt16 EXC_OBJ_GROUPBOX_FLAT
Dropdown style: filtered.
Definition: xlescher.hxx:204
static OUString ExtractFromMacroDescriptor(const css::script::ScriptEventDescriptor &rDescriptor, XclTbxEventType eEventType)
Tries to extract an Excel macro name from the passed macro descriptor.
Definition: xlescher.cxx:334
const sal_uInt8 EXC_OBJ_LINE_DASH
Definition: xlescher.hxx:83
sal_uInt16 mnLX
Definition: xlescher.hxx:286
sal_uInt8 mnAuto
Definition: xlescher.hxx:371
const sal_uInt16 EXC_OBJ_ORIENT_90CW
90 degr. counterclockwise.
Definition: xlescher.hxx:136
const sal_uInt16 EXC_OBJ_EDIT_TEXT
Definition: xlescher.hxx:173
const sal_uInt8 EXC_OBJ_LINE_BR
Definition: xlescher.hxx:111
const sal_uInt16 EXC_OBJTYPE_NOTE
Definition: xlescher.hxx:70
const sal_uInt8 EXC_OBJ_VER_CENTER
Definition: xlescher.hxx:129
void ReadTxo8(XclImpStream &rStrm)
Reads text data from a BIFF8 TXO record.
Definition: xlescher.cxx:281
const sal_uInt16 EXC_OBJ_CHECKBOX_FLAT
Definition: xlescher.hxx:170
const sal_uInt16 EXC_ID_OBJRBO
Check box/radio button data.
Definition: xlescher.hxx:215
const sal_uInt16 EXC_OBJTYPE_EDIT
Definition: xlescher.hxx:62
const sal_uInt16 EXC_OBJ_SCROLLBAR_MAX
Definition: xlescher.hxx:181
const sal_uInt16 EXC_OBJTYPE_LABEL
Definition: xlescher.hxx:63
const sal_uInt8 EXC_OBJ_ARROW_OPEN
Definition: xlescher.hxx:100
const sal_uInt16 EXC_OBJ_ORIENT_STACKED
Definition: xlescher.hxx:134
const sal_uInt8 EXC_OBJ_HOR_CENTER
Definition: xlescher.hxx:124
const sal_uInt16 EXC_ID_OBJCBLSDATA
Radio button group data.
Definition: xlescher.hxx:222
const sal_uInt16 EXC_ESC_ANCHOR_LOCKED
Definition: xlescher.hxx:269
const sal_uInt16 EXC_OBJ_BUTTON_CLOSE
Definition: xlescher.hxx:164
const sal_uInt16 EXC_OBJCMO_AUTOFILL
Automatic line formatting.
Definition: xlescher.hxx:231
sal_uInt8 mnAuto
Definition: xlescher.hxx:356
Represents the position (anchor) of an object in a Calc document.
Definition: xlescher.hxx:284
const sal_uInt8 EXC_OBJ_LINE_HAIR
Definition: xlescher.hxx:92
sal_uInt16 mnLinkSize
Definition: xlescher.hxx:385
const sal_uInt16 EXC_ID_OBJGBODATA
Scroll bar/list box/combo box cell link.
Definition: xlescher.hxx:219
bool get_flag(Type nBitField, Type nMask)
Returns true, if at least one of the bits set in nMask is set in nBitField.
Definition: ftools.hxx:74
const sal_uInt16 EXC_NOTE_VISIBLE
Definition: xlescher.hxx:40
const sal_uInt16 EXC_ID_OBJ
Definition: xlescher.hxx:45
sal_uInt8 mnStyle
Definition: xlescher.hxx:354
const sal_uInt16 EXC_ID_COORDLIST
Definition: xlescher.hxx:256
const sal_uInt16 EXC_OBJ_DROPDOWN_LISTBOX
Definition: xlescher.hxx:197
const sal_uInt8 EXC_OBJ_ARROW_MEDIUM
Definition: xlescher.hxx:106
const sal_uInt8 EXC_OBJ_ARROW_WIDE
Definition: xlescher.hxx:107
sal_uInt16 mnCol
Definition: xladdress.hxx:32
const sal_uInt16 EXC_OBJ_PRINTABLE
Definition: xlescher.hxx:77
const sal_uInt16 EXC_OBJTYPE_RECTANGLE
Definition: xlescher.hxx:52
const sal_uInt8 EXC_OBJ_LINE_TL
Definition: xlescher.hxx:109
const sal_uInt8 EXC_OBJ_ARC_TL
Definition: xlescher.hxx:145
const sal_uInt8 EXC_OBJ_VER_BOTTOM
Definition: xlescher.hxx:130
const sal_uInt16 EXC_OBJ_HIDDEN
For internal use only.
Definition: xlescher.hxx:75
const sal_uInt8 EXC_OBJ_LINE_DASHDOTDOT
Definition: xlescher.hxx:86
sal_uInt16 ReaduInt16()
Definition: xistream.cxx:648
const sal_uInt16 EXC_OBJ_PIC_DDE
Definition: xlescher.hxx:154
const sal_uInt16 EXC_ID_OBJCBLS
OLE link formula.
Definition: xlescher.hxx:214
const sal_uInt16 EXC_OBJ_CHECKBOX_CHECKED
Definition: xlescher.hxx:168
const sal_uInt16 EXC_ID_OBJEDODATA
Group box data.
Definition: xlescher.hxx:220
const sal_uInt16 EXC_OBJ_CHECKBOX_TRISTATE
Definition: xlescher.hxx:169
const sal_uInt8 EXC_OBJ_ARC_BR
Definition: xlescher.hxx:147
const sal_uInt16 EXC_OBJTYPE_CHECKBOX
Definition: xlescher.hxx:60
const sal_uInt16 EXC_OBJ_CHECKBOX_UNCHECKED
Definition: xlescher.hxx:167
const sal_uInt16 EXC_ID_MSODRAWINGSEL
Definition: xlescher.hxx:273
bool IsVisible() const
Definition: xlescher.hxx:361
const sal_uInt16 EXC_OBJTYPE_SPIN
Definition: xlescher.hxx:65
Provides static helper functions for form controls.
Definition: xlescher.hxx:416
const sal_uInt16 EXC_ESC_ANCHOR_SIZELOCKED
Definition: xlescher.hxx:268
const sal_uInt8 EXC_OBJ_LINE_DASHDOT
Definition: xlescher.hxx:85
const sal_uInt8 EXC_OBJ_FILL_AUTO
Definition: xlescher.hxx:117
unsigned char sal_uInt8
sal_uInt16 mnButtonFlags
Definition: xlescher.hxx:389
const sal_uInt8 EXC_OBJ_VER_TOP
Definition: xlescher.hxx:128
const sal_uInt16 EXC_OBJ_TEXT_AUTOSIZE
90 degr. clockwise.
Definition: xlescher.hxx:138
Binds cell to content of control.
Definition: xlescher.hxx:237
const sal_uInt8 EXC_OBJ_LISTBOX_RANGE
Multi selection.
Definition: xlescher.hxx:191
const sal_uInt16 EXC_ID_OBJLBSDATA
Check box/radio button data.
Definition: xlescher.hxx:223
const sal_uInt8 EXC_OBJ_LINE_THICK
Definition: xlescher.hxx:95
const sal_uInt8 EXC_OBJ_ARC_TR
Automatic text margin (EMUs).
Definition: xlescher.hxx:144
const sal_uInt16 EXC_ID_OBJCBLSFMLA
List box/combo box data.
Definition: xlescher.hxx:224
const sal_uInt16 EXC_OBJTYPE_LISTBOX
Definition: xlescher.hxx:67
XActionListener.actionPerformed.
Definition: xlescher.hxx:409
const sal_uInt8 EXC_OBJ_HOR_LEFT
Definition: xlescher.hxx:123
const sal_uInt16 EXC_OBJTYPE_CHART
Definition: xlescher.hxx:55
const sal_uInt8 EXC_OBJ_LINE_AUTOCOLOR
Definition: xlescher.hxx:80
sal_uInt32 mnTY
X offset in left column (1/1024 of column width).
Definition: xlescher.hxx:287
sal_uInt16 mnShortcutEA
Definition: xlescher.hxx:391
sal_uInt16 mnShortcut
Definition: xlescher.hxx:390
const sal_uInt16 EXC_ID_OBJBUTTON
Macro link.
Definition: xlescher.hxx:209
const sal_uInt8 EXC_OBJ_LINE_TR
Definition: xlescher.hxx:110
const sal_uInt16 EXC_OBJTYPE_LINE
Definition: xlescher.hxx:51
const sal_uInt16 EXC_OBJ_LISTBOX_EDIT
Range selection.
Definition: xlescher.hxx:193
const sal_uInt8 EXC_PATT_NONE
Definition: xlstyle.hxx:55
sal_uInt8 mnPattColorIdx
Definition: xlescher.hxx:369
const sal_uInt16 EXC_OBJTYPE_TEXT
Definition: xlescher.hxx:56
const sal_uInt16 EXC_OBJTYPE_OVAL
Definition: xlescher.hxx:53
MapUnit
bool IsAuto() const
Definition: xlescher.hxx:375
const sal_uInt16 EXC_OBJTYPE_POLYGON
Definition: xlescher.hxx:59
const sal_uInt16 EXC_OBJ_TEXT_LOCKED
Definition: xlescher.hxx:139
const sal_uInt16 EXC_OBJ_BUTTON_HELP
Definition: xlescher.hxx:162
This class is used to import record oriented streams.
Definition: xistream.hxx:278
const sal_uInt16 EXC_OBJ_DROPDOWN_MAX
Dropdown button only, no text area.
Definition: xlescher.hxx:200
const sal_uInt8 EXC_OBJ_ARROW_OPENBOTH
Definition: xlescher.hxx:102
XclObjAnchor()
Y offset in bottom row (1/256 of row height).
Definition: xlescher.cxx:138
const sal_uInt16 EXC_OBJ_FRAME_SHADOW
Definition: xlescher.hxx:120
const sal_uInt16 EXC_OBJTYPE_DIALOG
Definition: xlescher.hxx:64
const sal_uInt16 EXC_OBJTYPE_PICTURE
Definition: xlescher.hxx:58
const sal_uInt8 EXC_OBJ_ARROW_FILLEDBOTH
Definition: xlescher.hxx:103
const sal_uInt8 EXC_OBJ_LINE_AUTO
Definition: xlescher.hxx:97
const sal_uInt16 EXC_OBJCMO_AUTOLINE
Object printable.
Definition: xlescher.hxx:230
const sal_uInt16 EXC_OBJ_SCROLLBAR_MIN
Definition: xlescher.hxx:180
Access to global data for a filter object (imported or exported document) from other classes...
Definition: xlroot.hxx:127
sal_uInt16 mnTextLen
Definition: xlescher.hxx:383
bool IsFilled() const
Definition: xlescher.hxx:376
const sal_uInt16 EXC_OBJ_EDIT_REFERENCE
Definition: xlescher.hxx:176
const sal_uInt8 EXC_OBJ_ARROW_FILLED
Definition: xlescher.hxx:101
const sal_uInt16 EXC_ID_OBJMACRO
End of OBJ.
Definition: xlescher.hxx:208
const sal_uInt16 EXC_OBJTYPE_BUTTON
Definition: xlescher.hxx:57
const sal_uInt16 EXC_OBJTYPE_OPTIONBUTTON
Definition: xlescher.hxx:61
A 2D cell range address struct with Excel column and row indexes.
Definition: xladdress.hxx:58
const sal_uInt16 EXC_ID_OBJCF
Group marker.
Definition: xlescher.hxx:211
sal_Int16 SCTAB
Definition: types.hxx:23
const sal_uInt16 EXC_ID_OBJGMO
Button data.
Definition: xlescher.hxx:210
void SetRect(const XclRoot &rRoot, SCTAB nScTab, const tools::Rectangle &rRect, MapUnit eMapUnit)
Initializes the anchor coordinates for a sheet.
Definition: xlescher.cxx:162
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.
Definition: xlescher.cxx:292
const sal_uInt16 EXC_OBJ_PIC_CTLSSTREAM
Form control (BIFF8).
Definition: xlescher.hxx:157