diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-06 09:45:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-06 14:43:09 +0200 |
commit | 66ce7a7bcae0e0e38fc56f6780eec86e06acfd90 (patch) | |
tree | 1c21bf06e39274689674653428ca984ccc8ac22d /include/vcl/weld.hxx | |
parent | 19f331ca6aa87a438b1eeabef72978ddbfb0e747 (diff) |
drop ownership argument
we have never needed to diverge from the defaults of true for toplevels
and false for non-toplevels
Change-Id: I884b1e221d0ec44895214363d391c27e3e1707f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104019
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 107 |
1 files changed, 38 insertions, 69 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 6f227c7cbb6a..db1b6d519d1f 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -2238,80 +2238,49 @@ public: class VCL_DLLPUBLIC Builder { public: - virtual std::unique_ptr<MessageDialog> weld_message_dialog(const OString& id, - bool bTakeOwnership = true) - = 0; - virtual std::unique_ptr<Dialog> weld_dialog(const OString& id, bool bTakeOwnership = true) = 0; - virtual std::unique_ptr<Assistant> weld_assistant(const OString& id, bool bTakeOwnership = true) - = 0; - virtual std::unique_ptr<Widget> weld_widget(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<Container> weld_container(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Box> weld_box(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<Paned> weld_paned(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<Button> weld_button(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<MenuButton> weld_menu_button(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Frame> weld_frame(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<ScrolledWindow> weld_scrolled_window(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Notebook> weld_notebook(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<ToggleButton> weld_toggle_button(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<RadioButton> weld_radio_button(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<CheckButton> weld_check_button(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<LinkButton> weld_link_button(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<SpinButton> weld_spin_button(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<MetricSpinButton> - weld_metric_spin_button(const OString& id, FieldUnit eUnit, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<FormattedSpinButton> - weld_formatted_spin_button(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<ComboBox> weld_combo_box(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<TreeView> weld_tree_view(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<IconView> weld_icon_view(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Label> weld_label(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<TextView> weld_text_view(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Expander> weld_expander(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Entry> weld_entry(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<Scale> weld_scale(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<ProgressBar> weld_progress_bar(const OString& id, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Spinner> weld_spinner(const OString& id, bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<Image> weld_image(const OString& id, bool bTakeOwnership = false) = 0; - virtual std::unique_ptr<Calendar> weld_calendar(const OString& id, bool bTakeOwnership = false) + virtual std::unique_ptr<MessageDialog> weld_message_dialog(const OString& id) = 0; + virtual std::unique_ptr<Dialog> weld_dialog(const OString& id) = 0; + virtual std::unique_ptr<Assistant> weld_assistant(const OString& id) = 0; + virtual std::unique_ptr<Widget> weld_widget(const OString& id) = 0; + virtual std::unique_ptr<Container> weld_container(const OString& id) = 0; + virtual std::unique_ptr<Box> weld_box(const OString& id) = 0; + virtual std::unique_ptr<Paned> weld_paned(const OString& id) = 0; + virtual std::unique_ptr<Button> weld_button(const OString& id) = 0; + virtual std::unique_ptr<MenuButton> weld_menu_button(const OString& id) = 0; + virtual std::unique_ptr<Frame> weld_frame(const OString& id) = 0; + virtual std::unique_ptr<ScrolledWindow> weld_scrolled_window(const OString& id) = 0; + virtual std::unique_ptr<Notebook> weld_notebook(const OString& id) = 0; + virtual std::unique_ptr<ToggleButton> weld_toggle_button(const OString& id) = 0; + virtual std::unique_ptr<RadioButton> weld_radio_button(const OString& id) = 0; + virtual std::unique_ptr<CheckButton> weld_check_button(const OString& id) = 0; + virtual std::unique_ptr<LinkButton> weld_link_button(const OString& id) = 0; + virtual std::unique_ptr<SpinButton> weld_spin_button(const OString& id) = 0; + virtual std::unique_ptr<MetricSpinButton> weld_metric_spin_button(const OString& id, + FieldUnit eUnit) = 0; + virtual std::unique_ptr<FormattedSpinButton> weld_formatted_spin_button(const OString& id) = 0; + virtual std::unique_ptr<ComboBox> weld_combo_box(const OString& id) = 0; + virtual std::unique_ptr<TreeView> weld_tree_view(const OString& id) = 0; + virtual std::unique_ptr<IconView> weld_icon_view(const OString& id) = 0; + virtual std::unique_ptr<Label> weld_label(const OString& id) = 0; + virtual std::unique_ptr<TextView> weld_text_view(const OString& id) = 0; + virtual std::unique_ptr<Expander> weld_expander(const OString& id) = 0; + virtual std::unique_ptr<Entry> weld_entry(const OString& id) = 0; + virtual std::unique_ptr<Scale> weld_scale(const OString& id) = 0; + virtual std::unique_ptr<ProgressBar> weld_progress_bar(const OString& id) = 0; + virtual std::unique_ptr<Spinner> weld_spinner(const OString& id) = 0; + virtual std::unique_ptr<Image> weld_image(const OString& id) = 0; + virtual std::unique_ptr<Calendar> weld_calendar(const OString& id) = 0; virtual std::unique_ptr<DrawingArea> weld_drawing_area(const OString& id, const a11yref& rA11yImpl = nullptr, - FactoryFunction pUITestFactoryFunction = nullptr, void* pUserData = nullptr, - bool bTakeOwnership = false) - = 0; - virtual std::unique_ptr<EntryTreeView> - weld_entry_tree_view(const OString& containerid, const OString& entryid, - const OString& treeviewid, bool bTakeOwnership = false) + FactoryFunction pUITestFactoryFunction = nullptr, void* pUserData = nullptr) = 0; - virtual std::unique_ptr<Menu> weld_menu(const OString& id, bool bTakeOwnership = true) = 0; - virtual std::unique_ptr<Toolbar> weld_toolbar(const OString& id, bool bTakeOwnership = false) + virtual std::unique_ptr<EntryTreeView> weld_entry_tree_view(const OString& containerid, + const OString& entryid, + const OString& treeviewid) = 0; + virtual std::unique_ptr<Menu> weld_menu(const OString& id) = 0; + virtual std::unique_ptr<Toolbar> weld_toolbar(const OString& id) = 0; virtual std::unique_ptr<SizeGroup> create_size_group() = 0; /* return a Dialog suitable to take a screenshot of containing the contents of the .ui file. |