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