summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/standardcontrol.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-04 13:47:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-04 17:14:26 +0000
commit8bea644d6117a49405e6426dc97214220fc869d1 (patch)
tree3a5574fcbd6062527dbb57bc91a38b58b11e78bc /extensions/source/propctrlr/standardcontrol.hxx
parentd2ce812f1d3a7a2aad89ca0bd11948b63d2db7b0 (diff)
extensions leaks out details of Color Selector, patch it up
and rebase it on SvxColorListBox Change-Id: I3afef689ab0dc3c34e465810d82bf21797907558
Diffstat (limited to 'extensions/source/propctrlr/standardcontrol.hxx')
-rw-r--r--extensions/source/propctrlr/standardcontrol.hxx24
1 files changed, 8 insertions, 16 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx
index ab026d6e2ec4..d3f64e703276 100644
--- a/extensions/source/propctrlr/standardcontrol.hxx
+++ b/extensions/source/propctrlr/standardcontrol.hxx
@@ -34,6 +34,7 @@
#include <vcl/combobox.hxx>
#include <svtools/calendar.hxx>
#include <svtools/fmtfield.hxx>
+#include <svx/colorbox.hxx>
#include <set>
@@ -60,18 +61,18 @@ namespace pcr
TListboxWindow::SetSelectHdl( LINK(this, ListLikeControlWithModifyHandler, OnSelect) );
}
- void SetModifyHdl( const Link<ListBox&,void>& _rLink ) { aModifyHdl = _rLink;; }
+ void SetModifyHdl( const Link<TListboxWindow&,void>& _rLink ) { aModifyHdl = _rLink;; }
private:
- DECL_LINK(OnSelect, ListBox&, void);
- Link<ListBox&,void> aModifyHdl;
+ DECL_LINK(OnSelect, TListboxWindow&, void);
+ Link<TListboxWindow&,void> aModifyHdl;
};
template< class LISTBOX_WINDOW >
- void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::LinkStubOnSelect(void * instance, ListBox& data) {
+ void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::LinkStubOnSelect(void * instance, LISTBOX_WINDOW& data) {
return static_cast<ListLikeControlWithModifyHandler< LISTBOX_WINDOW > *>(instance)->OnSelect(data);
}
template< class LISTBOX_WINDOW >
- void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::OnSelect(ListBox& rListBox)
+ void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::OnSelect(LISTBOX_WINDOW& rListBox)
{
aModifyHdl.Call(rListBox);
}
@@ -260,14 +261,11 @@ namespace pcr
//= OColorControl
- typedef CommonBehaviourControl < css::inspection::XStringListControl
- , ListLikeControlWithModifyHandler< ColorListBox >
+ typedef CommonBehaviourControl < css::inspection::XPropertyControl
+ , ListLikeControlWithModifyHandler<SvxColorListBox>
> OColorControl_Base;
class OColorControl : public OColorControl_Base
{
- private:
- ::std::set< OUString > m_aNonColorEntries;
-
public:
OColorControl( vcl::Window* pParent, WinBits nWinStyle );
@@ -276,12 +274,6 @@ namespace pcr
virtual void SAL_CALL setValue( const css::uno::Any& _value ) throw (css::beans::IllegalTypeException, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Type SAL_CALL getValueType() throw (css::uno::RuntimeException, std::exception) override;
- // XStringListControl
- virtual void SAL_CALL clearList( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL prependListEntry( const OUString& NewEntry ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL appendListEntry( const OUString& NewEntry ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getListEntries( ) throw (css::uno::RuntimeException, std::exception) override;
-
protected:
// CommonBehaviourControlHelper::setModified
virtual void setModified() override;