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::sun::star::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 
65 {
66 public:
67  typedef std::map<OString, OUString> stringmap;
68  typedef std::map<OString, std::pair<OString, OString>> accelmap;
70  typedef void (*customMakeWidget)(VclPtr<vcl::Window> &rRet, const VclPtr<vcl::Window> &pParent, stringmap &rVec);
71 
72 public:
73  VclBuilder(vcl::Window* pParent, const OUString& sUIRootDir, const OUString& sUIFile,
74  const OString& sID = OString(),
75  const css::uno::Reference<css::frame::XFrame>& rFrame
76  = css::uno::Reference<css::frame::XFrame>(),
77  bool bLegacy = true,
78  const NotebookBarAddonsItem* pNotebookBarAddonsItem = nullptr);
79  ~VclBuilder();
81  void disposeBuilder();
82  //sID must exist and be of type T
83  template <typename T> T* get(VclPtr<T>& ret, const OString& sID);
84 
85  //sID may not exist, but must be of type T if it does
86  template <typename T = vcl::Window> T* get(const OString& sID);
87 
88  vcl::Window* get_widget_root();
89 
90  //sID may not exist
91  PopupMenu* get_menu(const OString& sID);
92 
93  //release ownership of pWindow, i.e. don't delete it
94  void drop_ownership(const vcl::Window *pWindow);
95 
96  //see m_aDeferredProperties, you need this for toplevel dialogs
97  //which build themselves from their ctor. The properties on
98  //the top level are stored in m_aDeferredProperties and need
99  //to be applied post ctor
100  void setDeferredProperties();
101 
103  const OString& getUIFile() const
104  {
105  return m_sHelpRoot;
106  }
107 
109  static void preload();
110 
111 private:
112  VclBuilder(const VclBuilder&) = delete;
113  VclBuilder& operator=(const VclBuilder&) = delete;
114 
115  // owner for ListBox/ComboBox UserData
116  std::vector<std::unique_ptr<OUString>> m_aUserData;
117 
118  //If the toplevel window has any properties which need to be set on it,
119  //but the toplevel is the owner of the builder, then its ctor
120  //has not been completed during the building, so properties for it
121  //are collected here and need to be set afterwards, e.g. during
122  //Show or Execute
124 
125  std::unique_ptr<NotebookBarAddonsItem> m_pNotebookBarAddonsItem;
126 
127  struct PackingData
128  {
130  sal_Int32 m_nPosition;
131  PackingData(bool bVerticalOrient = false)
132  : m_bVerticalOrient(bVerticalOrient)
133  , m_nPosition(-1)
134  {
135  }
136  };
137 
138  struct WinAndId
139  {
140  OString m_sID;
143  WinAndId(const OString &rId, vcl::Window *pWindow, bool bVertical)
144  : m_sID(rId)
145  , m_pWindow(pWindow)
146  , m_aPackingData(bVertical)
147  {
148  }
149  };
150  std::vector<WinAndId> m_aChildren;
151 
152  struct MenuAndId
153  {
154  OString m_sID;
156  MenuAndId(const OString &rId, Menu *pMenu);
157  };
158  std::vector<MenuAndId> m_aMenus;
159 
160  struct StringPair
161  {
162  OString m_sID;
163  OString 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 m_sID;
187  OUString m_sValue;
188  bool 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 m_sID;
205  OUString m_sValue;
206  sal_Int32 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 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 private:
333  VclPtr<vcl::Window> insertObject(vcl::Window *pParent,
334  const OString &rClass, const OString &rID,
335  stringmap &rProps, stringmap &rPangoAttributes,
336  stringmap &rAtkProps);
337 
338  VclPtr<vcl::Window> makeObject(vcl::Window *pParent,
339  const OString &rClass, const OString &rID,
340  stringmap &rVec);
341 
342  void connectNumericFormatterAdjustment(const OString &id, const OUString &rAdjustment);
343  void connectFormattedFormatterAdjustment(const OString &id, const OUString &rAdjustment);
344  void connectTimeFormatterAdjustment(const OString &id, const OUString &rAdjustment);
345  void connectDateFormatterAdjustment(const OString &id, const OUString &rAdjustment);
346 
347  void extractGroup(const OString &id, stringmap &rVec);
348  void extractModel(const OString &id, stringmap &rVec);
349  void extractBuffer(const OString &id, stringmap &rVec);
350  static bool extractAdjustmentToMap(const OString &id, stringmap &rVec, std::vector<WidgetAdjustmentMap>& rAdjustmentMap);
351  void extractButtonImage(const OString &id, stringmap &rMap, bool bRadio);
352  void extractStock(const OString &id, stringmap &rMap);
353  void extractMnemonicWidget(const OString &id, stringmap &rMap);
354 
355  void handleChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
356  VclPtr<vcl::Window> handleObject(vcl::Window *pParent, xmlreader::XmlReader &reader);
357  void handlePacking(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
358  static std::vector<vcl::EnumContext::Context> handleStyle(xmlreader::XmlReader &reader, int &nPriority);
359  static OString getStyleClass(xmlreader::XmlReader &reader);
360  void applyPackingProperty(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
361  void collectProperty(xmlreader::XmlReader &reader, stringmap &rVec) const;
362  static void collectPangoAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
363  static void collectAtkRelationAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
364  static void collectAtkRoleAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
365  static void collectAccelerator(xmlreader::XmlReader &reader, accelmap &rMap);
366 
367  void insertMenuObject(
368  Menu *pParent,
369  PopupMenu *pSubMenu,
370  const OString &rClass,
371  const OString &rID,
372  stringmap &rProps,
373  accelmap &rAccels);
374 
375  void handleMenuChild(Menu *pParent, xmlreader::XmlReader &reader);
376  void handleMenuObject(Menu *pParent, xmlreader::XmlReader &reader);
377 
378  void handleListStore(xmlreader::XmlReader &reader, const OString &rID, const OString &rClass);
379  void handleRow(xmlreader::XmlReader &reader, const OString &rID);
380  void handleTabChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
381  VclPtr<Menu> handleMenu(xmlreader::XmlReader &reader, const OString &rID, bool bMenuBar);
382  std::vector<ComboBoxTextItem> handleItems(xmlreader::XmlReader &reader) const;
383 
384  void handleSizeGroup(xmlreader::XmlReader &reader);
385 
386  void handleAtkObject(xmlreader::XmlReader &reader, vcl::Window *pWindow);
387 
388  void handleActionWidget(xmlreader::XmlReader &reader);
389 
390  PackingData get_window_packing_data(const vcl::Window *pWindow) const;
391  void set_window_packing_position(const vcl::Window *pWindow, sal_Int32 nPosition);
392 
393  static vcl::Window* prepareWidgetOwnScrolling(vcl::Window *pParent, WinBits &rWinStyle);
394  void cleanupWidgetOwnScrolling(vcl::Window *pScrollParent, vcl::Window *pWindow, stringmap &rMap);
395 
396  void set_response(const OString& sID, short nResponse);
397 
398  OString get_by_window(const vcl::Window *pWindow) const;
399  void delete_by_window(vcl::Window *pWindow);
400 };
401 
402 namespace BuilderUtils
403 {
404  //apply the properties of rProps to pWindow
405  VCL_DLLPUBLIC void set_properties(vcl::Window *pWindow, const VclBuilder::stringmap &rProps);
406 
407  //Convert _ gtk markup to ~ vcl markup
408  VCL_DLLPUBLIC OUString convertMnemonicMarkup(const OUString &rIn);
409 
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>
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> 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: */
std::vector< WidgetAdjustmentMap > m_aSliderAdjustmentMaps
Definition: builder.hxx:276
std::vector< ButtonImageWidgetMap > m_aButtonImageWidgetMaps
Definition: builder.hxx:280
void setDeferredProperties()
Definition: builder.hxx:482
stringmap m_aProperties
Definition: builder.hxx:253
bool m_bLegacy
Definition: builder.hxx:311
A widget used to choose from a list of items and which has no entry.
Definition: lstbox.hxx:79
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:68
bool toBool(const OUString &rValue)
Definition: layout.cxx:1318
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:123
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:2490
const OString & getUIFile() const
return UI-File name (without '.ui')
Definition: builder.hxx:103
sal_Int64 WinBits
std::vector< TextBufferMap > m_aTextBufferMaps
Definition: builder.hxx:268
UStringPair MnemonicWidgetMap
Definition: builder.hxx:200
Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar, etc.
Definition: builder.hxx:64
std::vector< RadioButtonGroupMap > m_aGroupMaps
Definition: builder.hxx:263
void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition)
Definition: builder.cxx:2549
ResHookProc m_pStringReplace
Definition: builder.hxx:306
std::vector< MnemonicWidgetMap > m_aMnemonicWidgetMaps
Definition: builder.hxx:291
T * get(VclPtr< T > &ret, const OString &sID)
Definition: builder.hxx:426
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:2517
std::map< OString, stockinfo > StockMap
Definition: builder.hxx:248
ComboBoxModelMap(const OString &rId, const OUString &rValue, sal_Int32 nActiveId)
Definition: builder.hxx:207
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
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:155
std::map< OString, OUString > stringmap
Definition: builder.hxx:67
sal_Int32 w
std::unique_ptr< VclBuilder > m_pUIBuilder
Definition: builder.hxx:499
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:131
UStringPair TextBufferMap
Definition: builder.hxx:197
std::map< OString, Adjustment > m_aAdjustments
Definition: builder.hxx:278
OUString convertMnemonicMarkup(const OUString &rIn)
Definition: builder.cxx:2500
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:116
Definition: menu.hxx:118
std::vector< WinAndId > m_aChildren
Definition: builder.hxx:150
#define SAL_WARN_IF(condition, area, stream)
VclPtr< vcl::Window > m_pWindow
Definition: builder.hxx:141
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:4241
OString m_sID
Definition: builder.hxx:304
std::unique_ptr< NotebookBarAddonsItem > m_pNotebookBarAddonsItem
Definition: builder.hxx:125
std::vector< MenuAndId > m_aMenus
Definition: builder.hxx:158
const char * name
bool extractDropdown(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2537
sal_Int16 getRoleFromName(const OString &roleName)
Definition: builder.cxx:2581
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:143
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:142
std::vector< WidgetAdjustmentMap > m_aTimeFormatterAdjustmentMaps
Definition: builder.hxx:273
void ensureDefaultWidthChars(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2529
OString m_sId
Definition: builder.hxx:55
std::vector< SizeGroup > m_aSizeGroups
Definition: builder.hxx:287
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:261
std::vector< WidgetAdjustmentMap > m_aScrollAdjustmentMaps
Definition: builder.hxx:275
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo