summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-04 14:19:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-04 17:14:27 +0000
commita19b18ad7c9eb0197c10e6d7e451ec4542e4bc9e (patch)
tree5c7c440cdd8e279c51681a5119beef21246b4ca9 /include
parenta989a0b1f2b425f05b58d0e44ce2de31c842ed65 (diff)
move now combined ColorLB to location of last user
Change-Id: I5dc1204c28b65d5dca993bf38aea217bbb49e913
Diffstat (limited to 'include')
-rw-r--r--include/svx/dlgctrl.hxx74
1 files changed, 0 insertions, 74 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index cb0eec08511f..39cc688b4ded 100644
--- a/include/svx/dlgctrl.hxx
+++ b/include/svx/dlgctrl.hxx
@@ -207,80 +207,6 @@ public:
/************************************************************************/
-class SAL_WARN_UNUSED SVX_DLLPUBLIC ColorLB : public ListBox
-{
- ImpColorList* pColorList; // separate liste, in case of user data are required from outside
- Size aImageSize;
-
- using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
- SVT_DLLPRIVATE void ImplDestroyColorEntries();
-
-public:
- ColorLB( vcl::Window* pParent,
- WinBits nWinStyle = WB_BORDER );
- virtual ~ColorLB() override;
- virtual void dispose() override;
-
- virtual void UserDraw( const UserDrawEvent& rUDEvt ) override;
-
- using ListBox::InsertEntry;
- sal_Int32 InsertEntry( const OUString& rStr,
- sal_Int32 nPos = LISTBOX_APPEND );
- sal_Int32 InsertEntry( const Color& rColor, const OUString& rStr,
- sal_Int32 nPos = LISTBOX_APPEND );
- bool IsAutomaticSelected() { return !GetSelectEntryPos(); }
- using ListBox::RemoveEntry;
- void RemoveEntry( sal_Int32 nPos );
- void Clear();
- void CopyEntries( const ColorLB& rBox );
-
- using ListBox::GetEntryPos;
- sal_Int32 GetEntryPos( const Color& rColor ) const;
- Color GetEntryColor( sal_Int32 nPos ) const;
-
- void SelectEntry( const OUString& rStr )
- { ListBox::SelectEntry( rStr ); }
-
- void SelectEntry( const Color& rColor )
- {
- sal_Int32 nPos = GetEntryPos( rColor );
- if ( nPos != LISTBOX_ENTRY_NOTFOUND )
- ListBox::SelectEntryPos( nPos );
- }
-
- Color GetSelectEntryColor() const
- {
- sal_Int32 nPos = GetSelectEntryPos();
- Color aColor;
- if ( nPos != LISTBOX_ENTRY_NOTFOUND )
- aColor = GetEntryColor( nPos );
- return aColor;
- }
-
- using ListBox::IsEntrySelected;
-
- bool IsEntrySelected(const Color& rColor) const
- {
- sal_Int32 nPos = GetEntryPos( rColor );
- if ( nPos != LISTBOX_ENTRY_NOTFOUND )
- return IsEntryPosSelected( nPos );
- else
- return false;
- }
-
- void Fill( const XColorListRef &pTab );
-
- void Append( const XColorEntry& rEntry );
- void Modify( const XColorEntry& rEntry, sal_Int32 nPos );
-
-private:
- ColorLB( const ColorLB& ) = delete;
- ColorLB& operator =( const ColorLB& ) = delete;
-};
-
-/************************************************************************/
-
class SAL_WARN_UNUSED SVX_DLLPUBLIC HatchingLB : public ListBox
{
public: