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