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

Translate german comments

This translates more 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 5c34b059
......@@ -94,9 +94,9 @@ SwFldEditDlg::SwFldEditDlg(SwView& rVw) :
GetOKButton()->SetClickHdl(LINK(this, SwFldEditDlg, OKHdl));
// Buttons selbst positionieren, da sie sonst bei unterschiedlichen
// Fontgroessen im Wald stehen, und da PB im SingleTabDlg feste Pixelgroessen
// fuer seine Buttons und die Dialogbreite verwendet.
// position buttons ourselves because otherwise when font sizes are
// varying, they are in the woods, and because PB uses fixed pixel sizes
// for its buttons and dialog width in SingleTabDlg.
aPrevBT.SetPosPixel(Point(GetOKButton()->GetPosPixel().X(), aPrevBT.GetPosPixel().Y()));
USHORT nWidth = static_cast< USHORT >(GetOKButton()->GetOutputSize().Width() / 2 - 3);
Size aNewSize(LogicToPixel(Size(nWidth, GetOKButton()->GetOutputSize().Height())));
......@@ -121,7 +121,7 @@ SwFldEditDlg::SwFldEditDlg(SwView& rVw) :
}
/*--------------------------------------------------------------------
Beschreibung: Controlls initialisieren
Description: initialise controls
--------------------------------------------------------------------*/
void SwFldEditDlg::Init()
{
......@@ -136,7 +136,7 @@ void SwFldEditDlg::Init()
if(!pCurFld)
return;
// Traveling nur bei mehr als einem Feld
// Traveling only when more than one field
pSh->StartAction();
pSh->CreateCrsr();
......@@ -162,7 +162,7 @@ void SwFldEditDlg::Init()
SfxTabPage* SwFldEditDlg::CreatePage(USHORT nGroup)
{
// TabPage erzeugen
// create TabPage
SfxTabPage* pTabPage = 0;
USHORT nHelpId = 0;
......@@ -240,7 +240,7 @@ void SwFldEditDlg::InsertHdl()
}
/*--------------------------------------------------------------------
Beschreibung: Aendern des Feldes anstossen
Description: kick off changing of the field
--------------------------------------------------------------------*/
IMPL_LINK( SwFldEditDlg, OKHdl, Button *, EMPTYARG )
{
......@@ -260,12 +260,12 @@ IMPL_LINK( SwFldEditDlg, OKHdl, Button *, EMPTYARG )
short SwFldEditDlg::Execute()
{
// Ohne TabPage kein Dialog
// without TabPage no dialog
return GetTabPage() ? Dialog::Execute() : RET_CANCEL;
}
/*--------------------------------------------------------------------
Beschreibung: Traveling zwishen Feldern gleichen Typs
Description: Traveling between fields of the same type
--------------------------------------------------------------------*/
IMPL_LINK( SwFldEditDlg, NextPrevHdl, Button *, pButton )
{
......
......@@ -107,7 +107,7 @@ SwFldFuncPage::~SwFldFuncPage()
void SwFldFuncPage::Reset(const SfxItemSet& )
{
SavePos(&aTypeLB);
Init(); // Allgemeine initialisierung
Init(); // general initialisation
aTypeLB.SetUpdateMode(FALSE);
aTypeLB.Clear();
......@@ -116,10 +116,10 @@ void SwFldFuncPage::Reset(const SfxItemSet& )
if (!IsFldEdit())
{
// TypeListBox initialisieren
// initialise TypeListBox
const SwFldGroupRgn& rRg = GetFldMgr().GetGroupRange(IsFldDlgHtmlMode(), GetGroup());
// Typ-Listbox fuellen
// fill Typ-Listbox
for(short i = rRg.nStart; i < rRg.nEnd; ++i)
{
nTypeId = GetFldMgr().GetTypeId(i);
......@@ -140,7 +140,7 @@ void SwFldFuncPage::Reset(const SfxItemSet& )
}
}
// alte Pos selektieren
// select old Pos
RestorePos(&aTypeLB);
aTypeLB.SetDoubleClickHdl (LINK(this, SwFldFuncPage, InsertHdl));
......@@ -193,10 +193,10 @@ void SwFldFuncPage::Reset(const SfxItemSet& )
IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, EMPTYARG )
{
// Alte ListBoxPos sichern
// save old ListBoxPos
const USHORT nOld = GetTypeSel();
// Aktuelle ListBoxPos
// current ListBoxPos
SetTypeSel(aTypeLB.GetSelectEntryPos());
if(GetTypeSel() == LISTBOX_ENTRY_NOTFOUND)
......@@ -209,10 +209,10 @@ IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, EMPTYARG )
{
USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
// Auswahl-Listbox fuellen
// fill Selection-Listbox
UpdateSubType();
// Format-Listbox fuellen
// fill Format-Listbox
aFormatLB.Clear();
USHORT nSize = GetFldMgr().GetFormatCount(nTypeId, FALSE, IsFldDlgHtmlMode());
......@@ -236,7 +236,7 @@ IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, EMPTYARG )
BOOL bShowSelection = FALSE;
BOOL bFormat = nSize != 0;
// fuer Conditional Text zwei Controls
// two controls for conditional text
BOOL bDropDown = TYP_DROPDOWN == nTypeId;
BOOL bCondTxtFld = TYP_CONDTXTFLD == nTypeId;
......@@ -478,13 +478,13 @@ IMPL_LINK( SwFldFuncPage, ListEnableHdl, void*, EMPTYARG)
}
/*--------------------------------------------------------------------
Beschreibung: Typen in der SelectionBox erneuern
Description: renew types in SelectionBox
--------------------------------------------------------------------*/
void SwFldFuncPage::UpdateSubType()
{
USHORT nTypeId = (USHORT)(ULONG)aTypeLB.GetEntryData(GetTypeSel());
// Auswahl-Listbox fuellen
// fill Selction-Listbox
aSelectionLB.SetUpdateMode(FALSE);
aSelectionLB.Clear();
......@@ -525,7 +525,7 @@ void SwFldFuncPage::UpdateSubType()
}
/*--------------------------------------------------------------------
Beschreibung: MacroBrowser aufrufen, Listbox mit Macros fuellen
Description: call MacroBrowser, fill Listbox with Macros
--------------------------------------------------------------------*/
IMPL_LINK( SwFldFuncPage, MacroHdl, Button *, pBtn )
{
......@@ -606,7 +606,7 @@ BOOL SwFldFuncPage::FillItemSet(SfxItemSet& )
InsertFld( nTypeId, nSubType, aName, aVal, nFormat );
}
ModifyHdl(); // Insert ggf enablen/disablen
ModifyHdl(); // enable/disable Insert if applicable
return FALSE;
}
......@@ -615,7 +615,7 @@ String SwFldFuncPage::TurnMacroString(const String &rMacro)
{
if (rMacro.Len())
{
// Inhalt von aName umdrehen
// reverse content of aName
String sTmp, sBuf;
USHORT nPos = 0;
......
......@@ -82,7 +82,7 @@ class SwFldFuncPage : public SwFldPage
DECL_LINK( ListModifyHdl, Control*);
DECL_LINK( ListEnableHdl, void*);
// Macro auswhlen
// select Macro
DECL_LINK( MacroHdl, Button * );
void UpdateSubType();
......
This diff is collapsed.
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