summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-24 16:39:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-28 14:03:24 +0200
commit0b3ca6a1fa6bbbbd2eaaf97254fd1d45e2ac7b3a (patch)
tree2b22f863b72463bebb8b26225f378aea0fefddb1 /include
parent68de1021353902d48ddd712f5e6fedc51c57936d (diff)
weld SvxNumberFormatTabPage
Change-Id: Ia6e6497d5c9b6c47e34e5cb5b3913d25e73c3a69 Reviewed-on: https://gerrit.libreoffice.org/60944 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/langbox.hxx9
-rw-r--r--include/vcl/lstbox.hxx2
-rw-r--r--include/vcl/weld.hxx15
3 files changed, 19 insertions, 7 deletions
diff --git a/include/svx/langbox.hxx b/include/svx/langbox.hxx
index c16c3aca034a..5d4ae84297c0 100644
--- a/include/svx/langbox.hxx
+++ b/include/svx/langbox.hxx
@@ -165,15 +165,24 @@ public:
sal_Int32 SaveEditedAsEntry();
void connect_changed(const Link<weld::ComboBox&, void>& rLink) { m_aChangeHdl = rLink; }
+ void connect_focus_in(const Link<weld::Widget&, void>& rLink) { m_xControl->connect_focus_in(rLink); }
void save_active_id() { m_eSavedLanguage = get_active_id(); }
LanguageType get_saved_active_id() const { return m_eSavedLanguage; }
bool get_active_id_changed_from_saved() const { return m_eSavedLanguage != get_active_id(); }
+ void show() { m_xControl->show(); }
void hide() { m_xControl->hide(); }
+ void show(bool bShow) { if (bShow) show(); else hide(); }
void set_sensitive(bool bSensitive) { m_xControl->set_sensitive(bSensitive); }
void set_active(int nPos) { m_xControl->set_active(nPos); }
int get_active() const { return m_xControl->get_active(); }
void set_active_id(const LanguageType eLangType);
+ OUString get_active_text() const { return m_xControl->get_active_text(); }
+ bool get_visible() const { return m_xControl->get_visible(); }
LanguageType get_active_id() const;
+ void remove_id(const LanguageType eLangType);
+ void append(const LanguageType eLangType, const OUString& rStr);
+ int find_text(const OUString& rStr) const { return m_xControl->find_text(rStr); }
+ const weld::ComboBox* get_widget() const { return m_xControl.get(); }
};
class SVX_DLLPUBLIC SvxLanguageComboBox : public ComboBox, public SvxLanguageBoxBase
diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx
index fbc6bbca152b..a61c1b93e7a3 100644
--- a/include/vcl/lstbox.hxx
+++ b/include/vcl/lstbox.hxx
@@ -180,6 +180,8 @@ public:
void* GetEntryData( sal_Int32 nPos ) const;
void* GetSelectedEntryData() const { return GetEntryData(GetSelectedEntryPos()); }
+ void SetEntryTextColor(sal_Int32 nPos, const Color* pTextColor);
+
/** this methods stores a combination of flags from the
ListBoxEntryFlags::* defines at the given entry.
See description of the possible ListBoxEntryFlags::* flags
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index a9f5c1c38d07..1ca91e7b4fa9 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -327,13 +327,6 @@ public:
insert(-1, rId, rStr, &rImage);
}
- virtual int n_children() const = 0;
- virtual void clear() = 0;
- virtual int get_height_rows(int nRows) const = 0;
-
- virtual void set_selection_mode(bool bMultiple) = 0;
- virtual int count_selected_rows() const = 0;
-
void connect_changed(const Link<TreeView&, void>& rLink) { m_aChangeHdl = rLink; }
void connect_row_activated(const Link<TreeView&, void>& rLink) { m_aRowActivatedHdl = rLink; }
@@ -344,6 +337,7 @@ public:
virtual void remove(int pos) = 0;
virtual void set_top_entry(int pos) = 0;
virtual std::vector<int> get_selected_rows() const = 0;
+ virtual void set_font_color(int pos, const Color& rColor) const = 0;
//by text
virtual OUString get_text(int pos) const = 0;
@@ -374,6 +368,13 @@ public:
//all of them
void select_all() { unselect(-1); }
void unselect_all() { select(-1); }
+
+ virtual int n_children() const = 0;
+ virtual void clear() = 0;
+ virtual int get_height_rows(int nRows) const = 0;
+
+ virtual void set_selection_mode(bool bMultiple) = 0;
+ virtual int count_selected_rows() const = 0;
};
class VCL_DLLPUBLIC Button : virtual public Container