summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCor Nouws <oolst@nouenoff.nl>2011-11-19 22:37:30 +0100
committerMichael Meeks <michael.meeks@suse.com>2011-11-21 11:39:30 +0000
commit63b3301d78f10672d1ce11e144015d60707bfb87 (patch)
treeed126bfe0882b7f8187285e2b6f840dfacf7f42e /svx
parente9def2a8a984098a19183d9a18fdd02778bbfdb2 (diff)
Translation of German comments
Diffstat (limited to 'svx')
-rw-r--r--svx/source/stbctrls/pszctrl.cxx103
-rw-r--r--svx/source/stbctrls/stbctrls.src14
-rw-r--r--svx/source/stbctrls/zoomctrl.cxx16
3 files changed, 59 insertions, 74 deletions
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index 8be9399aa843..3b83715cc743 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -62,21 +62,21 @@
// -----------------------------------------------------------------------
-/* [Beschreibung]
+/* [Description]
- Funktion, mit der ein metrischer Wert in textueller Darstellung
- umgewandelt wird.
+ Function used to create a text representation of
+ a metric value
- nVal ist hier der metrische Wert in der Einheit eUnit.
+ nVal is the metric value in the unit eUnit.
- [Querverweise]
+ [cross reference]
<SvxPosSizeStatusBarControl::Paint(const UserDrawEvent&)>
*/
String SvxPosSizeStatusBarControl::GetMetricStr_Impl( long nVal )
{
- // Applikations-Metrik besorgen und setzen
+ // deliver and set the Metric of the application
FieldUnit eOutUnit = SfxModule::GetModuleFieldUnit( getFrameInterface() );
FieldUnit eInUnit = FUNIT_100TH_MM;
@@ -143,36 +143,36 @@ void FunctionPopup_Impl::Select()
struct SvxPosSizeStatusBarControl_Impl
-/* [Beschreibung]
+/* [Description]
- Diese Implementations-Struktur der Klasse SvxPosSizeStatusBarControl
- dient der Entkopplung von "Anderungen vom exportierten Interface sowie
- der Verringerung von extern sichtbaren Symbolen.
+ This implementation-structure of the class SvxPosSizeStatusBarControl
+ is done for the un-linking of the changes of the exported interface such as
+ the toning down of symbols that are visible externaly.
- Eine Instanz exisitiert pro SvxPosSizeStatusBarControl-Instanz
- f"ur deren Laufzeit.
+ One instance exists for each SvxPosSizeStatusBarControl-instance
+ during it's life time
*/
{
- Point aPos; // g"ultig, wenn eine Position angezeigt wird
- Size aSize; // g"ultig, wenn eine Gr"o/se angezeigt wird
- String aStr; // g"ultig, wenn ein Text angezeigt wird
- sal_Bool bPos; // show position
- sal_Bool bSize; // Gr"o/se anzeigen?
- sal_Bool bTable; // Tabellenindex anzeigen?
- sal_Bool bHasMenu; // StarCalc Popup-Menue anzeigen?
- sal_uInt16 nFunction; // selektierte StarCalc Funktion
- Image aPosImage; // Image f"ur die Positionsanzeige
- Image aSizeImage; // Image f"ur die Gr"o/senanzeige
+ Point aPos; // valid when a position is shown
+ Size aSize; // valid when a size is shown
+ String aStr; // valid when a text is shown
+ sal_Bool bPos; // show position ?
+ sal_Bool bSize; // set size ?
+ sal_Bool bTable; // set table index ?
+ sal_Bool bHasMenu; // set StarCalc popup menu ?
+ sal_uInt16 nFunction; // the selected StarCalc function
+ Image aPosImage; // Image to show the position
+ Image aSizeImage; // Image to show the size
};
// class SvxPosSizeStatusBarControl ------------------------------------------
-/* [Beschreibung]
+/* [Description]
Ctor():
- Anlegen einer Impl-Klassen-Instanz, Default die Zeitanzeige enablen,
- Images fu"r die Position und Gro"sse laden.
+ Create an intance of the implementation class, enable the page numbering by default
+ load the images for the position and size
*/
#define STR_POSITION ".uno:Position"
@@ -200,10 +200,11 @@ SvxPosSizeStatusBarControl::SvxPosSizeStatusBarControl( sal_uInt16 _nSlotId,
// -----------------------------------------------------------------------
-/* [Beschreibung]
+/* [Description]
Dtor():
- Pointer auf die Impl-Klasse lo"schen, damit der Timer gestoppt wird.
+ remove the pointer to the implementation class, so that the timer is stopped
+
*/
SvxPosSizeStatusBarControl::~SvxPosSizeStatusBarControl()
@@ -213,28 +214,28 @@ SvxPosSizeStatusBarControl::~SvxPosSizeStatusBarControl()
// -----------------------------------------------------------------------
-/* [Beschreibung]
+/* [Description]
- SID_PSZ_FUNCTION aktiviert das Popup-Menue fuer Calc, ansonsten:
+ SID_PSZ_FUNCTION activates the popup menu for Calc:
- Statusbenachrichtigung;
- Je nach Item-Typ wird eine bestimmte Anzeige enabled, die anderen disabled.
+ Status overview
+ Depending on the type of the item, a special setting is enabled, the others disabled.
NULL/Void SfxPointItem SvxSizeItem SfxStringItem
------------------------------------------------------------------------
- Zeit sal_True sal_False sal_False FALSE
+ Time sal_True sal_False sal_False FALSE
Position sal_False FALSE
- Gro"sse FALSE TRUE FALSE
+ Size FALSE TRUE FALSE
Text sal_False sal_False TRUE
- Ein anderes Item bewirkt einen Assert, die Zeitanzeige wird enabled.
+ Another item resulst in an assert, that enables showing of the time.
*/
void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState )
{
- // da Kombi-Controller, immer die aktuelle Id als HelpId setzen
- // gecachten HelpText vorher l"oschen
+ // the combi-controller, always set the curent Id as HelpId
+ // first clean the cached HelpText
GetStatusBar().SetHelpText( GetId(), String() );
switch ( nSID )
@@ -258,7 +259,7 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
}
else if ( SFX_ITEM_AVAILABLE != eState )
{
- // #i34458# don't switch to empty display before an empty state was
+ // don't switch to empty display before an empty state was
// notified for all display types
if ( nSID == SID_TABLE_CELL )
@@ -274,21 +275,21 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
}
else if ( pState->ISA( SfxPointItem ) )
{
- // Position anzeigen
+ // show position
pImp->aPos = ( (SfxPointItem*)pState )->GetValue();
pImp->bPos = sal_True;
pImp->bTable = sal_False;
}
else if ( pState->ISA( SvxSizeItem ) )
{
- // Groesse anzeigen
+ // show size
pImp->aSize = ( (SvxSizeItem*)pState )->GetSize();
pImp->bSize = sal_True;
pImp->bTable = sal_False;
}
else if ( pState->ISA( SfxStringItem ) )
{
- // String anzeigen (Tabellen-Zelle oder anderes)
+ // show string (table cel or different)
pImp->aStr = ( (SfxStringItem*)pState )->GetValue();
pImp->bTable = sal_True;
pImp->bPos = sal_False;
@@ -297,7 +298,7 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
else
{
DBG_ERRORFILE( "invalid item type" );
- // trotzdem Datum und Zeit anzeigen
+ // nevertheless show date and time
pImp->bPos = sal_False;
pImp->bSize = sal_False;
pImp->bTable = sal_False;
@@ -306,8 +307,8 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
if ( GetStatusBar().AreItemsVisible() )
GetStatusBar().SetItemData( GetId(), 0 );
- // nur Strings auch als Text an der StatusBar setzen, damit Tip-Hilfe
- // funktioniert, wenn der Text zu lang ist.
+ // set only strings as text at the statusBar, because the Help-Tips
+ // functions, when the text is too long
String aText;
if ( pImp->bTable )
aText = pImp->aStr;
@@ -316,9 +317,9 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
// -----------------------------------------------------------------------
-/* [Beschreibung]
+/* [Description]
- Popup-Menue ausfuehren, wenn per Status enabled
+ execute popup menu, when the status enables this
*/
void SvxPosSizeStatusBarControl::Command( const CommandEvent& rCEvt )
@@ -356,10 +357,10 @@ void SvxPosSizeStatusBarControl::Command( const CommandEvent& rCEvt )
// -----------------------------------------------------------------------
-/* [Beschreibung]
+/* [Description]
- Je nach enableden Anzeigentyp, wird der Wert angezeigt. Vorher wird
- das Rectangle u"bermalt (gelo"scht).
+ Depending on the type to be shown, the value us shown. First the
+ rectangle is repainted (removed).
*/
void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt )
@@ -376,10 +377,10 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt )
if ( pImp->bPos || pImp->bSize )
{
- // Position fuer Size-Anzeige berechnen
+ // count the position for showing the size
long nSizePosX =
rRect.Left() + rRect.GetWidth() / 2 + PAINT_OFFSET;
- // Position zeichnen
+ // draw position
Point aPnt = rRect.TopLeft();
aPnt.Y() = aItemPos.Y();
aPnt.X() += PAINT_OFFSET;
@@ -393,7 +394,7 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt )
Rectangle( aPnt, Point( nSizePosX, rRect.Bottom() ) ) );
pDev->DrawText( aPnt, aStr );
- // falls verf"ugbar, Gr"osse zeichnen
+ // draw the size, when available
aPnt.X() = nSizePosX;
if ( pImp->bSize )
diff --git a/svx/source/stbctrls/stbctrls.src b/svx/source/stbctrls/stbctrls.src
index 7f37e4df6647..c2e0999dca15 100644
--- a/svx/source/stbctrls/stbctrls.src
+++ b/svx/source/stbctrls/stbctrls.src
@@ -32,27 +32,27 @@
// Strings ---------------------------------------------------------------
String RID_SVXSTR_INSERT_TEXT
{
- // 'Einf"ugen' bzw. 'Insert' abgek"urzt auf h"ochstens 5 Zeichen
+ // 'Insert' shortened to a maximum of 5 characters
Text [ en-US ] = "INSRT" ;
};
String RID_SVXSTR_OVERWRITE_TEXT
{
- // '"Uberschreiben' bzw. 'Overwrite' abgek"urzt auf h"ochstens 5 Zeichen
+ // 'Overwrite' shortened to a maximum of 5 characters
Text [ en-US ] = "OVER" ;
};
String RID_SVXSTR_SELMODE_STD
{
- // 'Standard' abgek"urzt auf h"ochstens 3 Zeichen
+ // 'Standard' shortened to a maximum of 3 characters
Text [ en-US ] = "STD" ;
};
String RID_SVXSTR_SELMODE_ER
{
- // 'Erweitert' bzw. 'Extended' abgek"urzt auf h"ochstens 3 Zeichen
+ // 'Extended' shortened to a maximum of 3 characters
Text [ en-US ] = "EXT" ;
};
String RID_SVXSTR_SELMODE_ERG
{
- // 'Erg"anzend' bzw. 'Added' abgek"urzt auf h"ochstens 3 Zeichen
+ // 'Added' shortened to a maximum of 3 characters
Text [ en-US ] = "ADD" ;
};
@@ -124,7 +124,7 @@ Menu RID_SVXMNU_ZOOM
{
Identifier = ZOOM_75 ;
HelpId = HID_MNU_ZOOM_75 ;
- Text = "75%" ;
+ text = "75%" ;
};
MenuItem
{
@@ -152,7 +152,7 @@ Menu RID_SVXMNU_ZOOM
};
};
};
- // Funktionsauswahl auf dem SvxPosSizeStatusBarControl fuer Calc
+ // Choice of functions on the SvxPosSizeStatusBarControl for Calc
Menu RID_SVXMNU_PSZ_FUNC
{
ItemList =
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index 7cf7bc8af8d5..09ff19f2c4ce 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -138,22 +138,6 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
if ( pState->ISA(SvxZoomItem) )
{
nValueSet = ((const SvxZoomItem*)pState)->GetValueSet();
-/*!!!
- SvxZoomType eType = ((const SvxZoomItem*)pState)->GetType();
-
- switch ( eType )
- {
- case SVX_ZOOM_OPTIMAL:
- GetStatusBar().SetItemText( GetId(), "Opt." );
- break;
- case SVX_ZOOM_WHOLEPAGE:
- GetStatusBar().SetItemText( GetId(), "Page" );
- break;
- case SVX_ZOOM_PAGEWIDTH:
- GetStatusBar().SetItemText( GetId(), "Width" );
- break;
- }
-*/
}
else
{