diff options
Diffstat (limited to 'sw/source/ui/ribbar/inputwin.cxx')
-rw-r--r-- | sw/source/ui/ribbar/inputwin.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/ui/ribbar/inputwin.cxx b/sw/source/ui/ribbar/inputwin.cxx index fd3cec7e1114..604786a30018 100644 --- a/sw/source/ui/ribbar/inputwin.cxx +++ b/sw/source/ui/ribbar/inputwin.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 @@ -66,10 +66,10 @@ SFX_IMPL_POS_CHILDWINDOW( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OBJECT ) //================================================================== SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind ) - : ToolBox( pParent , SW_RES( RID_TBX_FORMULA )), + : ToolBox( pParent , SW_RES( RID_TBX_FORMULA )), aPos( this, SW_RES(ED_POS)), aEdit( this, WB_3DLOOK|WB_TABSTOP|WB_BORDER|WB_NOHIDESELECTION), - aPopMenu( SW_RES(MN_CALC_POPUP)), + aPopMenu( SW_RES(MN_CALC_POPUP)), pMgr(0), pWrtShell(0), pView(0), @@ -101,12 +101,12 @@ SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind ) SetItemBits( FN_FORMULA_CALC, GetItemBits( FN_FORMULA_CALC ) | TIB_DROPDOWNONLY ); SetDropdownClickHdl( LINK( this, SwInputWindow, DropdownClickHdl )); - Size aSizeTbx = CalcWindowSizePixel(); + Size aSizeTbx = CalcWindowSizePixel(); Size aSize = GetSizePixel(); aSize.Height() = aSizeTbx.Height(); SetSizePixel( aSize ); - Size aPosSize = aPos.GetSizePixel(); - Size aEditSize = aEdit.GetSizePixel(); + Size aPosSize = aPos.GetSizePixel(); + Size aEditSize = aEdit.GetSizePixel(); aPosSize.Height() = aEditSize.Height() = GetItemRect(FN_FORMULA_CALC).GetHeight() - 2; Point aPosPos = aPos.GetPosPixel(); @@ -170,9 +170,9 @@ void __EXPORT SwInputWindow::Resize() { ToolBox::Resize(); - long nWidth = GetSizePixel().Width(); - long nLeft = aEdit.GetPosPixel().X(); - Size aEditSize = aEdit.GetSizePixel(); + long nWidth = GetSizePixel().Width(); + long nLeft = aEdit.GetPosPixel().X(); + Size aEditSize = aEdit.GetSizePixel(); aEditSize.Width() = Max( ((long)(nWidth - nLeft - 5)), (long)0 ); aEdit.SetSizePixel( aEditSize ); @@ -215,7 +215,7 @@ void SwInputWindow::ShowWin() pMgr = new SwFldMgr; // JP 13.01.97: Formel soll immer mit einem "=" beginnen, hier - // also setzen + // also setzen String sEdit( '=' ); if( pMgr->GetCurFld() && TYP_FORMELFLD == pMgr->GetCurTypeId() ) { @@ -325,7 +325,7 @@ static const char * __READONLY_DATA aStrArr[] = { IMPL_LINK( SwInputWindow, DropdownClickHdl, ToolBox*, EMPTYARG ) { USHORT nCurID = GetCurItemId(); - EndSelection(); // setzt CurItemId zurueck ! + EndSelection(); // setzt CurItemId zurueck ! switch ( nCurID ) { case FN_FORMULA_CALC : @@ -346,7 +346,7 @@ IMPL_LINK( SwInputWindow, DropdownClickHdl, ToolBox*, EMPTYARG ) void __EXPORT SwInputWindow::Click( ) { USHORT nCurID = GetCurItemId(); - EndSelection(); // setzt CurItemId zurueck ! + EndSelection(); // setzt CurItemId zurueck ! switch ( nCurID ) { case FN_FORMULA_CANCEL: @@ -380,7 +380,7 @@ void SwInputWindow::ApplyFormula() pWrtShell->Pop( FALSE ); // JP 13.01.97: Formel soll immer mit einem "=" beginnen, hier - // also wieder entfernen + // also wieder entfernen String sEdit( aEdit.GetText() ); sEdit.EraseLeadingChars().EraseTrailingChars(); if( sEdit.Len() && '=' == sEdit.GetChar( 0 ) ) @@ -543,7 +543,7 @@ void __EXPORT InputEdit::UpdateRange(const String& rBoxes, GrabFocus(); return; } - const sal_Unicode cOpen = '<', cClose = '>', + const sal_Unicode cOpen = '<', cClose = '>', cOpenBracket = '('; String aPrefix = rName; if(rName.Len()) @@ -627,7 +627,7 @@ void __EXPORT InputEdit::UpdateRange(const String& rBoxes, { SetText( aActText ); SetSelection( Selection( nPos, nPos ) ); -// GetModifyHdl().Call( this ); +// GetModifyHdl().Call( this ); } } GrabFocus(); @@ -658,7 +658,7 @@ __EXPORT SwInputChild::~SwInputChild() SfxChildWinInfo __EXPORT SwInputChild::GetInfo() const { - SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \ + SfxChildWinInfo aInfo = SfxChildWindow::GetInfo(); \ return aInfo; } |