.Draw: GetPaintRect added to DrawDrawing

.Geom/Ctrl: different 'zoom full' icons for isotropic / anisotropic zoom mode

git-svn-id: svn://ultimatepp.org/upp/trunk@2864 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2010-11-23 11:20:00 +00:00
parent 85420c618a
commit 368ac9ecb5
3 changed files with 8 additions and 0 deletions

View file

@ -672,6 +672,8 @@ class DrawingDraw : public Draw {
public:
virtual dword GetInfo() const;
virtual Size GetPageSize() const;
virtual Rect GetPaintRect() const;
virtual void BeginOp();
virtual void EndOp();
virtual void OffsetOp(Point p);

View file

@ -114,6 +114,11 @@ Size DrawingDraw::GetPageSize() const
return size;
}
Rect DrawingDraw::GetPaintRect() const
{
return Rect(size);
}
void DrawingDraw::BeginOp()
{
DrawingOp(DRAWING_BEGIN);

View file

@ -156,6 +156,7 @@ void PlotterCtrl::FrameLayout(Rect& rc)
horz_out .Enable(sbx);
horz_full.SetFrameRect(rc.right - sbx, rc.bottom, sbx, box);
full .SetFrameRect(rc.right, rc.bottom, box, box);
full .SetImage(sbx ? PlotterImg::view_zoom_full_icon_old() : PlotterImg::view_zoom_full_icon());
}
void PlotterCtrl::FrameAddSize(Size& sz)