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