diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-16 15:20:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-17 07:57:52 +0200 |
commit | 14fb8f7960249271fd73123c056057ce49980667 (patch) | |
tree | e6c456da0373f2685d2da9d1fb785711055d5855 /basctl/source/basicide/moduldlg.hxx | |
parent | f1421a3e12167fafc966d069b3a4f7eb84ffda05 (diff) |
convert ObjectMode to scoped enum
and drop unused Method enumerator
Change-Id: I5ba25fbeaf67280f748acf8d84ab903a4c71e40b
Diffstat (limited to 'basctl/source/basicide/moduldlg.hxx')
-rw-r--r-- | basctl/source/basicide/moduldlg.hxx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/basctl/source/basicide/moduldlg.hxx b/basctl/source/basicide/moduldlg.hxx index c196c48f002b..500dc04db821 100644 --- a/basctl/source/basicide/moduldlg.hxx +++ b/basctl/source/basicide/moduldlg.hxx @@ -34,16 +34,12 @@ class SvxPasswordDialog; namespace basctl { -namespace ObjectMode +enum class ObjectMode { - enum Mode - { - Library = 1, - Module = 2, - Dialog = 3, - Method = 4, - }; -} + Library = 1, + Module = 2, + Dialog = 3, +}; class NewObjectDialog : public ModalDialog { @@ -53,7 +49,7 @@ private: DECL_LINK(OkButtonHandler, Button*, void); public: - NewObjectDialog (vcl::Window* pParent, ObjectMode::Mode, bool bCheckName = false); + NewObjectDialog (vcl::Window* pParent, ObjectMode, bool bCheckName = false); virtual ~NewObjectDialog() override; virtual void dispose() override; OUString GetObjectName() const { return m_pEdit->GetText(); } @@ -118,7 +114,7 @@ public: class CheckBox : public SvTabListBox { private: - ObjectMode::Mode eMode; + ObjectMode eMode; SvLBoxButtonData* pCheckButton; ScriptDocument m_aDocument; void Init(); @@ -140,7 +136,7 @@ public: void SetDocument( const ScriptDocument& rDocument ) { m_aDocument = rDocument; } - void SetMode (ObjectMode::Mode); + void SetMode(ObjectMode); }; class LibDialog: public ModalDialog |