Kaydet (Commit) 596bd369 authored tarafından Matthias Freund's avatar Matthias Freund Kaydeden (comit) Bosdonnat Cedric

fdo#39468 Comment translation GER-ENG in sw/source/ui/ribbar/

cleanups and translations - and a forgotten file.

Change-Id: I048ff445fa04b12cb86ae580370bfe444041d41f
Reviewed-on: https://gerrit.libreoffice.org/3893Reviewed-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
üst 62b1030a
...@@ -19,36 +19,17 @@ ...@@ -19,36 +19,17 @@
#include <svx/svdobj.hxx> #include <svx/svdobj.hxx>
#include "view.hxx" #include "view.hxx"
#include "edtwin.hxx" #include "edtwin.hxx"
#include "wrtsh.hxx" #include "wrtsh.hxx"
#include "drawbase.hxx" #include "drawbase.hxx"
#include "conarc.hxx" #include "conarc.hxx"
/*************************************************************************
|*
|* Konstruktor
|*
\************************************************************************/
ConstArc::ConstArc(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) ConstArc::ConstArc(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView)
: SwDrawBase(pWrtShell, pEditWin, pSwView), nAnzButUp(0) : SwDrawBase(pWrtShell, pEditWin, pSwView), nAnzButUp(0)
{ {
} }
/*************************************************************************
|*
|* MouseButtonDown-event
|*
\************************************************************************/
sal_Bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt ) sal_Bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt )
{ {
sal_Bool bReturn; sal_Bool bReturn;
...@@ -61,14 +42,6 @@ sal_Bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt ) ...@@ -61,14 +42,6 @@ sal_Bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt )
return (bReturn); return (bReturn);
} }
/*************************************************************************
|*
|* MouseButtonUp-event
|*
\************************************************************************/
sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt ) sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt )
{ {
sal_Bool bReturn = sal_False; sal_Bool bReturn = sal_False;
...@@ -84,7 +57,7 @@ sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt ) ...@@ -84,7 +57,7 @@ sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt )
else else
{ nAnzButUp++; { nAnzButUp++;
if (nAnzButUp == 3) // Kreisbogenerzeugung beendet if (nAnzButUp == 3) // Generating of circular arc finished
{ {
SwDrawBase::MouseButtonUp(rMEvt); SwDrawBase::MouseButtonUp(rMEvt);
nAnzButUp = 0; nAnzButUp = 0;
...@@ -98,14 +71,6 @@ sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt ) ...@@ -98,14 +71,6 @@ sal_Bool ConstArc::MouseButtonUp( const MouseEvent& rMEvt )
return (bReturn); return (bReturn);
} }
/*************************************************************************
|*
|* Function aktivieren
|*
\************************************************************************/
void ConstArc::Activate(const sal_uInt16 nSlotId) void ConstArc::Activate(const sal_uInt16 nSlotId)
{ {
switch (nSlotId) switch (nSlotId)
...@@ -127,12 +92,6 @@ void ConstArc::Activate(const sal_uInt16 nSlotId) ...@@ -127,12 +92,6 @@ void ConstArc::Activate(const sal_uInt16 nSlotId)
SwDrawBase::Activate(nSlotId); SwDrawBase::Activate(nSlotId);
} }
/*************************************************************************
|*
|* Funktion deaktivieren
|*
\************************************************************************/
void ConstArc::Deactivate() void ConstArc::Deactivate()
{ {
nAnzButUp = 0; nAnzButUp = 0;
...@@ -140,6 +99,4 @@ void ConstArc::Deactivate() ...@@ -140,6 +99,4 @@ void ConstArc::Deactivate()
SwDrawBase::Deactivate(); SwDrawBase::Deactivate();
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#include <math.h> #include <math.h>
/*************************************************************************
|*
|* C'Tor
|*
\************************************************************************/
ConstCustomShape::ConstCustomShape( SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView, SfxRequest& rReq ) ConstCustomShape::ConstCustomShape( SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView, SfxRequest& rReq )
: SwDrawBase( pWrtShell, pEditWin, pSwView ) : SwDrawBase( pWrtShell, pEditWin, pSwView )
{ {
...@@ -61,7 +56,6 @@ OUString ConstCustomShape::GetShapeType() const ...@@ -61,7 +56,6 @@ OUString ConstCustomShape::GetShapeType() const
return aCustomShape; return aCustomShape;
} }
//static
OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest& rReq ) OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest& rReq )
{ {
OUString aRet; OUString aRet;
...@@ -74,12 +68,6 @@ OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest& rReq ) ...@@ -74,12 +68,6 @@ OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest& rReq )
return aRet; return aRet;
} }
/*************************************************************************
|*
|* MouseButtonDown-event
|*
\************************************************************************/
sal_Bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt) sal_Bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt)
{ {
sal_Bool bReturn = SwDrawBase::MouseButtonDown(rMEvt); sal_Bool bReturn = SwDrawBase::MouseButtonDown(rMEvt);
...@@ -106,23 +94,11 @@ sal_Bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt) ...@@ -106,23 +94,11 @@ sal_Bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt)
return bReturn; return bReturn;
} }
/*************************************************************************
|*
|* MouseButtonUp-event
|*
\************************************************************************/
sal_Bool ConstCustomShape::MouseButtonUp(const MouseEvent& rMEvt) sal_Bool ConstCustomShape::MouseButtonUp(const MouseEvent& rMEvt)
{ {
return SwDrawBase::MouseButtonUp(rMEvt); return SwDrawBase::MouseButtonUp(rMEvt);
} }
/*************************************************************************
|*
|* activate function
|*
\************************************************************************/
void ConstCustomShape::Activate(const sal_uInt16 nSlotId) void ConstCustomShape::Activate(const sal_uInt16 nSlotId)
{ {
m_pWin->SetSdrDrawMode( OBJ_CUSTOMSHAPE ); m_pWin->SetSdrDrawMode( OBJ_CUSTOMSHAPE );
...@@ -130,11 +106,7 @@ void ConstCustomShape::Activate(const sal_uInt16 nSlotId) ...@@ -130,11 +106,7 @@ void ConstCustomShape::Activate(const sal_uInt16 nSlotId)
SwDrawBase::Activate(nSlotId); SwDrawBase::Activate(nSlotId);
} }
/************************************************************************* // applying attributes
|*
|* applying attributes
|*
\************************************************************************/
void ConstCustomShape::SetAttributes( SdrObject* pObj ) void ConstCustomShape::SetAttributes( SdrObject* pObj )
{ {
......
...@@ -29,18 +29,12 @@ ...@@ -29,18 +29,12 @@
extern bool bNoInterrupt; // in mainwn.cxx extern bool bNoInterrupt; // in mainwn.cxx
/**
* Ctor
*/
ConstFormControl::ConstFormControl(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) : ConstFormControl::ConstFormControl(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
SwDrawBase(pWrtShell, pEditWin, pSwView) SwDrawBase(pWrtShell, pEditWin, pSwView)
{ {
m_bInsForm = true; m_bInsForm = true;
} }
/**
* MouseButtonDown event
*/
sal_Bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt) sal_Bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt)
{ {
sal_Bool bReturn = sal_False; sal_Bool bReturn = sal_False;
...@@ -85,9 +79,6 @@ sal_Bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt) ...@@ -85,9 +79,6 @@ sal_Bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt)
return (bReturn); return (bReturn);
} }
/**
* Activate
*/
void ConstFormControl::Activate(const sal_uInt16 nSlotId) void ConstFormControl::Activate(const sal_uInt16 nSlotId)
{ {
m_pWin->SetSdrDrawMode( static_cast<SdrObjKind>(nSlotId) ); m_pWin->SetSdrDrawMode( static_cast<SdrObjKind>(nSlotId) );
......
...@@ -28,27 +28,11 @@ ...@@ -28,27 +28,11 @@
#include "conpoly.hxx" #include "conpoly.hxx"
#include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/polygon/b2dpolygon.hxx>
/*************************************************************************
|*
|* Konstruktor
|*
\************************************************************************/
ConstPolygon::ConstPolygon(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) : ConstPolygon::ConstPolygon(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
SwDrawBase(pWrtShell, pEditWin, pSwView) SwDrawBase(pWrtShell, pEditWin, pSwView)
{ {
} }
/*************************************************************************
|*
|* MouseButtonDown-event
|*
\************************************************************************/
sal_Bool ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt) sal_Bool ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt)
{ {
sal_Bool bReturn; sal_Bool bReturn;
...@@ -59,14 +43,6 @@ sal_Bool ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt) ...@@ -59,14 +43,6 @@ sal_Bool ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt)
return (bReturn); return (bReturn);
} }
/*************************************************************************
|*
|* MouseMove-event
|*
\************************************************************************/
sal_Bool ConstPolygon::MouseMove(const MouseEvent& rMEvt) sal_Bool ConstPolygon::MouseMove(const MouseEvent& rMEvt)
{ {
sal_Bool bReturn = SwDrawBase::MouseMove(rMEvt); sal_Bool bReturn = SwDrawBase::MouseMove(rMEvt);
...@@ -74,14 +50,6 @@ sal_Bool ConstPolygon::MouseMove(const MouseEvent& rMEvt) ...@@ -74,14 +50,6 @@ sal_Bool ConstPolygon::MouseMove(const MouseEvent& rMEvt)
return bReturn; return bReturn;
} }
/*************************************************************************
|*
|* MouseButtonUp-event
|*
\************************************************************************/
sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt) sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
{ {
sal_Bool bReturn = sal_False; sal_Bool bReturn = sal_False;
...@@ -113,14 +81,6 @@ sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -113,14 +81,6 @@ sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
return (bReturn); return (bReturn);
} }
/*************************************************************************
|*
|* Function aktivieren
|*
\************************************************************************/
void ConstPolygon::Activate(const sal_uInt16 nSlotId) void ConstPolygon::Activate(const sal_uInt16 nSlotId)
{ {
switch (nSlotId) switch (nSlotId)
...@@ -144,6 +104,4 @@ void ConstPolygon::Activate(const sal_uInt16 nSlotId) ...@@ -144,6 +104,4 @@ void ConstPolygon::Activate(const sal_uInt16 nSlotId)
SwDrawBase::Activate(nSlotId); SwDrawBase::Activate(nSlotId);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -36,10 +36,6 @@ ...@@ -36,10 +36,6 @@
#include <drawbase.hxx> #include <drawbase.hxx>
#include <conrect.hxx> #include <conrect.hxx>
/**
* Ctor
*/
ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin, ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin,
SwView* pSwView ) SwView* pSwView )
: SwDrawBase( pWrtShell, pEditWin, pSwView ), : SwDrawBase( pWrtShell, pEditWin, pSwView ),
...@@ -49,9 +45,6 @@ ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin, ...@@ -49,9 +45,6 @@ ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin,
{ {
} }
/**
* MouseButtonDown event
*/
sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt) sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt)
{ {
sal_Bool bReturn; sal_Bool bReturn;
...@@ -69,9 +62,6 @@ sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt) ...@@ -69,9 +62,6 @@ sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt)
return (bReturn); return (bReturn);
} }
/**
* MouseButtonUp event
*/
sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt) sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt)
{ {
sal_Bool bRet = SwDrawBase::MouseButtonUp(rMEvt); sal_Bool bRet = SwDrawBase::MouseButtonUp(rMEvt);
...@@ -146,9 +136,6 @@ sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -146,9 +136,6 @@ sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt)
return bRet; return bRet;
} }
/**
* Activate
*/
void ConstRectangle::Activate(const sal_uInt16 nSlotId) void ConstRectangle::Activate(const sal_uInt16 nSlotId)
{ {
bMarquee = bCapVertical = false; bMarquee = bCapVertical = false;
...@@ -197,6 +184,4 @@ void ConstRectangle::Activate(const sal_uInt16 nSlotId) ...@@ -197,6 +184,4 @@ void ConstRectangle::Activate(const sal_uInt16 nSlotId)
SwDrawBase::Activate(nSlotId); SwDrawBase::Activate(nSlotId);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -25,26 +25,16 @@ ...@@ -25,26 +25,16 @@
#include "drawbase.hxx" #include "drawbase.hxx"
#include "dselect.hxx" #include "dselect.hxx"
/*************************************************************************
|*
|* Konstruktor
|*
\************************************************************************/
DrawSelection::DrawSelection(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) : DrawSelection::DrawSelection(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
SwDrawBase(pWrtShell, pEditWin, pSwView) SwDrawBase(pWrtShell, pEditWin, pSwView)
{ {
m_bCreateObj = false; m_bCreateObj = false;
} }
/************************************************************************* // Process keyboard events
|* //
|* Tastaturereignisse bearbeiten // If a KeyEvent is processed then the return value is sal_True, otherwise
|* // Sal_False.
|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert sal_True, andernfalls
|* sal_False.
|*
\************************************************************************/
sal_Bool DrawSelection::KeyInput(const KeyEvent& rKEvt) sal_Bool DrawSelection::KeyInput(const KeyEvent& rKEvt)
{ {
...@@ -70,12 +60,6 @@ sal_Bool DrawSelection::KeyInput(const KeyEvent& rKEvt) ...@@ -70,12 +60,6 @@ sal_Bool DrawSelection::KeyInput(const KeyEvent& rKEvt)
return (bReturn); return (bReturn);
} }
/*************************************************************************
|*
|* Function aktivieren
|*
\************************************************************************/
void DrawSelection::Activate(const sal_uInt16 nSlotId) void DrawSelection::Activate(const sal_uInt16 nSlotId)
{ {
m_pWin->SetSdrDrawMode(OBJ_NONE); m_pWin->SetSdrDrawMode(OBJ_NONE);
...@@ -85,5 +69,4 @@ void DrawSelection::Activate(const sal_uInt16 nSlotId) ...@@ -85,5 +69,4 @@ void DrawSelection::Activate(const sal_uInt16 nSlotId)
m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW); m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "edtwin.hxx" #include "edtwin.hxx"
#include "helpid.h" #include "helpid.h"
// nur fuers UpdateRange - Box in dem der gestackte Cursor sthet loeschen // Only for the UpdateRange: Delete the box in which the stacked cursor is positioned.
#include "pam.hxx" #include "pam.hxx"
#include "swundo.hxx" #include "swundo.hxx"
...@@ -54,8 +54,6 @@ ...@@ -54,8 +54,6 @@
SFX_IMPL_POS_CHILDWINDOW_WITHID( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OBJECT ) SFX_IMPL_POS_CHILDWINDOW_WITHID( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OBJECT )
//==================================================================
SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind ) 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)), aPos( this, SW_RES(ED_POS)),
...@@ -120,13 +118,11 @@ SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind ) ...@@ -120,13 +118,11 @@ SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind )
aPopMenu.SetSelectHdl(LINK( this, SwInputWindow, MenuHdl )); aPopMenu.SetSelectHdl(LINK( this, SwInputWindow, MenuHdl ));
} }
//==================================================================
SwInputWindow::~SwInputWindow() SwInputWindow::~SwInputWindow()
{ {
SfxImageManager::GetImageManager( SW_MOD() )->ReleaseToolBox(this); SfxImageManager::GetImageManager( SW_MOD() )->ReleaseToolBox(this);
//Lineale aufwecken // wake rulers
if(pView) if(pView)
{ {
pView->GetHRuler().SetActive( sal_True ); pView->GetHRuler().SetActive( sal_True );
...@@ -153,14 +149,11 @@ void SwInputWindow::CleanupUglyHackWithUndo() ...@@ -153,14 +149,11 @@ void SwInputWindow::CleanupUglyHackWithUndo()
} }
} }
//==================================================================
void SwInputWindow::DataChanged( const DataChangedEvent& rDCEvt ) void SwInputWindow::DataChanged( const DataChangedEvent& rDCEvt )
{ {
if ( rDCEvt.GetType() == DATACHANGED_SETTINGS && (rDCEvt.GetFlags() & SETTINGS_STYLE) ) if ( rDCEvt.GetType() == DATACHANGED_SETTINGS && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
{ {
// update item images // update item images
SwModule *pMod = SW_MOD(); SwModule *pMod = SW_MOD();
SfxImageManager *pImgMgr = SfxImageManager::GetImageManager( pMod ); SfxImageManager *pImgMgr = SfxImageManager::GetImageManager( pMod );
SetItemImage( FN_FORMULA_CALC, pImgMgr->GetImage(FN_FORMULA_CALC )); SetItemImage( FN_FORMULA_CALC, pImgMgr->GetImage(FN_FORMULA_CALC ));
...@@ -171,8 +164,6 @@ void SwInputWindow::DataChanged( const DataChangedEvent& rDCEvt ) ...@@ -171,8 +164,6 @@ void SwInputWindow::DataChanged( const DataChangedEvent& rDCEvt )
ToolBox::DataChanged( rDCEvt ); ToolBox::DataChanged( rDCEvt );
} }
//==================================================================
void SwInputWindow::Resize() void SwInputWindow::Resize()
{ {
ToolBox::Resize(); ToolBox::Resize();
...@@ -186,19 +177,17 @@ void SwInputWindow::Resize() ...@@ -186,19 +177,17 @@ void SwInputWindow::Resize()
aEdit.Invalidate(); aEdit.Invalidate();
} }
//==================================================================
void SwInputWindow::ShowWin() void SwInputWindow::ShowWin()
{ {
bIsTable = sal_False; bIsTable = sal_False;
//Lineale anhalten // stop rulers
if(pView) if(pView)
{ {
pView->GetHRuler().SetActive( sal_False ); pView->GetHRuler().SetActive( sal_False );
pView->GetVRuler().SetActive( sal_False ); pView->GetVRuler().SetActive( sal_False );
OSL_ENSURE(pWrtShell, "no WrtShell!"); OSL_ENSURE(pWrtShell, "no WrtShell!");
// Cursor in Tabelle // Cursor in table
bIsTable = pWrtShell->IsCrsrInTbl() ? sal_True : sal_False; bIsTable = pWrtShell->IsCrsrInTbl() ? sal_True : sal_False;
if( bFirst ) if( bFirst )
...@@ -217,12 +206,11 @@ void SwInputWindow::ShowWin() ...@@ -217,12 +206,11 @@ void SwInputWindow::ShowWin()
else else
aPos.SetText(SW_RESSTR(STR_TBL_FORMULA)); aPos.SetText(SW_RESSTR(STR_TBL_FORMULA));
// Aktuelles Feld bearbeiten // Edit current field
OSL_ENSURE(pMgr == 0, "FieldManager not deleted"); OSL_ENSURE(pMgr == 0, "FieldManager not deleted");
pMgr = new SwFldMgr; pMgr = new SwFldMgr;
// Formel soll immer mit einem "=" beginnen, hier // Formular should always begin with "=" , so set here
// also setzen
String sEdit = OUString('='); String sEdit = OUString('=');
if( pMgr->GetCurFld() && TYP_FORMELFLD == pMgr->GetCurTypeId() ) if( pMgr->GetCurFld() && TYP_FORMELFLD == pMgr->GetCurTypeId() )
{ {
...@@ -268,7 +256,7 @@ void SwInputWindow::ShowWin() ...@@ -268,7 +256,7 @@ void SwInputWindow::ShowWin()
if( bFirst ) if( bFirst )
{ {
// WrtShell Flags richtig setzen // Set WrtShell flags correctly
pWrtShell->SttSelect(); pWrtShell->SttSelect();
pWrtShell->EndSelect(); pWrtShell->EndSelect();
} }
...@@ -284,7 +272,7 @@ void SwInputWindow::ShowWin() ...@@ -284,7 +272,7 @@ void SwInputWindow::ShowWin()
aEdit.Invalidate(); aEdit.Invalidate();
aEdit.Update(); aEdit.Update();
aEdit.GrabFocus(); aEdit.GrabFocus();
// UserInterface fuer die Eingabe abklemmen // For input cut the UserInterface
pView->GetEditWin().LockKeyInput(sal_True); pView->GetEditWin().LockKeyInput(sal_True);
pView->GetViewFrame()->GetDispatcher()->Lock(sal_True); pView->GetViewFrame()->GetDispatcher()->Lock(sal_True);
...@@ -292,7 +280,6 @@ void SwInputWindow::ShowWin() ...@@ -292,7 +280,6 @@ void SwInputWindow::ShowWin()
} }
ToolBox::Show(); ToolBox::Show();
} }
//==================================================================
IMPL_LINK( SwInputWindow, MenuHdl, Menu *, pMenu ) IMPL_LINK( SwInputWindow, MenuHdl, Menu *, pMenu )
{ {
...@@ -337,7 +324,7 @@ static const char * const aStrArr[] = { ...@@ -337,7 +324,7 @@ static const char * const aStrArr[] = {
IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl) IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl)
{ {
sal_uInt16 nCurID = GetCurItemId(); sal_uInt16 nCurID = GetCurItemId();
EndSelection(); // setzt CurItemId zurueck ! EndSelection(); // reset back CurItemId !
switch ( nCurID ) switch ( nCurID )
{ {
case FN_FORMULA_CALC : case FN_FORMULA_CALC :
...@@ -352,13 +339,10 @@ IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl) ...@@ -352,13 +339,10 @@ IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl)
return sal_True; return sal_True;
} }
//==================================================================
void SwInputWindow::Click( ) void SwInputWindow::Click( )
{ {
sal_uInt16 nCurID = GetCurItemId(); sal_uInt16 nCurID = GetCurItemId();
EndSelection(); // setzt CurItemId zurueck ! EndSelection(); // reset back CurItemId !
switch ( nCurID ) switch ( nCurID )
{ {
case FN_FORMULA_CANCEL: case FN_FORMULA_CANCEL:
...@@ -374,8 +358,6 @@ void SwInputWindow::Click( ) ...@@ -374,8 +358,6 @@ void SwInputWindow::Click( )
} }
} }
//==================================================================
void SwInputWindow::ApplyFormula() void SwInputWindow::ApplyFormula()
{ {
pView->GetViewFrame()->GetDispatcher()->Lock(sal_False); pView->GetViewFrame()->GetDispatcher()->Lock(sal_False);
...@@ -383,8 +365,7 @@ void SwInputWindow::ApplyFormula() ...@@ -383,8 +365,7 @@ void SwInputWindow::ApplyFormula()
CleanupUglyHackWithUndo(); CleanupUglyHackWithUndo();
pWrtShell->Pop( sal_False ); pWrtShell->Pop( sal_False );
// Formel soll immer mit einem "=" beginnen, hier // Formular should always begin with "=", so remove it here again
// also wieder entfernen
String sEdit(comphelper::string::strip(aEdit.GetText(), ' ')); String sEdit(comphelper::string::strip(aEdit.GetText(), ' '));
if( sEdit.Len() && '=' == sEdit.GetChar( 0 ) ) if( sEdit.Len() && '=' == sEdit.GetChar( 0 ) )
sEdit.Erase( 0, 1 ); sEdit.Erase( 0, 1 );
...@@ -398,8 +379,6 @@ void SwInputWindow::ApplyFormula() ...@@ -398,8 +379,6 @@ void SwInputWindow::ApplyFormula()
pView->GetViewFrame()->GetBindings().Execute( FN_EDIT_FORMULA, aArgs, 0, SFX_CALLMODE_ASYNCHRON ); pView->GetViewFrame()->GetBindings().Execute( FN_EDIT_FORMULA, aArgs, 0, SFX_CALLMODE_ASYNCHRON );
} }
//==================================================================
void SwInputWindow::CancelFormula() void SwInputWindow::CancelFormula()
{ {
if(pView) if(pView)
...@@ -418,7 +397,6 @@ void SwInputWindow::CancelFormula() ...@@ -418,7 +397,6 @@ void SwInputWindow::CancelFormula()
} }
pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON); pView->GetViewFrame()->GetDispatcher()->Execute( FN_EDIT_FORMULA, SFX_CALLMODE_ASYNCHRON);
} }
//==================================================================
const sal_Unicode CH_LRE = 0x202a; const sal_Unicode CH_LRE = 0x202a;
const sal_Unicode CH_PDF = 0x202c; const sal_Unicode CH_PDF = 0x202c;
...@@ -442,9 +420,9 @@ IMPL_LINK( SwInputWindow, SelTblCellsNotify, SwWrtShell *, pCaller ) ...@@ -442,9 +420,9 @@ IMPL_LINK( SwInputWindow, SelTblCellsNotify, SwWrtShell *, pCaller )
if( sNew != sOldFml ) if( sNew != sOldFml )
{ {
// Die WrtShell ist in der Tabellen Selektion // The WrtShell is in the table selection,
// dann die Tabellen Selektion wieder aufheben, sonst steht der // then cancel the table selection otherwise, the cursor is
// Cursor "im Wald" und das LiveUpdate funktioniert nicht! // positioned "in the forest" and the live update does not work!
pWrtShell->StartAllAction(); pWrtShell->StartAllAction();
SwPaM aPam( *pWrtShell->GetStkCrsr()->GetPoint() ); SwPaM aPam( *pWrtShell->GetStkCrsr()->GetPoint() );
...@@ -515,8 +493,6 @@ void SwInputWindow::DelBoxCntnt() ...@@ -515,8 +493,6 @@ void SwInputWindow::DelBoxCntnt()
} }
} }
//==================================================================
void InputEdit::KeyInput(const KeyEvent& rEvent) void InputEdit::KeyInput(const KeyEvent& rEvent)
{ {
const KeyCode aCode = rEvent.GetKeyCode(); const KeyCode aCode = rEvent.GetKeyCode();
...@@ -528,8 +504,6 @@ void InputEdit::KeyInput(const KeyEvent& rEvent) ...@@ -528,8 +504,6 @@ void InputEdit::KeyInput(const KeyEvent& rEvent)
Edit::KeyInput(rEvent); Edit::KeyInput(rEvent);
} }
//==================================================================
void InputEdit::UpdateRange(const String& rBoxes, void InputEdit::UpdateRange(const String& rBoxes,
const String& rName ) const String& rName )
{ {
...@@ -547,8 +521,8 @@ void InputEdit::UpdateRange(const String& rBoxes, ...@@ -547,8 +521,8 @@ void InputEdit::UpdateRange(const String& rBoxes,
aBoxes += rBoxes; aBoxes += rBoxes;
Selection aSelection(GetSelection()); Selection aSelection(GetSelection());
sal_uInt16 nSel = (sal_uInt16) aSelection.Len(); sal_uInt16 nSel = (sal_uInt16) aSelection.Len();
//OS: mit dem folgenden Ausdruck wird sichergestellt, dass im overwrite-Modus // OS: The following expression ensures that in the overwrite mode,
//die selektierte schliessende Klammer nicht geloescht wird // the selected closing parenthesis will be not deleted.
if( nSel && ( nSel > 1 || if( nSel && ( nSel > 1 ||
GetText()[ (sal_uInt16)aSelection.Min() ] != cClose )) GetText()[ (sal_uInt16)aSelection.Min() ] != cClose ))
Cut(); Cut();
...@@ -596,14 +570,14 @@ void InputEdit::UpdateRange(const String& rBoxes, ...@@ -596,14 +570,14 @@ void InputEdit::UpdateRange(const String& rBoxes,
} }
++nEndPos; ++nEndPos;
} }
// nur wenn akt. Pos im Breich oder direkt dahinter liegt // Only if the current position lies in the range or right behind.
if( bFound && !( nStartPos < (sal_uInt16)aSelection.Max() && if( bFound && !( nStartPos < (sal_uInt16)aSelection.Max() &&
(sal_uInt16)aSelection.Max() <= nEndPos + 1 )) (sal_uInt16)aSelection.Max() <= nEndPos + 1 ))
bFound = false; bFound = false;
} }
if( bFound ) if( bFound )
{ {
nPos = ++nStartPos + 1; // wir wollen dahinter nPos = ++nStartPos + 1; // We want behind
aActText.Erase( nStartPos, nEndPos - nStartPos ); aActText.Erase( nStartPos, nEndPos - nStartPos );
aActText.Insert( aBoxes, nStartPos ); aActText.Insert( aBoxes, nStartPos );
nPos = nPos + aBoxes.Len(); nPos = nPos + aBoxes.Len();
...@@ -626,7 +600,6 @@ void InputEdit::UpdateRange(const String& rBoxes, ...@@ -626,7 +600,6 @@ void InputEdit::UpdateRange(const String& rBoxes,
GrabFocus(); GrabFocus();
} }
//==================================================================
SwInputChild::SwInputChild(Window* _pParent, SwInputChild::SwInputChild(Window* _pParent,
sal_uInt16 nId, sal_uInt16 nId,
...@@ -640,7 +613,6 @@ SwInputChild::SwInputChild(Window* _pParent, ...@@ -640,7 +613,6 @@ SwInputChild::SwInputChild(Window* _pParent,
eChildAlignment = SFX_ALIGN_LOWESTTOP; eChildAlignment = SFX_ALIGN_LOWESTTOP;
} }
SwInputChild::~SwInputChild() SwInputChild::~SwInputChild()
{ {
if(pDispatch) if(pDispatch)
......
...@@ -52,9 +52,9 @@ String RID_WEBTOOLS_TOOLBOX ...@@ -52,9 +52,9 @@ String RID_WEBTOOLS_TOOLBOX
{ {
Text [ en-US ] = "Main Toolbar/Web" ; Text [ en-US ] = "Main Toolbar/Web" ;
}; };
/*************************************************************************
Textleiste // Text bar
*************************************************************************/
String RID_WEBTEXT_TOOLBOX String RID_WEBTEXT_TOOLBOX
{ {
Text [ en-US ] = "Text Object Bar/Web" ; Text [ en-US ] = "Text Object Bar/Web" ;
......
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