summaryrefslogtreecommitdiffstats
path: root/include/sfx2/chalign.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-23 12:44:45 +0200
committerNoel Grandin <noel@peralex.com>2015-03-24 09:36:56 +0200
commitffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (patch)
tree907e2824a4cb8423bef30382753bf78a987e2438 /include/sfx2/chalign.hxx
parentconvert SfxPopupAction to enum class (diff)
downloadcore-ffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea.tar.gz
core-ffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea.zip
convert SfxChildAlignment to enum class
Change-Id: I9013bc6dace79421b0a9ad0401a4fb59365d4dcf
Diffstat (limited to 'include/sfx2/chalign.hxx')
-rw-r--r--include/sfx2/chalign.hxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/sfx2/chalign.hxx b/include/sfx2/chalign.hxx
index 33511522732c..5572f111599b 100644
--- a/include/sfx2/chalign.hxx
+++ b/include/sfx2/chalign.hxx
@@ -23,31 +23,31 @@
// (Explorer!), then horizontally docked child windows (Browser!),
// then the format bar, status bar, and at the end of the toolbar.
-enum SfxChildAlignment
+enum class SfxChildAlignment
{
- SFX_ALIGN_HIGHESTTOP, // for example Navigation bar
- SFX_ALIGN_LOWESTBOTTOM,
- SFX_ALIGN_FIRSTLEFT,
- SFX_ALIGN_LASTRIGHT,
- SFX_ALIGN_LEFT, // for example SplitWindow
- SFX_ALIGN_RIGHT,
- SFX_ALIGN_LASTLEFT,
- SFX_ALIGN_FIRSTRIGHT,
- SFX_ALIGN_TOP, // for example Hyperlink-Builder, SplitWindow
- SFX_ALIGN_BOTTOM, // for example SplitWindow
- SFX_ALIGN_TOOLBOXTOP, // for example Objekt bar
- SFX_ALIGN_TOOLBOXBOTTOM,
- SFX_ALIGN_LOWESTTOP, // for example Calc bar
- SFX_ALIGN_HIGHESTBOTTOM, // for example Status bar
- SFX_ALIGN_TOOLBOXLEFT, // for example Tool bar
- SFX_ALIGN_TOOLBOXRIGHT,
- SFX_ALIGN_NOALIGNMENT // all FloatingWindows
+ HIGHESTTOP, // for example Navigation bar
+ LOWESTBOTTOM,
+ FIRSTLEFT,
+ LASTRIGHT,
+ LEFT, // for example SplitWindow
+ RIGHT,
+ LASTLEFT,
+ FIRSTRIGHT,
+ TOP, // for example Hyperlink-Builder, SplitWindow
+ BOTTOM, // for example SplitWindow
+ TOOLBOXTOP, // for example Objekt bar
+ TOOLBOXBOTTOM,
+ LOWESTTOP, // for example Calc bar
+ HIGHESTBOTTOM, // for example Status bar
+ TOOLBOXLEFT, // for example Tool bar
+ TOOLBOXRIGHT,
+ NOALIGNMENT // all FloatingWindows
};
// Verifies that a valid alignment is used
inline bool SfxChildAlignValid( SfxChildAlignment eAlign )
{
- return ( eAlign >= SFX_ALIGN_HIGHESTTOP && eAlign <= SFX_ALIGN_NOALIGNMENT );
+ return ( eAlign >= SfxChildAlignment::HIGHESTTOP && eAlign <= SfxChildAlignment::NOALIGNMENT );
}
#endif