Kaydet (Commit) 2dfc83ec authored tarafından Martin Kepplinger's avatar Martin Kepplinger

Translate german comments

This translates the remaining german code comments in writer/sw/source/ui/fldui
to english.

This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
üst 5cb5d02b
...@@ -52,7 +52,7 @@ class SelectionListBox : public ListBox ...@@ -52,7 +52,7 @@ class SelectionListBox : public ListBox
public: public:
SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId ); SelectionListBox( SwFldVarPage* pDialog, const ResId& rResId );
// Selektieren per Ctrl oder Alt erkennen und mit SelectHdl auswerten // detect selection via Ctrl or Alt and evaluate with SelectHdl
BOOL IsCallAddSelection() const {return bCallAddSelection;} BOOL IsCallAddSelection() const {return bCallAddSelection;}
void ResetCallAddSelection() {bCallAddSelection = FALSE;} void ResetCallAddSelection() {bCallAddSelection = FALSE;}
}; };
......
...@@ -56,20 +56,20 @@ SwChildWinWrapper::SwChildWinWrapper(Window *pParentWindow, USHORT nId) : ...@@ -56,20 +56,20 @@ SwChildWinWrapper::SwChildWinWrapper(Window *pParentWindow, USHORT nId) :
SfxChildWindow(pParentWindow, nId), SfxChildWindow(pParentWindow, nId),
m_pDocSh(0) m_pDocSh(0)
{ {
// Flackern der Buttons vermeiden: // avoid flickering of buttons:
m_aUpdateTimer.SetTimeout(200); m_aUpdateTimer.SetTimeout(200);
m_aUpdateTimer.SetTimeoutHdl(LINK(this, SwChildWinWrapper, UpdateHdl)); m_aUpdateTimer.SetTimeoutHdl(LINK(this, SwChildWinWrapper, UpdateHdl));
} }
IMPL_LINK( SwChildWinWrapper, UpdateHdl, void*, EMPTYARG ) IMPL_LINK( SwChildWinWrapper, UpdateHdl, void*, EMPTYARG )
{ {
GetWindow()->Activate(); // Dialog aktualisieren GetWindow()->Activate(); // update dialog
return 0; return 0;
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren Description: newly initialise dialog after Doc switch
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
BOOL SwChildWinWrapper::ReInitDlg(SwDocShell *) BOOL SwChildWinWrapper::ReInitDlg(SwDocShell *)
{ {
...@@ -78,7 +78,7 @@ BOOL SwChildWinWrapper::ReInitDlg(SwDocShell *) ...@@ -78,7 +78,7 @@ BOOL SwChildWinWrapper::ReInitDlg(SwDocShell *)
if (m_pDocSh != GetOldDocShell()) if (m_pDocSh != GetOldDocShell())
{ {
m_aUpdateTimer.Stop(); m_aUpdateTimer.Stop();
bRet = TRUE; // Sofortiges Update bRet = TRUE; // immediate Update
} }
else else
m_aUpdateTimer.Start(); m_aUpdateTimer.Start();
...@@ -110,13 +110,13 @@ SwFldDlgWrapper::SwFldDlgWrapper( Window* _pParent, USHORT nId, ...@@ -110,13 +110,13 @@ SwFldDlgWrapper::SwFldDlgWrapper( Window* _pParent, USHORT nId,
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Nach Dok-Wechsel Dialog neu initialisieren Description: newly initialise dialog after Doc switch
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
BOOL SwFldDlgWrapper::ReInitDlg(SwDocShell *pDocSh) BOOL SwFldDlgWrapper::ReInitDlg(SwDocShell *pDocSh)
{ {
BOOL bRet; BOOL bRet;
if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // Sofort aktualisieren, Dok-Wechsel if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // update immediately, Doc switch
{ {
pDlgInterface->ReInitDlg(); pDlgInterface->ReInitDlg();
} }
...@@ -165,7 +165,7 @@ SwFldDataOnlyDlgWrapper::SwFldDataOnlyDlgWrapper( Window* _pParent, USHORT nId, ...@@ -165,7 +165,7 @@ SwFldDataOnlyDlgWrapper::SwFldDataOnlyDlgWrapper( Window* _pParent, USHORT nId,
BOOL SwFldDataOnlyDlgWrapper::ReInitDlg(SwDocShell *pDocSh) BOOL SwFldDataOnlyDlgWrapper::ReInitDlg(SwDocShell *pDocSh)
{ {
BOOL bRet; BOOL bRet;
if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // Sofort aktualisieren, Dok-Wechsel if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh)) == TRUE) // update immediately, Doc switch
{ {
pDlgInterface->ReInitDlg(); pDlgInterface->ReInitDlg();
} }
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Feldeinfuegen bearbeiten Description: edit field-insert
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS, SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
...@@ -74,7 +74,7 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS, ...@@ -74,7 +74,7 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
aNextBT (this, SW_RES(PB_NEXT )), aNextBT (this, SW_RES(PB_NEXT )),
aHelpBT (this, SW_RES(PB_HELP )) aHelpBT (this, SW_RES(PB_HELP ))
{ {
// Font fuers Edit umschalten // switch font for Edit
Font aFont(aEditED.GetFont()); Font aFont(aEditED.GetFont());
aFont.SetWeight(WEIGHT_LIGHT); aFont.SetWeight(WEIGHT_LIGHT);
aEditED.SetFont(aFont); aEditED.SetFont(aFont);
...@@ -92,10 +92,10 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS, ...@@ -92,10 +92,10 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
aHelpBT.SetPosPixel(aPos); aHelpBT.SetPosPixel(aPos);
} }
// Auswertung hier // evaluation here
String aStr; String aStr;
if( RES_INPUTFLD == pField->GetTyp()->Which() ) if( RES_INPUTFLD == pField->GetTyp()->Which() )
{ // Es ist eine Eingabefeld { // it is an input field
// //
pInpFld = (SwInputField*)pField; pInpFld = (SwInputField*)pField;
aLabelED.SetText( pInpFld->GetPar2() ); aLabelED.SetText( pInpFld->GetPar2() );
...@@ -108,7 +108,7 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS, ...@@ -108,7 +108,7 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
break; break;
case INP_USR: case INP_USR:
// Benutzerfeld // user field
if( 0 != ( pUsrType = (SwUserFieldType*)rSh.GetFldType( if( 0 != ( pUsrType = (SwUserFieldType*)rSh.GetFldType(
RES_USERFLD, pInpFld->GetPar1() ) ) ) RES_USERFLD, pInpFld->GetPar1() ) ) )
aStr = pUsrType->GetContent(); aStr = pUsrType->GetContent();
...@@ -117,7 +117,7 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS, ...@@ -117,7 +117,7 @@ SwFldInputDlg::SwFldInputDlg( Window *pParent, SwWrtShell &rS,
} }
else else
{ {
// es ist eine SetExpression // it is a SetExpression
pSetFld = (SwSetExpField*)pField; pSetFld = (SwSetExpField*)pField;
String sFormula(pSetFld->GetFormula()); String sFormula(pSetFld->GetFormula());
//values are formatted - formulas are not //values are formatted - formulas are not
...@@ -153,7 +153,7 @@ void SwFldInputDlg::StateChanged( StateChangedType nType ) ...@@ -153,7 +153,7 @@ void SwFldInputDlg::StateChanged( StateChangedType nType )
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Schliessen Description: Close
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
void SwFldInputDlg::Apply() void SwFldInputDlg::Apply()
......
...@@ -89,7 +89,7 @@ SwJavaEditDialog::SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh) : ...@@ -89,7 +89,7 @@ SwJavaEditDialog::SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh) :
pFileDlg(NULL), pFileDlg(NULL),
pOldDefDlgParent(NULL) pOldDefDlgParent(NULL)
{ {
// Handler installieren // install handler
aPrevBtn.SetClickHdl( LINK( this, SwJavaEditDialog, PrevHdl ) ); aPrevBtn.SetClickHdl( LINK( this, SwJavaEditDialog, PrevHdl ) );
aNextBtn.SetClickHdl( LINK( this, SwJavaEditDialog, NextHdl ) ); aNextBtn.SetClickHdl( LINK( this, SwJavaEditDialog, NextHdl ) );
aOKBtn.SetClickHdl( LINK( this, SwJavaEditDialog, OKHdl ) ); aOKBtn.SetClickHdl( LINK( this, SwJavaEditDialog, OKHdl ) );
...@@ -113,7 +113,7 @@ SwJavaEditDialog::SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh) : ...@@ -113,7 +113,7 @@ SwJavaEditDialog::SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh) :
if( !bNew ) if( !bNew )
SetText( SW_RES( STR_JAVA_EDIT ) ); SetText( SW_RES( STR_JAVA_EDIT ) );
else else
// neu anlegen // newly create
SetText( SW_RES( STR_JAVA_INSERT ) ); SetText( SW_RES( STR_JAVA_INSERT ) );
FreeResource(); FreeResource();
...@@ -170,7 +170,7 @@ void SwJavaEditDialog::CheckTravel() ...@@ -170,7 +170,7 @@ void SwJavaEditDialog::CheckTravel()
if(!bNew) if(!bNew)
{ {
// Traveling nur bei mehr als einem Feld // Traveling only when more than one field
pSh->StartAction(); pSh->StartAction();
pSh->CreateCrsr(); pSh->CreateCrsr();
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <fldmgr.hxx> #include <fldmgr.hxx>
#include <dbmgr.hxx> #include <dbmgr.hxx>
#include <wrtsh.hxx> // Actives Fenster #include <wrtsh.hxx> // active window
#include <view.hxx> #include <view.hxx>
#include <swmodule.hxx> #include <swmodule.hxx>
...@@ -63,8 +63,8 @@ using namespace ::com::sun::star::beans; ...@@ -63,8 +63,8 @@ using namespace ::com::sun::star::beans;
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Ist das Datenbankfeld numerisch? Description: Is the database field numeric?
Anm: Im Fehlerfall wird TRUE returnt. remark: in case of error TURE is returned
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
BOOL SwFldMgr::IsDBNumeric( const String& rDBName, const String& rTblQryName, BOOL SwFldMgr::IsDBNumeric( const String& rDBName, const String& rTblQryName,
......
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