From 79509fa629055cdfaca2011fddb4291ed8b3f7dd Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Sun, 5 Aug 2012 18:51:49 +0400 Subject: SmCmdBoxWindow: too many frames... Change-Id: If93baa96c7eacdeae6ad2fdecbe33fc141934094 --- starmath/source/view.cxx | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index f1365b4470e1..798b998cc209 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -721,20 +721,6 @@ SmViewShell * SmCmdBoxWindow::GetView() void SmCmdBoxWindow::Resize() { Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); - - if (! IsFloatingMode()) - { - switch (GetAlignment()) - { - case SFX_ALIGN_TOP: aRect.Bottom()--; break; - case SFX_ALIGN_BOTTOM: aRect.Top()++; break; - case SFX_ALIGN_LEFT: aRect.Right()--; break; - case SFX_ALIGN_RIGHT: aRect.Left()++; break; - default: - break; - } - } - DecorationView aView(this); aRect.Left() += 8; aRect.Top() += 8; aRect.Right()-= 8; aRect.Bottom()-= 8; @@ -750,38 +736,6 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/) { Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); DecorationView aView(this); - - if (! IsFloatingMode()) - { - Point aFrom, aTo; - switch (GetAlignment()) - { - case SFX_ALIGN_TOP: - aFrom = aRect.BottomLeft(); aTo = aRect.BottomRight(); - aRect.Bottom()--; - break; - - case SFX_ALIGN_BOTTOM: - aFrom = aRect.TopLeft(); aTo = aRect.TopRight(); - aRect.Top()++; - break; - - case SFX_ALIGN_LEFT: - aFrom = aRect.TopRight(); aTo = aRect.BottomRight(); - aRect.Right()--; - break; - - case SFX_ALIGN_RIGHT: - aFrom = aRect.TopLeft(); aTo = aRect.BottomLeft(); - aRect.Left()++; - break; - - default: - break; - } - DrawLine( aFrom, aTo ); - aView.DrawFrame(aRect, FRAME_DRAW_OUT); - } aRect.Left() += 8; aRect.Top() += 8; aRect.Right()-= 8; aRect.Bottom()-= 8; aRect = aView.DrawFrame( aRect, FRAME_DRAW_DOUBLEIN ); -- cgit