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/toolkit/menubtn.hxx>
23 #include <vcl/toolkit/combobox.hxx>
24 #include <vcl/tabctrl.hxx>
25 #include <vcl/layout.hxx>
26 #include <vcl/toolkit/svtabbx.hxx>
27 #include <vcl/toolkit/svlbitm.hxx>
28 #include <o3tl/sorted_vector.hxx>
29 #include "iconview.hxx"
30 #include "listbox.hxx"
31 #include "messagedialog.hxx"
32 
34 {
35 protected:
36  std::unique_ptr<VclBuilder> m_xBuilder;
38 
39 public:
40  SalInstanceBuilder(vcl::Window* pParent, const OUString& rUIRoot, const OUString& rUIFile,
41  const css::uno::Reference<css::frame::XFrame>& rFrame
42  = css::uno::Reference<css::frame::XFrame>());
43 
44  virtual std::unique_ptr<weld::MessageDialog> weld_message_dialog(const OString& id) override;
45 
46  virtual std::unique_ptr<weld::Dialog> weld_dialog(const OString& id) override;
47 
48  virtual std::unique_ptr<weld::Assistant> weld_assistant(const OString& id) override;
49 
50  virtual std::unique_ptr<weld::Window> create_screenshot_window() override;
51 
52  virtual std::unique_ptr<weld::Widget> weld_widget(const OString& id) override;
53 
54  virtual std::unique_ptr<weld::Container> weld_container(const OString& id) override;
55 
56  virtual std::unique_ptr<weld::Box> weld_box(const OString& id) override;
57 
58  virtual std::unique_ptr<weld::Paned> weld_paned(const OString& id) override;
59 
60  virtual std::unique_ptr<weld::Frame> weld_frame(const OString& id) override;
61 
62  virtual std::unique_ptr<weld::ScrolledWindow>
63  weld_scrolled_window(const OString& id, bool bUserManagedScrolling = false) override;
64 
65  virtual std::unique_ptr<weld::Notebook> weld_notebook(const OString& id) override;
66 
67  virtual std::unique_ptr<weld::Button> weld_button(const OString& id) override;
68 
69  virtual std::unique_ptr<weld::MenuButton> weld_menu_button(const OString& id) override;
70 
71  virtual std::unique_ptr<weld::MenuToggleButton>
72  weld_menu_toggle_button(const OString& id) override;
73 
74  virtual std::unique_ptr<weld::LinkButton> weld_link_button(const OString& id) override;
75 
76  virtual std::unique_ptr<weld::ToggleButton> weld_toggle_button(const OString& id) override;
77 
78  virtual std::unique_ptr<weld::RadioButton> weld_radio_button(const OString& id) override;
79 
80  virtual std::unique_ptr<weld::CheckButton> weld_check_button(const OString& id) override;
81 
82  virtual std::unique_ptr<weld::Scale> weld_scale(const OString& id) override;
83 
84  virtual std::unique_ptr<weld::ProgressBar> weld_progress_bar(const OString& id) override;
85 
86  virtual std::unique_ptr<weld::Spinner> weld_spinner(const OString& id) override;
87 
88  virtual std::unique_ptr<weld::Image> weld_image(const OString& id) override;
89 
90  virtual std::unique_ptr<weld::Calendar> weld_calendar(const OString& id) override;
91 
92  virtual std::unique_ptr<weld::Entry> weld_entry(const OString& id) override;
93 
94  virtual std::unique_ptr<weld::SpinButton> weld_spin_button(const OString& id) override;
95 
96  virtual std::unique_ptr<weld::MetricSpinButton>
97  weld_metric_spin_button(const OString& id, FieldUnit eUnit) override;
98 
99  virtual std::unique_ptr<weld::FormattedSpinButton>
100  weld_formatted_spin_button(const OString& id) override;
101 
102  virtual std::unique_ptr<weld::ComboBox> weld_combo_box(const OString& id) override;
103 
104  virtual std::unique_ptr<weld::EntryTreeView>
105  weld_entry_tree_view(const OString& containerid, const OString& entryid,
106  const OString& treeviewid) override;
107 
108  virtual std::unique_ptr<weld::TreeView> weld_tree_view(const OString& id) override;
109 
110  virtual std::unique_ptr<weld::IconView> weld_icon_view(const OString& id) override;
111 
112  virtual std::unique_ptr<weld::Label> weld_label(const OString& id) override;
113 
114  virtual std::unique_ptr<weld::TextView> weld_text_view(const OString& id) override;
115 
116  virtual std::unique_ptr<weld::Expander> weld_expander(const OString& id) override;
117 
118  virtual std::unique_ptr<weld::DrawingArea>
119  weld_drawing_area(const OString& id, const a11yref& rA11yImpl = nullptr,
120  FactoryFunction pUITestFactoryFunction = nullptr,
121  void* pUserData = nullptr) override;
122 
123  virtual std::unique_ptr<weld::Menu> weld_menu(const OString& id) override;
124 
125  virtual std::unique_ptr<weld::Popover> weld_popover(const OString& id) override;
126 
127  virtual std::unique_ptr<weld::Toolbar> weld_toolbar(const OString& id) override;
128 
129  virtual std::unique_ptr<weld::SizeGroup> create_size_group() override;
130 
131  OString get_current_page_help_id() const;
132 
133  virtual ~SalInstanceBuilder() override;
134 };
135 
136 class SAL_DLLPUBLIC_RTTI SalInstanceMenu final : public weld::Menu
137 {
138 private:
140 
142  sal_uInt16 m_nLastId;
143 
144  DECL_DLLPRIVATE_LINK(SelectMenuHdl, ::Menu*, bool);
145 
146 public:
147  SalInstanceMenu(PopupMenu* pMenu, bool bTakeOwnership);
148  virtual OString popup_at_rect(weld::Widget* pParent, const tools::Rectangle& rRect,
149  weld::Placement ePlace = weld::Placement::Under) override;
150  virtual void set_sensitive(const OString& rIdent, bool bSensitive) override;
151  virtual bool get_sensitive(const OString& rIdent) const override;
152  virtual void set_active(const OString& rIdent, bool bActive) override;
153  virtual bool get_active(const OString& rIdent) const override;
154  virtual void set_label(const OString& rIdent, const OUString& rLabel) override;
155  virtual OUString get_label(const OString& rIdent) const override;
156  virtual void set_visible(const OString& rIdent, bool bShow) override;
157  virtual void clear() override;
158  virtual void insert(int pos, const OUString& rId, const OUString& rStr,
159  const OUString* pIconName, VirtualDevice* pImageSurface,
160  const css::uno::Reference<css::graphic::XGraphic>& rImage,
161  TriState eCheckRadioFalse) override;
162  virtual void insert_separator(int pos, const OUString& rId) override;
163  virtual void remove(const OString& rId) override;
164  virtual OString get_id(int pos) const override;
165  virtual int n_children() const override;
166  PopupMenu* getMenu() const;
167  virtual ~SalInstanceMenu() override;
168 };
169 
170 class SalInstanceWidget : public virtual weld::Widget
171 {
172 protected:
175 
176 private:
177  DECL_LINK(EventListener, VclWindowEvent&, void);
178  DECL_LINK(KeyEventListener, VclWindowEvent&, bool);
179  DECL_LINK(MouseEventListener, VclWindowEvent&, void);
180  DECL_LINK(MnemonicActivateHdl, vcl::Window&, bool);
181 
182  static void DoRecursivePaint(vcl::Window* pWindow, const Point& rPos, OutputDevice& rOutput);
183 
184  const bool m_bTakeOwnership;
190 
191 protected:
192  void ensure_event_listener();
193 
194  // we want the ability to mark key events as handled, so use this variant
195  // for those, we get all keystrokes in this case, so we will need to filter
196  // them later
197  void ensure_key_listener();
198 
199  // we want the ability to know about mouse events that happen in our children
200  // so use this variant, we will need to filter them later
201  void ensure_mouse_listener();
202 
203  bool IsFirstFreeze() const { return m_nFreezeCount == 0; }
204  bool IsLastThaw() const { return m_nFreezeCount == 1; }
205 
206  virtual void HandleEventListener(VclWindowEvent& rEvent);
207  virtual bool HandleKeyEventListener(VclWindowEvent& rEvent);
208  virtual void HandleMouseEventListener(VclWindowEvent& rEvent);
209 
210 public:
211  SalInstanceWidget(vcl::Window* pWidget, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
212 
213  virtual void set_sensitive(bool sensitive) override;
214 
215  virtual bool get_sensitive() const override;
216 
217  virtual bool get_visible() const override;
218 
219  virtual bool is_visible() const override;
220 
221  virtual void set_can_focus(bool bCanFocus) override;
222 
223  virtual void grab_focus() override;
224 
225  virtual bool has_focus() const override;
226 
227  virtual bool is_active() const override;
228 
229  virtual bool has_child_focus() const override;
230 
231  virtual void set_has_default(bool has_default) override;
232 
233  virtual bool get_has_default() const override;
234 
235  virtual void show() override;
236 
237  virtual void hide() override;
238 
239  virtual void set_size_request(int nWidth, int nHeight) override;
240 
241  virtual Size get_size_request() const override;
242 
243  virtual Size get_preferred_size() const override;
244 
245  virtual float get_approximate_digit_width() const override;
246 
247  virtual int get_text_height() const override;
248 
249  virtual Size get_pixel_size(const OUString& rText) const override;
250 
251  virtual vcl::Font get_font() override;
252 
253  virtual OString get_buildable_name() const override;
254 
255  virtual void set_buildable_name(const OString& rId) override;
256 
257  virtual void set_help_id(const OString& rId) override;
258 
259  virtual OString get_help_id() const override;
260 
261  virtual void set_grid_left_attach(int nAttach) override;
262 
263  virtual int get_grid_left_attach() const override;
264 
265  virtual void set_grid_width(int nCols) override;
266 
267  virtual void set_grid_top_attach(int nAttach) override;
268 
269  virtual int get_grid_top_attach() const override;
270 
271  virtual void set_hexpand(bool bExpand) override;
272 
273  virtual bool get_hexpand() const override;
274 
275  virtual void set_vexpand(bool bExpand) override;
276 
277  virtual bool get_vexpand() const override;
278 
279  virtual void set_margin_top(int nMargin) override;
280 
281  virtual void set_margin_bottom(int nMargin) override;
282 
283  virtual void set_margin_start(int nMargin) override;
284 
285  virtual void set_margin_end(int nMargin) override;
286 
287  virtual int get_margin_top() const override;
288 
289  virtual int get_margin_bottom() const override;
290 
291  virtual int get_margin_start() const override;
292 
293  virtual int get_margin_end() const override;
294 
295  virtual void set_accessible_name(const OUString& rName) override;
296 
297  virtual void set_accessible_description(const OUString& rDescription) override;
298 
299  virtual OUString get_accessible_name() const override;
300 
301  virtual OUString get_accessible_description() const override;
302 
303  virtual void set_accessible_relation_labeled_by(weld::Widget* pLabel) override;
304 
305  virtual void set_accessible_relation_label_for(weld::Widget* pLabeled) override;
306 
307  virtual void set_tooltip_text(const OUString& rTip) override;
308 
309  virtual OUString get_tooltip_text() const override;
310 
311  virtual void connect_focus_in(const Link<Widget&, void>& rLink) override;
312 
313  virtual void connect_mnemonic_activate(const Link<Widget&, bool>& rLink) override;
314 
315  virtual void connect_focus_out(const Link<Widget&, void>& rLink) override;
316 
317  virtual void connect_size_allocate(const Link<const Size&, void>& rLink) override;
318 
319  virtual void connect_mouse_press(const Link<const MouseEvent&, bool>& rLink) override;
320 
321  virtual void connect_mouse_move(const Link<const MouseEvent&, bool>& rLink) override;
322 
323  virtual void connect_mouse_release(const Link<const MouseEvent&, bool>& rLink) override;
324 
325  virtual void connect_key_press(const Link<const KeyEvent&, bool>& rLink) override;
326 
327  virtual void connect_key_release(const Link<const KeyEvent&, bool>& rLink) override;
328 
329  virtual bool get_extents_relative_to(const Widget& rRelative, int& x, int& y, int& width,
330  int& height) const override;
331 
332  virtual void grab_add() override;
333 
334  virtual bool has_grab() const override;
335 
336  virtual void grab_remove() override;
337 
338  virtual bool get_direction() const override;
339 
340  virtual void set_direction(bool bRTL) override;
341 
342  virtual void freeze() override;
343 
344  virtual void thaw() override;
345 
346  virtual void set_busy_cursor(bool bBusy) override;
347 
348  virtual std::unique_ptr<weld::Container> weld_parent() const override;
349 
350  virtual ~SalInstanceWidget() override;
351 
352  vcl::Window* getWidget() const;
353 
354  void disable_notify_events();
355 
356  bool notify_events_disabled() const;
357 
358  void enable_notify_events();
359 
360  virtual void queue_resize() override;
361 
362  virtual void help_hierarchy_foreach(const std::function<bool(const OString&)>& func) override;
363 
364  virtual OUString strip_mnemonic(const OUString& rLabel) const override;
365 
366  virtual VclPtr<VirtualDevice> create_virtual_device() const override;
367 
368  virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> get_drop_target() override;
369  virtual css::uno::Reference<css::datatransfer::clipboard::XClipboard>
370  get_clipboard() const override;
371 
372  virtual void connect_get_property_tree(const Link<tools::JsonWriter&, void>& rLink) override;
373 
374  virtual void get_property_tree(tools::JsonWriter& rJsonWriter) override;
375 
376  virtual void set_stack_background() override;
377 
378  virtual void set_title_background() override;
379 
380  virtual void set_toolbar_background() override;
381 
382  virtual void set_highlight_background() override;
383 
384  virtual void set_background(const Color& rColor) override;
385 
386  virtual void draw(OutputDevice& rOutput, const Point& rPos, const Size& rSizePixel) override;
387 
389 };
390 
391 class SalInstanceLabel : public SalInstanceWidget, public virtual weld::Label
392 {
393 private:
394  // Control instead of FixedText so we can also use this for
395  // SelectableFixedText which is derived from Edit. We just typically need
396  // [G|S]etText which exists in their shared baseclass
398 
399 public:
400  SalInstanceLabel(Control* pLabel, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
401 
402  virtual void set_label(const OUString& rText) override;
403 
404  virtual OUString get_label() const override;
405 
406  virtual void set_mnemonic_widget(Widget* pTarget) override;
407 
408  virtual void set_label_type(weld::LabelType eType) override;
409 
410  virtual void set_font(const vcl::Font& rFont) override;
411 
412  virtual void set_font_color(const Color& rColor) override;
413 };
414 
416 {
417 protected:
419 
420 private:
421  void implResetDefault(const vcl::Window* _pWindow);
422 
423 public:
424  SalInstanceContainer(vcl::Window* pContainer, SalInstanceBuilder* pBuilder,
425  bool bTakeOwnership);
426  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
427  virtual void connect_container_focus_changed(const Link<Container&, void>& rLink) override;
428  virtual void child_grab_focus() override;
429  virtual void move(weld::Widget* pWidget, weld::Container* pNewParent) override;
430  virtual void recursively_unset_default_buttons() override;
431  virtual css::uno::Reference<css::awt::XWindow> CreateChildFrame() override;
432 };
433 
435 {
436 private:
438 
439  DECL_LINK(HelpHdl, vcl::Window&, bool);
440 
441  void override_child_help(vcl::Window* pParent);
442 
443  void clear_child_help(vcl::Window* pParent);
444 
445 public:
446  SalInstanceWindow(vcl::Window* pWindow, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
447 
448  virtual void set_title(const OUString& rTitle) override;
449 
450  virtual OUString get_title() const override;
451 
452  void help();
453 
454  virtual css::uno::Reference<css::awt::XWindow> GetXWindow() override;
455 
456  virtual void resize_to_request() override;
457 
458  virtual void set_modal(bool bModal) override;
459 
460  virtual bool get_modal() const override;
461 
462  virtual void window_move(int x, int y) override;
463 
464  virtual Size get_size() const override;
465 
466  virtual Point get_position() const override;
467 
468  virtual tools::Rectangle get_monitor_workarea() const override;
469 
470  virtual void set_centered_on_parent(bool /*bTrackGeometryRequests*/) override;
471 
472  virtual bool get_resizable() const override;
473 
474  virtual bool has_toplevel_focus() const override;
475 
476  virtual void present() override;
477 
478  virtual void set_window_state(const OString& rStr) override;
479 
480  virtual OString get_window_state(WindowStateMask nMask) const override;
481 
482  virtual SystemEnvData get_system_data() const override;
483 
485 
486  virtual VclPtr<VirtualDevice> screenshot() override;
487 
488  virtual ~SalInstanceWindow() override;
489 };
490 
491 class SalInstanceDialog : public SalInstanceWindow, public virtual weld::Dialog
492 {
493 private:
495 
496  // for calc ref dialog that shrink to range selection widgets and resize back
498  std::vector<VclPtr<vcl::Window>> m_aHiddenWidgets; // vector of hidden Controls
499  tools::Long m_nOldEditWidthReq; // Original width request of the input field
500  sal_Int32 m_nOldBorderWidth; // border width for expanded dialog
501 
502  DECL_LINK(PopupScreenShotMenuHdl, const CommandEvent&, bool);
503 
504 public:
505  SalInstanceDialog(::Dialog* pDialog, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
506 
507  virtual bool runAsync(std::shared_ptr<weld::DialogController> aOwner,
508  const std::function<void(sal_Int32)>& rEndDialogFn) override;
509 
510  virtual bool runAsync(std::shared_ptr<Dialog> const& rxSelf,
511  const std::function<void(sal_Int32)>& rEndDialogFn) override;
512 
513  virtual void collapse(weld::Widget* pEdit, weld::Widget* pButton) override;
514 
515  virtual void undo_collapse() override;
516 
517  virtual void
519 
520  virtual int run() override;
521 
522  virtual void response(int nResponse) override;
523 
524  virtual void add_button(const OUString& rText, int nResponse,
525  const OString& rHelpId = OString()) override;
526 
527  virtual void set_modal(bool bModal) override;
528 
529  virtual bool get_modal() const override;
530 
531  virtual weld::Button* weld_widget_for_response(int nResponse) override;
532 
533  virtual void set_default_response(int nResponse) override;
534 
535  virtual weld::Container* weld_content_area() override;
536 };
537 
538 class WeldTextFilter final : public TextFilter
539 {
540 private:
542 
543 public:
544  WeldTextFilter(Link<OUString&, bool>& rInsertTextHdl);
545 
546  virtual OUString filter(const OUString& rText) override;
547 };
548 
549 class SalInstanceEntry : public SalInstanceWidget, public virtual weld::Entry
550 {
551 private:
553 
554  DECL_LINK(ChangeHdl, Edit&, void);
555  DECL_LINK(CursorListener, VclWindowEvent&, void);
556  DECL_LINK(ActivateHdl, Edit&, bool);
557 
559 
560 public:
561  SalInstanceEntry(::Edit* pEntry, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
562 
563  virtual void set_text(const OUString& rText) override;
564 
565  virtual OUString get_text() const override;
566 
567  virtual void set_width_chars(int nChars) override;
568 
569  virtual int get_width_chars() const override;
570 
571  virtual void set_max_length(int nChars) override;
572 
573  virtual void select_region(int nStartPos, int nEndPos) override;
574 
575  bool get_selection_bounds(int& rStartPos, int& rEndPos) override;
576 
577  virtual void replace_selection(const OUString& rText) override;
578 
579  virtual void set_position(int nCursorPos) override;
580 
581  virtual int get_position() const override;
582 
583  virtual void set_editable(bool bEditable) override;
584 
585  virtual bool get_editable() const override;
586 
587  virtual void set_overwrite_mode(bool bOn) override;
588 
589  virtual bool get_overwrite_mode() const override;
590 
591  virtual void set_message_type(weld::EntryMessageType eType) override;
592 
593  virtual void set_font(const vcl::Font& rFont) override;
594 
595  virtual void set_font_color(const Color& rColor) override;
596 
597  virtual void connect_cursor_position(const Link<Entry&, void>& rLink) override;
598 
599  virtual void set_placeholder_text(const OUString& rText) override;
600 
601  Edit& getEntry();
602 
603  void fire_signal_changed();
604 
605  virtual void cut_clipboard() override;
606 
607  virtual void copy_clipboard() override;
608 
609  virtual void paste_clipboard() override;
610 
611  virtual void set_alignment(TxtAlign eXAlign) override;
612 
613  virtual ~SalInstanceEntry() override;
614 };
615 
617 {
618 private:
621 
622  DECL_LINK(UpDownHdl, SpinField&, void);
623  DECL_LINK(LoseFocusHdl, Control&, void);
624  DECL_LINK(OutputHdl, LinkParamNone*, bool);
625  DECL_LINK(InputHdl, sal_Int64*, TriState);
626  DECL_LINK(ActivateHdl, Edit&, bool);
627 
628  double toField(int nValue) const;
629 
630  int fromField(double fValue) const;
631 
632 public:
634  bool bTakeOwnership);
635 
636  virtual int get_value() const override;
637 
638  virtual void set_value(int value) override;
639 
640  virtual void set_range(int min, int max) override;
641 
642  virtual void get_range(int& min, int& max) const override;
643 
644  virtual void set_increments(int step, int /*page*/) override;
645 
646  virtual void get_increments(int& step, int& page) const override;
647 
648  virtual void set_digits(unsigned int digits) override;
649 
650  // SpinButton may be comprised of multiple subwidgets, consider the lot as
651  // one thing for focus
652  virtual bool has_focus() const override;
653 
654  //off by default for direct SpinButtons, MetricSpinButton enables it
655  void SetUseThousandSep();
656 
657  virtual unsigned int get_digits() const override;
658 
659  virtual ~SalInstanceSpinButton() override;
660 };
661 
662 //ComboBox and ListBox have similar apis, ComboBoxes in LibreOffice have an edit box and ListBoxes
663 //don't. This distinction isn't there in Gtk. Use a template to sort this problem out.
664 template <class vcl_type>
666 {
667 protected:
668  // owner for ListBox/ComboBox UserData
669  std::vector<std::shared_ptr<OUString>> m_aUserData;
673 
674 public:
675  SalInstanceComboBox(vcl_type* pComboBox, SalInstanceBuilder* pBuilder, bool bTakeOwnership)
676  : SalInstanceWidget(pComboBox, pBuilder, bTakeOwnership)
677  , m_xComboBox(pComboBox)
678  {
679  }
680 
681  virtual int get_active() const override
682  {
683  const sal_Int32 nRet = m_xComboBox->GetSelectedEntryPos();
684  if (nRet == LISTBOX_ENTRY_NOTFOUND)
685  return -1;
686  return nRet;
687  }
688 
689  const OUString* getEntryData(int index) const
690  {
691  return static_cast<const OUString*>(m_xComboBox->GetEntryData(index));
692  }
693 
694  // ComboBoxes are comprised of multiple subwidgets, consider the lot as
695  // one thing for focus
696  virtual bool has_focus() const override
697  {
698  return m_xWidget->HasChildPathFocus()
699  || (m_xMenuButton && (m_xMenuButton->HasFocus() || m_xMenuButton->InPopupMode()));
700  }
701 
702  virtual OUString get_active_id() const override
703  {
704  sal_Int32 nPos = m_xComboBox->GetSelectedEntryPos();
705  const OUString* pRet;
706  if (nPos != LISTBOX_ENTRY_NOTFOUND)
707  pRet = getEntryData(m_xComboBox->GetSelectedEntryPos());
708  else
709  pRet = nullptr;
710  if (!pRet)
711  return OUString();
712  return *pRet;
713  }
714 
715  virtual void set_active_id(const OUString& rStr) override
716  {
717  for (int i = 0; i < get_count(); ++i)
718  {
719  const OUString* pId = getEntryData(i);
720  if (!pId)
721  continue;
722  if (*pId == rStr)
723  m_xComboBox->SelectEntryPos(i);
724  }
725  }
726 
727  virtual void set_active(int pos) override
728  {
729  if (pos == -1)
730  {
731  m_xComboBox->SetNoSelection();
732  return;
733  }
734  m_xComboBox->SelectEntryPos(pos);
735  }
736 
737  virtual OUString get_text(int pos) const override { return m_xComboBox->GetEntry(pos); }
738 
739  virtual OUString get_id(int pos) const override
740  {
741  const OUString* pRet = getEntryData(pos);
742  if (!pRet)
743  return OUString();
744  return *pRet;
745  }
746 
747  virtual void set_id(int row, const OUString& rId) override
748  {
749  m_aUserData.emplace_back(std::make_unique<OUString>(rId));
750  m_xComboBox->SetEntryData(row, m_aUserData.back().get());
751  }
752 
753  virtual void insert_vector(const std::vector<weld::ComboBoxEntry>& rItems,
754  bool bKeepExisting) override
755  {
756  freeze();
757  if (!bKeepExisting)
758  clear();
759  for (const auto& rItem : rItems)
760  {
761  insert(-1, rItem.sString, rItem.sId.isEmpty() ? nullptr : &rItem.sId,
762  rItem.sImage.isEmpty() ? nullptr : &rItem.sImage, nullptr);
763  }
764  thaw();
765  }
766 
767  virtual int get_count() const override { return m_xComboBox->GetEntryCount(); }
768 
769  virtual int find_text(const OUString& rStr) const override
770  {
771  const sal_Int32 nRet = m_xComboBox->GetEntryPos(rStr);
772  if (nRet == LISTBOX_ENTRY_NOTFOUND)
773  return -1;
774  return nRet;
775  }
776 
777  virtual int find_id(const OUString& rStr) const override
778  {
779  for (int i = 0; i < get_count(); ++i)
780  {
781  const OUString* pId = getEntryData(i);
782  if (!pId)
783  continue;
784  if (*pId == rStr)
785  return i;
786  }
787  return -1;
788  }
789 
790  virtual void clear() override
791  {
792  m_xComboBox->Clear();
793  m_aUserData.clear();
794  }
795 
796  virtual void make_sorted() override
797  {
798  m_xComboBox->SetStyle(m_xComboBox->GetStyle() | WB_SORT);
799  }
800 
801  virtual bool get_popup_shown() const override { return m_xComboBox->IsInDropDown(); }
802 
803  virtual void connect_popup_toggled(const Link<ComboBox&, void>& rLink) override
804  {
807  }
808 
810  {
811  vcl::RenderContext* pRenderContext = pEvent->GetRenderContext();
812  auto nPos = pEvent->GetItemId();
813  const tools::Rectangle& rRect = pEvent->GetRect();
814  const OUString sId = get_id(nPos);
815  signal_custom_render(*pRenderContext, rRect, pEvent->IsSelected(), sId);
816  m_xComboBox->DrawEntry(*pEvent); // draw separator
817 
818  if (m_xMenuButton && m_xMenuButton->IsVisible() && m_sMenuButtonRow == sId)
819  {
820  vcl::Window* pEventWindow = m_xComboBox->GetMainWindow();
821  if (m_xMenuButton->GetParent() != pEventWindow)
822  m_xMenuButton->SetParent(pEventWindow);
824  m_xMenuButton->SetSizePixel(Size(nButtonWidth, rRect.GetHeight()));
825  m_xMenuButton->SetPosPixel(Point(rRect.GetWidth() - nButtonWidth, rRect.Top()));
826  }
827  }
828 
830  {
831  auto xRet = VclPtr<VirtualDevice>::Create();
832  xRet->SetBackground(Application::GetSettings().GetStyleSettings().GetFieldColor());
833  return xRet;
834  }
835 
836  virtual void set_item_menu(const OString& rIdent, weld::Menu* pMenu) override
837  {
838  SalInstanceMenu* pInstanceMenu = dynamic_cast<SalInstanceMenu*>(pMenu);
839 
840  PopupMenu* pPopup = pInstanceMenu ? pInstanceMenu->getMenu() : nullptr;
841 
842  if (!m_xMenuButton)
843  m_xMenuButton
845 
846  m_xMenuButton->SetPopupMenu(pPopup);
847  m_xMenuButton->Show(pPopup != nullptr);
848  m_sMenuButtonRow = OUString::fromUtf8(rIdent);
849  }
850 
851  int get_menu_button_width() const override
852  {
854  return 20 * (pDefault ? pDefault->GetDPIScaleFactor() : 1.0);
855  }
856 
858  {
859  if (rEvent.GetId() == VclEventId::DropdownPreOpen
860  || rEvent.GetId() == VclEventId::DropdownClose)
861  {
863  return;
864  }
866  }
867 };
868 
870 {
871 private:
872  DECL_LINK(SelectHdl, ListBox&, void);
873 
874 public:
876  bool bTakeOwnership);
877 
878  virtual OUString get_active_text() const override;
879 
880  virtual void remove(int pos) override;
881 
882  virtual void insert(int pos, const OUString& rStr, const OUString* pId,
883  const OUString* pIconName, VirtualDevice* pImageSurface) override;
884 
885  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
886 
887  virtual bool has_entry() const override;
888 
889  virtual bool changed_by_direct_pick() const override;
890 
891  virtual void set_entry_message_type(weld::EntryMessageType /*eType*/) override;
892 
893  virtual void set_entry_text(const OUString& /*rText*/) override;
894 
895  virtual void select_entry_region(int /*nStartPos*/, int /*nEndPos*/) override;
896 
897  virtual bool get_entry_selection_bounds(int& /*rStartPos*/, int& /*rEndPos*/) override;
898 
899  virtual void set_entry_width_chars(int /*nChars*/) override;
900 
901  virtual void set_entry_max_length(int /*nChars*/) override;
902 
903  virtual void set_entry_completion(bool, bool bCaseSensitive = false) override;
904 
905  virtual void set_entry_placeholder_text(const OUString&) override;
906 
907  virtual void set_entry_editable(bool bEditable) override;
908 
909  virtual void cut_entry_clipboard() override;
910 
911  virtual void copy_entry_clipboard() override;
912 
913  virtual void paste_entry_clipboard() override;
914 
915  virtual void set_font(const vcl::Font& rFont) override;
916 
917  virtual void set_entry_font(const vcl::Font&) override;
918 
919  virtual vcl::Font get_entry_font() override;
920 
921  virtual void set_custom_renderer(bool bOn) override;
922 
923  virtual int get_max_mru_count() const override;
924 
925  virtual void set_max_mru_count(int) override;
926 
927  virtual OUString get_mru_entries() const override;
928 
929  virtual void set_mru_entries(const OUString&) override;
930 
931  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
932 
933  virtual ~SalInstanceComboBoxWithoutEdit() override;
934 };
935 
937 {
938 private:
939  DECL_LINK(ChangeHdl, Edit&, void);
940  DECL_LINK(EntryActivateHdl, Edit&, bool);
941  DECL_LINK(SelectHdl, ::ComboBox&, void);
942  DECL_LINK(UserDrawHdl, UserDrawEvent*, void);
945 
946 public:
948  bool bTakeOwnership);
949 
950  virtual bool has_entry() const override;
951 
952  virtual bool changed_by_direct_pick() const override;
953 
954  virtual void set_entry_message_type(weld::EntryMessageType eType) override;
955 
956  virtual OUString get_active_text() const override;
957 
958  virtual void remove(int pos) override;
959 
960  virtual void insert(int pos, const OUString& rStr, const OUString* pId,
961  const OUString* pIconName, VirtualDevice* pImageSurface) override;
962 
963  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
964 
965  virtual void set_entry_text(const OUString& rText) override;
966 
967  virtual void set_entry_width_chars(int nChars) override;
968 
969  virtual void set_entry_max_length(int nChars) override;
970 
971  virtual void set_entry_completion(bool bEnable, bool bCaseSensitive = false) override;
972 
973  virtual void set_entry_placeholder_text(const OUString& rText) override;
974 
975  virtual void set_entry_editable(bool bEditable) override;
976 
977  virtual void cut_entry_clipboard() override;
978 
979  virtual void copy_entry_clipboard() override;
980 
981  virtual void paste_entry_clipboard() override;
982 
983  virtual void select_entry_region(int nStartPos, int nEndPos) override;
984 
985  virtual bool get_entry_selection_bounds(int& rStartPos, int& rEndPos) override;
986 
987  virtual void set_font(const vcl::Font& rFont) override;
988 
989  virtual void set_entry_font(const vcl::Font& rFont) override;
990 
991  virtual vcl::Font get_entry_font() override;
992 
993  virtual void set_custom_renderer(bool bOn) override;
994 
995  virtual int get_max_mru_count() const override;
996 
997  virtual void set_max_mru_count(int nCount) override;
998 
999  virtual OUString get_mru_entries() const override;
1000 
1001  virtual void set_mru_entries(const OUString& rEntries) override;
1002 
1003  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
1004 
1005  virtual ~SalInstanceComboBoxWithEdit() override;
1006 };
1007 
1008 class SalInstanceButton : public SalInstanceWidget, public virtual weld::Button
1009 {
1010 private:
1013 
1014  DECL_LINK(ClickHdl, ::Button*, void);
1015 
1016 protected:
1017  void set_label_wrap(bool bWrap);
1018 
1019 public:
1020  SalInstanceButton(::Button* pButton, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1021 
1022  virtual void set_label(const OUString& rText) override;
1023 
1024  virtual void set_image(VirtualDevice* pDevice) override;
1025 
1026  virtual void set_image(const css::uno::Reference<css::graphic::XGraphic>& rImage) override;
1027 
1028  virtual void set_from_icon_name(const OUString& rIconName) override;
1029 
1030  virtual OUString get_label() const override;
1031 
1032  virtual void set_font(const vcl::Font& rFont) override;
1033 
1034  virtual void set_custom_button(VirtualDevice* pDevice) override;
1035 
1036  virtual ~SalInstanceButton() override;
1037 };
1038 
1040 {
1041 private:
1043  mutable std::vector<std::shared_ptr<SalInstanceContainer>> m_aPages;
1044  std::map<OString, std::pair<VclPtr<TabPage>, VclPtr<VclGrid>>> m_aAddedPages;
1045 
1046  DECL_LINK(DeactivatePageHdl, TabControl*, bool);
1047  DECL_LINK(ActivatePageHdl, TabControl*, void);
1048 
1049 public:
1050  SalInstanceNotebook(TabControl* pNotebook, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1051 
1052  virtual int get_current_page() const override;
1053 
1054  virtual int get_page_index(const OString& rIdent) const override;
1055 
1056  virtual OString get_page_ident(int nPage) const override;
1057 
1058  virtual OString get_current_page_ident() const override;
1059 
1060  virtual weld::Container* get_page(const OString& rIdent) const override;
1061 
1062  virtual void set_current_page(int nPage) override;
1063 
1064  virtual void set_current_page(const OString& rIdent) override;
1065 
1066  virtual void remove_page(const OString& rIdent) override;
1067 
1068  virtual void insert_page(const OString& rIdent, const OUString& rLabel, int nPos) override;
1069 
1070  virtual int get_n_pages() const override;
1071 
1072  virtual OUString get_tab_label_text(const OString& rIdent) const override;
1073 
1074  virtual void set_tab_label_text(const OString& rIdent, const OUString& rText) override;
1075 
1076  virtual ~SalInstanceNotebook() override;
1077 };
1078 
1080 {
1081 protected:
1083 
1084 public:
1086  bool bTakeOwnership);
1087 
1088  virtual void set_primary_text(const OUString& rText) override;
1089 
1090  virtual OUString get_primary_text() const override;
1091 
1092  virtual void set_secondary_text(const OUString& rText) override;
1093 
1094  virtual OUString get_secondary_text() const override;
1095 
1096  virtual weld::Container* weld_message_area() override;
1097 };
1098 
1100 {
1101 private:
1103 
1104  DECL_LINK(ToggleHdl, CheckBox&, void);
1105 
1106 public:
1107  SalInstanceCheckButton(CheckBox* pButton, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1108 
1109  virtual void set_active(bool active) override;
1110 
1111  virtual bool get_active() const override;
1112 
1113  virtual void set_inconsistent(bool inconsistent) override;
1114 
1115  virtual bool get_inconsistent() const override;
1116 
1117  virtual void set_label(const OUString& rText) override { SalInstanceButton::set_label(rText); }
1118 
1119  virtual OUString get_label() const override { return SalInstanceButton::get_label(); }
1120 
1121  virtual void set_label_wrap(bool wrap) override { SalInstanceButton::set_label_wrap(wrap); }
1122 
1123  virtual ~SalInstanceCheckButton() override;
1124 };
1125 
1127 {
1128 private:
1130 
1131  typedef std::pair<vcl::RenderContext&, const tools::Rectangle&> target_and_area;
1132  DECL_LINK(PaintHdl, target_and_area, void);
1133  DECL_LINK(ResizeHdl, const Size&, void);
1134  DECL_LINK(MousePressHdl, const MouseEvent&, bool);
1135  DECL_LINK(MouseMoveHdl, const MouseEvent&, bool);
1136  DECL_LINK(MouseReleaseHdl, const MouseEvent&, bool);
1137  DECL_LINK(KeyPressHdl, const KeyEvent&, bool);
1138  DECL_LINK(KeyReleaseHdl, const KeyEvent&, bool);
1139  DECL_LINK(StyleUpdatedHdl, VclDrawingArea&, void);
1140  DECL_LINK(CommandHdl, const CommandEvent&, bool);
1141  DECL_LINK(QueryTooltipHdl, tools::Rectangle&, OUString);
1142  DECL_LINK(GetSurroundingHdl, OUString&, int);
1143  DECL_LINK(DeleteSurroundingHdl, const Selection&, bool);
1144  DECL_LINK(StartDragHdl, VclDrawingArea*, bool);
1145 
1146  // SalInstanceWidget has a generic listener for all these
1147  // events, ignore the ones we have specializations for
1148  // in VclDrawingArea
1149  virtual void HandleEventListener(VclWindowEvent& rEvent) override;
1150 
1151  virtual void HandleMouseEventListener(VclWindowEvent& rEvent) override;
1152 
1153  virtual bool HandleKeyEventListener(VclWindowEvent& /*rEvent*/) override;
1154 
1155 public:
1156  SalInstanceDrawingArea(VclDrawingArea* pDrawingArea, SalInstanceBuilder* pBuilder,
1157  const a11yref& rAlly, FactoryFunction pUITestFactoryFunction,
1158  void* pUserData, bool bTakeOwnership);
1159 
1160  virtual void queue_draw() override;
1161 
1162  virtual void queue_draw_area(int x, int y, int width, int height) override;
1163 
1164  virtual void connect_size_allocate(const Link<const Size&, void>& rLink) override;
1165 
1166  virtual void connect_key_press(const Link<const KeyEvent&, bool>& rLink) override;
1167 
1168  virtual void connect_key_release(const Link<const KeyEvent&, bool>& rLink) override;
1169 
1170  virtual void set_cursor(PointerStyle ePointerStyle) override;
1171 
1172  virtual Point get_pointer_position() const override;
1173 
1174  virtual void set_input_context(const InputContext& rInputContext) override;
1175 
1176  virtual void im_context_set_cursor_location(const tools::Rectangle& rCursorRect,
1177  int nExtTextInputWidth) override;
1178 
1179  virtual a11yref get_accessible_parent() override;
1180 
1181  virtual a11yrelationset get_accessible_relation_set() override;
1182 
1183  virtual Point get_accessible_location_on_screen() override;
1184 
1186  sal_uInt8 eDNDConstants) override;
1187 
1188  virtual ~SalInstanceDrawingArea() override;
1189 
1190  virtual OutputDevice& get_ref_device() override;
1191 
1192  virtual void click(const Point& rPos) override;
1193 };
1194 
1196 {
1197 protected:
1199  std::map<ToolBoxItemId, VclPtr<vcl::Window>> m_aFloats;
1200  std::map<ToolBoxItemId, VclPtr<PopupMenu>> m_aMenus;
1201 
1203 
1204  DECL_LINK(ClickHdl, ToolBox*, void);
1205  DECL_LINK(DropdownClick, ToolBox*, void);
1206  DECL_LINK(MenuToggleListener, VclWindowEvent&, void);
1207 
1208 public:
1209  SalInstanceToolbar(ToolBox* pToolBox, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1210 
1211  virtual void set_item_sensitive(const OString& rIdent, bool bSensitive) override;
1212 
1213  virtual bool get_item_sensitive(const OString& rIdent) const override;
1214 
1215  virtual void set_item_visible(const OString& rIdent, bool bVisible) override;
1216 
1217  virtual void set_item_help_id(const OString& rIdent, const OString& rHelpId) override;
1218 
1219  virtual bool get_item_visible(const OString& rIdent) const override;
1220 
1221  virtual void set_item_active(const OString& rIdent, bool bActive) override;
1222 
1223  virtual bool get_item_active(const OString& rIdent) const override;
1224 
1225  void set_menu_item_active(const OString& rIdent, bool bActive) override;
1226 
1227  bool get_menu_item_active(const OString& rIdent) const override;
1228 
1229  virtual void set_item_popover(const OString& rIdent, weld::Widget* pPopover) override;
1230 
1231  virtual void set_item_menu(const OString& rIdent, weld::Menu* pMenu) override;
1232 
1233  virtual void insert_item(int pos, const OUString& rId) override;
1234 
1235  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
1236 
1237  virtual int get_n_items() const override;
1238 
1239  virtual OString get_item_ident(int nIndex) const override;
1240 
1241  virtual void set_item_ident(int nIndex, const OString& rIdent) override;
1242 
1243  virtual void set_item_label(int nIndex, const OUString& rLabel) override;
1244 
1245  virtual OUString get_item_label(const OString& rIdent) const override;
1246 
1247  virtual void set_item_label(const OString& rIdent, const OUString& rLabel) override;
1248 
1249  virtual void set_item_icon_name(const OString& rIdent, const OUString& rIconName) override;
1250 
1251  virtual void set_item_image(const OString& rIdent,
1252  const css::uno::Reference<css::graphic::XGraphic>& rIcon) override;
1253 
1254  virtual void set_item_image(const OString& rIdent, VirtualDevice* pDevice) override;
1255 
1256  virtual void set_item_image(int nIndex,
1257  const css::uno::Reference<css::graphic::XGraphic>& rIcon) override;
1258 
1259  virtual void set_item_tooltip_text(int nIndex, const OUString& rTip) override;
1260 
1261  virtual void set_item_tooltip_text(const OString& rIdent, const OUString& rTip) override;
1262 
1263  virtual OUString get_item_tooltip_text(const OString& rIdent) const override;
1264 
1265  virtual vcl::ImageType get_icon_size() const override;
1266 
1267  virtual void set_icon_size(vcl::ImageType eType) override;
1268 
1269  virtual sal_uInt16 get_modifier_state() const override;
1270 
1271  virtual int get_drop_index(const Point& rPoint) const override;
1272 
1273  virtual ~SalInstanceToolbar() override;
1274 };
1275 
1277 {
1278 private:
1281 
1282  DECL_LINK(ChangeHdl, Edit&, void);
1283  DECL_LINK(VscrollHdl, ScrollBar*, void);
1284  DECL_LINK(CursorListener, VclWindowEvent&, void);
1285 
1286 public:
1288  bool bTakeOwnership);
1289 
1290  virtual void set_text(const OUString& rText) override;
1291 
1292  virtual void replace_selection(const OUString& rText) override;
1293 
1294  virtual OUString get_text() const override;
1295 
1296  bool get_selection_bounds(int& rStartPos, int& rEndPos) override;
1297 
1298  virtual void select_region(int nStartPos, int nEndPos) override;
1299 
1300  virtual void set_editable(bool bEditable) override;
1301  virtual bool get_editable() const override;
1302  virtual void set_max_length(int nChars) override;
1303 
1304  virtual void set_monospace(bool bMonospace) override;
1305 
1306  virtual void set_font(const vcl::Font& rFont) override;
1307 
1308  virtual void set_font_color(const Color& rColor) override;
1309 
1310  virtual void connect_cursor_position(const Link<TextView&, void>& rLink) override;
1311 
1312  virtual bool can_move_cursor_with_up() const override;
1313 
1314  virtual bool can_move_cursor_with_down() const override;
1315 
1316  virtual void cut_clipboard() override;
1317 
1318  virtual void copy_clipboard() override;
1319 
1320  virtual void paste_clipboard() override;
1321 
1322  virtual void set_alignment(TxtAlign eXAlign) override;
1323 
1324  virtual int vadjustment_get_value() const override;
1325 
1326  virtual void vadjustment_set_value(int value) override;
1327 
1328  virtual int vadjustment_get_upper() const override;
1329 
1330  virtual int vadjustment_get_lower() const override;
1331 
1332  virtual int vadjustment_get_page_size() const override;
1333 
1334  virtual bool has_focus() const override;
1335 
1336  virtual ~SalInstanceTextView() override;
1337 };
1338 
1340 {
1342  : iter(pOrig ? pOrig->iter : nullptr)
1343  {
1344  }
1346  : iter(pIter)
1347  {
1348  }
1349  virtual bool equal(const TreeIter& rOther) const override
1350  {
1351  return iter == static_cast<const SalInstanceTreeIter&>(rOther).iter;
1352  }
1354 };
1355 
1357 {
1358 protected:
1359  // owner for UserData
1360  std::vector<std::unique_ptr<OUString>> m_aUserData;
1364  // currently expanding parent that logically, but not currently physically,
1365  // contain placeholders
1367  // which columns should be custom rendered
1371 
1372  DECL_LINK(SelectHdl, SvTreeListBox*, void);
1373  DECL_LINK(DeSelectHdl, SvTreeListBox*, void);
1374  DECL_LINK(DoubleClickHdl, SvTreeListBox*, bool);
1375  DECL_LINK(ExpandingHdl, SvTreeListBox*, bool);
1376  DECL_LINK(EndDragHdl, HeaderBar*, void);
1377  DECL_LINK(HeaderBarClickedHdl, HeaderBar*, void);
1378  DECL_LINK(ToggleHdl, SvLBoxButtonData*, void);
1379  DECL_LINK(ModelChangedHdl, SvTreeListBox*, void);
1380  DECL_LINK(StartDragHdl, SvTreeListBox*, bool);
1381  DECL_STATIC_LINK(SalInstanceTreeView, FinishDragHdl, SvTreeListBox*, void);
1382  DECL_LINK(EditingEntryHdl, SvTreeListEntry*, bool);
1383  typedef std::pair<SvTreeListEntry*, OUString> IterString;
1384  DECL_LINK(EditedEntryHdl, IterString, bool);
1385  DECL_LINK(VisibleRangeChangedHdl, SvTreeListBox*, void);
1386  DECL_LINK(CompareHdl, const SvSortData&, sal_Int32);
1387  DECL_LINK(PopupMenuHdl, const CommandEvent&, bool);
1388  DECL_LINK(TooltipHdl, const HelpEvent&, bool);
1389  DECL_LINK(CustomRenderHdl, svtree_render_args, void);
1390  DECL_LINK(CustomMeasureHdl, svtree_measure_args, Size);
1391 
1392  // Each row has a cell for the expander image, (and an optional cell for a
1393  // checkbutton if enable_toggle_buttons has been called) which precede
1394  // index 0
1395  int to_internal_model(int col) const;
1396 
1397  int to_external_model(int col) const;
1398 
1399  bool IsDummyEntry(SvTreeListEntry* pEntry) const;
1400 
1402 
1403  static void set_font_color(SvTreeListEntry* pEntry, const Color& rColor);
1404 
1405  void AddStringItem(SvTreeListEntry* pEntry, const OUString& rStr, int nCol);
1406 
1407  void do_insert(const weld::TreeIter* pParent, int pos, const OUString* pStr,
1408  const OUString* pId, const OUString* pIconName,
1409  const VirtualDevice* pImageSurface, bool bChildrenOnDemand, weld::TreeIter* pRet,
1410  bool bIsSeparator);
1411 
1413 
1414  void InvalidateModelEntry(SvTreeListEntry* pEntry);
1415 
1416  void do_set_toggle(SvTreeListEntry* pEntry, TriState eState, int col);
1417 
1418  static TriState do_get_toggle(SvTreeListEntry* pEntry, int col);
1419 
1420  TriState get_toggle(SvTreeListEntry* pEntry, int col) const;
1421 
1422  void set_toggle(SvTreeListEntry* pEntry, TriState eState, int col);
1423 
1424  bool get_text_emphasis(SvTreeListEntry* pEntry, int col) const;
1425 
1426  void set_header_item_width(const std::vector<int>& rWidths);
1427 
1428 public:
1429  SalInstanceTreeView(SvTabListBox* pTreeView, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1430 
1431  virtual void connect_query_tooltip(const Link<const weld::TreeIter&, OUString>& rLink) override;
1432 
1433  virtual void columns_autosize() override;
1434 
1435  virtual void freeze() override;
1436 
1437  virtual void thaw() override;
1438 
1439  virtual void set_column_fixed_widths(const std::vector<int>& rWidths) override;
1440 
1441  virtual void set_column_editables(const std::vector<bool>& rEditables) override;
1442 
1443  virtual void set_centered_column(int nCol) override;
1444 
1445  virtual int get_column_width(int nColumn) const override;
1446 
1447  virtual OUString get_column_title(int nColumn) const override;
1448 
1449  virtual void set_column_title(int nColumn, const OUString& rTitle) override;
1450 
1451  virtual void set_column_custom_renderer(int nColumn, bool bEnable) override;
1452 
1453  virtual void queue_draw() override;
1454 
1455  virtual void show() override;
1456 
1457  virtual void hide() override;
1458 
1459  virtual void insert(const weld::TreeIter* pParent, int pos, const OUString* pStr,
1460  const OUString* pId, const OUString* pIconName,
1461  VirtualDevice* pImageSurface, bool bChildrenOnDemand,
1462  weld::TreeIter* pRet) override;
1463 
1464  virtual void insert_separator(int pos, const OUString& /*rId*/) override;
1465 
1466  virtual void
1467  bulk_insert_for_each(int nSourceCount,
1468  const std::function<void(weld::TreeIter&, int nSourceIndex)>& func,
1469  const weld::TreeIter* pParent = nullptr,
1470  const std::vector<int>* pFixedWidths = nullptr) override;
1471 
1472  virtual void set_font_color(int pos, const Color& rColor) override;
1473 
1474  virtual void set_font_color(const weld::TreeIter& rIter, const Color& rColor) override;
1475 
1476  virtual void remove(int pos) override;
1477 
1478  virtual int find_text(const OUString& rText) const override;
1479 
1480  virtual int find_id(const OUString& rId) const override;
1481 
1482  virtual void swap(int pos1, int pos2) override;
1483 
1484  virtual void clear() override;
1485 
1486  virtual int n_children() const override;
1487 
1488  virtual int iter_n_children(const weld::TreeIter& rIter) const override;
1489 
1490  virtual void select(int pos) override;
1491 
1492  virtual int get_cursor_index() const override;
1493 
1494  virtual void set_cursor(int pos) override;
1495 
1496  virtual void scroll_to_row(int pos) override;
1497 
1498  virtual bool is_selected(int pos) const override;
1499 
1500  virtual void unselect(int pos) override;
1501 
1502  virtual std::vector<int> get_selected_rows() const override;
1503 
1504  OUString get_text(SvTreeListEntry* pEntry, int col) const;
1505 
1506  virtual OUString get_text(int pos, int col = -1) const override;
1507 
1508  void set_text(SvTreeListEntry* pEntry, const OUString& rText, int col);
1509 
1510  virtual void set_text(int pos, const OUString& rText, int col = -1) override;
1511 
1512  void set_sensitive(SvTreeListEntry* pEntry, bool bSensitive, int col);
1513 
1515 
1516  virtual void set_sensitive(int pos, bool bSensitive, int col = -1) override;
1517 
1518  virtual void set_sensitive(const weld::TreeIter& rIter, bool bSensitive, int col = -1) override;
1519 
1520  virtual TriState get_toggle(int pos, int col = -1) const override;
1521 
1522  virtual TriState get_toggle(const weld::TreeIter& rIter, int col = -1) const override;
1523 
1524  virtual void enable_toggle_buttons(weld::ColumnToggleType eType) override;
1525 
1526  virtual void set_toggle(int pos, TriState eState, int col = -1) override;
1527 
1528  virtual void set_toggle(const weld::TreeIter& rIter, TriState eState, int col = -1) override;
1529 
1530  virtual void set_clicks_to_toggle(int nToggleBehavior) override;
1531 
1532  virtual void set_extra_row_indent(const weld::TreeIter& rIter, int nIndentLevel) override;
1533 
1534  void set_text_emphasis(SvTreeListEntry* pEntry, bool bOn, int col = -1);
1535 
1536  virtual void set_text_emphasis(const weld::TreeIter& rIter, bool bOn, int col) override;
1537 
1538  virtual void set_text_emphasis(int pos, bool bOn, int col) override;
1539 
1540  virtual bool get_text_emphasis(const weld::TreeIter& rIter, int col) const override;
1541 
1542  virtual bool get_text_emphasis(int pos, int col) const override;
1543 
1544  void set_text_align(SvTreeListEntry* pEntry, double fAlign, int col);
1545 
1546  virtual void set_text_align(const weld::TreeIter& rIter, double fAlign, int col) override;
1547 
1548  virtual void set_text_align(int pos, double fAlign, int col) override;
1549 
1550  virtual void connect_editing(const Link<const weld::TreeIter&, bool>& rStartLink,
1551  const Link<const iter_string&, bool>& rEndLink) override;
1552 
1553  virtual void start_editing(const weld::TreeIter& rIter) override;
1554 
1555  virtual void end_editing() override;
1556 
1557  void set_image(SvTreeListEntry* pEntry, const Image& rImage, int col);
1558 
1559  virtual void set_image(int pos, const OUString& rImage, int col = -1) override;
1560 
1561  virtual void set_image(int pos, const css::uno::Reference<css::graphic::XGraphic>& rImage,
1562  int col = -1) override;
1563 
1564  virtual void set_image(int pos, VirtualDevice& rImage, int col = -1) override;
1565 
1566  virtual void set_image(const weld::TreeIter& rIter, const OUString& rImage,
1567  int col = -1) override;
1568 
1569  virtual void set_image(const weld::TreeIter& rIter,
1570  const css::uno::Reference<css::graphic::XGraphic>& rImage,
1571  int col = -1) override;
1572 
1573  virtual void set_image(const weld::TreeIter& rIter, VirtualDevice& rImage,
1574  int col = -1) override;
1575 
1576  const OUString* getEntryData(int index) const;
1577 
1578  virtual OUString get_id(int pos) const override;
1579 
1580  void set_id(SvTreeListEntry* pEntry, const OUString& rId);
1581 
1582  virtual void set_id(int pos, const OUString& rId) override;
1583 
1584  virtual int get_selected_index() const override;
1585 
1586  virtual OUString get_selected_text() const override;
1587 
1588  virtual OUString get_selected_id() const override;
1589 
1590  virtual std::unique_ptr<weld::TreeIter> make_iterator(const weld::TreeIter* pOrig
1591  = nullptr) const override;
1592 
1593  virtual void copy_iterator(const weld::TreeIter& rSource, weld::TreeIter& rDest) const override;
1594 
1595  virtual bool get_selected(weld::TreeIter* pIter) const override;
1596 
1597  virtual bool get_cursor(weld::TreeIter* pIter) const override;
1598 
1599  virtual void set_cursor(const weld::TreeIter& rIter) override;
1600 
1601  virtual bool get_iter_first(weld::TreeIter& rIter) const override;
1602 
1603  virtual bool get_iter_abs_pos(weld::TreeIter& rIter, int nPos) const;
1604 
1605  virtual bool iter_next_sibling(weld::TreeIter& rIter) const override;
1606 
1607  virtual bool iter_previous_sibling(weld::TreeIter& rIter) const override;
1608 
1609  virtual bool iter_next(weld::TreeIter& rIter) const override;
1610 
1611  virtual bool iter_previous(weld::TreeIter& rIter) const override;
1612 
1613  virtual bool iter_children(weld::TreeIter& rIter) const override;
1614 
1615  virtual bool iter_parent(weld::TreeIter& rIter) const override;
1616 
1617  virtual void remove(const weld::TreeIter& rIter) override;
1618 
1619  virtual void select(const weld::TreeIter& rIter) override;
1620 
1621  virtual void scroll_to_row(const weld::TreeIter& rIter) override;
1622 
1623  virtual void unselect(const weld::TreeIter& rIter) override;
1624 
1625  virtual int get_iter_depth(const weld::TreeIter& rIter) const override;
1626 
1627  virtual bool iter_has_child(const weld::TreeIter& rIter) const override;
1628 
1629  virtual bool get_row_expanded(const weld::TreeIter& rIter) const override;
1630 
1631  virtual bool get_children_on_demand(const weld::TreeIter& rIter) const override;
1632 
1633  virtual void set_children_on_demand(const weld::TreeIter& rIter,
1634  bool bChildrenOnDemand) override;
1635 
1636  virtual void expand_row(const weld::TreeIter& rIter) override;
1637 
1638  virtual void collapse_row(const weld::TreeIter& rIter) override;
1639 
1640  virtual OUString get_text(const weld::TreeIter& rIter, int col = -1) const override;
1641 
1642  virtual void set_text(const weld::TreeIter& rIter, const OUString& rText,
1643  int col = -1) override;
1644 
1645  virtual OUString get_id(const weld::TreeIter& rIter) const override;
1646 
1647  virtual void set_id(const weld::TreeIter& rIter, const OUString& rId) override;
1648 
1650  sal_uInt8 eDNDConstants) override;
1651 
1652  virtual void set_selection_mode(SelectionMode eMode) override;
1653 
1654  virtual void all_foreach(const std::function<bool(weld::TreeIter&)>& func) override;
1655 
1656  virtual void selected_foreach(const std::function<bool(weld::TreeIter&)>& func) override;
1657 
1658  virtual void visible_foreach(const std::function<bool(weld::TreeIter&)>& func) override;
1659 
1660  virtual void connect_visible_range_changed(const Link<weld::TreeView&, void>& rLink) override;
1661 
1662  virtual void remove_selection() override;
1663 
1664  virtual bool is_selected(const weld::TreeIter& rIter) const override;
1665 
1666  virtual int get_iter_index_in_parent(const weld::TreeIter& rIter) const override;
1667 
1668  virtual int iter_compare(const weld::TreeIter& a, const weld::TreeIter& b) const override;
1669 
1670  virtual void move_subtree(weld::TreeIter& rNode, const weld::TreeIter* pNewParent,
1671  int nIndexInNewParent) override;
1672 
1673  virtual int count_selected_rows() const override;
1674 
1675  virtual int get_height_rows(int nRows) const override;
1676 
1677  virtual void make_sorted() override;
1678 
1679  virtual void set_sort_func(
1680  const std::function<int(const weld::TreeIter&, const weld::TreeIter&)>& func) override;
1681 
1682  virtual void make_unsorted() override;
1683 
1684  virtual void set_sort_order(bool bAscending) override;
1685 
1686  virtual bool get_sort_order() const override;
1687 
1688  virtual void set_sort_indicator(TriState eState, int col) override;
1689 
1690  virtual TriState get_sort_indicator(int col) const override;
1691 
1692  virtual int get_sort_column() const override;
1693 
1694  virtual void set_sort_column(int nColumn) override;
1695 
1697 
1698  virtual bool get_dest_row_at_pos(const Point& rPos, weld::TreeIter* pResult,
1699  bool bDnDMode) override;
1700 
1701  virtual void unset_drag_dest_row() override;
1702 
1703  virtual tools::Rectangle get_row_area(const weld::TreeIter& rIter) const override;
1704 
1705  virtual TreeView* get_drag_source() const override;
1706 
1707  virtual int vadjustment_get_value() const override;
1708 
1709  virtual void vadjustment_set_value(int nValue) override;
1710 
1711  virtual void set_show_expanders(bool bShow) override;
1712 
1713  virtual bool changed_by_hover() const override;
1714 
1715  virtual ~SalInstanceTreeView() override;
1716 };
1717 
1719 {
1720 private:
1722 
1723  DECL_LINK(ExpandedHdl, VclExpander&, void);
1724 
1725 public:
1726  SalInstanceExpander(VclExpander* pExpander, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1727 
1728  virtual void set_label(const OUString& rText) override;
1729 
1730  virtual OUString get_label() const override;
1731 
1732  virtual bool get_expanded() const override;
1733 
1734  virtual void set_expanded(bool bExpand) override;
1735 
1736  virtual bool has_focus() const override;
1737 
1738  virtual void grab_focus() override;
1739 
1740  virtual ~SalInstanceExpander() override;
1741 };
1742 
1744 {
1745 private:
1746  // owner for UserData
1747  std::vector<std::unique_ptr<OUString>> m_aUserData;
1749 
1750  DECL_LINK(SelectHdl, SvTreeListBox*, void);
1751  DECL_LINK(DeSelectHdl, SvTreeListBox*, void);
1752  DECL_LINK(DoubleClickHdl, SvTreeListBox*, bool);
1753  DECL_LINK(CommandHdl, const CommandEvent&, bool);
1754 
1755 public:
1756  SalInstanceIconView(::IconView* pIconView, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1757 
1758  virtual void freeze() override;
1759 
1760  virtual void thaw() override;
1761 
1762  virtual void insert(int pos, const OUString* pStr, const OUString* pId,
1763  const OUString* pIconName, weld::TreeIter* pRet) override;
1764 
1765  virtual void insert(int pos, const OUString* pStr, const OUString* pId,
1766  const VirtualDevice* pIcon, weld::TreeIter* pRet) override;
1767 
1768  virtual OUString get_selected_id() const override;
1769 
1770  virtual OUString get_selected_text() const override;
1771 
1772  virtual int count_selected_items() const override;
1773 
1774  virtual void select(int pos) override;
1775 
1776  virtual void unselect(int pos) override;
1777 
1778  virtual int n_children() const override;
1779 
1780  virtual std::unique_ptr<weld::TreeIter> make_iterator(const weld::TreeIter* pOrig
1781  = nullptr) const override;
1782 
1783  virtual bool get_selected(weld::TreeIter* pIter) const override;
1784 
1785  virtual bool get_cursor(weld::TreeIter* pIter) const override;
1786 
1787  virtual void set_cursor(const weld::TreeIter& rIter) override;
1788 
1789  virtual bool get_iter_first(weld::TreeIter& rIter) const override;
1790 
1791  virtual void scroll_to_item(const weld::TreeIter& rIter) override;
1792 
1793  virtual void selected_foreach(const std::function<bool(weld::TreeIter&)>& func) override;
1794 
1795  virtual OUString get_id(const weld::TreeIter& rIter) const override;
1796 
1797  virtual void clear() override;
1798 
1799  virtual ~SalInstanceIconView() override;
1800 };
1801 
1803 {
1804 private:
1806 
1807  DECL_LINK(ToggleHdl, ::RadioButton&, void);
1808 
1809 public:
1811  bool bTakeOwnership);
1812 
1813  virtual void set_active(bool active) override;
1814 
1815  virtual bool get_active() const override;
1816 
1817  virtual void set_image(VirtualDevice* pDevice) override;
1818 
1819  virtual void set_image(const css::uno::Reference<css::graphic::XGraphic>& rImage) override;
1820 
1821  virtual void set_from_icon_name(const OUString& rIconName) override;
1822 
1823  virtual void set_inconsistent(bool /*inconsistent*/) override;
1824 
1825  virtual bool get_inconsistent() const override;
1826 
1827  virtual void set_label(const OUString& rText) override { SalInstanceButton::set_label(rText); }
1828 
1829  virtual OUString get_label() const override { return SalInstanceButton::get_label(); }
1830 
1831  virtual void set_label_wrap(bool wrap) override { SalInstanceButton::set_label_wrap(wrap); }
1832 
1833  virtual ~SalInstanceRadioButton() override;
1834 };
1835 
1836 class SalInstanceFrame : public SalInstanceContainer, public virtual weld::Frame
1837 {
1838 private:
1840 
1841 public:
1842  SalInstanceFrame(VclFrame* pFrame, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1843 
1844  virtual void set_label(const OUString& rText) override;
1845 
1846  virtual OUString get_label() const override;
1847 
1848  virtual std::unique_ptr<weld::Label> weld_label_widget() const override;
1849 };
1850 
1852 {
1853 protected:
1855  sal_uInt16 m_nLastId;
1856 
1857  DECL_LINK(MenuSelectHdl, ::MenuButton*, void);
1858  DECL_LINK(ActivateHdl, ::MenuButton*, void);
1859 
1860 public:
1861  SalInstanceMenuButton(::MenuButton* pButton, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1862 
1863  virtual void set_active(bool active) override;
1864 
1865  virtual bool get_active() const override;
1866 
1867  virtual void set_inconsistent(bool /*inconsistent*/) override;
1868 
1869  virtual bool get_inconsistent() const override;
1870 
1871  virtual void insert_item(int pos, const OUString& rId, const OUString& rStr,
1872  const OUString* pIconName, VirtualDevice* pImageSurface,
1873  TriState eCheckRadioFalse) override;
1874 
1875  virtual void insert_separator(int pos, const OUString& rId) override;
1876 
1877  virtual void set_item_sensitive(const OString& rIdent, bool bSensitive) override;
1878 
1879  virtual void remove_item(const OString& rId) override;
1880 
1881  virtual void clear() override;
1882 
1883  virtual void set_item_active(const OString& rIdent, bool bActive) override;
1884 
1885  virtual void set_item_label(const OString& rIdent, const OUString& rText) override;
1886 
1887  virtual OUString get_item_label(const OString& rIdent) const override;
1888 
1889  virtual void set_item_visible(const OString& rIdent, bool bShow) override;
1890 
1891  virtual void set_popover(weld::Widget* pPopover) override;
1892 
1893  virtual ~SalInstanceMenuButton() override;
1894 };
1895 
1897 {
1898 private:
1900 
1901  DECL_LINK(PopupModeEndHdl, FloatingWindow*, void);
1902 
1903  void ImplPopDown();
1904 
1905 public:
1906  SalInstancePopover(DockingWindow* pPopover, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1907 
1909 
1910  virtual void popup_at_rect(weld::Widget* pParent, const tools::Rectangle& rRect,
1911  weld::Placement ePlace = weld::Placement::Under) override;
1912 
1913  virtual void popdown() override;
1914 
1915  virtual void resize_to_request() override;
1916 };
1917 
1918 class SalInstanceBox : public SalInstanceContainer, public virtual weld::Box
1919 {
1920 private:
1922 
1923 public:
1924  SalInstanceBox(VclBox* pContainer, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1925  virtual void reorder_child(weld::Widget* pWidget, int nNewPosition) override;
1926  virtual void sort_native_button_order() override;
1927 };
1928 
1929 class SalInstanceImage : public SalInstanceWidget, public virtual weld::Image
1930 {
1931 private:
1933 
1934 public:
1935  SalInstanceImage(FixedImage* pImage, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
1936 
1937  virtual void set_from_icon_name(const OUString& rIconName) override;
1938 
1939  virtual void set_image(VirtualDevice* pDevice) override;
1940 
1941  virtual void set_image(const css::uno::Reference<css::graphic::XGraphic>& rImage) override;
1942 };
1943 
1944 /* 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
SalInstanceMenuButton(::MenuButton *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void insert_vector(const std::vector< weld::ComboBoxEntry > &rItems, bool bKeepExisting) override
Definition: salvtables.hxx:753
virtual std::unique_ptr< weld::SpinButton > weld_spin_button(const OString &id) override
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > get_drop_target() override
Definition: salvtables.cxx:569
virtual bool get_direction() const override
Definition: salvtables.cxx:507
virtual void set_can_focus(bool bCanFocus) override
Definition: salvtables.cxx:284
virtual void set_id(int row, const OUString &rId) override
Definition: salvtables.hxx:747
virtual bool get_selected(weld::TreeIter *pIter) const override
virtual void remove_item(const OString &rId) override
virtual std::unique_ptr< weld::TreeIter > make_iterator(const weld::TreeIter *pOrig=nullptr) const override
SalInstanceWidget(vcl::Window *pWidget, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
Definition: salvtables.cxx:263
virtual void set_label(const OUString &rText) override
VclPtr<::Edit > m_xEntry
Definition: salvtables.hxx:552
virtual void set_expanded(bool bExpand) override
virtual bool get_item_sensitive(const OString &rIdent) const override
Definition: salvtables.cxx:889
virtual void select_region(int nStartPos, int nEndPos) override
static void DoRecursivePaint(vcl::Window *pWindow, const Point &rPos, OutputDevice &rOutput)
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
virtual std::unique_ptr< weld::Notebook > weld_notebook(const OString &id) override
virtual void clear() override
VclPtr< ToolBox > m_xToolBox
virtual unsigned int get_digits() const override
virtual std::unique_ptr< weld::Toolbar > weld_toolbar(const OString &id) override
virtual void cut_clipboard() override
virtual void set_entry_completion(bool, bool bCaseSensitive=false) override
virtual OUString get_active_text() const override
virtual void scroll_to_row(int pos) override
virtual void set_from_icon_name(const OUString &rIconName) override
virtual void HandleEventListener(VclWindowEvent &rEvent)
Definition: salvtables.cxx:613
FieldUnit
virtual void set_font(const vcl::Font &rFont) 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:494
virtual int get_margin_start() const override
Definition: salvtables.cxx:393
virtual int get_iter_depth(const weld::TreeIter &rIter) const override
virtual void set_entry_editable(bool bEditable) override
virtual void set_selection_mode(SelectionMode eMode) override
virtual bool has_focus() const override
virtual int get_grid_top_attach() const override
Definition: salvtables.cxx:371
virtual bool iter_children(weld::TreeIter &rIter) const override
virtual void set_image(VirtualDevice *pDevice) override
virtual std::unique_ptr< weld::Container > weld_container(const OString &id) override
virtual bool get_row_expanded(const weld::TreeIter &rIter) const override
virtual void set_sensitive(const OString &rIdent, bool bSensitive)=0
virtual bool is_selected(int pos) const override
virtual void set_editable(bool bEditable) override
SvLBoxButtonData m_aRadioButtonData
virtual void set_item_active(const OString &rIdent, bool bActive) override
virtual OUString get_id(int pos) const override
virtual void set_label_type(weld::LabelType eType) override
virtual Size get_size() const override
virtual void set_image(VirtualDevice *pDevice) override
virtual std::unique_ptr< weld::MenuToggleButton > weld_menu_toggle_button(const OString &id) override
virtual void clear() override
virtual void select_entry_region(int nStartPos, int nEndPos) override
std::map< OString, std::pair< VclPtr< TabPage >, VclPtr< VclGrid > > > m_aAddedPages
virtual Point get_accessible_location_on_screen() override
virtual void set_input_context(const InputContext &rInputContext) override
virtual void thaw() override
virtual void swap(int pos1, int pos2) override
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface)=0
virtual std::unique_ptr< weld::Frame > weld_frame(const OString &id) override
virtual void connect_size_allocate(const Link< const Size &, void > &rLink) override
Definition: salvtables.cxx:453
virtual void select_entry_region(int, int) override
virtual void set_entry_message_type(weld::EntryMessageType eType) override
void set_sensitive(SvTreeListEntry *pEntry, bool bSensitive, int col)
virtual void set_active(int pos) override
Definition: salvtables.hxx:727
virtual void set_help_id(const OString &rId) override
Definition: salvtables.cxx:353
SalInstanceBuilder * m_pBuilder
Definition: salvtables.hxx:174
css::uno::Reference< css::accessibility::XAccessibleRelationSet > a11yrelationset
Definition: weld.hxx:50
virtual std::unique_ptr< weld::CheckButton > weld_check_button(const OString &id) override
SalInstanceCheckButton(CheckBox *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
DECL_LINK(SelectHdl, SvTreeListBox *, void)
virtual int n_children() const override
VclPtr< vcl::Window > m_xWindow
Definition: salvtables.hxx:437
virtual void make_sorted() override
Definition: salvtables.hxx:796
virtual void insert_separator(int pos, const OUString &) override
VclEventId GetId() const
Definition: vclevent.hxx:184
virtual bool get_active() const override
virtual bool get_sensitive() const override
Definition: salvtables.cxx:278
virtual void set_tooltip_text(const OUString &rTip) override
Definition: salvtables.cxx:428
void ensure_mouse_listener()
Definition: salvtables.cxx:238
const tools::Rectangle & GetRect() const
Definition: event.hxx:242
virtual bool iter_parent(weld::TreeIter &rIter) const override
virtual void set_item_ident(int nIndex, const OString &rIdent) override
virtual std::unique_ptr< weld::ToggleButton > weld_toggle_button(const OString &id) override
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:82
virtual bool get_sort_order() const override
virtual int iter_compare(const weld::TreeIter &a, const weld::TreeIter &b) const override
virtual Size get_preferred_size() const override
Definition: salvtables.cxx:329
virtual void enable_drag_source(rtl::Reference< TransferDataContainer > &rHelper, sal_uInt8 eDNDConstants) override
const OUString * getEntryData(int index) const
VclPtr<::Button > m_xButton
DECL_LINK(ExpandedHdl, VclExpander &, void)
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:670
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
DECL_LINK(SelectHdl, SvTreeListBox *, void)
virtual std::unique_ptr< weld::MenuButton > weld_menu_button(const OString &id) override
virtual int find_text(const OUString &rStr) const override
Definition: salvtables.hxx:769
VclPtr< FixedImage > m_xImage
virtual int get_value() const override
void set_text_align(SvTreeListEntry *pEntry, double fAlign, int col)
virtual void set_mnemonic_widget(Widget *pTarget) override
virtual bool has_focus() const override
virtual int get_position() const override
void disable_notify_events()
Definition: salvtables.cxx:551
std::vector< ScreenShotEntry > ScreenShotCollection
Definition: weld.hxx:505
virtual int get_max_mru_count() const override
virtual void set_font_color(const Color &rColor) override
virtual void set_modal(bool bModal) override
long Long
std::pair< vcl::RenderContext &, const tools::Rectangle & > target_and_area
css::uno::Reference< css::accessibility::XAccessible > a11yref
Definition: weld.hxx:49
virtual sal_uInt16 get_modifier_state() const override
void call_signal_custom_render(UserDrawEvent *pEvent)
Definition: salvtables.hxx:809
static const AllSettings & GetSettings()
Gets the application's settings.
Definition: svapp.cxx:760
int to_internal_model(int col) const
VclPtr<::MessageDialog > m_xMessageDialog
virtual std::unique_ptr< weld::Scale > weld_scale(const OString &id) override
std::vector< std::unique_ptr< OUString > > m_aUserData
virtual void set_active(bool active) override
virtual std::unique_ptr< weld::Expander > weld_expander(const OString &id) override
virtual void set_active_id(const OUString &rStr) override
Definition: salvtables.hxx:715
SalInstanceComboBoxWithEdit(::ComboBox *pComboBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
static void set_font_color(SvTreeListEntry *pEntry, const Color &rColor)
OUString m_sMenuButtonRow
Definition: salvtables.hxx:672
virtual void set_item_sensitive(const OString &rIdent, bool bSensitive) override
virtual void set_item_help_id(const OString &rIdent, const OString &rHelpId) override
Definition: salvtables.cxx:899
virtual bool changed_by_hover() const override
virtual OUString strip_mnemonic(const OUString &rLabel) const override
Definition: salvtables.cxx:557
VclPtr< FormattedField > m_xButton
Definition: salvtables.hxx:619
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
virtual void connect_popup_toggled(const Link< ComboBox &, void > &rLink)
Definition: weld.hxx:769
virtual bool get_has_default() const override
Definition: salvtables.cxx:312
virtual bool has_grab() const override
Definition: salvtables.cxx:503
VclPtr< vcl::Window > m_xRefEdit
Definition: salvtables.hxx:497
virtual void HandleMouseEventListener(VclWindowEvent &rEvent) override
virtual OUString get_text() const override
virtual void resize_to_request() override
virtual bool get_children_on_demand(const weld::TreeIter &rIter) const override
void set_menu_item_active(const OString &rIdent, bool bActive) override
Definition: salvtables.cxx:920
SalInstanceBox(VclBox *pContainer, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual OUString get_text(int pos) const override
Definition: salvtables.hxx:737
virtual void set_message_type(weld::EntryMessageType eType) override
virtual void set_margin_start(int nMargin) override
Definition: salvtables.cxx:385
SelectionMode
Definition: vclenum.hxx:26
virtual bool get_iter_abs_pos(weld::TreeIter &rIter, int nPos) const
virtual ~SalInstanceWindow() override
virtual void connect_mouse_release(const Link< const MouseEvent &, bool > &rLink) override
Definition: salvtables.cxx:471
VclPtr<::RadioButton > m_xRadioButton
WeldTextFilter m_aTextFilter
Definition: salvtables.hxx:943
virtual void clear()=0
virtual OUString get_item_tooltip_text(const OString &rIdent) const override
bool get_menu_item_active(const OString &rIdent) const override
Definition: salvtables.cxx:955
virtual bool get_overwrite_mode() const override
virtual void set_accessible_description(const OUString &rDescription) override
Definition: salvtables.cxx:402
virtual OString get_help_id() const override
Definition: salvtables.cxx:355
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:696
virtual bool is_active() const override
Definition: salvtables.cxx:303
virtual OString get_page_ident(int nPage) const override
virtual void columns_autosize() override
virtual int get_max_mru_count() const override
virtual bool get_hexpand() const override
Definition: salvtables.cxx:375
virtual ~SalInstanceTreeView() override
bool notify_events_disabled() const
Definition: salvtables.cxx:553
virtual void connect_query_tooltip(const Link< const weld::TreeIter &, OUString > &rLink) override
virtual void connect_mouse_press(const Link< const MouseEvent &, bool > &rLink) override
Definition: salvtables.cxx:459
void set_image(SvTreeListEntry *pEntry, const Image &rImage, int col)
virtual ~SalInstanceNotebook() override
virtual std::unique_ptr< weld::Menu > weld_menu(const OString &id) override
virtual void set_mru_entries(const OUString &rEntries) override
virtual bool has_child_focus() const override
Definition: salvtables.cxx:305
virtual void recursively_unset_default_buttons() override
void set_text(SvTreeListEntry *pEntry, const OUString &rText, int col)
virtual void copy_iterator(const weld::TreeIter &rSource, weld::TreeIter &rDest) const override
virtual int vadjustment_get_upper() const override
virtual weld::Button * weld_widget_for_response(int nResponse) override
SystemWindow * getSystemWindow()
Definition: salvtables.cxx:611
WeldTextFilter m_aTextFilter
Definition: salvtables.hxx:558
virtual void set_font(const vcl::Font &rFont) override
virtual ~SalInstanceMenuButton() override
DECL_LINK(MenuSelectHdl,::MenuButton *, void)
SalInstanceEntry(::Edit *pEntry, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
std::unique_ptr< VclBuilder > m_xBuilder
Definition: salvtables.hxx:36
bool HasChildPathFocus(bool bSystemWindow=false) const
Definition: window.cxx:3004
virtual Size get_pixel_size(const OUString &rText) const override
Definition: salvtables.cxx:338
virtual bool HandleKeyEventListener(VclWindowEvent &rEvent)
Definition: salvtables.cxx:683
virtual void thaw() override
virtual void set_accessible_relation_labeled_by(weld::Widget *pLabel) override
Definition: salvtables.cxx:414
virtual void collapse(weld::Widget *pEdit, weld::Widget *pButton) override
virtual void set_sort_order(bool bAscending) override
#define LISTBOX_ENTRY_NOTFOUND
Definition: lstbox.hxx:37
virtual void connect_cursor_position(const Link< Entry &, void > &rLink) override
virtual void sort_native_button_order() override
virtual void vadjustment_set_value(int nValue) override
virtual void connect_mouse_move(const Link< const MouseEvent &, bool > &rLink) override
Definition: salvtables.cxx:465
virtual int get_active() const override
Definition: salvtables.hxx:681
virtual void connect_mnemonic_activate(const Link< Widget &, bool > &rLink) override
Definition: salvtables.cxx:441
virtual bool get_active() const override
virtual void set_grid_left_attach(int nAttach) override
Definition: salvtables.cxx:357
virtual void set_item_popover(const OString &rIdent, weld::Widget *pPopover) override
Definition: salvtables.cxx:978
virtual bool HandleKeyEventListener(VclWindowEvent &) override
virtual int get_height_rows(int nRows) const override
VclPtr< VclFrame > m_xFrame
virtual bool iter_next_sibling(weld::TreeIter &rIter) const override
o3tl::sorted_vector< int > m_aCustomRenders
virtual void undo_collapse() override
virtual OUString get_mru_entries() const override
static OutputDevice * GetDefaultDevice()
Get the default "device" (in this case the default window).
Definition: svapp.cxx:1096
virtual void help_hierarchy_foreach(const std::function< bool(const OString &)> &func) override
std::pair< SvTreeListEntry *, OUString > IterString
bool get_text_emphasis(SvTreeListEntry *pEntry, int col) const
const bool m_bTakeOwnership
Definition: salvtables.hxx:184
virtual bool has_focus() const override
Definition: salvtables.hxx:696
WinBits const WB_NOPOINTERFOCUS
virtual void set_grid_width(int nCols) override
Definition: salvtables.cxx:364
virtual void set_item_menu(const OString &rIdent, weld::Menu *pMenu) override
Definition: salvtables.hxx:836
VclPtr< VclBox > m_xBox
virtual vcl::Font get_entry_font() override
virtual void connect_focus_in(const Link< Widget &, void > &rLink) override
Definition: salvtables.cxx:435
virtual bool get_sensitive(const OString &rIdent) const =0
bool get_selection_bounds(int &rStartPos, int &rEndPos) override
virtual void set_accessible_relation_label_for(weld::Widget *pLabeled) override
Definition: salvtables.cxx:421
DECL_LINK(HelpHdl, vcl::Window &, bool)
SalInstanceTreeView(SvTabListBox *pTreeView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_item_image(const OString &rIdent, const css::uno::Reference< css::graphic::XGraphic > &rIcon) override
virtual bool get_selected(weld::TreeIter *pIter) const override
o3tl::sorted_vector< SvTreeListEntry * > m_aExpandingPlaceHolderParents
virtual void set_position(int nCursorPos) override
virtual std::unique_ptr< weld::Entry > weld_entry(const OString &id) override
virtual std::unique_ptr< weld::Image > weld_image(const OString &id) override
virtual void connect_focus_out(const Link< Widget &, void > &rLink) override
Definition: salvtables.cxx:447
virtual bool iter_previous(weld::TreeIter &rIter) const override
EntryMessageType
Definition: weld.hxx:666
virtual void vadjustment_set_value(int value) override
virtual std::unique_ptr< weld::Spinner > weld_spinner(const OString &id) override
Link< ScrollBar *, void > m_aOrigVScrollHdl
SalInstanceExpander(VclExpander *pExpander, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual int get_margin_end() const override
Definition: salvtables.cxx:395
virtual void enable_toggle_buttons(weld::ColumnToggleType eType) override
virtual void set_max_length(int nChars) override
std::pair< vcl::RenderContext &, const SvTreeListEntry & > svtree_measure_args
virtual int find_id(const OUString &rStr) const override
Definition: salvtables.hxx:777
double toField(int nValue) const
virtual void set_item_menu(const OString &rIdent, weld::Menu *pMenu) override
Definition: salvtables.cxx:999
virtual void scroll_to_item(const weld::TreeIter &rIter) override
sal_uInt16 m_nLastId
Definition: salvtables.hxx:142
size_t pos
SalInstancePopover(DockingWindow *pPopover, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual OString get_buildable_name() const override
Definition: salvtables.cxx:346
int get_menu_button_width() const override
Definition: salvtables.hxx:851
virtual std::unique_ptr< weld::DrawingArea > weld_drawing_area(const OString &id, const a11yref &rA11yImpl=nullptr, FactoryFunction pUITestFactoryFunction=nullptr, void *pUserData=nullptr) override
virtual void freeze() override
virtual void connect_container_focus_changed(const Link< Container &, void > &rLink) override
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:509
virtual int count_selected_rows() const override
SalInstanceToolbar(ToolBox *pToolBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
Definition: salvtables.cxx:875
SalInstanceDialog(::Dialog *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
LabelType
Definition: weld.hxx:2082
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:391
virtual bool get_active() const override
void set_toggle(SvTreeListEntry *pEntry, TriState eState, int col)
virtual int find_id(const OUString &rId) const override
virtual tools::Rectangle get_monitor_workarea() const override
constexpr tools::Long GetWidth() const
virtual void queue_resize() override
Definition: salvtables.cxx:533
WindowStateMask
Definition: vclenum.hxx:121
virtual ~SalInstanceToolbar() override
std::map< ToolBoxItemId, VclPtr< PopupMenu > > m_aMenus
DECL_LINK(UpDownHdl, SpinField &, void)
void CallHandleEventListener(VclWindowEvent &rEvent)
Definition: salvtables.hxx:857
virtual void freeze() override
virtual void set_show_expanders(bool bShow) override
virtual OUString get_accessible_description() const override
Definition: salvtables.cxx:409
virtual void move_subtree(weld::TreeIter &rNode, const weld::TreeIter *pNewParent, int nIndexInNewParent) override
virtual void make_unsorted() override
std::vector< VclPtr< vcl::Window > > m_aHiddenWidgets
Definition: salvtables.hxx:498
virtual int get_page_index(const OString &rIdent) const override
virtual void set_sort_indicator(TriState eState, int col) override
virtual TriState get_sort_indicator(int col) const override
SalInstanceComboBoxWithoutEdit(ListBox *pListBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void copy_entry_clipboard() override
virtual void set_entry_editable(bool bEditable) override
virtual void start_editing(const weld::TreeIter &rIter) override
Definition: edit.hxx:55
virtual void HandleEventListener(VclWindowEvent &rEvent) override
virtual void set_margin_top(int nMargin) override
Definition: salvtables.cxx:381
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 connect_visible_range_changed(const Link< weld::TreeView &, void > &rLink) override
virtual int get_column_width(int nColumn) const override
virtual void set_label(const OUString &rText) override
virtual void grab_add() override
Definition: salvtables.cxx:501
virtual void reorder_child(weld::Widget *pWidget, int nNewPosition) override
virtual bool iter_previous_sibling(weld::TreeIter &rIter) const override
virtual void selected_foreach(const std::function< bool(weld::TreeIter &)> &func) override
virtual void set_icon_size(vcl::ImageType eType) override
virtual void connect_popup_toggled(const Link< ComboBox &, void > &rLink) override
Definition: salvtables.hxx:803
virtual void insert(const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet) override
virtual std::unique_ptr< weld::Dialog > weld_dialog(const OString &id) override
virtual void select(int pos) override
virtual OUString get_column_title(int nColumn) const override
virtual int get_drop_index(const Point &rPoint) const override
virtual void set_inconsistent(bool) override
virtual std::vector< int > get_selected_rows() const override
virtual bool get_entry_selection_bounds(int &rStartPos, int &rEndPos) override
SalInstanceRadioButton(::RadioButton *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual OUString get_active_text() const override
virtual void freeze() override
Definition: salvtables.cxx:511
virtual void set_entry_width_chars(int nChars) override
virtual int get_text_height() const override
Definition: salvtables.cxx:336
virtual void set_text(const OUString &rText) override
SalInstanceMessageDialog(::MessageDialog *pDialog, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void replace_selection(const OUString &rText) override
virtual void insert_item(int pos, const OUString &rId) 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:562
virtual OUString get_tooltip_text() const override
Definition: salvtables.cxx:433
void InvalidateModelEntry(SvTreeListEntry *pEntry)
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > get_clipboard() const override
Definition: salvtables.cxx:575
virtual void paste_entry_clipboard() override
SalInstanceFrame(VclFrame *pFrame, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void set_tab_label_text(const OString &rIdent, const OUString &rText) override
VclPtr< TabControl > m_xNotebook
virtual ~SalInstanceEntry() override
virtual VclPtr< VirtualDevice > screenshot() override
SalInstanceNotebook(TabControl *pNotebook, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void insert_separator(int pos, const OUString &) override
virtual OString get_id(int pos) const =0
virtual void set_inconsistent(bool inconsistent) override
void clear()
Definition: vclptr.hxx:190
VclPtr< VclMultiLineEdit > m_xTextView
virtual void collapse_row(const weld::TreeIter &rIter) override
virtual void set_visible(const OString &rIdent, bool bVisible)=0
PopupMenu * getMenu() const
Definition: salvtables.cxx:853
virtual weld::Container * weld_content_area() override
virtual std::unique_ptr< weld::Label > weld_label_widget() const override
virtual float get_approximate_digit_width() const override
Definition: salvtables.cxx:331
DECL_LINK(ChangeHdl, Edit &, void)
virtual void paste_clipboard() override
VclPtr<::MenuButton > m_xMenuButton
virtual void hide() override
Definition: salvtables.cxx:316
virtual bool can_move_cursor_with_up() const override
vcl::RenderContext * GetRenderContext() const
Definition: event.hxx:241
virtual std::unique_ptr< weld::ProgressBar > weld_progress_bar(const OString &id) override
virtual void present() override
SalInstanceDrawingArea(VclDrawingArea *pDrawingArea, SalInstanceBuilder *pBuilder, const a11yref &rAlly, FactoryFunction pUITestFactoryFunction, void *pUserData, bool bTakeOwnership)
virtual std::unique_ptr< weld::IconView > weld_icon_view(const OString &id) override
virtual void set_clicks_to_toggle(int nToggleBehavior) override
virtual OUString get_selected_id() const override
int i
virtual void set_popover(weld::Widget *pPopover) override
SalInstanceContainer(vcl::Window *pContainer, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual Point get_pointer_position() const override
virtual int get_count() const override
Definition: salvtables.hxx:767
virtual void add_button(const OUString &rText, int nResponse, const OString &rHelpId=OString()) override
virtual void set_highlight_background() override
Definition: salvtables.cxx:606
void ensure_key_listener()
Definition: salvtables.cxx:227
virtual void bulk_insert_for_each(int nSourceCount, const std::function< void(weld::TreeIter &, int nSourceIndex)> &func, const weld::TreeIter *pParent=nullptr, const std::vector< int > *pFixedWidths=nullptr) override
ImageType
Definition: vclenum.hxx:324
virtual void set_font(const vcl::Font &rFont) override
A toolbar: contains all those icons, typically below the menu bar.
Definition: toolbox.hxx:84
virtual void connect_key_release(const Link< const KeyEvent &, bool > &rLink) override
Definition: salvtables.cxx:483
virtual void child_grab_focus() override
virtual ~SalInstanceSpinButton() override
DECL_LINK(EventListener, VclWindowEvent &, void)
virtual void select_region(int nStartPos, int nEndPos) override
virtual OUString get_item_label(const OString &rIdent) const override
virtual int n_children() const =0
std::map< ToolBoxItemId, VclPtr< vcl::Window > > m_aFloats
virtual OUString get_label() const override
virtual void paste_clipboard() override
virtual void set_from_icon_name(const OUString &rIconName) override
virtual bool get_popup_shown() const override
Definition: salvtables.hxx:801
virtual OUString get_label() const override
virtual void set_title_background() override
Definition: salvtables.cxx:595
virtual int vadjustment_get_value() const override
virtual void end_editing() override
virtual bool get_active(const OString &rIdent) const =0
virtual bool get_iter_first(weld::TreeIter &rIter) const override
virtual void remove_page(const OString &rIdent) override
virtual void set_extra_row_indent(const weld::TreeIter &rIter, int nIndentLevel) override
virtual bool get_resizable() const override
DECL_LINK(ToggleHdl,::RadioButton &, void)
virtual bool get_editable() const override
virtual void set_image(VirtualDevice *pDevice) override
virtual void set_item_sensitive(const OString &rIdent, bool bSensitive) override
Definition: salvtables.cxx:884
virtual std::unique_ptr< weld::FormattedSpinButton > weld_formatted_spin_button(const OString &id) override
virtual int vadjustment_get_value() const override
virtual void insert_separator(int pos, const OUString &) override
virtual void set_column_editables(const std::vector< bool > &rEditables) override
virtual void set_digits(unsigned int digits) override
DECL_LINK(ToggleHdl, CheckBox &, void)
bool IsFirstFreeze() const
Definition: salvtables.hxx:203
SalInstanceTreeIter(SvTreeListEntry *pIter)
virtual bool changed_by_direct_pick() const override
virtual ~SalInstanceComboBoxWithoutEdit() override
virtual void set_size_request(int nWidth, int nHeight) override
Definition: salvtables.cxx:318
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:175
virtual void im_context_set_cursor_location(const tools::Rectangle &rCursorRect, int nExtTextInputWidth) override
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 bool get_entry_selection_bounds(int &, int &) override
void AddStringItem(SvTreeListEntry *pEntry, const OUString &rStr, int nCol)
VclPtr< VclDrawingArea > m_xDrawingArea
virtual void set_max_mru_count(int) override
virtual void grab_remove() override
Definition: salvtables.cxx:505
virtual OUString get_label() const override
virtual std::unique_ptr< weld::Widget > weld_widget(const OString &id) override
virtual ~SalInstanceButton() override
virtual void set_entry_message_type(weld::EntryMessageType) override
virtual void set_value(int value) override
Placement
Definition: weld.hxx:2284
virtual std::unique_ptr< weld::ScrolledWindow > weld_scrolled_window(const OString &id, bool bUserManagedScrolling=false) override
virtual bool has_focus() const override
Definition: salvtables.cxx:301
constexpr tools::Long Top() const
SalInstanceImage(FixedImage *pImage, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual std::unique_ptr< weld::TextView > weld_text_view(const OString &id) override
std::vector< std::unique_ptr< OUString > > m_aUserData
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:247
virtual a11yrelationset get_accessible_relation_set() override
virtual OUString get_item_label(const OString &rIdent) const override
virtual void connect_key_press(const Link< const KeyEvent &, bool > &rLink) override
Definition: salvtables.cxx:477
virtual void set_width_chars(int nChars) override
virtual void visible_foreach(const std::function< bool(weld::TreeIter &)> &func) override
virtual void popdown() override
VclPtr< Control > m_xLabel
Definition: salvtables.hxx:397
virtual void set_margin_bottom(int nMargin) override
Definition: salvtables.cxx:383
VclPtr<::IconView > m_xIconView
virtual void all_foreach(const std::function< bool(weld::TreeIter &)> &func) override
VclPtr< vcl::Window > m_xWidget
Definition: salvtables.hxx:173
tools::Long m_nOldEditWidthReq
Definition: salvtables.hxx:499
WinBits const WB_SORT
virtual void clear() override
virtual bool get_cursor(weld::TreeIter *pIter) const override
virtual ~SalInstanceCheckButton() override
virtual void set_hexpand(bool bExpand) override
Definition: salvtables.cxx:373
virtual void set_item_label(const OString &rIdent, const OUString &rText) override
virtual void connect_key_press(const Link< const KeyEvent &, bool > &rLink) override
virtual int get_n_items() const override
DECL_LINK(ChangeHdl, Edit &, void)
virtual void set_column_title(int nColumn, const OUString &rTitle) override
virtual bool get_editable() const override
virtual void set_title(const OUString &rTitle) override
virtual int get_width_chars() const override
void do_insert(const weld::TreeIter *pParent, int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, const VirtualDevice *pImageSurface, bool bChildrenOnDemand, weld::TreeIter *pRet, bool bIsSeparator)
virtual OUString get_label() const override
virtual OUString get_title() const override
virtual void set_custom_button(VirtualDevice *pDevice) override
virtual void insert(int pos, const OUString &rId, const OUString &rStr, const OUString *pIconName, VirtualDevice *pImageSurface, const css::uno::Reference< css::graphic::XGraphic > &rImage, TriState eCheckRadioFalse)=0
virtual std::unique_ptr< weld::MessageDialog > weld_message_dialog(const OString &id) override
virtual void remove_selection() override
virtual OUString get_label() const override
virtual void set_max_length(int nChars) override
virtual int get_grid_left_attach() const override
Definition: salvtables.cxx:362
const OUString * getEntryData(int index) const
Definition: salvtables.hxx:689
virtual void set_label(const OUString &rText) override
virtual OString popup_at_rect(weld::Widget *pParent, const tools::Rectangle &rRect, Placement ePlace=Placement::Under)=0
DECL_LINK(PaintHdl, target_and_area, void)
virtual void selected_foreach(const std::function< bool(weld::TreeIter &)> &func) override
virtual bool iter_has_child(const weld::TreeIter &rIter) const override
virtual void set_item_active(const OString &rIdent, bool bActive) override
Definition: salvtables.cxx:909
void set_text_emphasis(SvTreeListEntry *pEntry, bool bOn, int col=-1)
float GetDPIScaleFactor() const
Definition: outdev.hxx:400
virtual void unselect(int pos) override
virtual ~SalInstanceWidget() override
Definition: salvtables.cxx:535
sal_uInt16 GetItemId() const
Definition: event.hxx:243
virtual void set_item_tooltip_text(int nIndex, const OUString &rTip) override
virtual void clear() override
Definition: salvtables.hxx:790
virtual std::unique_ptr< weld::ComboBox > weld_combo_box(const OString &id) override
virtual void set_text(const OUString &rText) override
ColumnToggleType
Definition: weld.hxx:832
virtual std::unique_ptr< weld::Assistant > weld_assistant(const OString &id) override
virtual void set_entry_text(const OUString &) override
virtual bool iter_next(weld::TreeIter &rIter) const override
virtual void set_sort_column(int nColumn) override
void set_header_item_width(const std::vector< int > &rWidths)
virtual void unset_drag_dest_row() override
virtual void set_font_color(const Color &rColor) override
virtual int vadjustment_get_lower() const override
virtual void set_sort_func(const std::function< int(const weld::TreeIter &, const weld::TreeIter &)> &func) 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:699
virtual void set_busy_cursor(bool bBusy) override
Definition: salvtables.cxx:525
SalInstanceWindow(vcl::Window *pWindow, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual int get_cursor_index() const override
static TriState do_get_toggle(SvTreeListEntry *pEntry, int col)
virtual bool get_extents_relative_to(const Widget &rRelative, int &x, int &y, int &width, int &height) const override
Definition: salvtables.cxx:489
void enable_notify_events()
Definition: salvtables.cxx:555
virtual void click(const Point &rPos) override
virtual bool get_vexpand() const override
Definition: salvtables.cxx:379
virtual SystemEnvData get_system_data() const override
virtual OUString get_active_id() const override
Definition: salvtables.hxx:702
virtual void set_children_on_demand(const weld::TreeIter &rIter, bool bChildrenOnDemand) override
virtual int iter_n_children(const weld::TreeIter &rIter) const override
virtual css::uno::Reference< css::awt::XWindow > CreateChildFrame() override
virtual void set_buildable_name(const OString &rId) override
Definition: salvtables.cxx:348
virtual tools::Rectangle get_row_area(const weld::TreeIter &rIter) const override
VclPtr< PopupMenu > m_xMenu
Definition: salvtables.hxx:139
virtual void HandleEventListener(VclWindowEvent &rEvent) override
Definition: menu.hxx:115
virtual ~SalInstanceRadioButton() override
virtual void set_default_response(int nResponse) override
virtual int get_margin_top() const override
Definition: salvtables.cxx:389
A widget used to choose from a list of items.
Definition: weld.hxx:676
std::vector< std::shared_ptr< OUString > > m_aUserData
Definition: salvtables.hxx:669
virtual void set_font_color(const Color &rColor) override
virtual bool get_item_active(const OString &rIdent) const override
Definition: salvtables.cxx:915
virtual TreeView * get_drag_source() const override
virtual OUString filter(const OUString &rText) override
virtual OUString get_secondary_text() const override
SalInstanceIconView(::IconView *pIconView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
DECL_LINK(PopupModeEndHdl, FloatingWindow *, void)
SvTabListBox & getTreeView()
virtual void move(weld::Widget *pWidget, weld::Container *pNewParent) override
virtual std::unique_ptr< weld::MetricSpinButton > weld_metric_spin_button(const OString &id, FieldUnit eUnit) override
Link< OUString &, bool > & m_rInsertTextHdl
Definition: salvtables.hxx:541
Definition: ctrl.hxx:81
VclPtr< VirtualDevice > create_render_virtual_device() const override
Definition: salvtables.hxx:829
virtual bool has_entry() const override
virtual bool get_dest_row_at_pos(const Point &rPos, weld::TreeIter *pResult, bool bDnDMode) override
virtual void set_label_wrap(bool wrap) override
virtual std::unique_ptr< weld::Calendar > weld_calendar(const OString &id) override
virtual void set_inconsistent(bool) override
virtual void set_stack_background() override
Definition: salvtables.cxx:590
virtual OUString get_label(const OString &rIdent) const =0
virtual int n_children() const override
virtual void window_move(int x, int y) override
unsigned char sal_uInt8
void fire_signal_changed()
virtual void set_entry_completion(bool bEnable, bool bCaseSensitive=false) override
virtual void show() override
virtual void connect_get_property_tree(const Link< tools::JsonWriter &, void > &rLink) override
Definition: salvtables.cxx:580
virtual weld::Container * get_page(const OString &rIdent) const override
void do_set_toggle(SvTreeListEntry *pEntry, TriState eState, int col)
virtual OString get_current_page_ident() const override
virtual OString get_item_ident(int nIndex) const override
virtual std::unique_ptr< weld::EntryTreeView > weld_entry_tree_view(const OString &containerid, const OString &entryid, const OString &treeviewid) override
virtual OUString get_id(const weld::TreeIter &rIter) const override
virtual void draw(OutputDevice &rOutput, const Point &rPos, const Size &rSizePixel) override
virtual int get_iter_index_in_parent(const weld::TreeIter &rIter) const override
DECL_LINK(ClickHdl, ToolBox *, void)
virtual OutputDevice & get_ref_device() override
virtual void set_sensitive(bool sensitive) override
Definition: salvtables.cxx:276
virtual void set_custom_renderer(bool bOn) override
DECL_LINK(SelectHdl, ListBox &, void)
virtual void set_entry_placeholder_text(const OUString &) override
virtual void set_accessible_name(const OUString &rName) override
Definition: salvtables.cxx:397
sal_Int32 m_nOldBorderWidth
Definition: salvtables.hxx:500
virtual OUString get_selected_id() const override
virtual int get_selected_index() const override
virtual void set_active(bool active) override
Definition: image.hxx:39
virtual int run() override
static VclPtr< reference_type > Create(Arg &&...arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127
std::tuple< vcl::RenderContext &, const tools::Rectangle &, const SvTreeListEntry & > svtree_render_args
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 insert(int pos, const OUString *pStr, const OUString *pId, const OUString *pIconName, weld::TreeIter *pRet) override
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:360
virtual int count_selected_items() const override
int fromField(double fValue) const
virtual OUString get_selected_text() const override
SvTreeListEntry * GetPlaceHolderChild(SvTreeListEntry *pEntry) const
DECL_LINK(DeactivatePageHdl, TabControl *, bool)
bool IsDummyEntry(SvTreeListEntry *pEntry) const
virtual void get_range(int &min, int &max) const override
VclPtr< vcl::Window > m_xContainer
Definition: salvtables.hxx:418
virtual bool has_entry() const override
virtual void copy_clipboard() override
virtual void set_custom_renderer(bool bOn) override
OUString get_text(SvTreeListEntry *pEntry, int col) const
virtual void set_from_icon_name(const OUString &rIconName) override
virtual void expand_row(const weld::TreeIter &rIter) override
virtual vcl::Font get_font() override
Definition: salvtables.cxx:344
virtual void set_primary_text(const OUString &rText) override
virtual vcl::ImageType get_icon_size() const override
virtual bool get_visible() const override
Definition: salvtables.cxx:280
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface) override
SvLBoxButtonData m_aCheckButtonData
PointerStyle
Definition: ptrstyle.hxx:25
const tools::Long nButtonWidth
virtual void SetInstallLOKNotifierHdl(const Link< void *, vcl::ILibreOfficeKitNotifier * > &rLink) override
virtual void set_item_visible(const OString &rIdent, bool bShow) override
virtual OUString get_selected_text() const override
virtual void set_margin_end(int nMargin) override
Definition: salvtables.cxx:387
SalInstanceComboBox(vcl_type *pComboBox, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
Definition: salvtables.hxx:675
virtual OUString get_primary_text() const override
virtual ~SalInstanceExpander() override
TriState get_toggle(SvTreeListEntry *pEntry, int col) const
virtual void unselect(int pos) override
virtual void copy_clipboard() override
virtual void make_sorted() override
virtual bool get_inconsistent() const override
virtual bool get_item_visible(const OString &rIdent) const override
Definition: salvtables.cxx:904
A widget used to choose from a list of items and which has an entry.
Definition: combobox.hxx:38
virtual std::unique_ptr< weld::TreeView > weld_tree_view(const OString &id) override
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:221
VclPtr< SvTabListBox > m_xTreeView
virtual void HandleMouseEventListener(VclWindowEvent &rEvent)
Definition: salvtables.cxx:634
virtual void set_cursor(PointerStyle ePointerStyle) override
virtual void set_item_icon_name(const OString &rIdent, const OUString &rIconName) override
virtual bool equal(const TreeIter &rOther) const override
void update_checkbutton_column_width(SvTreeListEntry *pEntry)
virtual void set_grid_top_attach(int nAttach) override
Definition: salvtables.cxx:366
virtual OUString get_accessible_name() const override
Definition: salvtables.cxx:407
virtual bool get_inconsistent() const override
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:307
virtual void set_entry_text(const OUString &rText) override
virtual void set_vexpand(bool bExpand) override
Definition: salvtables.cxx:377
virtual void set_entry_max_length(int) override
virtual void set_cursor(const weld::TreeIter &rIter) override
SalInstanceSpinButton(FormattedField *pButton, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
virtual void hide() override
OString get_current_page_help_id() const
virtual void set_column_fixed_widths(const std::vector< int > &rWidths) override
virtual css::uno::Reference< css::awt::XWindow > GetXWindow() override
virtual void insert_separator(int pos, const OUString &) override
virtual void popup_at_rect(weld::Widget *pParent, const tools::Rectangle &rRect, weld::Placement ePlace=weld::Placement::Under) override
bool IsSelected() const
Definition: event.hxx:244
VclPtr< vcl::Window > m_aOwnedToplevel
Definition: salvtables.hxx:37
DECL_LINK(ClickHdl,::Button *, void)
virtual std::unique_ptr< weld::Button > weld_button(const OString &id) override
virtual OUString get_label() const override
virtual void grab_focus() override
DECL_STATIC_LINK(SalInstanceTreeView, FinishDragHdl, SvTreeListBox *, void)
virtual std::unique_ptr< weld::Label > weld_label(const OString &id) override
virtual bool get_iter_first(weld::TreeIter &rIter) const override
SalInstanceTreeIter(const SalInstanceTreeIter *pOrig)
virtual std::unique_ptr< weld::TreeIter > make_iterator(const weld::TreeIter *pOrig=nullptr) const override
virtual void set_label_wrap(bool wrap) override
virtual void set_entry_font(const vcl::Font &) override
virtual void thaw() override
Definition: salvtables.cxx:518
virtual void grab_focus() override
Definition: salvtables.cxx:294
virtual void get_property_tree(tools::JsonWriter &rJsonWriter) override
Definition: salvtables.cxx:585
Link<::Button *, void > const m_aOldClickHdl
WinBits const WB_FLATBUTTON
virtual void show() override
Definition: salvtables.cxx:314
virtual OUString get_mru_entries() const override
virtual void set_entry_max_length(int nChars) override
virtual void insert_item(int pos, const OUString &rId, const OUString &rStr, const OUString *pIconName, VirtualDevice *pImageSurface, TriState eCheckRadioFalse) override
virtual std::unique_ptr< weld::RadioButton > weld_radio_button(const OString &id) override
virtual void copy_entry_clipboard() override
virtual void set_label(const OUString &rText) 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
virtual ~SalInstanceComboBoxWithEdit() override
virtual Point get_position() const override
virtual void set_toolbar_background() override
Definition: salvtables.cxx:600
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_label(const OUString &rText) override
void set_label_wrap(bool bWrap)
virtual void set_entry_font(const vcl::Font &rFont) override
virtual OUString get_id(int pos) const override
Definition: salvtables.hxx:739
virtual bool get_expanded() const override
virtual void cut_clipboard() override
virtual void queue_draw() override
virtual std::unique_ptr< weld::Paned > weld_paned(const OString &id) override
virtual ~SalInstanceIconView() override
virtual int get_current_page() const override
SvTreeListEntry * iter
virtual void set_current_page(int nPage) override
virtual void connect_key_release(const Link< const KeyEvent &, bool > &rLink) override
int to_external_model(int col) const
virtual std::unique_ptr< weld::Popover > weld_popover(const OString &id) override
virtual void set_entry_width_chars(int) override
virtual Size get_size_request() const override
Definition: salvtables.cxx:324
virtual void insert_page(const OString &rIdent, const OUString &rLabel, int nPos) override
virtual bool get_cursor(weld::TreeIter *pIter) const override
DECL_LINK(ChangeHdl, Edit &, void)
ScopedVclPtr< MenuButton > m_xMenuButton
Definition: salvtables.hxx:671
Formatter & m_rFormatter
Definition: salvtables.hxx:620
virtual void set_centered_column(int nCol) override
virtual std::unique_ptr< weld::LinkButton > weld_link_button(const OString &id) override
virtual void response(int nResponse) override
virtual bool can_move_cursor_with_down() const override
virtual void set_column_custom_renderer(int nColumn, bool bEnable) override
VclPtr< DockingWindow > m_xPopover
virtual void resize_to_request() override
virtual bool is_visible() const override
Definition: salvtables.cxx:282
bool IsLastThaw() const
Definition: salvtables.hxx:204
SalInstanceTextView(VclMultiLineEdit *pTextView, SalInstanceBuilder *pBuilder, bool bTakeOwnership)
VclPtr< VclExpander > m_xExpander
sal_uInt16 nPos
virtual void set_label(const OUString &rText) override
virtual void set_font(const vcl::Font &rFont) override
virtual void insert_separator(int pos, const OUString &rId) override
void set_id(SvTreeListEntry *pEntry, const OUString &rId)
virtual void set_font(const vcl::Font &rFont) override
virtual weld::Container * weld_message_area() override
void ensure_event_listener()
Definition: salvtables.cxx:215
virtual void set_editable(bool bEditable) override
virtual int find_text(const OUString &rText) const override
virtual void set_cursor(int pos) override
vcl::Window * getWidget() const
Definition: salvtables.cxx:549
virtual OString get_window_state(WindowStateMask nMask) const override
virtual bool get_inconsistent() const override
virtual void set_item_visible(const OString &rIdent, bool bVisible) override
Definition: salvtables.cxx:894
virtual void connect_editing(const Link< const weld::TreeIter &, bool > &rStartLink, const Link< const iter_string &, bool > &rEndLink) override
constexpr tools::Long GetHeight() const
virtual void set_item_label(int nIndex, const OUString &rLabel) override
virtual std::unique_ptr< weld::Box > weld_box(const OString &id) override
virtual int get_sort_column() const override
virtual void select(int pos) override
OUString sId
virtual void paste_entry_clipboard() override
virtual std::unique_ptr< weld::Window > create_screenshot_window() override