diff options
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r-- | sc/source/ui/cctrl/cbuttonw.cxx | 36 | ||||
-rw-r--r-- | sc/source/ui/cctrl/dpcontrol.cxx | 62 | ||||
-rw-r--r-- | sc/source/ui/cctrl/dpcontrol.src | 2 | ||||
-rw-r--r-- | sc/source/ui/cctrl/editfield.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/cctrl/popmenu.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/cctrl/tbinsert.cxx | 28 | ||||
-rw-r--r-- | sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 32 |
7 files changed, 82 insertions, 82 deletions
diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx index 4634b179664a..d6e072901a6e 100644 --- a/sc/source/ui/cctrl/cbuttonw.cxx +++ b/sc/source/ui/cctrl/cbuttonw.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,11 +36,11 @@ #include "cbutton.hxx" //======================================================================== -// class ScDDComboBoxButton +// class ScDDComboBoxButton //======================================================================== ScDDComboBoxButton::ScDDComboBoxButton( OutputDevice* pOutputDevice ) - : pOut( pOutputDevice ) + : pOut( pOutputDevice ) { SetOptSizePixel(); } @@ -69,31 +69,31 @@ void ScDDComboBoxButton::SetOptSizePixel() // ------------------------------------------------------------------------- -void ScDDComboBoxButton::Draw( const Point& rAt, - const Size& rSize, +void ScDDComboBoxButton::Draw( const Point& rAt, + const Size& rSize, BOOL bState, - BOOL bBtnIn /* = FALSE */ ) + BOOL bBtnIn /* = FALSE */ ) { if ( rSize.Width() == 0 || rSize.Height() == 0 ) return; // #i43092# rectangle with size 0 would have RECT_EMPTY as end position // save old state - BOOL bHadFill = pOut->IsFillColor(); - Color aOldFill = pOut->GetFillColor(); - BOOL bHadLine = pOut->IsLineColor(); - Color aOldLine = pOut->GetLineColor(); - BOOL bOldEnable = pOut->IsMapModeEnabled(); + BOOL bHadFill = pOut->IsFillColor(); + Color aOldFill = pOut->GetFillColor(); + BOOL bHadLine = pOut->IsLineColor(); + Color aOldLine = pOut->GetLineColor(); + BOOL bOldEnable = pOut->IsMapModeEnabled(); - Size aLogPix( 1, 1 ); - Rectangle aBtnRect( rAt, rSize ); - Rectangle aInnerRect = aBtnRect; + Size aLogPix( 1, 1 ); + Rectangle aBtnRect( rAt, rSize ); + Rectangle aInnerRect = aBtnRect; pOut->EnableMapMode( FALSE ); DecorationView aDecoView( pOut); USHORT nButtonStyle = BUTTON_DRAW_DEFAULT; - if( bBtnIn ) // gedrueckt? + if( bBtnIn ) // gedrueckt? { nButtonStyle = BUTTON_DRAW_PRESSED; } @@ -134,9 +134,9 @@ void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect, { // no need to save old line and fill color here (is restored after the call) - Rectangle aPixRect = rRect; - Point aCenter = aPixRect.Center(); - Size aSize = aPixRect.GetSize(); + Rectangle aPixRect = rRect; + Point aCenter = aPixRect.Center(); + Size aSize = aPixRect.GetSize(); Size aSize3; aSize3.Width() = aSize.Width() >> 1; diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx index 78c1871c1e1e..8fc8dcb1ed44 100644 --- a/sc/source/ui/cctrl/dpcontrol.cxx +++ b/sc/source/ui/cctrl/dpcontrol.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -131,7 +131,7 @@ void ScDPFieldButton::draw() const long nMargin = 2; bool bOldMapEnablaed = mpOutDev->IsMapModeEnabled(); mpOutDev->EnableMapMode(false); - + if (mbBaseButton) { // Background @@ -139,18 +139,18 @@ void ScDPFieldButton::draw() mpOutDev->SetLineColor(mpStyle->GetFaceColor()); mpOutDev->SetFillColor(mpStyle->GetFaceColor()); mpOutDev->DrawRect(aRect); - + // Border lines mpOutDev->SetLineColor(mpStyle->GetLightColor()); mpOutDev->DrawLine(Point(maPos), Point(maPos.X(), maPos.Y()+maSize.Height()-1)); mpOutDev->DrawLine(Point(maPos), Point(maPos.X()+maSize.Width()-1, maPos.Y())); - + mpOutDev->SetLineColor(mpStyle->GetShadowColor()); mpOutDev->DrawLine(Point(maPos.X(), maPos.Y()+maSize.Height()-1), Point(maPos.X()+maSize.Width()-1, maPos.Y()+maSize.Height()-1)); mpOutDev->DrawLine(Point(maPos.X()+maSize.Width()-1, maPos.Y()), Point(maPos.X()+maSize.Width()-1, maPos.Y()+maSize.Height()-1)); - + // Field name. // Get the font and size the same way as in scenario selection (lcl_DrawOneFrame in gridwin4.cxx) Font aTextFont( mpStyle->GetAppFont() ); @@ -164,7 +164,7 @@ void ScDPFieldButton::draw() } mpOutDev->SetFont(aTextFont); mpOutDev->SetTextColor(mpStyle->GetButtonTextColor()); - + Point aTextPos = maPos; long nTHeight = mpOutDev->GetTextHeight(); aTextPos.setX(maPos.getX() + nMargin); @@ -186,7 +186,7 @@ void ScDPFieldButton::getPopupBoundingBox(Point& rPos, Size& rSize) const { long nW = maSize.getWidth() / 2; long nH = maSize.getHeight(); - if (nW > 18) + if (nW > 18) nW = 18; if (nH > 18) nH = 18; @@ -214,12 +214,12 @@ void ScDPFieldButton::drawPopupButton() mpOutDev->DrawRect(Rectangle(aPos, aSize)); if (!mbPopupPressed) - { + { // border lines mpOutDev->SetLineColor(mpStyle->GetLightColor()); mpOutDev->DrawLine(Point(aPos.X()+1, aPos.Y()+1), Point(aPos.X()+1, aPos.Y()+aSize.Height()-2)); mpOutDev->DrawLine(Point(aPos.X()+1, aPos.Y()+1), Point(aPos.X()+aSize.Width()-2, aPos.Y()+1)); - + mpOutDev->SetLineColor(mpStyle->GetShadowColor()); mpOutDev->DrawLine(Point(aPos.X()+1, aPos.Y()+aSize.Height()-2), Point(aPos.X()+aSize.Width()-2, aPos.Y()+aSize.Height()-2)); @@ -446,14 +446,14 @@ void ScMenuFloatingWindow::Paint(const Rectangle& /*rRect*/) Reference<XAccessible> ScMenuFloatingWindow::CreateAccessible() { if (!mxAccessible.is()) - { - Reference<XAccessible> xAccParent = mpParentMenu ? + { + Reference<XAccessible> xAccParent = mpParentMenu ? mpParentMenu->GetAccessible() : GetAccessibleParentWindow()->GetAccessible(); mxAccessible.set(new ScAccessibleFilterMenu(xAccParent, this, maName, 999, getDoc())); ScAccessibleFilterMenu* p = static_cast<ScAccessibleFilterMenu*>( mxAccessible.get()); - + vector<MenuItemData>::const_iterator itr, itrBeg = maMenuItems.begin(), itrEnd = maMenuItems.end(); for (itr = itrBeg; itr != itrEnd; ++itr) { @@ -516,7 +516,7 @@ void ScMenuFloatingWindow::drawAllMenuItems() { size_t n = maMenuItems.size(); for (size_t i = 0; i < n; ++i) - highlightMenuItem(i, i == mnSelectedMenu); + highlightMenuItem(i, i == mnSelectedMenu); } const Font& ScMenuFloatingWindow::getLabelFont() const @@ -546,10 +546,10 @@ void ScMenuFloatingWindow::setSelectedMenuItem(size_t nPos, bool bSubMenuTimer, if (bEnsureSubMenu) { // Dismiss any child popup menu windows. - if (mnSelectedMenu < maMenuItems.size() && - maMenuItems[mnSelectedMenu].mpSubMenuWin && + if (mnSelectedMenu < maMenuItems.size() && + maMenuItems[mnSelectedMenu].mpSubMenuWin && maMenuItems[mnSelectedMenu].mpSubMenuWin->IsVisible()) - { + { maMenuItems[mnSelectedMenu].mpSubMenuWin->ensureSubMenuNotVisible(); } @@ -671,7 +671,7 @@ void ScMenuFloatingWindow::endSubMenu(ScMenuFloatingWindow* pSubMenu) size_t nMenuPos = getSubMenuPos(pSubMenu); if (nMenuPos != MENU_NOT_SELECTED) - { + { highlightMenuItem(nMenuPos, true); mnSelectedMenu = nMenuPos; fireMenuHighlightedEvent(); @@ -721,7 +721,7 @@ void ScMenuFloatingWindow::selectMenuItem(size_t nPos, bool bSelected, bool bSub } if (!maMenuItems[nPos].mbEnabled) - { + { queueCloseSubMenu(); return; } @@ -794,7 +794,7 @@ void ScMenuFloatingWindow::highlightMenuItem(size_t nPos, bool bSelected) { Push(PUSH_CLIPREGION); IntersectClipRegion(Rectangle(aPos, aSize)); - Rectangle aCtrlRect(Point(0,0), GetOutputSizePixel()); + Rectangle aCtrlRect(Point(0,0), GetOutputSizePixel()); DrawNativeControl( CTRL_MENU_POPUP, PART_ENTIRE_CONTROL, aCtrlRect, CTRL_STATE_ENABLED, ImplControlValue(), OUString()); @@ -938,10 +938,10 @@ void ScMenuFloatingWindow::ensureSubMenuVisible(ScMenuFloatingWindow* pSubMenu) void ScMenuFloatingWindow::ensureSubMenuNotVisible() { - if (mnSelectedMenu <= maMenuItems.size() && - maMenuItems[mnSelectedMenu].mpSubMenuWin && + if (mnSelectedMenu <= maMenuItems.size() && + maMenuItems[mnSelectedMenu].mpSubMenuWin && maMenuItems[mnSelectedMenu].mpSubMenuWin->IsVisible()) - { + { maMenuItems[mnSelectedMenu].mpSubMenuWin->ensureSubMenuNotVisible(); } @@ -985,8 +985,8 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) : ScMenuFloatingWindow(pParent, pDoc), maChecks(this, 0), maChkToggleAll(this, 0), - maBtnSelectSingle (this, 0), - maBtnUnselectSingle(this, 0), + maBtnSelectSingle (this, 0), + maBtnUnselectSingle(this, 0), maBtnOk(this), maBtnCancel(this), mnCurTabStop(0), @@ -1073,7 +1073,7 @@ void ScDPFieldPopupWindow::getSectionPosSize(Point& rPos, Size& rSize, SectionTy // parameters calculated from constants. const sal_uInt16 nListBoxWidth = static_cast< sal_uInt16 >( maWndSize.Width() - nListBoxMargin*2 ); - const sal_uInt16 nListBoxHeight = static_cast< sal_uInt16 >( maWndSize.Height() - nTopMargin - nMenuHeight - + const sal_uInt16 nListBoxHeight = static_cast< sal_uInt16 >( maWndSize.Height() - nTopMargin - nMenuHeight - nMenuListMargin - nSingleItemBtnAreaHeight - nBottomBtnAreaHeight ); const sal_uInt16 nSingleBtnAreaY = nTopMargin + nMenuHeight + nListBoxHeight + nMenuListMargin - 1; @@ -1200,12 +1200,12 @@ IMPL_LINK( ScDPFieldPopupWindow, ButtonHdl, Button*, pBtn ) if (pBtn == &maBtnOk) close(true); else if (pBtn == &maBtnSelectSingle) - { + { selectCurrentMemberOnly(true); CheckHdl(&maChecks); } else if (pBtn == &maBtnUnselectSingle) - { + { selectCurrentMemberOnly(false); CheckHdl(&maChecks); } @@ -1314,7 +1314,7 @@ Window* ScDPFieldPopupWindow::GetPreferredKeyInputWindow() Reference<XAccessible> ScDPFieldPopupWindow::CreateAccessible() { if (!mxAccessible.is()) - { + { mxAccessible.set(new ScAccessibleFilterTopWindow( GetAccessibleParentWindow()->GetAccessible(), this, getName(), getDoc())); ScAccessibleFilterTopWindow* pAccTop = static_cast<ScAccessibleFilterTopWindow*>(mxAccessible.get()); @@ -1362,19 +1362,19 @@ void ScDPFieldPopupWindow::initMembers() ++nVisMemCount; } if (nVisMemCount == n) - { + { // all members visible maChkToggleAll.SetState(STATE_CHECK); mePrevToggleAllState = STATE_CHECK; } else if (nVisMemCount == 0) - { + { // no members visible maChkToggleAll.SetState(STATE_NOCHECK); mePrevToggleAllState = STATE_NOCHECK; } else - { + { maChkToggleAll.SetState(STATE_DONTKNOW); mePrevToggleAllState = STATE_DONTKNOW; } diff --git a/sc/source/ui/cctrl/dpcontrol.src b/sc/source/ui/cctrl/dpcontrol.src index b38548369be5..a992c5d17c98 100644 --- a/sc/source/ui/cctrl/dpcontrol.src +++ b/sc/source/ui/cctrl/dpcontrol.src @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/cctrl/editfield.cxx b/sc/source/ui/cctrl/editfield.cxx index d52ccefea685..a393b4c38db5 100644 --- a/sc/source/ui/cctrl/editfield.cxx +++ b/sc/source/ui/cctrl/editfield.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/cctrl/popmenu.cxx b/sc/source/ui/cctrl/popmenu.cxx index 742104ea517f..e473fa3ae80e 100644 --- a/sc/source/ui/cctrl/popmenu.cxx +++ b/sc/source/ui/cctrl/popmenu.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sc/source/ui/cctrl/tbinsert.cxx b/sc/source/ui/cctrl/tbinsert.cxx index 6c439fd94693..5f7b341ee06f 100644 --- a/sc/source/ui/cctrl/tbinsert.cxx +++ b/sc/source/ui/cctrl/tbinsert.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,7 +59,7 @@ SFX_IMPL_TOOLBOX_CONTROL( ScTbxInsertCtrl, SfxUInt16Item); //------------------------------------------------------------------ // -// ToolBox - Controller +// ToolBox - Controller // //------------------------------------------------------------------ @@ -89,7 +89,7 @@ void __EXPORT ScTbxInsertCtrl::StateChanged( USHORT /* nSID */, SfxItemState eSt USHORT nImageId = nLastSlotId ? nLastSlotId : GetSlotId(); rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" )); aSlotURL += rtl::OUString::valueOf( sal_Int32( nImageId )); - Image aImage = GetImage( m_xFrame, + Image aImage = GetImage( m_xFrame, aSlotURL, hasBigImages(), GetToolBox().GetSettings().GetStyleSettings().GetHighContrastMode() ); @@ -107,21 +107,21 @@ SfxPopupWindow* __EXPORT ScTbxInsertCtrl::CreatePopupWindow() rtl::OUString aInsertBarResStr( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/insertbar" )); createAndPositionSubToolBar( aInsertBarResStr ); // nWinResId = RID_TBXCTL_INSERT; -// nTbxResId = RID_TOOLBOX_INSERT; +// nTbxResId = RID_TOOLBOX_INSERT; } else if (nSlotId == SID_TBXCTL_INSCELLS) { rtl::OUString aInsertCellsBarResStr( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/insertcellsbar" )); createAndPositionSubToolBar( aInsertCellsBarResStr ); -// nWinResId = RID_TBXCTL_INSCELLS; -// nTbxResId = RID_TOOLBOX_INSCELLS; +// nWinResId = RID_TBXCTL_INSCELLS; +// nTbxResId = RID_TOOLBOX_INSCELLS; } else /* SID_TBXCTL_INSOBJ */ { rtl::OUString aInsertObjectBarResStr( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/insertobjectbar" )); createAndPositionSubToolBar( aInsertObjectBarResStr ); -// nWinResId = RID_TBXCTL_INSOBJ; -// nTbxResId = RID_TOOLBOX_INSOBJ; +// nWinResId = RID_TBXCTL_INSOBJ; +// nTbxResId = RID_TOOLBOX_INSOBJ; } /* WindowAlign eNewAlign = ( GetToolBox().IsHorizontal() ) ? WINDOWALIGN_LEFT : WINDOWALIGN_TOP; @@ -151,22 +151,22 @@ void __EXPORT ScTbxInsertCtrl::Select( BOOL /* bMod1 */ ) if ( pViewFrame ) pDispatch = pViewFrame->GetDispatcher(); } - + if ( pDispatch ) pDispatch->Execute(nLastSlotId); } /* //------------------------------------------------------------------ // -// Popup - Window +// Popup - Window // //------------------------------------------------------------------ ScTbxInsertPopup::ScTbxInsertPopup( USHORT nId, WindowAlign eNewAlign, const ResId& rRIdWin, const ResId& rRIdTbx, SfxBindings& rBindings ) : - SfxPopupWindow ( nId, rRIdWin, rBindings), - aTbx ( this, GetBindings(), rRIdTbx ), + SfxPopupWindow ( nId, rRIdWin, rBindings), + aTbx ( this, GetBindings(), rRIdTbx ), aRIdWinTemp(rRIdWin), aRIdTbxTemp(rRIdTbx) { @@ -180,9 +180,9 @@ ScTbxInsertPopup::ScTbxInsertPopup( USHORT nId, WindowAlign eNewAlign, Size aSize = aTbx.CalcWindowSizePixel(); aTbx.SetPosSizePixel( Point(), aSize ); SetOutputSizePixel( aSize ); - aTbx.GetToolBox().SetSelectHdl( LINK(this, ScTbxInsertPopup, TbxSelectHdl)); + aTbx.GetToolBox().SetSelectHdl( LINK(this, ScTbxInsertPopup, TbxSelectHdl)); aTbxClickHdl = aTbx.GetToolBox().GetClickHdl(); - aTbx.GetToolBox().SetClickHdl( LINK(this, ScTbxInsertPopup, TbxClickHdl)); + aTbx.GetToolBox().SetClickHdl( LINK(this, ScTbxInsertPopup, TbxClickHdl)); } ScTbxInsertPopup::~ScTbxInsertPopup() diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx index 9fe3acc0af73..cc8e9592d671 100644 --- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx +++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,8 +55,8 @@ SFX_IMPL_TOOLBOX_CONTROL( ScZoomSliderControl, SvxZoomSliderItem ); ScZoomSliderControl::ScZoomSliderControl( USHORT nSlotId, - USHORT nId, - ToolBox& rTbx ) + USHORT nId, + ToolBox& rTbx ) :SfxToolBoxControl( nSlotId, nId, rTbx ) { rTbx.Invalidate(); @@ -74,7 +74,7 @@ __EXPORT ScZoomSliderControl::~ScZoomSliderControl() void ScZoomSliderControl::StateChanged( USHORT /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { - USHORT nId = GetId(); + USHORT nId = GetId(); ToolBox& rTbx = GetToolBox(); ScZoomSliderWnd* pBox = (ScZoomSliderWnd*)(rTbx.GetItemWindow( nId )); DBG_ASSERT( pBox ,"Control not found!" ); @@ -136,7 +136,7 @@ struct ScZoomSliderWnd::ScZoomSliderWnd_Impl maIncreaseButton(), maDecreaseButton(), mbValuesSet( true ), - mbOmitPaint( false ) + mbOmitPaint( false ) { } @@ -148,7 +148,7 @@ const long nButtonWidth = 10; const long nButtonHeight = 10; const long nIncDecWidth = 11; const long nIncDecHeight = 11; -const long nSliderHeight = 2; // +const long nSliderHeight = 2; // const long nSliderWidth = 4; // const long nSnappingHeight = 4; const long nSliderXOffset = 20; @@ -163,7 +163,7 @@ USHORT ScZoomSliderWnd::Offset2Zoom( long nOffset ) const Size aSliderWindowSize = GetOutputSizePixel(); const long nControlWidth = aSliderWindowSize.Width(); USHORT nRet = 0; - + if( nOffset < nSliderXOffset ) return mpImpl->mnMinZoom; if( nOffset > nControlWidth - nSliderXOffset ) @@ -210,7 +210,7 @@ USHORT ScZoomSliderWnd::Offset2Zoom( long nOffset ) const if( nRet < mpImpl->mnMinZoom ) return mpImpl->mnMinZoom; - + else if( nRet > mpImpl->mnMaxZoom ) return mpImpl->mnMaxZoom; @@ -274,7 +274,7 @@ ScZoomSliderWnd::~ScZoomSliderWnd() // ----------------------------------------------------------------------- void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt ) -{ +{ if ( !mpImpl->mbValuesSet ) return ; Size aSliderWindowSize = GetOutputSizePixel(); @@ -311,19 +311,19 @@ void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt ) return ; Rectangle aRect( Point( 0, 0 ), aSliderWindowSize ); - + Paint( aRect ); mpImpl->mbOmitPaint = true; - + SvxZoomSliderItem aZoomSliderItem( mpImpl->mnCurrentZoom ); ::com::sun::star::uno::Any a; aZoomSliderItem.QueryValue( a ); - + ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs( 1 ); aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ScalingFactor" )); aArgs[0].Value = a; - + SfxToolBoxControl::Dispatch( m_xDispatchProvider, String::CreateFromAscii(".uno:ScalingFactor"), aArgs ); mpImpl->mbOmitPaint = false; @@ -418,7 +418,7 @@ void ScZoomSliderWnd::UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem ) Size aSliderWindowSize = GetOutputSizePixel(); Rectangle aRect( Point( 0, 0 ), aSliderWindowSize ); - + if ( !mpImpl->mbOmitPaint ) Paint(aRect); } @@ -439,7 +439,7 @@ void ScZoomSliderWnd::DoPaint( const Rectangle& /*rRect*/ ) Size aSliderWindowSize = GetOutputSizePixel(); Rectangle aRect( Point( 0, 0 ), aSliderWindowSize ); - + VirtualDevice* pVDev = new VirtualDevice( *this ); pVDev->SetOutputSizePixel( aSliderWindowSize ); @@ -521,7 +521,7 @@ void ScZoomSliderWnd::DoPaint( const Rectangle& /*rRect*/ ) // draw increase button aImagePoint.X() = aRect.TopLeft().X() + aSliderWindowSize.Width() - nIncDecWidth - (nSliderXOffset - nIncDecWidth)/2; pVDev->DrawImage( aImagePoint, mpImpl->maIncreaseButton ); - + DrawOutDev( Point(0, 0), aSliderWindowSize, Point(0, 0), aSliderWindowSize, *pVDev ); delete pVDev; |