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  ~MenuAndId();
157  };
158  std::vector<MenuAndId> m_aMenus;
159 
160  struct StringPair
161  {
162  OString const m_sID;
163  OString const m_sValue;
164  StringPair(const OString &rId, const OString &rValue)
165  : m_sID(rId)
166  , m_sValue(rValue)
167  {
168  }
169  };
170 
171  struct UStringPair
172  {
173  OString m_sID;
174  OUString m_sValue;
175  UStringPair(const OString &rId, const OUString &rValue)
176  : m_sID(rId)
177  , m_sValue(rValue)
178  {
179  }
180  };
181 
183 
185  {
186  OString const m_sID;
187  OUString const m_sValue;
188  bool const m_bRadio;
189  ButtonImageWidgetMap(const OString &rId, const OUString &rValue, bool bRadio)
190  : m_sID(rId)
191  , m_sValue(rValue)
192  , m_bRadio(bRadio)
193  {
194  }
195  };
196 
201 
203  {
204  OString const m_sID;
205  OUString const m_sValue;
206  sal_Int32 const m_nActiveId;
207  ComboBoxModelMap(const OString &rId, const OUString &rValue, sal_Int32 nActiveId)
208  : m_sID(rId)
209  , m_sValue(rValue)
210  , m_nActiveId(nActiveId)
211  {
212  }
213  };
214 
215  struct ListStore
216  {
217  typedef std::vector<OUString> row;
218  std::vector<row> m_aEntries;
219  };
220 
221  const ListStore* get_model_by_name(const OString& sID) const;
222  void mungeModel(ListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId);
223  void mungeModel(ComboBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId);
224  void mungeModel(SvTabListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId);
225 
226  typedef stringmap TextBuffer;
227  const TextBuffer* get_buffer_by_name(const OString& sID) const;
228 
229  static void mungeTextBuffer(VclMultiLineEdit &rTarget, const TextBuffer &rTextBuffer);
230 
231  typedef stringmap Adjustment;
232  const Adjustment* get_adjustment_by_name(const OString& sID) const;
233 
234  static void mungeAdjustment(NumericFormatter &rTarget, const Adjustment &rAdjustment);
235  static void mungeAdjustment(FormattedField &rTarget, const Adjustment &rAdjustment);
236  static void mungeAdjustment(DateField &rTarget, const Adjustment &rAdjustment);
237  static void mungeAdjustment(TimeField &rTarget, const Adjustment &rAdjustment);
238  static void mungeAdjustment(ScrollBar &rTarget, const Adjustment &rAdjustment);
239  static void mungeAdjustment(Slider &rTarget, const Adjustment &rAdjustment);
240 
241  struct stockinfo
242  {
243  OUString m_sStock;
244  int m_nSize;
245  stockinfo() : m_nSize(4) {}
246  };
247 
248  typedef std::map<OString, stockinfo> StockMap;
249 
250  struct SizeGroup
251  {
252  std::vector<OString> m_aWidgets;
253  stringmap m_aProperties;
255  };
256 
257  typedef std::map<VclPtr<vcl::Window>, stringmap> AtkMap;
258 
259  struct ParserState
260  {
261  std::locale m_aResLocale;
262 
263  std::vector<RadioButtonGroupMap> m_aGroupMaps;
264 
265  std::vector<ComboBoxModelMap> m_aModelMaps;
266  std::map<OString, ListStore> m_aModels;
267 
268  std::vector<TextBufferMap> m_aTextBufferMaps;
269  std::map<OString, TextBuffer> m_aTextBuffers;
270 
271  std::vector<WidgetAdjustmentMap> m_aNumericFormatterAdjustmentMaps;
272  std::vector<WidgetAdjustmentMap> m_aFormattedFormatterAdjustmentMaps;
273  std::vector<WidgetAdjustmentMap> m_aTimeFormatterAdjustmentMaps;
274  std::vector<WidgetAdjustmentMap> m_aDateFormatterAdjustmentMaps;
275  std::vector<WidgetAdjustmentMap> m_aScrollAdjustmentMaps;
276  std::vector<WidgetAdjustmentMap> m_aSliderAdjustmentMaps;
277 
278  std::map<OString, Adjustment> m_aAdjustments;
279 
280  std::vector<ButtonImageWidgetMap> m_aButtonImageWidgetMaps;
281  StockMap m_aStockMap;
282 
283  std::vector<ButtonMenuMap> m_aButtonMenuMaps;
284 
285  std::map<VclPtr<vcl::Window>, VclPtr<vcl::Window>> m_aRedundantParentWidgets;
286 
287  std::vector<SizeGroup> m_aSizeGroups;
288 
289  AtkMap m_aAtkInfo;
290 
291  std::vector<MnemonicWidgetMap> m_aMnemonicWidgetMaps;
292 
293  std::vector< VclPtr<VclExpander> > m_aExpanderWidgets;
294 
295  std::vector< VclPtr<MessageDialog> > m_aMessageDialogs;
296 
297  sal_uInt16 m_nLastToolbarId;
298 
299  sal_uInt16 m_nLastMenuItemId;
300 
301  ParserState();
302  };
303 
304  OString m_sID;
305  OString m_sHelpRoot;
311  bool const m_bLegacy;
312  std::unique_ptr<ParserState> m_pParserState;
313 
314  vcl::Window *get_by_name(const OString& sID);
315  void delete_by_name(const OString& sID);
316 
318  {
319  public:
321  : m_pBuilder(pBuilder) {}
322 
323  bool operator()(const vcl::Window *pA, const vcl::Window *pB) const;
324 
325  private:
327  };
328 
330  css::uno::Reference<css::frame::XFrame> m_xFrame;
331 
332  DECL_LINK(ResponseHdl, ::Button*, void);
333 private:
334  VclPtr<vcl::Window> insertObject(vcl::Window *pParent,
335  const OString &rClass, const OString &rID,
336  stringmap &rProps, stringmap &rPangoAttributes,
337  stringmap &rAtkProps);
338 
339  VclPtr<vcl::Window> makeObject(vcl::Window *pParent,
340  const OString &rClass, const OString &rID,
341  stringmap &rVec);
342 
343  void connectNumericFormatterAdjustment(const OString &id, const OUString &rAdjustment);
344  void connectFormattedFormatterAdjustment(const OString &id, const OUString &rAdjustment);
345  void connectTimeFormatterAdjustment(const OString &id, const OUString &rAdjustment);
346  void connectDateFormatterAdjustment(const OString &id, const OUString &rAdjustment);
347 
348  void extractGroup(const OString &id, stringmap &rVec);
349  void extractModel(const OString &id, stringmap &rVec);
350  void extractBuffer(const OString &id, stringmap &rVec);
351  static bool extractAdjustmentToMap(const OString &id, stringmap &rVec, std::vector<WidgetAdjustmentMap>& rAdjustmentMap);
352  void extractButtonImage(const OString &id, stringmap &rMap, bool bRadio);
353  void extractStock(const OString &id, stringmap &rMap);
354  void extractMnemonicWidget(const OString &id, stringmap &rMap);
355 
356  void handleChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
357  VclPtr<vcl::Window> handleObject(vcl::Window *pParent, xmlreader::XmlReader &reader);
358  void handlePacking(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
359  static std::vector<vcl::EnumContext::Context> handleStyle(xmlreader::XmlReader &reader, int &nPriority);
360  static OString getStyleClass(xmlreader::XmlReader &reader);
361  void applyPackingProperty(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
362  void collectProperty(xmlreader::XmlReader &reader, stringmap &rVec) const;
363  static void collectPangoAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
364  static void collectAtkRelationAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
365  static void collectAtkRoleAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
366  static void collectAccelerator(xmlreader::XmlReader &reader, accelmap &rMap);
367 
368  void insertMenuObject(
369  Menu *pParent,
370  PopupMenu *pSubMenu,
371  const OString &rClass,
372  const OString &rID,
373  stringmap &rProps,
374  accelmap &rAccels);
375 
376  void handleMenuChild(Menu *pParent, xmlreader::XmlReader &reader);
377  void handleMenuObject(Menu *pParent, xmlreader::XmlReader &reader);
378 
379  void handleListStore(xmlreader::XmlReader &reader, const OString &rID, const OString &rClass);
380  void handleRow(xmlreader::XmlReader &reader, const OString &rID);
381  void handleTabChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
382  VclPtr<Menu> handleMenu(xmlreader::XmlReader &reader, const OString &rID, bool bMenuBar);
383  std::vector<ComboBoxTextItem> handleItems(xmlreader::XmlReader &reader) const;
384 
385  void handleSizeGroup(xmlreader::XmlReader &reader);
386 
387  void handleAtkObject(xmlreader::XmlReader &reader, vcl::Window *pWindow);
388 
389  void handleActionWidget(xmlreader::XmlReader &reader);
390 
391  PackingData get_window_packing_data(const vcl::Window *pWindow) const;
392  void set_window_packing_position(const vcl::Window *pWindow, sal_Int32 nPosition);
393 
394  static vcl::Window* prepareWidgetOwnScrolling(vcl::Window *pParent, WinBits &rWinStyle);
395  void cleanupWidgetOwnScrolling(vcl::Window *pScrollParent, vcl::Window *pWindow, stringmap &rMap);
396 
397  void set_response(const OString& sID, short nResponse);
398 
399  OString get_by_window(const vcl::Window *pWindow) const;
400  void delete_by_window(vcl::Window *pWindow);
401 };
402 
403 namespace BuilderUtils
404 {
405  //apply the properties of rProps to pWindow
406  VCL_DLLPUBLIC void set_properties(vcl::Window *pWindow, const VclBuilder::stringmap &rProps);
407 
408  //Convert _ gtk markup to ~ vcl markup
409  VCL_DLLPUBLIC OUString convertMnemonicMarkup(const OUString &rIn);
410 
412  VCL_DLLPUBLIC FieldUnit detectUnit(OUString const&);
413 
415 
416  //add a default value of 25 width-chars to a map if width-chars not set
418 
419  //Helpers to retrofit all the existing code to the builder
420  VCL_DLLPUBLIC void reorderWithinParent(std::vector< vcl::Window*>& rChilds, bool bIsButtonBox);
421  VCL_DLLPUBLIC void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition);
422 
423  //Convert an accessibility role name to accessibility role number
424  VCL_DLLPUBLIC sal_Int16 getRoleFromName(const OString& roleName);
425 }
426 
427 template <typename T>
428 inline T* VclBuilder::get(VclPtr<T>& ret, const OString& sID)
429 {
430  vcl::Window *w = get_by_name(sID);
431  SAL_WARN_IF(!w, "vcl.layout", "widget \"" << sID << "\" not found in .ui");
432  SAL_WARN_IF(!dynamic_cast<T*>(w),
433  "vcl.layout", ".ui widget \"" << sID << "\" needs to correspond to vcl type " << typeid(T).name());
434  assert(w);
435  assert(dynamic_cast<T*>(w));
436  ret = static_cast<T*>(w);
437  return ret.get();
438 }
439 
440 //sID may not exist, but must be of type T if it does
441 template <typename T /*= vcl::Window if we had c++11*/>
442 inline T* VclBuilder::get(const OString& sID)
443 {
444  vcl::Window *w = get_by_name(sID);
445  SAL_WARN_IF(w && !dynamic_cast<T*>(w),
446  "vcl.layout", ".ui widget \"" << sID << "\" needs to correspond to vcl type " << typeid(T).name());
447  assert(!w || dynamic_cast<T*>(w));
448  return static_cast<T*>(w);
449 }
450 
451 
452 //helper baseclass to ease retro fitting dialogs/tabpages that load a resource
453 //to load a .ui file instead
454 //
455 //vcl requires the Window Children of a Parent Window to be destroyed before
456 //the Parent Window. VclBuilderContainer owns the VclBuilder which owns the
457 //Children Window. So the VclBuilderContainer dtor must be called before
458 //the Parent Window dtor.
459 //
460 //i.e. class Dialog : public SystemWindow, public VclBuilderContainer
461 //not class Dialog : public VclBuilderContainer, public SystemWindow
462 //
463 //With the new 'dispose' framework, it is necessary to force the builder
464 //dispose before the Window dispose; so a Dialog::dispose() method would
465 //finish: disposeBuilder(); SystemWindow::dispose() to capture this ordering.
466 
468 {
469 public:
471  virtual ~VclBuilderContainer();
472  void disposeBuilder();
473 
474  static OUString getUIRootDir();
475 
476  template <typename T> T* get(VclPtr<T>& ret, const OString& sID)
477  {
478  return m_pUIBuilder->get<T>(ret, sID);
479  }
480  template <typename T /*= vcl::Window if we had c++11*/> T* get(const OString & sID)
481  {
482  return m_pUIBuilder->get<T>(sID);
483  }
485  {
486  if (!m_pUIBuilder)
487  return;
488  m_pUIBuilder->setDeferredProperties();
489  }
490  OString getUIFile() const
491  {
492  if (m_pUIBuilder)
493  {
494  return m_pUIBuilder->getUIFile();
495  }
496 
497  return OString();
498  }
499 
500 protected:
501  std::unique_ptr<VclBuilder> m_pUIBuilder;
502 
503  friend class ::SalInstanceBuilder;
504  friend class ::ScreenshotTest;
505 };
506 
507 /*
508  * @return true if rValue is "True", "true", "1", etc.
509  */
510 bool VCL_DLLPUBLIC toBool(const OUString &rValue);
511 
512 #endif
513 
514 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OString const m_sID
Definition: builder.hxx:153
FieldUnit detectUnit(OUString const &rString)
Definition: builder.cxx:2458
OString const m_sValue
Definition: builder.hxx:163
std::vector< WidgetAdjustmentMap > m_aSliderAdjustmentMaps
Definition: builder.hxx:276
std::vector< ButtonImageWidgetMap > m_aButtonImageWidgetMaps
Definition: builder.hxx:280
void setDeferredProperties()
Definition: builder.hxx:484
FieldUnit
stringmap m_aProperties
Definition: builder.hxx:253
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:293
std::vector< WidgetAdjustmentMap > m_aNumericFormatterAdjustmentMaps
Definition: builder.hxx:271
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
stringmap Adjustment
Definition: builder.hxx:231
std::map< OString, TextBuffer > m_aTextBuffers
Definition: builder.hxx:269
std::vector< OUString > row
Definition: builder.hxx:217
std::vector< OString > m_aWidgets
Definition: builder.hxx:252
std::map< OString, std::pair< OString, OString > > accelmap
Definition: builder.hxx:67
UStringPair ButtonMenuMap
Definition: builder.hxx:199
std::vector< WidgetAdjustmentMap > m_aFormattedFormatterAdjustmentMaps
Definition: builder.hxx:272
UStringPair WidgetAdjustmentMap
Definition: builder.hxx:198
stringmap m_aDeferredProperties
Definition: builder.hxx:122
std::vector< row > m_aEntries
Definition: builder.hxx:218
OString m_sHelpRoot
Definition: builder.hxx:305
void set_properties(vcl::Window *pWindow, const VclBuilder::stringmap &rProps)
Definition: builder.cxx:2419
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:268
UStringPair MnemonicWidgetMap
Definition: builder.hxx:200
std::vector< RadioButtonGroupMap > m_aGroupMaps
Definition: builder.hxx:263
void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition)
Definition: builder.cxx:2484
std::vector< MnemonicWidgetMap > m_aMnemonicWidgetMaps
Definition: builder.hxx:291
T * get(VclPtr< T > &ret, const OString &sID)
Definition: builder.hxx:428
bool m_bToplevelHasDeferredInit
Definition: builder.hxx:308
StringPair RadioButtonGroupMap
Definition: builder.hxx:182
bool m_bToplevelParentFound
Definition: builder.hxx:310
OUString extractCustomProperty(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2446
std::map< OString, stockinfo > StockMap
Definition: builder.hxx:248
ComboBoxModelMap(const OString &rId, const OUString &rValue, sal_Int32 nActiveId)
Definition: builder.hxx:207
OString const m_sID
Definition: builder.hxx:162
std::map< VclPtr< vcl::Window >, VclPtr< vcl::Window > > m_aRedundantParentWidgets
Definition: builder.hxx:285
sortIntoBestTabTraversalOrder(VclBuilder *pBuilder)
Definition: builder.hxx:320
OUString m_sItem
Definition: builder.hxx:54
bool m_bToplevelHasDeferredProperties
Definition: builder.hxx:309
bool const m_bLegacy
Definition: builder.hxx:311
std::vector< WidgetAdjustmentMap > m_aDateFormatterAdjustmentMaps
Definition: builder.hxx:274
std::map< OString, ListStore > m_aModels
Definition: builder.hxx:266
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:501
VclPtr< vcl::Window > m_pParent
Definition: builder.hxx:307
UStringPair(const OString &rId, const OUString &rValue)
Definition: builder.hxx:175
stringmap TextBuffer
Definition: builder.hxx:226
ButtonImageWidgetMap(const OString &rId, const OUString &rValue, bool bRadio)
Definition: builder.hxx:189
std::vector< ComboBoxModelMap > m_aModelMaps
Definition: builder.hxx:265
PackingData(bool bVerticalOrient=false)
Definition: builder.hxx:130
UStringPair TextBufferMap
Definition: builder.hxx:197
std::map< OString, Adjustment > m_aAdjustments
Definition: builder.hxx:278
OUString convertMnemonicMarkup(const OUString &rIn)
Definition: builder.cxx:2429
std::vector< ButtonMenuMap > m_aButtonMenuMaps
Definition: builder.hxx:283
std::unique_ptr< ParserState > m_pParserState
Definition: builder.hxx:312
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:206
bool VCL_DLLPUBLIC toBool(const OUString &rValue)
Definition: layout.cxx:1301
#define SAL_WARN_IF(condition, area, stream)
VclPtr< vcl::Window > m_pWindow
Definition: builder.hxx:140
sal_uInt16 m_nLastMenuItemId
Definition: builder.hxx:299
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:330
std::vector< VclPtr< MessageDialog > > m_aMessageDialogs
Definition: builder.hxx:295
sal_uInt16 m_nLastToolbarId
Definition: builder.hxx:297
vcl::Window * get_by_name(const OString &sID)
Definition: builder.cxx:4161
OString m_sID
Definition: builder.hxx:304
std::unique_ptr< NotebookBarAddonsItem > m_pNotebookBarAddonsItem
Definition: builder.hxx:124
std::vector< MenuAndId > m_aMenus
Definition: builder.hxx:158
const char * name
bool extractDropdown(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2472
sal_Int16 getRoleFromName(const OString &roleName)
Definition: builder.cxx:2516
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:164
reference_type * get() const
Get the body.
Definition: vclptr.hxx:143
std::map< VclPtr< vcl::Window >, stringmap > AtkMap
Definition: builder.hxx:257
PackingData m_aPackingData
Definition: builder.hxx:141
std::vector< WidgetAdjustmentMap > m_aTimeFormatterAdjustmentMaps
Definition: builder.hxx:273
void ensureDefaultWidthChars(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2464
OString m_sId
Definition: builder.hxx:55
std::vector< SizeGroup > m_aSizeGroups
Definition: builder.hxx:287
ResHookProc const m_pStringReplace
Definition: builder.hxx:306
ComboBoxTextItem(const OUString &rItem, const OString &rId)
Definition: builder.hxx:56
OString getUIFile() const
Definition: builder.hxx:490
OUString(* ResHookProc)(const OUString &rStr)
std::locale m_aResLocale
Definition: builder.hxx:261
std::vector< WidgetAdjustmentMap > m_aScrollAdjustmentMaps
Definition: builder.hxx:275
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo