diff options
author | Simon Long <simon@raspberrypi.org> | 2015-07-08 18:02:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-09 15:07:24 +0000 |
commit | 74407aef94b6d8dfdd69891c4a6e578587ef3e71 (patch) | |
tree | cc8c8f9cde981f90760cb7fdaa02688713989f83 /include/vcl/outdev.hxx | |
parent | tdf#92645 svx rendercontext: fix missing paint on shape text editing (diff) | |
download | core-74407aef94b6d8dfdd69891c4a6e578587ef3e71.tar.gz core-74407aef94b6d8dfdd69891c4a6e578587ef3e71.zip |
tdf#92630 Enable auto-accelerator behaviour for gtk
Change-Id: I671177dd1f9e535c28a29bcbd6b74f1c789371ea
Reviewed-on: https://gerrit.libreoffice.org/16883
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/outdev.hxx')
-rw-r--r-- | include/vcl/outdev.hxx | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 3e73b313c530..8f39b2febe13 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -160,30 +160,29 @@ typedef std::vector< Rectangle > MetricVector; // Flags for DrawText() enum class DrawTextFlags { - NONE = 0x0000, - Disable = 0x0001, - Mnemonic = 0x0002, - Mono = 0x0004, - Clip = 0x0008, - Left = 0x0010, - Center = 0x0020, - Right = 0x0040, - Top = 0x0080, - VCenter = 0x0100, - Bottom = 0x0200, - EndEllipsis = 0x0400, - PathEllipsis = 0x0800, - MultiLine = 0x1000, - WordBreak = 0x2000, - NewsEllipsis = 0x4000, - // in the long run we should make text style flags longer - // but at the moment we can get away with this 2 bit field for ellipsis style - CenterEllipsis = EndEllipsis | PathEllipsis, - WordBreakHyphenation = 0x8000 | WordBreak, + NONE = 0x00000000, + Disable = 0x00000001, + Mnemonic = 0x00000002, + Mono = 0x00000004, + Clip = 0x00000008, + Left = 0x00000010, + Center = 0x00000020, + Right = 0x00000040, + Top = 0x00000080, + VCenter = 0x00000100, + Bottom = 0x00000200, + EndEllipsis = 0x00000400, + PathEllipsis = 0x00000800, + MultiLine = 0x00001000, + WordBreak = 0x00002000, + NewsEllipsis = 0x00004000, + WordBreakHyphenation = 0x00008000 | WordBreak, + CenterEllipsis = 0x00010000, + HideMnemonic = 0x00020000, }; namespace o3tl { - template<> struct typed_flags<DrawTextFlags> : is_typed_flags<DrawTextFlags, 0xffff> {}; + template<> struct typed_flags<DrawTextFlags> : is_typed_flags<DrawTextFlags, 0x3ffff> {}; } // Flags for DrawImage(), these must match the definitions in css::awt::ImageDrawMode |