summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-15 15:13:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 07:14:19 +0100
commit0045ee9b7f028dba5f9a3cad43125c9154169ef0 (patch)
treef02b7c0377175fb1dd02463e312b489ea5437db1 /include/svtools
parent65102921c710651bc11cf357878bd0af76d2dd78 (diff)
convert ColorPickerMode to scoped enum
and drop unused Add constant Change-Id: I4e4f0d35e4d081883b78e0205ffd7086c9cadf04 Reviewed-on: https://gerrit.libreoffice.org/46587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/colrdlg.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/svtools/colrdlg.hxx b/include/svtools/colrdlg.hxx
index af7c27c6b441..69def8510b35 100644
--- a/include/svtools/colrdlg.hxx
+++ b/include/svtools/colrdlg.hxx
@@ -28,8 +28,9 @@ namespace vcl { class Window; }
namespace svtools
{
- // SELECT is the default
- enum ColorPickerMode { ColorPickerMode_SELECT = 0, ColorPickerMode_ADD = 1, ColorPickerMode_MODIFY = 2 };
+ // Select is the default.
+ // These values must match the constants used in ColorPickerDialog in cui/source/dialogs/colorpicker.cxx
+ enum class ColorPickerMode { Select = 0, Modify = 2 };
}
class SVT_DLLPUBLIC SvColorDialog final
@@ -41,14 +42,14 @@ public:
void SetColor( const Color& rColor );
const Color& GetColor() const { return maColor;}
- void SetMode( sal_Int16 eMode );
+ void SetMode( svtools::ColorPickerMode eMode );
short Execute();
private:
VclPtr<vcl::Window> mpParent;
Color maColor;
- sal_Int16 meMode;
+ svtools::ColorPickerMode meMode;
};
#endif // INCLUDED_SVTOOLS_COLRDLG_HXX