LibreOffice Module vcl (master)  1
builder.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 
10 #ifndef INCLUDED_VCL_BUILDER_HXX
11 #define INCLUDED_VCL_BUILDER_HXX
12 
13 #include <typeinfo>
14 #include <sal/log.hxx>
15 #include <unotools/resmgr.hxx>
16 #include <tools/fldunit.hxx>
17 #include <vcl/dllapi.h>
18 #include <vcl/window.hxx>
19 #include <vcl/vclptr.hxx>
20 #include <tools/wintypes.hxx>
21 #include <vcl/EnumContext.hxx>
22 
23 #include <memory>
24 #include <map>
25 #include <vector>
26 #ifdef check
27 # //some problem with MacOSX and a check define
28 # undef check
29 #endif
30 
31 class Button;
32 class ComboBox;
33 class FormattedField;
34 class ListBox;
35 class Menu;
36 class MessageDialog;
37 class NumericFormatter;
38 class PopupMenu;
39 class SalInstanceBuilder;
40 class ScreenshotTest;
41 class ScrollBar;
42 class SvTabListBox;
43 class Slider;
44 class DateField;
45 class TimeField;
46 class VclExpander;
47 class VclMultiLineEdit;
49 namespace xmlreader { class XmlReader; }
50 namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
51 
53 {
54  OUString m_sItem;
55  OString m_sId;
56  ComboBoxTextItem(const OUString& rItem, const OString& rId)
57  : m_sItem(rItem)
58  , m_sId(rId)
59  {
60  }
61 };
62 
64 {
65 public:
66  typedef std::map<OString, OUString> stringmap;
67  typedef std::map<OString, std::pair<OString, OString>> accelmap;
69  typedef void (*customMakeWidget)(VclPtr<vcl::Window> &rRet, const VclPtr<vcl::Window> &pParent, stringmap &rVec);
70 
71 public:
72  VclBuilder(vcl::Window* pParent, const OUString& sUIRootDir, const OUString& sUIFile,
73  const OString& sID = OString(),
74  const css::uno::Reference<css::frame::XFrame>& rFrame
75  = css::uno::Reference<css::frame::XFrame>(),
76  bool bLegacy = true,
77  const NotebookBarAddonsItem* pNotebookBarAddonsItem = nullptr);
78  ~VclBuilder();
80  void disposeBuilder();
81  //sID must exist and be of type T
82  template <typename T> T* get(VclPtr<T>& ret, const OString& sID);
83 
84  //sID may not exist, but must be of type T if it does
85  template <typename T /*= vcl::Window if we had c++11*/> T* get(const OString& sID);
86 
87  vcl::Window* get_widget_root();
88 
89  //sID may not exist
90  PopupMenu* get_menu(const OString& sID);
91 
92  //release ownership of pWindow, i.e. don't delete it
93  void drop_ownership(const vcl::Window *pWindow);
94 
95  //see m_aDeferredProperties, you need this for toplevel dialogs
96  //which build themselves from their ctor. The properties on
97  //the top level are stored in m_aDeferredProperties and need
98  //to be applied post ctor
99  void setDeferredProperties();
100 
102  const OString& getUIFile() const
103  {
104  return m_sHelpRoot;
105  }
106 
108  static void preload();
109 
110 private:
111  VclBuilder(const VclBuilder&) = delete;
112  VclBuilder& operator=(const VclBuilder&) = delete;
113 
114  // owner for ListBox/ComboBox UserData
115  std::vector<std::unique_ptr<OUString>> m_aUserData;
116 
117  //If the toplevel window has any properties which need to be set on it,
118  //but the toplevel is the owner of the builder, then its ctor
119  //has not been completed during the building, so properties for it
120  //are collected here and need to be set afterwards, e.g. during
121  //Show or Execute
123 
124  std::unique_ptr<NotebookBarAddonsItem> m_pNotebookBarAddonsItem;
125 
126  struct PackingData
127  {
129  sal_Int32 m_nPosition;
130  PackingData(bool bVerticalOrient = false)
131  : m_bVerticalOrient(bVerticalOrient)
132  , m_nPosition(-1)
133  {
134  }
135  };
136 
137  struct WinAndId
138  {
139  OString m_sID;
142  WinAndId(const OString &rId, vcl::Window *pWindow, bool bVertical)
143  : m_sID(rId)
144  , m_pWindow(pWindow)
145  , m_aPackingData(bVertical)
146  {
147  }
148  };
149  std::vector<WinAndId> m_aChildren;
150 
151  struct MenuAndId
152  {
153  OString const m_sID;
155  MenuAndId(const OString &rId, Menu *pMenu);
156  };
157  std::vector<MenuAndId> m_aMenus;
158 
159  struct StringPair
160  {
161  OString const m_sID;
162  OString const m_sValue;
163  StringPair(const OString &rId, const OString &rValue)
164  : m_sID(rId)
165  , m_sValue(rValue)
166  {
167  }
168  };
169 
170  struct UStringPair
171  {
172  OString m_sID;
173  OUString m_sValue;
174  UStringPair(const OString &rId, const OUString &rValue)
175  : m_sID(rId)
176  , m_sValue(rValue)
177  {
178  }
179  };
180 
182 
184  {
185  OString const m_sID;
186  OUString const m_sValue;
187  bool const m_bRadio;
188  ButtonImageWidgetMap(const OString &rId, const OUString &rValue, bool bRadio)
189  : m_sID(rId)
190  , m_sValue(rValue)
191  , m_bRadio(bRadio)
192  {
193  }
194  };
195 
200 
202  {
203  OString const m_sID;
204  OUString const m_sValue;
205  sal_Int32 const m_nActiveId;
206  ComboBoxModelMap(const OString &rId, const OUString &rValue, sal_Int32 nActiveId)
207  : m_sID(rId)
208  , m_sValue(rValue)
209  , m_nActiveId(nActiveId)
210  {
211  }
212  };
213 
214  struct ListStore
215  {
216  typedef std::vector<OUString> row;
217  std::vector<row> m_aEntries;
218  };
219 
220  const ListStore* get_model_by_name(const OString& sID) const;
221  void mungeModel(ListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId);
222  void mungeModel(ComboBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId);
223  void mungeModel(SvTabListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId);
224 
225  typedef stringmap TextBuffer;
226  const TextBuffer* get_buffer_by_name(const OString& sID) const;
227 
228  static void mungeTextBuffer(VclMultiLineEdit &rTarget, const TextBuffer &rTextBuffer);
229 
230  typedef stringmap Adjustment;
231  const Adjustment* get_adjustment_by_name(const OString& sID) const;
232 
233  static void mungeAdjustment(NumericFormatter &rTarget, const Adjustment &rAdjustment);
234  static void mungeAdjustment(FormattedField &rTarget, const Adjustment &rAdjustment);
235  static void mungeAdjustment(DateField &rTarget, const Adjustment &rAdjustment);
236  static void mungeAdjustment(TimeField &rTarget, const Adjustment &rAdjustment);
237  static void mungeAdjustment(ScrollBar &rTarget, const Adjustment &rAdjustment);
238  static void mungeAdjustment(Slider &rTarget, const Adjustment &rAdjustment);
239 
240  struct stockinfo
241  {
242  OUString m_sStock;
243  int m_nSize;
244  stockinfo() : m_nSize(4) {}
245  };
246 
247  typedef std::map<OString, stockinfo> StockMap;
248 
249  struct SizeGroup
250  {
251  std::vector<OString> m_aWidgets;
252  stringmap m_aProperties;
254  };
255 
256  typedef std::map<VclPtr<vcl::Window>, stringmap> AtkMap;
257 
258  struct ParserState
259  {
260  std::locale m_aResLocale;
261 
262  std::vector<RadioButtonGroupMap> m_aGroupMaps;
263 
264  std::vector<ComboBoxModelMap> m_aModelMaps;
265  std::map<OString, ListStore> m_aModels;
266 
267  std::vector<TextBufferMap> m_aTextBufferMaps;
268  std::map<OString, TextBuffer> m_aTextBuffers;
269 
270  std::vector<WidgetAdjustmentMap> m_aNumericFormatterAdjustmentMaps;
271  std::vector<WidgetAdjustmentMap> m_aFormattedFormatterAdjustmentMaps;
272  std::vector<WidgetAdjustmentMap> m_aTimeFormatterAdjustmentMaps;
273  std::vector<WidgetAdjustmentMap> m_aDateFormatterAdjustmentMaps;
274  std::vector<WidgetAdjustmentMap> m_aScrollAdjustmentMaps;
275  std::vector<WidgetAdjustmentMap> m_aSliderAdjustmentMaps;
276 
277  std::map<OString, Adjustment> m_aAdjustments;
278 
279  std::vector<ButtonImageWidgetMap> m_aButtonImageWidgetMaps;
280  StockMap m_aStockMap;
281 
282  std::vector<ButtonMenuMap> m_aButtonMenuMaps;
283 
284  std::map<VclPtr<vcl::Window>, VclPtr<vcl::Window>> m_aRedundantParentWidgets;
285 
286  std::vector<SizeGroup> m_aSizeGroups;
287 
288  AtkMap m_aAtkInfo;
289 
290  std::vector<MnemonicWidgetMap> m_aMnemonicWidgetMaps;
291 
292  std::vector< VclPtr<VclExpander> > m_aExpanderWidgets;
293 
294  std::vector< VclPtr<MessageDialog> > m_aMessageDialogs;
295 
296  sal_uInt16 m_nLastToolbarId;
297 
298  sal_uInt16 m_nLastMenuItemId;
299 
300  ParserState();
301  };
302 
303  OString m_sID;
304  OString m_sHelpRoot;
310  bool const m_bLegacy;
311  std::unique_ptr<ParserState> m_pParserState;
312 
313  vcl::Window *get_by_name(const OString& sID);
314  void delete_by_name(const OString& sID);
315 
317  {
318  public:
320  : m_pBuilder(pBuilder) {}
321 
322  bool operator()(const vcl::Window *pA, const vcl::Window *pB) const;
323 
324  private:
326  };
327 
329  css::uno::Reference<css::frame::XFrame> m_xFrame;
330 
331 private:
332  VclPtr<vcl::Window> insertObject(vcl::Window *pParent,
333  const OString &rClass, const OString &rID,
334  stringmap &rProps, stringmap &rPangoAttributes,
335  stringmap &rAtkProps);
336 
337  VclPtr<vcl::Window> makeObject(vcl::Window *pParent,
338  const OString &rClass, const OString &rID,
339  stringmap &rVec);
340 
341  void connectNumericFormatterAdjustment(const OString &id, const OUString &rAdjustment);
342  void connectFormattedFormatterAdjustment(const OString &id, const OUString &rAdjustment);
343  void connectTimeFormatterAdjustment(const OString &id, const OUString &rAdjustment);
344  void connectDateFormatterAdjustment(const OString &id, const OUString &rAdjustment);
345 
346  void extractGroup(const OString &id, stringmap &rVec);
347  void extractModel(const OString &id, stringmap &rVec);
348  void extractBuffer(const OString &id, stringmap &rVec);
349  static bool extractAdjustmentToMap(const OString &id, stringmap &rVec, std::vector<WidgetAdjustmentMap>& rAdjustmentMap);
350  void extractButtonImage(const OString &id, stringmap &rMap, bool bRadio);
351  void extractStock(const OString &id, stringmap &rMap);
352  void extractMnemonicWidget(const OString &id, stringmap &rMap);
353 
354  void handleChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
355  VclPtr<vcl::Window> handleObject(vcl::Window *pParent, xmlreader::XmlReader &reader);
356  void handlePacking(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
357  static std::vector<vcl::EnumContext::Context> handleStyle(xmlreader::XmlReader &reader, int &nPriority);
358  static OString getStyleClass(xmlreader::XmlReader &reader);
359  void applyPackingProperty(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
360  void collectProperty(xmlreader::XmlReader &reader, stringmap &rVec) const;
361  static void collectPangoAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
362  static void collectAtkRelationAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
363  static void collectAtkRoleAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
364  static void collectAccelerator(xmlreader::XmlReader &reader, accelmap &rMap);
365 
366  void insertMenuObject(
367  Menu *pParent,
368  PopupMenu *pSubMenu,
369  const OString &rClass,
370  const OString &rID,
371  stringmap &rProps,
372  accelmap &rAccels);
373 
374  void handleMenuChild(Menu *pParent, xmlreader::XmlReader &reader);
375  void handleMenuObject(Menu *pParent, xmlreader::XmlReader &reader);
376 
377  void handleListStore(xmlreader::XmlReader &reader, const OString &rID, const OString &rClass);
378  void handleRow(xmlreader::XmlReader &reader, const OString &rID);
379  void handleTabChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
380  VclPtr<Menu> handleMenu(xmlreader::XmlReader &reader, const OString &rID, bool bMenuBar);
381  std::vector<ComboBoxTextItem> handleItems(xmlreader::XmlReader &reader) const;
382 
383  void handleSizeGroup(xmlreader::XmlReader &reader);
384 
385  void handleAtkObject(xmlreader::XmlReader &reader, vcl::Window *pWindow);
386 
387  void handleActionWidget(xmlreader::XmlReader &reader);
388 
389  PackingData get_window_packing_data(const vcl::Window *pWindow) const;
390  void set_window_packing_position(const vcl::Window *pWindow, sal_Int32 nPosition);
391 
392  static vcl::Window* prepareWidgetOwnScrolling(vcl::Window *pParent, WinBits &rWinStyle);
393  void cleanupWidgetOwnScrolling(vcl::Window *pScrollParent, vcl::Window *pWindow, stringmap &rMap);
394 
395  void set_response(const OString& sID, short nResponse);
396 
397  OString get_by_window(const vcl::Window *pWindow) const;
398  void delete_by_window(vcl::Window *pWindow);
399 };
400 
401 namespace BuilderUtils
402 {
403  //apply the properties of rProps to pWindow
404  VCL_DLLPUBLIC void set_properties(vcl::Window *pWindow, const VclBuilder::stringmap &rProps);
405 
406  //Convert _ gtk markup to ~ vcl markup
407  VCL_DLLPUBLIC OUString convertMnemonicMarkup(const OUString &rIn);
408 
410  VCL_DLLPUBLIC FieldUnit detectUnit(OUString const&);
411 
413 
414  //add a default value of 25 width-chars to a map if width-chars not set
416 
417  //Helpers to retrofit all the existing code to the builder
418  VCL_DLLPUBLIC void reorderWithinParent(std::vector< vcl::Window*>& rChilds, bool bIsButtonBox);
419  VCL_DLLPUBLIC void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition);
420 
421  //Convert an accessibility role name to accessibility role number
422  VCL_DLLPUBLIC sal_Int16 getRoleFromName(const OString& roleName);
423 }
424 
425 template <typename T>
426 inline T* VclBuilder::get(VclPtr<T>& ret, const OString& sID)
427 {
428  vcl::Window *w = get_by_name(sID);
429  SAL_WARN_IF(!w, "vcl.layout", "widget \"" << sID << "\" not found in .ui");
430  SAL_WARN_IF(!dynamic_cast<T*>(w),
431  "vcl.layout", ".ui widget \"" << sID << "\" needs to correspond to vcl type " << typeid(T).name());
432  assert(w);
433  assert(dynamic_cast<T*>(w));
434  ret = static_cast<T*>(w);
435  return ret.get();
436 }
437 
438 //sID may not exist, but must be of type T if it does
439 template <typename T /*= vcl::Window if we had c++11*/>
440 inline T* VclBuilder::get(const OString& sID)
441 {
442  vcl::Window *w = get_by_name(sID);
443  SAL_WARN_IF(w && !dynamic_cast<T*>(w),
444  "vcl.layout", ".ui widget \"" << sID << "\" needs to correspond to vcl type " << typeid(T).name());
445  assert(!w || dynamic_cast<T*>(w));
446  return static_cast<T*>(w);
447 }
448 
449 
450 //helper baseclass to ease retro fitting dialogs/tabpages that load a resource
451 //to load a .ui file instead
452 //
453 //vcl requires the Window Children of a Parent Window to be destroyed before
454 //the Parent Window. VclBuilderContainer owns the VclBuilder which owns the
455 //Children Window. So the VclBuilderContainer dtor must be called before
456 //the Parent Window dtor.
457 //
458 //i.e. class Dialog : public SystemWindow, public VclBuilderContainer
459 //not class Dialog : public VclBuilderContainer, public SystemWindow
460 //
461 //With the new 'dispose' framework, it is necessary to force the builder
462 //dispose before the Window dispose; so a Dialog::dispose() method would
463 //finish: disposeBuilder(); SystemWindow::dispose() to capture this ordering.
464 
466 {
467 public:
469  virtual ~VclBuilderContainer();
470  void disposeBuilder();
471 
472  static OUString getUIRootDir();
473 
474  template <typename T> T* get(VclPtr<T>& ret, const OString& sID)
475  {
476  return m_pUIBuilder->get<T>(ret, sID);
477  }
478  template <typename T /*= vcl::Window if we had c++11*/> T* get(const OString & sID)
479  {
480  return m_pUIBuilder->get<T>(sID);
481  }
483  {
484  if (!m_pUIBuilder)
485  return;
486  m_pUIBuilder->setDeferredProperties();
487  }
488  OString getUIFile() const
489  {
490  if (m_pUIBuilder)
491  {
492  return m_pUIBuilder->getUIFile();
493  }
494 
495  return OString();
496  }
497 
498 protected:
499  std::unique_ptr<VclBuilder> m_pUIBuilder;
500 
501  friend class ::SalInstanceBuilder;
502  friend class ::ScreenshotTest;
503 };
504 
505 /*
506  * @return true if rValue is "True", "true", "1", etc.
507  */
508 bool toBool(const OUString &rValue);
509 
510 #endif
511 
512 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OString const m_sID
Definition: builder.hxx:153
FieldUnit detectUnit(OUString const &rString)
Definition: builder.cxx:2504
OString const m_sValue
Definition: builder.hxx:162
std::vector< WidgetAdjustmentMap > m_aSliderAdjustmentMaps
Definition: builder.hxx:275
std::vector< ButtonImageWidgetMap > m_aButtonImageWidgetMaps
Definition: builder.hxx:279
void setDeferredProperties()
Definition: builder.hxx:482
FieldUnit
stringmap m_aProperties
Definition: builder.hxx:252
A widget used to choose from a list of items and which has no entry.
Definition: lstbox.hxx:78
std::vector< VclPtr< VclExpander > > m_aExpanderWidgets
Definition: builder.hxx:292
std::vector< WidgetAdjustmentMap > m_aNumericFormatterAdjustmentMaps
Definition: builder.hxx:270
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
stringmap Adjustment
Definition: builder.hxx:230
std::map< OString, TextBuffer > m_aTextBuffers
Definition: builder.hxx:268
std::vector< OUString > row
Definition: builder.hxx:216
std::vector< OString > m_aWidgets
Definition: builder.hxx:251
std::map< OString, std::pair< OString, OString > > accelmap
Definition: builder.hxx:67
bool toBool(const OUString &rValue)
Definition: layout.cxx:1313
UStringPair ButtonMenuMap
Definition: builder.hxx:198
std::vector< WidgetAdjustmentMap > m_aFormattedFormatterAdjustmentMaps
Definition: builder.hxx:271
UStringPair WidgetAdjustmentMap
Definition: builder.hxx:197
stringmap m_aDeferredProperties
Definition: builder.hxx:122
std::vector< row > m_aEntries
Definition: builder.hxx:217
OString m_sHelpRoot
Definition: builder.hxx:304
void set_properties(vcl::Window *pWindow, const VclBuilder::stringmap &rProps)
Definition: builder.cxx:2465
const OString & getUIFile() const
return UI-File name (without '.ui')
Definition: builder.hxx:102
sal_Int64 WinBits
std::vector< TextBufferMap > m_aTextBufferMaps
Definition: builder.hxx:267
UStringPair MnemonicWidgetMap
Definition: builder.hxx:199
std::vector< RadioButtonGroupMap > m_aGroupMaps
Definition: builder.hxx:262
void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition)
Definition: builder.cxx:2530
std::vector< MnemonicWidgetMap > m_aMnemonicWidgetMaps
Definition: builder.hxx:290
T * get(VclPtr< T > &ret, const OString &sID)
Definition: builder.hxx:426
bool m_bToplevelHasDeferredInit
Definition: builder.hxx:307
StringPair RadioButtonGroupMap
Definition: builder.hxx:181
bool m_bToplevelParentFound
Definition: builder.hxx:309
OUString extractCustomProperty(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2492
std::map< OString, stockinfo > StockMap
Definition: builder.hxx:247
ComboBoxModelMap(const OString &rId, const OUString &rValue, sal_Int32 nActiveId)
Definition: builder.hxx:206
OString const m_sID
Definition: builder.hxx:161
std::map< VclPtr< vcl::Window >, VclPtr< vcl::Window > > m_aRedundantParentWidgets
Definition: builder.hxx:284
sortIntoBestTabTraversalOrder(VclBuilder *pBuilder)
Definition: builder.hxx:319
OUString m_sItem
Definition: builder.hxx:54
bool m_bToplevelHasDeferredProperties
Definition: builder.hxx:308
bool const m_bLegacy
Definition: builder.hxx:310
std::vector< WidgetAdjustmentMap > m_aDateFormatterAdjustmentMaps
Definition: builder.hxx:273
std::map< OString, ListStore > m_aModels
Definition: builder.hxx:265
VclPtr< Menu > m_pMenu
Definition: builder.hxx:154
std::map< OString, OUString > stringmap
Definition: builder.hxx:66
sal_Int32 w
std::unique_ptr< VclBuilder > m_pUIBuilder
Definition: builder.hxx:499
VclPtr< vcl::Window > m_pParent
Definition: builder.hxx:306
UStringPair(const OString &rId, const OUString &rValue)
Definition: builder.hxx:174
stringmap TextBuffer
Definition: builder.hxx:225
ButtonImageWidgetMap(const OString &rId, const OUString &rValue, bool bRadio)
Definition: builder.hxx:188
std::vector< ComboBoxModelMap > m_aModelMaps
Definition: builder.hxx:264
PackingData(bool bVerticalOrient=false)
Definition: builder.hxx:130
UStringPair TextBufferMap
Definition: builder.hxx:196
std::map< OString, Adjustment > m_aAdjustments
Definition: builder.hxx:277
OUString convertMnemonicMarkup(const OUString &rIn)
Definition: builder.cxx:2475
std::vector< ButtonMenuMap > m_aButtonMenuMaps
Definition: builder.hxx:282
std::unique_ptr< ParserState > m_pParserState
Definition: builder.hxx:311
std::vector< std::unique_ptr< OUString > > m_aUserData
Definition: builder.hxx:115
Definition: menu.hxx:121
std::vector< WinAndId > m_aChildren
Definition: builder.hxx:149
sal_Int32 const m_nActiveId
Definition: builder.hxx:205
#define SAL_WARN_IF(condition, area, stream)
VclPtr< vcl::Window > m_pWindow
Definition: builder.hxx:140
sal_uInt16 m_nLastMenuItemId
Definition: builder.hxx:298
css::uno::Reference< css::frame::XFrame > m_xFrame
XFrame to be able to extract labels and other properties of the UNO commands (like of ...
Definition: builder.hxx:329
std::vector< VclPtr< MessageDialog > > m_aMessageDialogs
Definition: builder.hxx:294
sal_uInt16 m_nLastToolbarId
Definition: builder.hxx:296
vcl::Window * get_by_name(const OString &sID)
Definition: builder.cxx:4207
OString m_sID
Definition: builder.hxx:303
std::unique_ptr< NotebookBarAddonsItem > m_pNotebookBarAddonsItem
Definition: builder.hxx:124
std::vector< MenuAndId > m_aMenus
Definition: builder.hxx:157
const char * name
bool extractDropdown(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2518
sal_Int16 getRoleFromName(const OString &roleName)
Definition: builder.cxx:2562
A widget used to choose from a list of items and which has an entry.
Definition: combobox.hxx:34
WinAndId(const OString &rId, vcl::Window *pWindow, bool bVertical)
Definition: builder.hxx:142
StringPair(const OString &rId, const OString &rValue)
Definition: builder.hxx:163
reference_type * get() const
Get the body.
Definition: vclptr.hxx:143
std::map< VclPtr< vcl::Window >, stringmap > AtkMap
Definition: builder.hxx:256
PackingData m_aPackingData
Definition: builder.hxx:141
std::vector< WidgetAdjustmentMap > m_aTimeFormatterAdjustmentMaps
Definition: builder.hxx:272
void ensureDefaultWidthChars(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2510
OString m_sId
Definition: builder.hxx:55
std::vector< SizeGroup > m_aSizeGroups
Definition: builder.hxx:286
ResHookProc const m_pStringReplace
Definition: builder.hxx:305
ComboBoxTextItem(const OUString &rItem, const OString &rId)
Definition: builder.hxx:56
OString getUIFile() const
Definition: builder.hxx:488
OUString(* ResHookProc)(const OUString &rStr)
std::locale m_aResLocale
Definition: builder.hxx:260
std::vector< WidgetAdjustmentMap > m_aScrollAdjustmentMaps
Definition: builder.hxx:274
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo