Kaydet (Commit) 613ead6d authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

refactor SvxShowCharSet to use RenderContext

Change-Id: Ib88b654cbdd321ba51246346a1648d7da2596aff
üst d28e29c8
......@@ -28,8 +28,6 @@
#include <memory>
#include <svx/svxdllapi.h>
// define ----------------------------------------------------------------
#define COLUMN_COUNT 16
#define ROW_COUNT 8
......@@ -39,8 +37,6 @@ namespace svx
class SvxShowCharSetVirtualAcc;
}
// class SvxShowCharSet --------------------------------------------------
class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxShowCharSet : public Control
{
public:
......@@ -48,7 +44,7 @@ public:
virtual ~SvxShowCharSet();
virtual void dispose() SAL_OVERRIDE;
void SetFont( const vcl::Font& rFont );
void RecalculateFont(vcl::RenderContext& rRenderContext);
void SelectCharacter( sal_uInt32 cNew, bool bFocus = false );
sal_UCS4 GetSelectCharacter() const;
......@@ -117,9 +113,13 @@ private:
FontCharMapPtr mpFontCharMap;
VclPtr<ScrollBar> aVscrollSB;
bool mbRecalculateFont : 1;
bool mbUpdateForeground : 1;
bool mbUpdateBackground : 1;
private:
void DrawChars_Impl( int n1, int n2);
void InitSettings( bool bForeground, bool bBackground);
void DrawChars_Impl(vcl::RenderContext& rRenderContext, int n1, int n2);
void InitSettings(vcl::RenderContext& rRenderContext);
// abstraction layers are: Unicode<->MapIndex<->Pixel
Point MapIndexToPixel( int) const;
DECL_LINK(VscrollHdl, void *);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment