LibreOffice Module vcl (master)  1
salvtables.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 #pragma once
10 
11 #include <vcl/weld.hxx>
12 #include <vcl/svapp.hxx>
13 #include <vcl/syswin.hxx>
14 #include <vcl/settings.hxx>
15 #include <vcl/virdev.hxx>
16 #include <vcl/ctrl.hxx>
17 #include <vcl/toolkit/edit.hxx>
18 #include <vcl/formatter.hxx>
19 #include <vcl/toolkit/spinfld.hxx>
20 #include <vcl/toolkit/fixed.hxx>
21 #include <vcl/toolkit/lstbox.hxx>
22 #include <vcl/menubtn.hxx>
23 #include <vcl/toolkit/combobox.hxx>
24 #include <vcl/tabctrl.hxx>
25 #include <vcl/layout.hxx>
26 #include "messagedialog.hxx"
27 
29 {
30 protected:
31  std::unique_ptr<VclBuilder> m_xBuilder;
33 
34 public:
35  SalInstanceBuilder(vcl::Window* pParent, const OUString& rUIRoot, const OUString& rUIFile,
36  const css::uno::Reference<css::frame::XFrame>& rFrame
37  = css::uno::Reference<css::frame::XFrame>());
38 
39  virtual std::unique_ptr<weld::MessageDialog>
40  weld_message_dialog(const OString& id, bool bTakeOwnership = true) override;
41 
42  virtual std::unique_ptr<weld::Dialog> weld_dialog(const OString& id,
43  bool bTakeOwnership = true) override;
44 
45  virtual std::unique_ptr<weld::Assistant> weld_assistant(const OString& id,
46  bool bTakeOwnership = true) override;
47 
48  virtual std::unique_ptr<weld::Window> create_screenshot_window() override;
49 
50  virtual std::unique_ptr<weld::Widget> weld_widget(const OString& id,
51  bool bTakeOwnership = false) override;
52 
53  virtual std::unique_ptr<weld::Container> weld_container(const OString& id,
54  bool bTakeOwnership = false) override;
55 
56  virtual std::unique_ptr<weld::Box> weld_box(const OString& id,
57  bool bTakeOwnership = false) override;
58 
59  virtual std::unique_ptr<weld::Paned> weld_paned(const OString& id,
60  bool bTakeOwnership = false) override;
61 
62  virtual std::unique_ptr<weld::Frame> weld_frame(const OString& id,
63  bool bTakeOwnership = false) override;
64 
65  virtual std::unique_ptr<weld::ScrolledWindow>
66  weld_scrolled_window(const OString& id, bool bTakeOwnership = false) override;
67 
68  virtual std::unique_ptr<weld::Notebook> weld_notebook(const OString& id,
69  bool bTakeOwnership = false) override;
70 
71  virtual std::unique_ptr<weld::Button> weld_button(const OString& id,
72  bool bTakeOwnership = false) override;
73 
74  virtual std::unique_ptr<weld::MenuButton>
75  weld_menu_button(const OString& id, bool bTakeOwnership = false) override;
76 
77  virtual std::unique_ptr<weld::LinkButton>
78  weld_link_button(const OString& id, bool bTakeOwnership = false) override;
79 
80  virtual std::unique_ptr<weld::ToggleButton>
81  weld_toggle_button(const OString& id, bool bTakeOwnership = false) override;
82 
83  virtual std::unique_ptr<weld::RadioButton>
84  weld_radio_button(const OString& id, bool bTakeOwnership = false) override;
85 
86  virtual std::unique_ptr<weld::CheckButton>
87  weld_check_button(const OString& id, bool bTakeOwnership = false) override;
88 
89  virtual std::unique_ptr<weld::Scale> weld_scale(const OString& id,
90  bool bTakeOwnership = false) override;
91 
92  virtual std::unique_ptr<weld::ProgressBar>
93  weld_progress_bar(const OString& id, bool bTakeOwnership = false) override;
94 
95  virtual std::unique_ptr<weld::Spinner> weld_spinner(const OString& id,
96  bool bTakeOwnership = false) override;
97 
98  virtual std::unique_ptr<weld::Image> weld_image(const OString& id,
99  bool bTakeOwnership = false) override;
100 
101  virtual std::unique_ptr<weld::Calendar> weld_calendar(const OString& id,
102  bool bTakeOwnership = false) override;
103 
104  virtual std::unique_ptr<weld::Entry> weld_entry(const OString& id,
105  bool bTakeOwnership = false) override;
106 
107  virtual std::unique_ptr<weld::SpinButton>
108  weld_spin_button(const OString& id, bool bTakeOwnership = false) override;
109 
110  virtual std::unique_ptr<weld::MetricSpinButton>
111  weld_metric_spin_button(const OString& id, FieldUnit eUnit,
112  bool bTakeOwnership = false) override;
113 
114  virtual std::unique_ptr<weld::FormattedSpinButton>
115  weld_formatted_spin_button(const OString& id, bool bTakeOwnership = false) override;
116 
117  virtual std::unique_ptr<weld::ComboBox> weld_combo_box(const OString& id,
118  bool bTakeOwnership = false) override;
119 
120  virtual std::unique_ptr<weld::EntryTreeView>
121  weld_entry_tree_view(const OString& containerid, const OString& entryid,
122  const OString& treeviewid, bool bTakeOwnership = false) override;
123 
124  virtual std::unique_ptr<weld::TreeView> weld_tree_view(const OString& id,
125  bool bTakeOwnership = false) override;
126 
127  virtual std::unique_ptr<weld::IconView> weld_icon_view(const OString& id,
128  bool bTakeOwnership = false) override;
129 
130  virtual std::unique_ptr<weld::Label> weld_label(const OString& id,
131  bool bTakeOwnership = false) override;
132 
133  virtual std::unique_ptr<weld::TextView> weld_text_view(const OString& id,
134  bool bTakeOwnership = false) override;
135 
136  virtual std::unique_ptr<weld::Expander> weld_expander(const OString& id,
137  bool bTakeOwnership = false) override;
138 
139  virtual std::unique_ptr<weld::DrawingArea>
140  weld_drawing_area(const OString& id, const a11yref& rA11yImpl = nullptr,
141  FactoryFunction pUITestFactoryFunction = nullptr, void* pUserData = nullptr,
142  bool bTakeOwnership = false) override;
143 
144  virtual std::unique_ptr<weld::Menu> weld_menu(const OString& id,
145  bool bTakeOwnership = true) override;
146 
147  virtual std::unique_ptr<weld::Toolbar> weld_toolbar(const OString& id,
148  bool bTakeOwnership = false) override;
149 
150  virtual std::unique_ptr<weld::SizeGroup> create_size_group() override;
151 
152  OString get_current_page_help_id() const;
153 
154  virtual ~SalInstanceBuilder() override;
155 };
156 
157 class SAL_DLLPUBLIC_RTTI SalInstanceMenu : public weld::Menu
158 {
159 private:
161 
163  sal_uInt16 m_nLastId;
164 
165  DECL_LINK(SelectMenuHdl, ::Menu*, bool);
166 
167 public:
168  SalInstanceMenu(PopupMenu* pMenu, bool bTakeOwnership);
169  virtual OString popup_at_rect(weld::Widget* pParent, const tools::Rectangle& rRect) override;
170  virtual void set_sensitive(const OString& rIdent, bool bSensitive) override;
171  virtual void set_active(const OString& rIdent, bool bActive) override;
172  virtual bool get_active(const OString& rIdent) const override;
173  virtual void set_label(const OString& rIdent, const OUString& rLabel) override;
174  virtual OUString get_label(const OString& rIdent) const override;
175  virtual void set_visible(const OString& rIdent, bool bShow) override;
176  virtual void clear() override;
177  virtual void insert(int pos, const OUString& rId, const OUString& rStr,
178  const OUString* pIconName, VirtualDevice* pImageSurface,
179  TriState eCheckRadioFalse) override;
180  virtual void insert_separator(int pos, const OUString& rId) override;
181  virtual void remove(const OString& rId) override;
182  virtual int n_children() const override;
183  PopupMenu* getMenu() const;
184  virtual ~SalInstanceMenu() override;
185 };
186 
187 class SalInstanceWidget : public virtual weld::Widget
188 {
189 protected:
192 
193 private:
194  DECL_LINK(EventListener, VclWindowEvent&, void);
195  DECL_LINK(KeyEventListener, VclWindowEvent&, bool);
196  DECL_LINK(MouseEventListener, VclSimpleEvent&, void);
197  DECL_LINK(MnemonicActivateHdl, vcl::Window&, bool);
198 
199  const bool m_bTakeOwnership;
204 
205 protected:
206  void ensure_event_listener();
207 
208  // we want the ability to mark key events as handled, so use this variant
209  // for those, we get all keystrokes in this case, so we will need to filter
210  // them later
211  void ensure_key_listener();
212 
213  // we want the ability to know about mouse events that happen in our children
214  // so use this variant, we will need to filter them later
215  void ensure_mouse_listener();
216 
217  virtual void HandleEventListener(VclWindowEvent& rEvent);
218  virtual bool HandleKeyEventListener(VclWindowEvent& rEvent);
219  virtual void HandleMouseEventListener(VclSimpleEvent& rEvent);
220 
221 public:
222  SalInstanceWidget(vcl::Window* pWidget, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
223 
224  virtual void set_sensitive(bool sensitive) override;
225 
226  virtual bool get_sensitive() const override;
227 
228  virtual bool get_visible() const override;
229 
230  virtual bool is_visible() const override;
231 
232  virtual void set_can_focus(bool bCanFocus) override;
233 
234  virtual void grab_focus() override;
235 
236  virtual bool has_focus() const override;
237 
238  virtual bool is_active() const override;
239 
240  virtual void set_has_default(bool has_default) override;
241 
242  virtual bool get_has_default() const override;
243 
244  virtual void show() override;
245 
246  virtual void hide() override;
247 
248  virtual void set_size_request(int nWidth, int nHeight) override;
249 
250  virtual Size get_size_request() const override;
251 
252  virtual Size get_preferred_size() const override;
253 
254  virtual float get_approximate_digit_width() const override;
255 
256  virtual int get_text_height() const override;
257 
258  virtual Size get_pixel_size(const OUString& rText) const override;
259 
260  virtual vcl::Font get_font() override;
261 
262  virtual OString get_buildable_name() const override;
263 
264  virtual void set_help_id(const OString& rId) override;
265 
266  virtual OString get_help_id() const override;
267 
268  virtual void set_grid_left_attach(int nAttach) override;
269 
270  virtual int get_grid_left_attach() const override;
271 
272  virtual void set_grid_width(int nCols) override;
273 
274  virtual void set_grid_top_attach(int nAttach) override;
275 
276  virtual int get_grid_top_attach() const override;
277 
278  virtual void set_hexpand(bool bExpand) override;
279 
280  virtual bool get_hexpand() const override;
281 
282  virtual void set_vexpand(bool bExpand) override;
283 
284  virtual bool get_vexpand() const override;
285 
286  virtual void set_secondary(bool bSecondary) override;
287 
288  virtual void set_margin_top(int nMargin) override;
289 
290  virtual void set_margin_bottom(int nMargin) override;
291 
292  virtual void set_margin_left(int nMargin) override;
293 
294  virtual void set_margin_right(int nMargin) override;
295 
296  virtual int get_margin_top() const override;
297 
298  virtual int get_margin_bottom() const override;
299 
300  virtual int get_margin_left() const override;
301 
302  virtual int get_margin_right() const override;
303 
304  virtual void set_accessible_name(const OUString& rName) override;
305 
306  virtual OUString get_accessible_name() const override;
307 
308  virtual OUString get_accessible_description() const override;
309 
310  virtual void set_accessible_relation_labeled_by(weld::Widget* pLabel) override;
311 
312  virtual void set_accessible_relation_label_for(weld::Widget* pLabeled) override;
313 
314  virtual void set_tooltip_text(const OUString& rTip) override;
315 
316  virtual OUString get_tooltip_text() const override;
317 
318  virtual void connect_focus_in(const Link<Widget&, void>& rLink) override;
319 
320  virtual void connect_mnemonic_activate(const Link<Widget&, bool>& rLink) override;
321 
322  virtual void connect_focus_out(const Link<Widget&, void>& rLink) override;
323 
324  virtual void connect_size_allocate(const Link<const Size&, void>& rLink) override;
325 
326  virtual void connect_mouse_press(const Link<const MouseEvent&, bool>& rLink) override;
327 
328  virtual void connect_mouse_move(const Link<const MouseEvent&, bool>& rLink) override;
329 
330  virtual void connect_mouse_release(const Link<const MouseEvent&, bool>& rLink) override;
331 
332  virtual void connect_key_press(const Link<const KeyEvent&, bool>& rLink) override;
333 
334  virtual void connect_key_release(const Link<const KeyEvent&, bool>& rLink) override;
335 
336  virtual bool get_extents_relative_to(const Widget& rRelative, int& x, int& y, int& width,
337  int& height) const override;
338 
339  virtual void grab_add() override;
340 
341  virtual bool has_grab() const override;
342 
343  virtual void grab_remove() override;
344 
345  virtual bool get_direction() const override;
346 
347  virtual void set_direction(bool bRTL) override;
348 
349  virtual void freeze() override;
350 
351  virtual void thaw() override;
352 
353  virtual std::unique_ptr<weld::Container> weld_parent() const override;
354 
355  virtual ~SalInstanceWidget() override;
356 
357  vcl::Window* getWidget() const;
358 
359  void disable_notify_events();
360 
361  bool notify_events_disabled();
362 
363  void enable_notify_events();
364 
365  virtual void help_hierarchy_foreach(const std::function<bool(const OString&)>& func) override;
366 
367  virtual OUString strip_mnemonic(const OUString& rLabel) const override;
368 
369  virtual VclPtr<VirtualDevice> create_virtual_device() const override;
370 
371  virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> get_drop_target() override;
372 
373  virtual void connect_get_property_tree(const Link<tools::JsonWriter&, void>& rLink) override;
374 
375  virtual void set_stack_background() override;
376 
377  virtual void set_title_background() override;
378 
379  virtual void set_toolbar_background() override;
380 
381  virtual void set_highlight_background() override;
382 
383  virtual void set_background(const Color& rColor) override;
384 
385  virtual void draw(OutputDevice& rOutput, const tools::Rectangle& rRect) override;
386 
388 };
389 
390 class SalInstanceLabel : public SalInstanceWidget, public virtual weld::Label
391 {
392 private:
393  // Control instead of FixedText so we can also use this for
394  // SelectableFixedText which is derived from Edit. We just typically need
395  // [G|S]etText which exists in their shared baseclass
397 
398 public:
399  SalInstanceLabel(Control* pLabel, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
400 
401  virtual void set_label(const OUString& rText) override;
402 
403  virtual OUString get_label() const override;
404 
405  virtual void set_mnemonic_widget(Widget* pTarget) override;
406 
407  virtual void set_label_type(weld::LabelType eType) override;
408 
409  virtual void set_font(const vcl::Font& rFont) override;
410 
411  virtual void set_font_color(const Color& rColor) override;
412 };
413 
415 {
416 protected:
418 
419 private:
420  void implResetDefault(const vcl::Window* _pWindow);
421 
422 public:
423  SalInstanceContainer(vcl::Window* pContainer, SalInstanceBuilder* pBuilder,
424  bool bTakeOwnership);
425  virtual void move(weld::Widget* pWidget, weld::Container* pNewParent) override;
426  virtual void recursively_unset_default_buttons() override;
427  virtual css::uno::Reference<css::awt::XWindow> CreateChildFrame() override;
428 };
429 
431 {
432 private:
434 
435  DECL_LINK(HelpHdl, vcl::Window&, bool);
436 
437  void override_child_help(vcl::Window* pParent);
438 
439  void clear_child_help(vcl::Window* pParent);
440 
441 public:
442  SalInstanceWindow(vcl::Window* pWindow, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
443 
444  virtual void set_title(const OUString& rTitle) override;
445 
446  virtual OUString get_title() const override;
447 
448  void help();
449 
450  virtual void set_busy_cursor(bool bBusy) override;
451 
452  virtual css::uno::Reference<css::awt::XWindow> GetXWindow() override;
453 
454  virtual void resize_to_request() override;
455 
456  virtual void set_modal(bool bModal) override;
457 
458  virtual bool get_modal() const override;
459 
460  virtual void window_move(int x, int y) override;
461 
462  virtual Size get_size() const override;
463 
464  virtual Point get_position() const override;
465 
466  virtual tools::Rectangle get_monitor_workarea() const override;
467 
468  virtual void set_centered_on_parent(bool /*bTrackGeometryRequests*/) override;
469 
470  virtual bool get_resizable() const override;
471 
472  virtual bool has_toplevel_focus() const override;
473 
474  virtual void present() override;
475 
476  virtual void set_window_state(const OString& rStr) override;
477 
478  virtual OString get_window_state(WindowStateMask nMask) const override;
479 
480  virtual SystemEnvData get_system_data() const override;
481 
482  virtual void connect_toplevel_focus_changed(const Link<weld::Widget&, void>& rLink) override;
483 
484  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
485 
487 
488  virtual VclPtr<VirtualDevice> screenshot() override;
489 
490  virtual ~SalInstanceWindow() override;
491 };
492 
493 class SalInstanceDialog : public SalInstanceWindow, public virtual weld::Dialog
494 {
495 private:
497 
498  // for calc ref dialog that shrink to range selection widgets and resize back
500  std::vector<VclPtr<vcl::Window>> m_aHiddenWidgets; // vector of hidden Controls
501  long m_nOldEditWidthReq; // Original width request of the input field
502  sal_Int32 m_nOldBorderWidth; // border width for expanded dialog
503 
504  DECL_LINK(PopupScreenShotMenuHdl, const CommandEvent&, bool);
505 
506 public:
507  SalInstanceDialog(::Dialog* pDialog, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
508 
509  virtual bool runAsync(std::shared_ptr<weld::DialogController> aOwner,
510  const std::function<void(sal_Int32)>& rEndDialogFn) override;
511 
512  virtual bool runAsync(std::shared_ptr<Dialog> const& rxSelf,
513  const std::function<void(sal_Int32)>& rEndDialogFn) override;
514 
515  virtual void collapse(weld::Widget* pEdit, weld::Widget* pButton) override;
516 
517  virtual void undo_collapse() override;
518 
519  virtual void
521 
522  virtual int run() override;
523 
524  virtual void response(int nResponse) override;
525 
526  virtual void add_button(const OUString& rText, int nResponse,
527  const OString& rHelpId = OString()) override;
528 
529  virtual void set_modal(bool bModal) override;
530 
531  virtual bool get_modal() const override;
532 
533  virtual weld::Button* weld_widget_for_response(int nResponse) override;
534 
535  virtual void set_default_response(int nResponse) override;
536 
537  virtual weld::Container* weld_content_area() override;
538 };
539 
540 class WeldTextFilter final : public TextFilter
541 {
542 private:
544 
545 public:
546  WeldTextFilter(Link<OUString&, bool>& rInsertTextHdl);
547 
548  virtual OUString filter(const OUString& rText) override;
549 };
550 
551 class SalInstanceEntry : public SalInstanceWidget, public virtual weld::Entry
552 {
553 private:
555 
556  DECL_LINK(ChangeHdl, Edit&, void);
557  DECL_LINK(CursorListener, VclWindowEvent&, void);
558  DECL_LINK(ActivateHdl, Edit&, bool);
559 
561 
562 public:
563  SalInstanceEntry(::Edit* pEntry, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
564 
565  virtual void set_text(const OUString& rText) override;
566 
567  virtual OUString get_text() const override;
568 
569  virtual void set_width_chars(int nChars) override;
570 
571  virtual int get_width_chars() const override;
572 
573  virtual void set_max_length(int nChars) override;
574 
575  virtual void select_region(int nStartPos, int nEndPos) override;
576 
577  bool get_selection_bounds(int& rStartPos, int& rEndPos) override;
578 
579  virtual void replace_selection(const OUString& rText) override;
580 
581  virtual void set_position(int nCursorPos) override;
582 
583  virtual int get_position() const override;
584 
585  virtual void set_editable(bool bEditable) override;
586 
587  virtual bool get_editable() const override;
588 
589  virtual void set_overwrite_mode(bool bOn) override;
590 
591  virtual bool get_overwrite_mode() const override;
592 
593  virtual void set_message_type(weld::EntryMessageType eType) override;
594 
595  virtual void set_font(const vcl::Font& rFont) override;
596 
597  virtual void set_font_color(const Color& rColor) override;
598 
599  virtual void connect_cursor_position(const Link<Entry&, void>& rLink) override;
600 
601  virtual void set_placeholder_text(const OUString& rText) override;
602 
603  Edit& getEntry();
604 
605  void fire_signal_changed();
606 
607  virtual void cut_clipboard() override;
608 
609  virtual void copy_clipboard() override;
610 
611  virtual void paste_clipboard() override;
612 
613  virtual void set_alignment(TxtAlign eXAlign) override;
614 
615  virtual ~SalInstanceEntry() override;
616 };
617 
619 {
620 private:
623 
624  DECL_LINK(UpDownHdl, SpinField&, void);
625  DECL_LINK(LoseFocusHdl, Control&, void);
626  DECL_LINK(OutputHdl, LinkParamNone*, bool);
627  DECL_LINK(InputHdl, sal_Int64*, TriState);
628  DECL_LINK(ActivateHdl, Edit&, bool);
629 
630  double toField(int nValue) const;
631 
632  int fromField(double fValue) const;
633 
634 public:
636  bool bTakeOwnership);
637 
638  virtual int get_value() const override;
639 
640  virtual void set_value(int value) override;
641 
642  virtual void set_range(int min, int max) override;
643 
644  virtual void get_range(int& min, int& max) const override;
645 
646  virtual void set_increments(int step, int /*page*/) override;
647 
648  virtual void get_increments(int& step, int& page) const override;
649 
650  virtual void set_digits(unsigned int digits) override;
651 
652  // SpinButton may be comprised of multiple subwidgets, consider the lot as
653  // one thing for focus
654  virtual bool has_focus() const override;
655 
656  //off by default for direct SpinButtons, MetricSpinButton enables it
657  void SetUseThousandSep();
658 
659  virtual unsigned int get_digits() const override;
660 
661  virtual ~SalInstanceSpinButton() override;
662 };
663 
664 //ComboBox and ListBox have similar apis, ComboBoxes in LibreOffice have an edit box and ListBoxes
665 //don't. This distinction isn't there in Gtk. Use a template to sort this problem out.
666 template <class vcl_type>
668 {
669 protected:
670  // owner for ListBox/ComboBox UserData
671  std::vector<std::shared_ptr<OUString>> m_aUserData;
675 
676 public:
677  SalInstanceComboBox(vcl_type* pComboBox, SalInstanceBuilder* pBuilder, bool bTakeOwnership)
678  : SalInstanceContainer(pComboBox, pBuilder, bTakeOwnership)
679  , m_xComboBox(pComboBox)
680  {
681  }
682 
683  virtual int get_active() const override
684  {
685  const sal_Int32 nRet = m_xComboBox->GetSelectedEntryPos();
686  if (nRet == LISTBOX_ENTRY_NOTFOUND)
687  return -1;
688  return nRet;
689  }
690 
691  const OUString* getEntryData(int index) const
692  {
693  return static_cast<const OUString*>(m_xComboBox->GetEntryData(index));
694  }
695 
696  // ComboBoxes are comprised of multiple subwidgets, consider the lot as
697  // one thing for focus
698  virtual bool has_focus() const override
699  {
700  return m_xWidget->HasChildPathFocus()
701  || (m_xMenuButton && (m_xMenuButton->HasFocus() || m_xMenuButton->InPopupMode()));
702  }
703 
704  virtual OUString get_active_id() const override
705  {
706  sal_Int32 nPos = m_xComboBox->GetSelectedEntryPos();
707  const OUString* pRet;
708  if (nPos != LISTBOX_ENTRY_NOTFOUND)
709  pRet = getEntryData(m_xComboBox->GetSelectedEntryPos());
710  else
711  pRet = nullptr;
712  if (!pRet)
713  return OUString();
714  return *pRet;
715  }
716 
717  virtual void set_active_id(const OUString& rStr) override
718  {
719  for (int i = 0; i < get_count(); ++i)
720  {
721  const OUString* pId = getEntryData(i);
722  if (!pId)
723  continue;
724  if (*pId == rStr)
725  m_xComboBox->SelectEntryPos(i);
726  }
727  }
728 
729  virtual void set_active(int pos) override
730  {
731  if (pos == -1)
732  {
733  m_xComboBox->SetNoSelection();
734  return;
735  }
736  m_xComboBox->SelectEntryPos(pos);
737  }
738 
739  virtual OUString get_text(int pos) const override { return m_xComboBox->GetEntry(pos); }
740 
741  virtual OUString get_id(int pos) const override
742  {
743  const OUString* pRet = getEntryData(pos);
744  if (!pRet)
745  return OUString();
746  return *pRet;
747  }
748 
749  virtual void set_id(int row, const OUString& rId) override
750  {
751  m_aUserData.emplace_back(std::make_unique<OUString>(rId));
752  m_xComboBox->SetEntryData(row, m_aUserData.back().get());
753  }
754 
755  virtual void insert_vector(const std::vector<weld::ComboBoxEntry>& rItems,
756  bool bKeepExisting) override
757  {
758  freeze();
759  if (!bKeepExisting)
760  clear();
761  for (const auto& rItem : rItems)
762  {
763  insert(-1, rItem.sString, rItem.sId.isEmpty() ? nullptr : &rItem.sId,
764  rItem.sImage.isEmpty() ? nullptr : &rItem.sImage, nullptr);
765  }
766  thaw();
767  }
768 
769  virtual int get_count() const override { return m_xComboBox->GetEntryCount(); }
770 
771  virtual int find_text(const OUString& rStr) const override
772  {
773  const sal_Int32 nRet = m_xComboBox->GetEntryPos(rStr);
774  if (nRet == LISTBOX_ENTRY_NOTFOUND)
775  return -1;
776  return nRet;
777  }
778 
779  virtual int find_id(const OUString& rStr) const override
780  {
781  for (int i = 0; i < get_count(); ++i)
782  {
783  const OUString* pId = getEntryData(i);
784  if (!pId)
785  continue;
786  if (*pId == rStr)
787  return i;
788  }
789  return -1;
790  }
791 
792  virtual void clear() override
793  {
794  m_xComboBox->Clear();
795  m_aUserData.clear();
796  }
797 
798  virtual void make_sorted() override
799  {
800  m_xComboBox->SetStyle(m_xComboBox->GetStyle() | WB_SORT);
801  }
802 
803  virtual bool get_popup_shown() const override { return m_xComboBox->IsInDropDown(); }
804 
805  virtual void connect_popup_toggled(const Link<ComboBox&, void>& rLink) override
806  {
809  }
810 
812  {
813  vcl::RenderContext* pRenderContext = pEvent->GetRenderContext();
814  auto nPos = pEvent->GetItemId();
815  const tools::Rectangle& rRect = pEvent->GetRect();
816  const OUString sId = get_id(nPos);
817  signal_custom_render(*pRenderContext, rRect, pEvent->IsSelected(), sId);
818  m_xComboBox->DrawEntry(*pEvent); // draw separator
819 
820  if (m_xMenuButton && m_xMenuButton->IsVisible() && m_sMenuButtonRow == sId)
821  {
822  if (m_xMenuButton->GetParent() != pEvent->GetWindow())
823  m_xMenuButton->SetParent(pEvent->GetWindow());
825  m_xMenuButton->SetSizePixel(Size(nButtonWidth, rRect.GetHeight()));
826  m_xMenuButton->SetPosPixel(Point(rRect.GetWidth() - nButtonWidth, rRect.getY()));
827  }
828  }
829 
831  {
832  auto xRet = VclPtr<VirtualDevice>::Create();
833  xRet->SetBackground(Application::GetSettings().GetStyleSettings().GetFieldColor());
834  return xRet;
835  }
836 
837  virtual void set_item_menu(const OString& rIdent, weld::Menu* pMenu) override
838  {
839  SalInstanceMenu* pInstanceMenu = dynamic_cast<SalInstanceMenu*>(pMenu);
840 
841  PopupMenu* pPopup = pInstanceMenu ? pInstanceMenu->getMenu() : nullptr;
842 
843  if (!m_xMenuButton)
844  m_xMenuButton
846 
847  m_xMenuButton->SetPopupMenu(pPopup);
848  m_xMenuButton->Show(pPopup != nullptr);
849  m_sMenuButtonRow = OUString::fromUtf8(rIdent);
850  }
851 
852  int get_menu_button_width() const override
853  {
854  const int nButtonWidth = 20;
855  return nButtonWidth;
856  }
857 
859  {
860  if (rEvent.GetId() == VclEventId::DropdownPreOpen
861  || rEvent.GetId() == VclEventId::DropdownClose)
862  {
864  return;
865  }
867  }
868 };
869 
871 {
872 private:
873  DECL_LINK(SelectHdl, ListBox&, void);
874 
875 public:
877  bool bTakeOwnership);
878 
879  virtual OUString get_active_text() const override;
880 
881  virtual void remove(int pos) override;
882 
883  virtual void insert(int pos, const OUString& rStr, const OUString* pId,
884  const OUString* pIconName, VirtualDevice* pImageSurface) override;
885 
886  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
887 
888  virtual bool has_entry() const override;
889 
890  virtual bool changed_by_direct_pick() const override;
891 
892  virtual void set_entry_message_type(weld::EntryMessageType /*eType*/) override;
893 
894  virtual void set_entry_text(const OUString& /*rText*/) override;
895 
896  virtual void select_entry_region(int /*nStartPos*/, int /*nEndPos*/) override;
897 
898  virtual bool get_entry_selection_bounds(int& /*rStartPos*/, int& /*rEndPos*/) override;
899 
900  virtual void set_entry_width_chars(int /*nChars*/) override;
901 
902  virtual void set_entry_max_length(int /*nChars*/) override;
903 
904  virtual void set_entry_completion(bool, bool bCaseSensitive = false) override;
905 
906  virtual void set_entry_placeholder_text(const OUString&) override;
907 
908  virtual void set_entry_editable(bool bEditable) override;
909 
910  virtual void cut_entry_clipboard() override;
911 
912  virtual void copy_entry_clipboard() override;
913 
914  virtual void paste_entry_clipboard() override;
915 
916  virtual void set_entry_font(const vcl::Font&) override;
917 
918  virtual vcl::Font get_entry_font() override;
919 
920  virtual void set_custom_renderer(bool bOn) override;
921 
922  virtual int get_max_mru_count() const override;
923 
924  virtual void set_max_mru_count(int) override;
925 
926  virtual OUString get_mru_entries() const override;
927 
928  virtual void set_mru_entries(const OUString&) override;
929 
930  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
931 
932  virtual ~SalInstanceComboBoxWithoutEdit() override;
933 };
934 
936 {
937 private:
938  DECL_LINK(ChangeHdl, Edit&, void);
939  DECL_LINK(EntryActivateHdl, Edit&, bool);
940  DECL_LINK(SelectHdl, ::ComboBox&, void);
941  DECL_LINK(UserDrawHdl, UserDrawEvent*, void);
944 
945 public:
947  bool bTakeOwnership);
948 
949  virtual bool has_entry() const override;
950 
951  virtual bool changed_by_direct_pick() const override;
952 
953  virtual void set_entry_message_type(weld::EntryMessageType eType) override;
954 
955  virtual OUString get_active_text() const override;
956 
957  virtual void remove(int pos) override;
958 
959  virtual void insert(int pos, const OUString& rStr, const OUString* pId,
960  const OUString* pIconName, VirtualDevice* pImageSurface) override;
961 
962  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
963 
964  virtual void set_entry_text(const OUString& rText) override;
965 
966  virtual void set_entry_width_chars(int nChars) override;
967 
968  virtual void set_entry_max_length(int nChars) override;
969 
970  virtual void set_entry_completion(bool bEnable, bool bCaseSensitive = false) override;
971 
972  virtual void set_entry_placeholder_text(const OUString& rText) override;
973 
974  virtual void set_entry_editable(bool bEditable) override;
975 
976  virtual void cut_entry_clipboard() override;
977 
978  virtual void copy_entry_clipboard() override;
979 
980  virtual void paste_entry_clipboard() override;
981 
982  virtual void select_entry_region(int nStartPos, int nEndPos) override;
983 
984  virtual bool get_entry_selection_bounds(int& rStartPos, int& rEndPos) override;
985 
986  virtual void set_entry_font(const vcl::Font& rFont) override;
987 
988  virtual vcl::Font get_entry_font() override;
989 
990  virtual void set_custom_renderer(bool bOn) override;
991 
992  virtual int get_max_mru_count() const override;
993 
994  virtual void set_max_mru_count(int nCount) override;
995 
996  virtual OUString get_mru_entries() const override;
997 
998  virtual void set_mru_entries(const OUString& rEntries) override;
999 
1000  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
1001 
1002  virtual ~SalInstanceComboBoxWithEdit() override;
1003 };
1004 
1006 {
1007 private:
1010 
1011  DECL_LINK(ClickHdl, ::Button*, void);
1012 
1013 public:
1014  SalInstanceButton(::Button* pButton, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1015 
1016  virtual void set_label(const OUString& rText) override;
1017 
1018  virtual void set_image(VirtualDevice* pDevice) override;
1019 
1020  virtual void set_image(const css::uno::Reference<css::graphic::XGraphic>& rImage) override;
1021 
1022  virtual void set_from_icon_name(const OUString& rIconName) override;
1023 
1024  virtual void set_label_line_wrap(bool wrap) override;
1025 
1026  virtual OUString get_label() const override;
1027 
1028  virtual ~SalInstanceButton() override;
1029 };
1030 
1032 {
1033 private:
1035  mutable std::vector<std::shared_ptr<SalInstanceContainer>> m_aPages;
1036  std::map<OString, std::pair<VclPtr<TabPage>, VclPtr<VclGrid>>> m_aAddedPages;
1037 
1038  DECL_LINK(DeactivatePageHdl, TabControl*, bool);
1039  DECL_LINK(ActivatePageHdl, TabControl*, void);
1040 
1041 public:
1042  SalInstanceNotebook(TabControl* pNotebook, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1043 
1044  virtual int get_current_page() const override;
1045 
1046  virtual int get_page_index(const OString& rIdent) const override;
1047 
1048  virtual OString get_page_ident(int nPage) const override;
1049 
1050  virtual OString get_current_page_ident() const override;
1051 
1052  virtual weld::Container* get_page(const OString& rIdent) const override;
1053 
1054  virtual void set_current_page(int nPage) override;
1055 
1056  virtual void set_current_page(const OString& rIdent) override;
1057 
1058  virtual void remove_page(const OString& rIdent) override;
1059 
1060  virtual void insert_page(const OString& rIdent, const OUString& rLabel, int nPos) override;
1061 
1062  virtual int get_n_pages() const override;
1063 
1064  virtual OUString get_tab_label_text(const OString& rIdent) const override;
1065 
1066  virtual void set_tab_label_text(const OString& rIdent, const OUString& rText) override;
1067 
1068  virtual ~SalInstanceNotebook() override;
1069 };
1070 
1072 {
1073 protected:
1075 
1076 public:
1078  bool bTakeOwnership);
1079 
1080  virtual void set_primary_text(const OUString& rText) override;
1081 
1082  virtual OUString get_primary_text() const override;
1083 
1084  virtual void set_secondary_text(const OUString& rText) override;
1085 
1086  virtual OUString get_secondary_text() const override;
1087 
1088  virtual weld::Container* weld_message_area() override;
1089 };
1090 
1092 {
1093 private:
1095 
1096  DECL_LINK(ToggleHdl, CheckBox&, void);
1097 
1098 public:
1099  SalInstanceCheckButton(CheckBox* pButton, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1100 
1101  virtual void set_active(bool active) override;
1102 
1103  virtual bool get_active() const override;
1104 
1105  virtual void set_inconsistent(bool inconsistent) override;
1106 
1107  virtual bool get_inconsistent() const override;
1108 
1109  virtual ~SalInstanceCheckButton() override;
1110 };
1111 
1113 {
1114 private:
1116 
1117  typedef std::pair<vcl::RenderContext&, const tools::Rectangle&> target_and_area;
1118  DECL_LINK(PaintHdl, target_and_area, void);
1119  DECL_LINK(ResizeHdl, const Size&, void);
1120  DECL_LINK(MousePressHdl, const MouseEvent&, bool);
1121  DECL_LINK(MouseMoveHdl, const MouseEvent&, bool);
1122  DECL_LINK(MouseReleaseHdl, const MouseEvent&, bool);
1123  DECL_LINK(KeyPressHdl, const KeyEvent&, bool);
1124  DECL_LINK(KeyReleaseHdl, const KeyEvent&, bool);
1125  DECL_LINK(StyleUpdatedHdl, VclDrawingArea&, void);
1126  DECL_LINK(CommandHdl, const CommandEvent&, bool);
1127  DECL_LINK(QueryTooltipHdl, tools::Rectangle&, OUString);
1128  DECL_LINK(StartDragHdl, VclDrawingArea*, bool);
1129 
1130  // SalInstanceWidget has a generic listener for all these
1131  // events, ignore the ones we have specializations for
1132  // in VclDrawingArea
1133  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
1134 
1135  virtual void HandleMouseEventListener(VclSimpleEvent& rEvent) override;
1136 
1137  virtual bool HandleKeyEventListener(VclWindowEvent& /*rEvent*/) override;
1138 
1139 public:
1140  SalInstanceDrawingArea(VclDrawingArea* pDrawingArea, SalInstanceBuilder* pBuilder,
1141  const a11yref& rAlly, FactoryFunction pUITestFactoryFunction,
1142  void* pUserData, bool bTakeOwnership);
1143 
1144  virtual void queue_draw() override;
1145 
1146  virtual void queue_draw_area(int x, int y, int width, int height) override;
1147 
1148  virtual void queue_resize() override;
1149 
1150  virtual void connect_size_allocate(const Link<const Size&, void>& rLink) override;
1151 
1152  virtual void connect_key_press(const Link<const KeyEvent&, bool>& rLink) override;
1153 
1154  virtual void connect_key_release(const Link<const KeyEvent&, bool>& rLink) override;
1155 
1156  virtual void set_cursor(PointerStyle ePointerStyle) override;
1157 
1158  virtual a11yref get_accessible_parent() override;
1159 
1160  virtual a11yrelationset get_accessible_relation_set() override;
1161 
1162  virtual Point get_accessible_location() override;
1163 
1165  sal_uInt8 eDNDConstants) override;
1166 
1167  virtual ~SalInstanceDrawingArea() override;
1168 
1169  virtual OutputDevice& get_ref_device() override;
1170 
1171  virtual void click(const Point& rPos) override;
1172 };
1173 
1175 {
1176 private:
1178  std::map<sal_uInt16, VclPtr<vcl::Window>> m_aFloats;
1179  std::map<sal_uInt16, VclPtr<PopupMenu>> m_aMenus;
1180 
1182 
1183  DECL_LINK(ClickHdl, ToolBox*, void);
1184  DECL_LINK(DropdownClick, ToolBox*, void);
1185  DECL_LINK(MenuToggleListener, VclWindowEvent&, void);
1186 
1187 public:
1188  SalInstanceToolbar(ToolBox* pToolBox, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1189 
1190  virtual void set_item_sensitive(const OString& rIdent, bool bSensitive) override;
1191 
1192  virtual bool get_item_sensitive(const OString& rIdent) const override;
1193 
1194  virtual void set_item_visible(const OString& rIdent, bool bVisible) override;
1195 
1196  virtual void set_item_help_id(const OString& rIdent, const OString& rHelpId) override;
1197 
1198  virtual bool get_item_visible(const OString& rIdent) const override;
1199 
1200  virtual void set_item_active(const OString& rIdent, bool bActive) override;
1201 
1202  virtual bool get_item_active(const OString& rIdent) const override;
1203 
1204  void set_menu_item_active(const OString& rIdent, bool bActive) override;
1205 
1206  bool get_menu_item_active(const OString& rIdent) const override;
1207 
1208  virtual void set_item_popover(const OString& rIdent, weld::Widget* pPopover) override;
1209 
1210  virtual void set_item_menu(const OString& rIdent, weld::Menu* pMenu) override;
1211 
1212  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
1213 
1214  virtual int get_n_items() const override;
1215 
1216  virtual OString get_item_ident(int nIndex) const override;
1217 
1218  virtual void set_item_ident(int nIndex, const OString& rIdent) override;
1219 
1220  virtual void set_item_label(int nIndex, const OUString& rLabel) override;
1221 
1222  virtual OUString get_item_label(const OString& rIdent) const override;
1223 
1224  virtual void set_item_label(const OString& rIdent, const OUString& rLabel) override;
1225 
1226  virtual void set_item_icon_name(const OString& rIdent, const OUString& rIconName) override;
1227 
1228  virtual void set_item_image(const OString& rIdent,
1229  const css::uno::Reference<css::graphic::XGraphic>& rIcon) override;
1230 
1231  virtual void set_item_image(const OString& rIdent, VirtualDevice* pDevice) override;
1232 
1233  virtual void set_item_image(int nIndex,
1234  const css::uno::Reference<css::graphic::XGraphic>& rIcon) override;
1235 
1236  virtual void set_item_tooltip_text(int nIndex, const OUString& rTip) override;
1237 
1238  virtual void set_item_tooltip_text(const OString& rIdent, const OUString& rTip) override;
1239 
1240  virtual OUString get_item_tooltip_text(const OString& rIdent) const override;
1241 
1242  virtual vcl::ImageType get_icon_size() const override;
1243 
1244  virtual void set_icon_size(vcl::ImageType eType) override;
1245 
1246  virtual sal_uInt16 get_modifier_state() const override;
1247 
1248  int get_drop_index(const Point& rPoint) const override;
1249 
1250  virtual ~SalInstanceToolbar() override;
1251 };
1252 
1254 {
1255 private:
1258 
1259  DECL_LINK(ChangeHdl, Edit&, void);
1260  DECL_LINK(VscrollHdl, ScrollBar*, void);
1261  DECL_LINK(CursorListener, VclWindowEvent&, void);
1262 
1263 public:
1265  bool bTakeOwnership);
1266 
1267  virtual void set_text(const OUString& rText) override;
1268 
1269  virtual void replace_selection(const OUString& rText) override;
1270 
1271  virtual OUString get_text() const override;
1272 
1273  bool get_selection_bounds(int& rStartPos, int& rEndPos) override;
1274 
1275  virtual void select_region(int nStartPos, int nEndPos) override;
1276 
1277  virtual void set_editable(bool bEditable) override;
1278  virtual bool get_editable() const override;
1279  virtual void set_max_length(int nChars) override;
1280 
1281  virtual void set_monospace(bool bMonospace) override;
1282 
1283  virtual void set_font_color(const Color& rColor) override;
1284 
1285  virtual void connect_cursor_position(const Link<TextView&, void>& rLink) override;
1286 
1287  virtual bool can_move_cursor_with_up() const override;
1288 
1289  virtual bool can_move_cursor_with_down() const override;
1290 
1291  virtual void cut_clipboard() override;
1292 
1293  virtual void copy_clipboard() override;
1294 
1295  virtual void paste_clipboard() override;
1296 
1297  virtual void set_alignment(TxtAlign eXAlign) override;
1298 
1299  virtual int vadjustment_get_value() const override;
1300 
1301  virtual void vadjustment_set_value(int value) override;
1302 
1303  virtual int vadjustment_get_upper() const override;
1304 
1305  virtual int vadjustment_get_lower() const override;
1306 
1307  virtual int vadjustment_get_page_size() const override;
1308 
1309  virtual bool has_focus() const override;
1310 
1311  virtual ~SalInstanceTextView() override;
1312 };
1313 
1314 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual void set_range(int min, int max) override
virtual void cut_entry_clipboard() override
VclPtr< CheckBox > m_xCheckButton
virtual void draw(OutputDevice &rOutput, const tools::Rectangle &rRect) override
virtual void insert_vector(const std::vector< weld::ComboBoxEntry > &rItems, bool bKeepExisting) override
Definition: salvtables.hxx:755
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > get_drop_target() override
Definition: salvtables.cxx:506
virtual bool get_direction() const override
Definition: salvtables.cxx:464
virtual void set_can_focus(bool bCanFocus) override
Definition: salvtables.cxx:251
virtual void set_id(int row, const OUString &rId) override
Definition: salvtables.hxx:749
virtual std::unique_ptr< weld::Assistant > weld_assistant(const OString &id, bool bTakeOwnership=true) override
SalInstanceWidget(vcl::Window *pWidget, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
Definition: salvtables.cxx:231
VclPtr<::Edit > m_xEntry
Definition: salvtables.hxx:554
virtual bool get_item_sensitive(const OString &rIdent) const override
Definition: salvtables.cxx:795
virtual void select_region(int nStartPos, int nEndPos) override
virtual std::unique_ptr< weld::Entry > weld_entry(const OString &id, bool bTakeOwnership=false) override
virtual void set_alignment(TxtAlign eXAlign) override
virtual bool get_modal() const override
virtual void connect_size_allocate(const Link< const Size &, void > &rLink) override
virtual void cut_entry_clipboard() override
long GetWidth() const
VclPtr< ToolBox > m_xToolBox
virtual unsigned int get_digits() const override
virtual void cut_clipboard() override
virtual std::unique_ptr< weld::Toolbar > weld_toolbar(const OString &id, bool bTakeOwnership=false) override
virtual void set_entry_completion(bool, bool bCaseSensitive=false) override
virtual OUString get_active_text() const override
virtual void HandleEventListener(VclWindowEvent &rEvent)
Definition: salvtables.cxx:540
FieldUnit
virtual std::unique_ptr< weld::MetricSpinButton > weld_metric_spin_button(const OString &id, FieldUnit eUnit, bool bTakeOwnership=false) override
virtual void queue_draw_area(int x, int y, int width, int height) override
virtual ~SalInstanceBuilder() override
VclPtr<::Dialog > m_xDialog
Definition: salvtables.hxx:496
virtual void set_entry_editable(bool bEditable) override
virtual bool has_focus() const override
virtual int get_grid_top_attach() const override
Definition: salvtables.cxx:331
virtual std::unique_ptr< weld::EntryTreeView > weld_entry_tree_view(const OString &containerid, const OString &entryid, const OString &treeviewid, bool bTakeOwnership=false) override
virtual void set_image(VirtualDevice *pDevice) override
virtual void set_sensitive(const OString &rIdent, bool bSensitive)=0
virtual void set_editable(bool bEditable) override
virtual void set_label_type(weld::LabelType eType) override
virtual Size get_size() const override
long GetHeight() const
virtual std::unique_ptr< weld::Scale > weld_scale(const OString &id, bool bTakeOwnership=false) override
virtual void select_entry_region(int nStartPos, int nEndPos) override
virtual std::unique_ptr< weld::MessageDialog > weld_message_dialog(const OString &id, bool bTakeOwnership=true) override
std::map< OString, std::pair< VclPtr< TabPage >, VclPtr< VclGrid > > > m_aAddedPages
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface)=0
virtual void connect_size_allocate(const Link< const Size &, void > &rLink) override
Definition: salvtables.cxx:410
virtual void select_entry_region(int, int) override
virtual void set_entry_message_type(weld::EntryMessageType eType) override
virtual void set_active(int pos) override
Definition: salvtables.hxx:729
virtual void set_help_id(const OString &rId) override
Definition: salvtables.cxx:313
SalInstanceBuilder * m_pBuilder
Definition: salvtables.hxx:191
css::uno::Reference< css::accessibility::XAccessibleRelationSet > a11yrelationset
Definition: weld.hxx:46
SalInstanceCheckButton(CheckBox *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
VclPtr< vcl::Window > m_xWindow
Definition: salvtables.hxx:433
virtual void make_sorted() override
Definition: salvtables.hxx:798
virtual void insert_separator(int pos, const OUString &) override
VclEventId GetId() const
Definition: vclevent.hxx:184
virtual bool get_sensitive() const override
Definition: salvtables.cxx:245
virtual void set_tooltip_text(const OUString &rTip) override
Definition: salvtables.cxx:385
virtual std::unique_ptr< weld::Expander > weld_expander(const OString &id, bool bTakeOwnership=false) override
void ensure_mouse_listener()
Definition: salvtables.cxx:213
virtual std::unique_ptr< weld::TreeView > weld_tree_view(const OString &id, bool bTakeOwnership=false) override
const tools::Rectangle & GetRect() const
Definition: event.hxx:244
virtual void set_item_ident(int nIndex, const OString &rIdent) override
Definition: salvtables.cxx:929
virtual bool changed_by_direct_pick() const override
A widget used to choose from a list of items and which has no entry.
Definition: lstbox.hxx:83
bool notify_events_disabled()
Definition: salvtables.cxx:490
virtual Size get_preferred_size() const override
Definition: salvtables.cxx:294
virtual std::unique_ptr< weld::SpinButton > weld_spin_button(const OString &id, bool bTakeOwnership=false) override
VclPtr<::Button > m_xButton
virtual void set_margin_left(int nMargin) override
Definition: salvtables.cxx:347
virtual std::unique_ptr< weld::SizeGroup > create_size_group() override
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface) override
VclPtr< vcl_type > m_xComboBox
Definition: salvtables.hxx:672
virtual void insert_separator(int pos, const OUString &rId)=0
virtual std::unique_ptr< weld::Container > weld_parent() const override
virtual void enable_drag_source(rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants) override
virtual int find_text(const OUString &rStr) const override
Definition: salvtables.hxx:771
virtual int get_value() const override
virtual void queue_resize() override
virtual void set_mnemonic_widget(Widget *pTarget) override
virtual int get_position() const override
void disable_notify_events()
Definition: salvtables.cxx:488
std::vector< ScreenShotEntry > ScreenShotCollection
Definition: weld.hxx:421
virtual int get_max_mru_count() const override
virtual void set_font_color(const Color &rColor) override
virtual void set_modal(bool bModal) override
std::pair< vcl::RenderContext &, const tools::Rectangle & > target_and_area
css::uno::Reference< css::accessibility::XAccessible > a11yref
Definition: weld.hxx:45
virtual std::unique_ptr< weld::Paned > weld_paned(const OString &id, bool bTakeOwnership=false) override
virtual sal_uInt16 get_modifier_state() const override
void call_signal_custom_render(UserDrawEvent *pEvent)
Definition: salvtables.hxx:811
static const AllSettings & GetSettings()
Gets the application's settings.
Definition: svapp.cxx:706
VclPtr<::MessageDialog > m_xMessageDialog
virtual void set_active_id(const OUString &rStr) override
Definition: salvtables.hxx:717
SalInstanceComboBoxWithEdit(::ComboBox *pComboBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
OUString m_sMenuButtonRow
Definition: salvtables.hxx:674
virtual void set_item_help_id(const OString &rIdent, const OString &rHelpId) override
Definition: salvtables.cxx:805
virtual OUString strip_mnemonic(const OUString &rLabel) const override
Definition: salvtables.cxx:494
VclPtr< FormattedField > m_xButton
Definition: salvtables.hxx:621
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
virtual void connect_popup_toggled(const Link< ComboBox &, void > &rLink)
Definition: weld.hxx:690
virtual bool get_has_default() const override
Definition: salvtables.cxx:277
virtual bool has_grab() const override
Definition: salvtables.cxx:460
virtual std::unique_ptr< weld::Widget > weld_widget(const OString &id, bool bTakeOwnership=false) override
VclPtr< vcl::Window > m_xRefEdit
Definition: salvtables.hxx:499
virtual void HandleMouseEventListener(VclSimpleEvent &rEvent)
Definition: salvtables.cxx:561
virtual OUString get_text() const override
void set_menu_item_active(const OString &rIdent, bool bActive) override
Definition: salvtables.cxx:826
virtual void connect_toplevel_focus_changed(const Link< weld::Widget &, void > &rLink) override
virtual OUString get_text(int pos) const override
Definition: salvtables.hxx:739
virtual void set_message_type(weld::EntryMessageType eType) override
virtual void set_label_line_wrap(bool wrap) override
virtual std::unique_ptr< weld::Dialog > weld_dialog(const OString &id, bool bTakeOwnership=true) override
virtual ~SalInstanceWindow() override
virtual void connect_mouse_release(const Link< const MouseEvent &, bool > &rLink) override
Definition: salvtables.cxx:428
WeldTextFilter m_aTextFilter
Definition: salvtables.hxx:942
virtual void clear()=0
virtual OUString get_item_tooltip_text(const OString &rIdent) const override
Definition: salvtables.cxx:987
bool get_menu_item_active(const OString &rIdent) const override
Definition: salvtables.cxx:861
virtual bool get_overwrite_mode() const override
virtual OString get_help_id() const override
Definition: salvtables.cxx:315
virtual void connect_cursor_position(const Link< TextView &, void > &rLink) override
virtual bool runAsync(std::shared_ptr< weld::DialogController > aOwner, const std::function< void(sal_Int32)> &rEndDialogFn) override
virtual void signal_popup_toggled()
Definition: weld.hxx:617
virtual bool is_active() const override
Definition: salvtables.cxx:270
virtual std::unique_ptr< weld::DrawingArea > weld_drawing_area(const OString &id, const a11yref &rA11yImpl=nullptr, FactoryFunction pUITestFactoryFunction=nullptr, void *pUserData=nullptr, bool bTakeOwnership=false) override
virtual OString get_page_ident(int nPage) const override
virtual int get_max_mru_count() const override
virtual bool get_hexpand() const override
Definition: salvtables.cxx:335
virtual void connect_mouse_press(const Link< const MouseEvent &, bool > &rLink) override
Definition: salvtables.cxx:416
virtual ~SalInstanceNotebook() override
virtual void set_mru_entries(const OUString &rEntries) override
virtual void insert(int pos, const OUString &rId, const OUString &rStr, const OUString *pIconName, VirtualDevice *pImageSurface, TriState eCheckRadioFalse)=0
virtual void recursively_unset_default_buttons() override
virtual int vadjustment_get_upper() const override
virtual weld::Button * weld_widget_for_response(int nResponse) override
long getY() const
SystemWindow * getSystemWindow()
Definition: salvtables.cxx:538
WeldTextFilter m_aTextFilter
Definition: salvtables.hxx:560
virtual void set_font(const vcl::Font &rFont) override
SalInstanceEntry(::Edit *pEntry, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
std::unique_ptr< VclBuilder > m_xBuilder
Definition: salvtables.hxx:31
virtual std::unique_ptr< weld::Container > weld_container(const OString &id, bool bTakeOwnership=false) override
bool HasChildPathFocus(bool bSystemWindow=false) const
Definition: window.cxx:2988
virtual Size get_pixel_size(const OUString &rText) const override
Definition: salvtables.cxx:303
virtual bool HandleKeyEventListener(VclWindowEvent &rEvent)
Definition: salvtables.cxx:610
virtual Point get_accessible_location() override
virtual void set_accessible_relation_labeled_by(weld::Widget *pLabel) override
Definition: salvtables.cxx:371
virtual void collapse(weld::Widget *pEdit, weld::Widget *pButton) override
#define LISTBOX_ENTRY_NOTFOUND
Definition: lstbox.hxx:38
virtual void connect_cursor_position(const Link< Entry &, void > &rLink) override
virtual void connect_mouse_move(const Link< const MouseEvent &, bool > &rLink) override
Definition: salvtables.cxx:422
virtual int get_active() const override
Definition: salvtables.hxx:683
virtual void connect_mnemonic_activate(const Link< Widget &, bool > &rLink) override
Definition: salvtables.cxx:398
virtual bool get_active() const override
virtual void set_grid_left_attach(int nAttach) override
Definition: salvtables.cxx:317
virtual void set_item_popover(const OString &rIdent, weld::Widget *pPopover) override
Definition: salvtables.cxx:884
virtual bool HandleKeyEventListener(VclWindowEvent &) override
virtual void undo_collapse() override
virtual OUString get_mru_entries() const override
virtual void help_hierarchy_foreach(const std::function< bool(const OString &)> &func) override
const bool m_bTakeOwnership
Definition: salvtables.hxx:199
virtual bool has_focus() const override
Definition: salvtables.hxx:698
WinBits const WB_NOPOINTERFOCUS
virtual void set_grid_width(int nCols) override
Definition: salvtables.cxx:324
virtual void set_item_menu(const OString &rIdent, weld::Menu *pMenu) override
Definition: salvtables.hxx:837
virtual vcl::Font get_entry_font() override
virtual void connect_focus_in(const Link< Widget &, void > &rLink) override
Definition: salvtables.cxx:392
bool get_selection_bounds(int &rStartPos, int &rEndPos) override
virtual void set_accessible_relation_label_for(weld::Widget *pLabeled) override
Definition: salvtables.cxx:378
DECL_LINK(HelpHdl, vcl::Window &, bool)
virtual void set_item_image(const OString &rIdent, const css::uno::Reference< css::graphic::XGraphic > &rIcon) override
Definition: salvtables.cxx:956
virtual void set_position(int nCursorPos) override
virtual void connect_focus_out(const Link< Widget &, void > &rLink) override
Definition: salvtables.cxx:404
EntryMessageType
Definition: weld.hxx:587
virtual void vadjustment_set_value(int value) override
Link< ScrollBar *, void > m_aOrigVScrollHdl
virtual void set_max_length(int nChars) override
virtual std::unique_ptr< weld::Button > weld_button(const OString &id, bool bTakeOwnership=false) override
virtual int find_id(const OUString &rStr) const override
Definition: salvtables.hxx:779
double toField(int nValue) const
virtual void set_item_menu(const OString &rIdent, weld::Menu *pMenu) override
Definition: salvtables.cxx:905
virtual std::unique_ptr< weld::IconView > weld_icon_view(const OString &id, bool bTakeOwnership=false) override
sal_uInt16 m_nLastId
Definition: salvtables.hxx:163
size_t pos
virtual OString get_buildable_name() const override
Definition: salvtables.cxx:311
int get_menu_button_width() const override
Definition: salvtables.hxx:852
virtual vcl::Font get_entry_font() override
virtual int get_n_pages() const override
virtual void set_label(const OString &rIdent, const OUString &rLabel)=0
virtual void set_max_mru_count(int nCount) override
virtual void set_direction(bool bRTL) override
Definition: salvtables.cxx:466
SalInstanceToolbar(ToolBox *pToolBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
Definition: salvtables.cxx:782
SalInstanceDialog(::Dialog *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
LabelType
Definition: weld.hxx:1915
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual int vadjustment_get_page_size() const override
virtual void set_secondary_text(const OUString &rText) override
virtual int get_margin_bottom() const override
Definition: salvtables.cxx:353
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual tools::Rectangle get_monitor_workarea() const override
WindowStateMask
Definition: vclenum.hxx:123
virtual ~SalInstanceToolbar() override
DECL_LINK(UpDownHdl, SpinField &, void)
void CallHandleEventListener(VclWindowEvent &rEvent)
Definition: salvtables.hxx:858
virtual OUString get_accessible_description() const override
Definition: salvtables.cxx:366
std::vector< VclPtr< vcl::Window > > m_aHiddenWidgets
Definition: salvtables.hxx:500
virtual int get_page_index(const OString &rIdent) const override
SalInstanceComboBoxWithoutEdit(ListBox *pListBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void copy_entry_clipboard() override
virtual void set_entry_editable(bool bEditable) override
Definition: edit.hxx:55
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual void set_margin_top(int nMargin) override
Definition: salvtables.cxx:343
virtual std::unique_ptr< weld::Box > weld_box(const OString &id, bool bTakeOwnership=false) override
virtual void replace_selection(const OUString &rText) override
virtual ~SalInstanceTextView() override
void override_child_help(vcl::Window *pParent)
virtual bool has_focus() const override
virtual void grab_add() override
Definition: salvtables.cxx:458
virtual void set_icon_size(vcl::ImageType eType) override
Definition: salvtables.cxx:994
virtual void connect_popup_toggled(const Link< ComboBox &, void > &rLink) override
Definition: salvtables.hxx:805
int get_drop_index(const Point &rPoint) const override
virtual bool get_entry_selection_bounds(int &rStartPos, int &rEndPos) override
virtual OUString get_active_text() const override
virtual void freeze() override
Definition: salvtables.cxx:468
virtual std::unique_ptr< weld::Calendar > weld_calendar(const OString &id, bool bTakeOwnership=false) override
virtual std::unique_ptr< weld::ToggleButton > weld_toggle_button(const OString &id, bool bTakeOwnership=false) override
virtual void set_entry_width_chars(int nChars) override
virtual int get_text_height() const override
Definition: salvtables.cxx:301
virtual void set_text(const OUString &rText) override
SalInstanceMessageDialog(::MessageDialog *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual std::unique_ptr< weld::Image > weld_image(const OString &id, bool bTakeOwnership=false) override
virtual void replace_selection(const OUString &rText) override
virtual void get_increments(int &step, int &page) const override
DECL_LINK(PopupScreenShotMenuHdl, const CommandEvent &, bool)
virtual bool get_modal() const override
virtual void queue_draw() override
virtual VclPtr< VirtualDevice > create_virtual_device() const override
Definition: salvtables.cxx:499
virtual OUString get_tooltip_text() const override
Definition: salvtables.cxx:390
virtual void paste_entry_clipboard() override
virtual void set_tab_label_text(const OString &rIdent, const OUString &rText) override
VclPtr< TabControl > m_xNotebook
virtual ~SalInstanceEntry() override
virtual std::unique_ptr< weld::TextView > weld_text_view(const OString &id, bool bTakeOwnership=false) override
virtual VclPtr< VirtualDevice > screenshot() override
SalInstanceNotebook(TabControl *pNotebook, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void insert_separator(int pos, const OUString &) override
virtual void set_inconsistent(bool inconsistent) override
void clear()
Definition: vclptr.hxx:190
VclPtr< VclMultiLineEdit > m_xTextView
virtual void set_visible(const OString &rIdent, bool bVisible)=0
PopupMenu * getMenu() const
Definition: salvtables.cxx:760
virtual weld::Container * weld_content_area() override
virtual float get_approximate_digit_width() const override
Definition: salvtables.cxx:296
DECL_LINK(ChangeHdl, Edit &, void)
virtual void paste_clipboard() override
virtual void hide() override
Definition: salvtables.cxx:281
virtual bool can_move_cursor_with_up() const override
vcl::RenderContext * GetRenderContext() const
Definition: event.hxx:243
virtual void present() override
SalInstanceDrawingArea(VclDrawingArea *pDrawingArea, SalInstanceBuilder *pBuilder, const a11yref &rAlly, FactoryFunction pUITestFactoryFunction, void *pUserData, bool bTakeOwnership)
int i
SalInstanceContainer(vcl::Window *pContainer, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual int get_count() const override
Definition: salvtables.hxx:769
virtual void add_button(const OUString &rText, int nResponse, const OString &rHelpId=OString()) override
virtual void set_highlight_background() override
Definition: salvtables.cxx:533
void ensure_key_listener()
Definition: salvtables.cxx:202
ImageType
Definition: vclenum.hxx:326
virtual std::unique_ptr< weld::Menu > weld_menu(const OString &id, bool bTakeOwnership=true) override
virtual void connect_key_release(const Link< const KeyEvent &, bool > &rLink) override
Definition: salvtables.cxx:440
virtual ~SalInstanceSpinButton() override
virtual std::unique_ptr< weld::FormattedSpinButton > weld_formatted_spin_button(const OString &id, bool bTakeOwnership=false) override
DECL_LINK(EventListener, VclWindowEvent &, void)
virtual void select_region(int nStartPos, int nEndPos) override
virtual int n_children() const =0
virtual void paste_clipboard() override
virtual bool get_popup_shown() const override
Definition: salvtables.hxx:803
virtual OUString get_label() const override
virtual void set_title_background() override
Definition: salvtables.cxx:522
virtual bool get_active(const OString &rIdent) const =0
virtual void remove_page(const OString &rIdent) override
virtual bool get_resizable() const override
virtual bool get_editable() const override
virtual void set_item_sensitive(const OString &rIdent, bool bSensitive) override
Definition: salvtables.cxx:790
virtual int vadjustment_get_value() const override
virtual void set_digits(unsigned int digits) override
DECL_LINK(ToggleHdl, CheckBox &, void)
virtual bool changed_by_direct_pick() const override
virtual ~SalInstanceComboBoxWithoutEdit() override
virtual void set_size_request(int nWidth, int nHeight) override
Definition: salvtables.cxx:283
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:302
SalInstanceBuilder(vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, const css::uno::Reference< css::frame::XFrame > &rFrame=css::uno::Reference< css::frame::XFrame >())
virtual void set_active(const OString &rIdent, bool bActive)=0
virtual int get_margin_left() const override
Definition: salvtables.cxx:355
virtual bool get_entry_selection_bounds(int &, int &) override
VclPtr< VclDrawingArea > m_xDrawingArea
virtual void set_max_mru_count(int) override
virtual void grab_remove() override
Definition: salvtables.cxx:462
virtual OUString get_label() const override
virtual ~SalInstanceButton() override
virtual void set_entry_message_type(weld::EntryMessageType) override
virtual void set_value(int value) override
virtual bool has_focus() const override
Definition: salvtables.cxx:268
virtual std::unique_ptr< weld::MenuButton > weld_menu_button(const OString &id, bool bTakeOwnership=false) override
SalInstanceButton(::Button *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_window_state(const OString &rStr) override
virtual void set_background(const Color &rColor) override
Definition: salvtables.cxx:222
virtual a11yrelationset get_accessible_relation_set() override
virtual OUString get_item_label(const OString &rIdent) const override
Definition: salvtables.cxx:940
virtual void connect_key_press(const Link< const KeyEvent &, bool > &rLink) override
Definition: salvtables.cxx:434
virtual void set_width_chars(int nChars) override
VclPtr< Control > m_xLabel
Definition: salvtables.hxx:396
virtual void set_margin_bottom(int nMargin) override
Definition: salvtables.cxx:345
VclPtr< vcl::Window > m_xWidget
Definition: salvtables.hxx:190
WinBits const WB_SORT
virtual ~SalInstanceCheckButton() override
virtual void set_hexpand(bool bExpand) override
Definition: salvtables.cxx:333
virtual void connect_key_press(const Link< const KeyEvent &, bool > &rLink) override
virtual int get_n_items() const override
Definition: salvtables.cxx:922
DECL_LINK(ChangeHdl, Edit &, void)
virtual bool get_editable() const override
virtual void set_title(const OUString &rTitle) override
virtual int get_width_chars() const override
virtual OUString get_title() const override
virtual void set_max_length(int nChars) override
virtual int get_grid_left_attach() const override
Definition: salvtables.cxx:322
const OUString * getEntryData(int index) const
Definition: salvtables.hxx:691
virtual void set_label(const OUString &rText) override
DECL_LINK(PaintHdl, target_and_area, void)
virtual void set_item_active(const OString &rIdent, bool bActive) override
Definition: salvtables.cxx:815
virtual ~SalInstanceWidget() override
Definition: salvtables.cxx:472
sal_uInt16 GetItemId() const
Definition: event.hxx:245
virtual int get_margin_right() const override
Definition: salvtables.cxx:357
virtual void set_item_tooltip_text(int nIndex, const OUString &rTip) override
Definition: salvtables.cxx:977
virtual void clear() override
Definition: salvtables.hxx:792
virtual void set_text(const OUString &rText) override
virtual void set_entry_text(const OUString &) override
virtual void set_font_color(const Color &rColor) override
virtual int vadjustment_get_lower() const override
void clear_child_help(vcl::Window *pParent)
virtual void set_font(const vcl::Font &rFont) override
virtual void set_placeholder_text(const OUString &rText) override
void signal_custom_render(vcl::RenderContext &rDevice, const tools::Rectangle &rRect, bool bSelected, const OUString &rId)
Definition: weld.hxx:620
SalInstanceWindow(vcl::Window *pWindow, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual std::unique_ptr< weld::Label > weld_label(const OString &id, bool bTakeOwnership=false) override
virtual bool get_extents_relative_to(const Widget &rRelative, int &x, int &y, int &width, int &height) const override
Definition: salvtables.cxx:446
void enable_notify_events()
Definition: salvtables.cxx:492
virtual void click(const Point &rPos) override
virtual bool get_vexpand() const override
Definition: salvtables.cxx:339
virtual SystemEnvData get_system_data() const override
virtual OUString get_active_id() const override
Definition: salvtables.hxx:704
virtual css::uno::Reference< css::awt::XWindow > CreateChildFrame() override
virtual std::unique_ptr< weld::Frame > weld_frame(const OString &id, bool bTakeOwnership=false) override
virtual std::unique_ptr< weld::RadioButton > weld_radio_button(const OString &id, bool bTakeOwnership=false) override
VclPtr< PopupMenu > m_xMenu
Definition: salvtables.hxx:160
Definition: menu.hxx:118
virtual void set_busy_cursor(bool bBusy) override
virtual void set_default_response(int nResponse) override
virtual int get_margin_top() const override
Definition: salvtables.cxx:351
A widget used to choose from a list of items.
Definition: weld.hxx:597
std::vector< std::shared_ptr< OUString > > m_aUserData
Definition: salvtables.hxx:671
virtual void set_font_color(const Color &rColor) override
virtual bool get_item_active(const OString &rIdent) const override
Definition: salvtables.cxx:821
virtual OUString filter(const OUString &rText) override
virtual OUString get_secondary_text() const override
virtual OString popup_at_rect(weld::Widget *pParent, const tools::Rectangle &rRect)=0
virtual std::unique_ptr< weld::ProgressBar > weld_progress_bar(const OString &id, bool bTakeOwnership=false) override
virtual void move(weld::Widget *pWidget, weld::Container *pNewParent) override
Link< OUString &, bool > & m_rInsertTextHdl
Definition: salvtables.hxx:543
Definition: ctrl.hxx:33
VclPtr< VirtualDevice > create_render_virtual_device() const override
Definition: salvtables.hxx:830
virtual bool has_entry() const override
virtual void set_stack_background() override
Definition: salvtables.cxx:517
virtual OUString get_label(const OString &rIdent) const =0
virtual void window_move(int x, int y) override
virtual std::unique_ptr< weld::Spinner > weld_spinner(const OString &id, bool bTakeOwnership=false) override
unsigned char sal_uInt8
void fire_signal_changed()
virtual void set_entry_completion(bool bEnable, bool bCaseSensitive=false) override
virtual void connect_get_property_tree(const Link< tools::JsonWriter &, void > &rLink) override
Definition: salvtables.cxx:511
virtual weld::Container * get_page(const OString &rIdent) const override
virtual OString get_current_page_ident() const override
virtual OString get_item_ident(int nIndex) const override
Definition: salvtables.cxx:924
DECL_LINK(ClickHdl, ToolBox *, void)
virtual OutputDevice & get_ref_device() override
virtual void set_sensitive(bool sensitive) override
Definition: salvtables.cxx:243
virtual void set_custom_renderer(bool bOn) override
virtual std::unique_ptr< weld::ScrolledWindow > weld_scrolled_window(const OString &id, bool bTakeOwnership=false) override
DECL_LINK(SelectHdl, ListBox &, void)
std::map< sal_uInt16, VclPtr< vcl::Window > > m_aFloats
virtual std::unique_ptr< weld::CheckButton > weld_check_button(const OString &id, bool bTakeOwnership=false) override
virtual void set_entry_placeholder_text(const OUString &) override
virtual void set_accessible_name(const OUString &rName) override
Definition: salvtables.cxx:359
sal_Int32 m_nOldBorderWidth
Definition: salvtables.hxx:502
virtual int run() override
static VclPtr< reference_type > Create(Arg &&...arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127
virtual ~SalInstanceDrawingArea() override
virtual void set_increments(int step, int) override
virtual void set_active(bool active) override
virtual void set_mru_entries(const OUString &) override
virtual void set_secondary(bool bSecondary) override
Definition: salvtables.cxx:341
virtual void set_overwrite_mode(bool bOn) override
virtual bool has_toplevel_focus() const override
virtual OUString get_text() const override
TxtAlign
Definition: vclenum.hxx:362
int fromField(double fValue) const
DECL_LINK(DeactivatePageHdl, TabControl *, bool)
virtual void get_range(int &min, int &max) const override
VclPtr< vcl::Window > m_xContainer
Definition: salvtables.hxx:417
virtual bool has_entry() const override
virtual void copy_clipboard() override
virtual void set_custom_renderer(bool bOn) override
virtual void set_from_icon_name(const OUString &rIconName) override
virtual vcl::Font get_font() override
Definition: salvtables.cxx:309
virtual void set_primary_text(const OUString &rText) override
virtual std::unique_ptr< weld::LinkButton > weld_link_button(const OString &id, bool bTakeOwnership=false) override
virtual vcl::ImageType get_icon_size() const override
Definition: salvtables.cxx:992
virtual bool get_visible() const override
Definition: salvtables.cxx:247
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface) override
PointerStyle
Definition: ptrstyle.hxx:25
virtual void SetInstallLOKNotifierHdl(const Link< void *, vcl::ILibreOfficeKitNotifier * > &rLink) override
SalInstanceComboBox(vcl_type *pComboBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
Definition: salvtables.hxx:677
virtual void HandleMouseEventListener(VclSimpleEvent &rEvent) override
virtual OUString get_primary_text() const override
std::map< sal_uInt16, VclPtr< PopupMenu > > m_aMenus
virtual void copy_clipboard() override
virtual void set_margin_right(int nMargin) override
Definition: salvtables.cxx:349
virtual bool get_inconsistent() const override
virtual bool get_item_visible(const OString &rIdent) const override
Definition: salvtables.cxx:810
A widget used to choose from a list of items and which has an entry.
Definition: combobox.hxx:38
OUString sId
virtual void set_modal(bool bModal) override
virtual OUString get_tab_label_text(const OString &rIdent) const override
Event to pass information for UserDraw() handling eg. in comboboxes.
Definition: event.hxx:218
virtual void set_cursor(PointerStyle ePointerStyle) override
virtual void set_item_icon_name(const OString &rIdent, const OUString &rIconName) override
Definition: salvtables.cxx:950
virtual void set_grid_top_attach(int nAttach) override
Definition: salvtables.cxx:326
virtual OUString get_accessible_name() const override
Definition: salvtables.cxx:364
virtual a11yref get_accessible_parent() override
bool get_selection_bounds(int &rStartPos, int &rEndPos) override
SalInstanceLabel(Control *pLabel, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual weld::ScreenShotCollection collect_screenshot_data() override
virtual void set_has_default(bool has_default) override
Definition: salvtables.cxx:272
virtual void set_entry_text(const OUString &rText) override
virtual void set_vexpand(bool bExpand) override
Definition: salvtables.cxx:337
virtual void set_entry_max_length(int) override
SalInstanceSpinButton(FormattedField *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
OString get_current_page_help_id() const
virtual css::uno::Reference< css::awt::XWindow > GetXWindow() override
virtual void insert_separator(int pos, const OUString &) override
Definition: salvtables.cxx:916
bool IsSelected() const
Definition: event.hxx:246
VclPtr< vcl::Window > m_aOwnedToplevel
Definition: salvtables.hxx:32
DECL_LINK(ClickHdl,::Button *, void)
virtual void set_entry_font(const vcl::Font &) override
virtual void thaw() override
Definition: salvtables.cxx:470
virtual void grab_focus() override
Definition: salvtables.cxx:261
Link<::Button *, void > const m_aOldClickHdl
WinBits const WB_FLATBUTTON
virtual void show() override
Definition: salvtables.cxx:279
virtual OUString get_mru_entries() const override
virtual void set_entry_max_length(int nChars) override
virtual void copy_entry_clipboard() override
virtual void set_monospace(bool bMonospace) override
std::vector< std::shared_ptr< SalInstanceContainer > > m_aPages
virtual void set_centered_on_parent(bool) override
TriState
const long nButtonWidth
virtual ~SalInstanceComboBoxWithEdit() override
virtual Point get_position() const override
virtual void set_toolbar_background() override
Definition: salvtables.cxx:527
WeldTextFilter(Link< OUString &, bool > &rInsertTextHdl)
void implResetDefault(const vcl::Window *_pWindow)
virtual void set_entry_placeholder_text(const OUString &rText) override
virtual void set_alignment(TxtAlign eXAlign) override
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual void set_entry_font(const vcl::Font &rFont) override
virtual OUString get_id(int pos) const override
Definition: salvtables.hxx:741
virtual void cut_clipboard() override
vcl::Window * GetWindow() const
Definition: event.hxx:242
virtual int get_current_page() const override
virtual void set_current_page(int nPage) override
virtual void connect_key_release(const Link< const KeyEvent &, bool > &rLink) override
virtual void set_entry_width_chars(int) override
virtual Size get_size_request() const override
Definition: salvtables.cxx:289
virtual void insert_page(const OString &rIdent, const OUString &rLabel, int nPos) override
DECL_LINK(ChangeHdl, Edit &, void)
ScopedVclPtr< MenuButton > m_xMenuButton
Definition: salvtables.hxx:673
Formatter & m_rFormatter
Definition: salvtables.hxx:622
virtual void response(int nResponse) override
virtual bool can_move_cursor_with_down() const override
virtual void resize_to_request() override
virtual bool is_visible() const override
Definition: salvtables.cxx:249
SalInstanceTextView(VclMultiLineEdit *pTextView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
sal_uInt16 nPos
virtual void set_label(const OUString &rText) override
virtual weld::Container * weld_message_area() override
void ensure_event_listener()
Definition: salvtables.cxx:190
virtual void set_editable(bool bEditable) override
virtual std::unique_ptr< weld::Notebook > weld_notebook(const OString &id, bool bTakeOwnership=false) override
vcl::Window * getWidget() const
Definition: salvtables.cxx:486
virtual OString get_window_state(WindowStateMask nMask) const override
virtual void set_item_visible(const OString &rIdent, bool bVisible) override
Definition: salvtables.cxx:800
virtual std::unique_ptr< weld::ComboBox > weld_combo_box(const OString &id, bool bTakeOwnership=false) override
virtual void set_item_label(int nIndex, const OUString &rLabel) override
Definition: salvtables.cxx:935
virtual void paste_entry_clipboard() override
virtual std::unique_ptr< weld::Window > create_screenshot_window() override