summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-05 20:28:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-07 21:04:50 +0000
commit64a708cba9b954afe3331f63c58218eb53b3d0ce (patch)
treeddc1bea3b63f32a1c6d377c1d1dd7aee0803fb70 /include/svtools
parentf01c49c4a89ecad2376fd0023625186e5cac642e (diff)
Revert "Reverts a commit series that cripple windows ci."
with addition of... - svxlo-SvxColorListBox + svxcorelo-SvxColorListBox This reverts commit db380aab1063e8a5e40111c40ee9f7921aa82601. Change-Id: I3af7aa0abb1a430bce64188244404fcbd480b128 Reviewed-on: https://gerrit.libreoffice.org/30598 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/ctrlbox.hxx82
-rw-r--r--include/svtools/svtools.hrc2
2 files changed, 0 insertions, 84 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index c1ad071123eb..cb5e29d8ada3 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -33,26 +33,13 @@
#include <o3tl/typed_flags_set.hxx>
class FontList;
-class ImplColorListData;
class ImpLineListData;
-typedef ::std::vector< ImplColorListData* > ImpColorList;
typedef ::std::vector< ImpLineListData* > ImpLineList;
typedef ::std::vector< FontMetric > ImplFontList;
/*************************************************************************
-Description
-============
-
-class ColorListBox
-
-Description
-
-Allows color selection
-
---------------------------------------------------------------------------
-
class LineListBox
Description
@@ -141,75 +128,6 @@ FontList; FontNameBox; FontStyleBox; FontSizeMenu
*************************************************************************/
-class SVT_DLLPUBLIC ColorListBox : 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:
- ColorListBox( vcl::Window* pParent,
- WinBits nWinStyle = WB_BORDER );
- virtual ~ColorListBox() 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 );
- void InsertAutomaticEntryColor(const Color &rAutoColorValue);
- bool IsAutomaticSelected() { return !GetSelectEntryPos(); }
- using ListBox::RemoveEntry;
- void RemoveEntry( sal_Int32 nPos );
- void Clear();
- void CopyEntries( const ColorListBox& 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 );
- Color GetSelectEntryColor() const;
- 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;
- }
-
-private:
- ColorListBox( const ColorListBox& ) = delete;
- ColorListBox& operator =( const ColorListBox& ) = delete;
-};
-
-inline void ColorListBox::SelectEntry( const Color& rColor )
-{
- sal_Int32 nPos = GetEntryPos( rColor );
- if ( nPos != LISTBOX_ENTRY_NOTFOUND )
- ListBox::SelectEntryPos( nPos );
-}
-
-inline Color ColorListBox::GetSelectEntryColor() const
-{
- sal_Int32 nPos = GetSelectEntryPos();
- Color aColor;
- if ( nPos != LISTBOX_ENTRY_NOTFOUND )
- aColor = GetEntryColor( nPos );
- return aColor;
-}
-
/**
Class computing border widths shared between Line style listbox and the
SvxBorderLine implementation.
diff --git a/include/svtools/svtools.hrc b/include/svtools/svtools.hrc
index 92cc8092ab7d..c149f8643c31 100644
--- a/include/svtools/svtools.hrc
+++ b/include/svtools/svtools.hrc
@@ -26,8 +26,6 @@
// various unsorted stuff
-#define STR_SVT_AUTOMATIC_COLOR (RID_SVTOOLS_START+16)
-
#define STR_SVT_FILEVIEW_COLUMN_TITLE (RID_SVTOOLS_START + 20)
#define STR_SVT_FILEVIEW_COLUMN_SIZE (RID_SVTOOLS_START + 21)
#define STR_SVT_FILEVIEW_COLUMN_DATE (RID_SVTOOLS_START + 22)