diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-16 11:51:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-16 12:27:08 +0000 |
commit | 3c8d3ef10267fb0a50686f49c15a3e4ab35503d1 (patch) | |
tree | 0a7c06b86d414fd5df6260ee8e79e5b4d5c4df56 /svx/inc | |
parent | 42c0fa1b60fa0780ed4ac57679f118cab8f1f143 (diff) |
Related: fdo#59182 stop SvxShowCharSet resizing itself
instead of resizing itself when given a size, leading
to lots of flicker as the widget fights the layout,
instead accept the given size, center the drawing in
that area, and tweak the cell highlight drawing
code to fill that extra gap space when edge cells
are selected
Change-Id: Iee0b44c0939cf32284907ad1fcd57e2e722837d4
Diffstat (limited to 'svx/inc')
-rw-r--r-- | svx/inc/svx/charmap.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/inc/svx/charmap.hxx b/svx/inc/svx/charmap.hxx index a244f3a35eb5..8f1ff765f78d 100644 --- a/svx/inc/svx/charmap.hxx +++ b/svx/inc/svx/charmap.hxx @@ -109,14 +109,14 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > m_xAccessible; long nX; long nY; + long m_nXGap; + long m_nYGap; sal_Bool bDrag; sal_Int32 nSelectedIndex; FontCharMap maFontCharMap; ScrollBar aVscrollSB; - Size aOrigSize; - Point aOrigPos; private: void DrawChars_Impl( int n1, int n2); @@ -126,6 +126,7 @@ private: DECL_LINK(VscrollHdl, void *); void init(); + Rectangle getGridRectangle(const Point &rPointUL, const Size &rOutputSize); }; #endif |