Kaydet (Commit) 5f042045 authored tarafından Tobias Mueller's avatar Tobias Mueller Kaydeden (comit) Thomas Arnhold

svtools: Translated ctrltool.hxx from English to German

Someone may want to move the comments into the right place, i.e.
very close to the function definitions.

Change-Id: Ibdb74b2f1020ef338852acbb3a06f292dc94da9b
Reviewed-on: https://gerrit.libreoffice.org/9321Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst fd5ce133
...@@ -33,19 +33,18 @@ class OutputDevice; ...@@ -33,19 +33,18 @@ class OutputDevice;
/* /*
Beschreibung Description
============ ============
class FontList class FontList
Diese Klasse verwaltet alle Fonts, die auf einem oder zwei Ausgabegeraeten This class manages all fonts which can be display on one or two output devices.
dargestellt werden koennen. Zusaetzlich bietet die Klasse Methoden an, um Additionally, this class offers methods for generating the StyleName from
aus Fett und Kursiv den StyleName zu generieren oder aus einem Stylename bold and italics or the missing attributes from a StyleName.
die fehlenden Attribute. Zusaetzlich kann diese Klasse syntetisch nachgebildete Furthermore, this class can handle synthetically reproduced fonts.
Fonts verarbeiten. Diese Klasse kann mit verschiedenen Standard-Controls und It also works with several standard controls and standard menus.
Standard-Menus zusammenarbeiten.
Querverweise Links:
class FontNameBox, class FontStyleBox, class FontSizeBox, class FontNameBox, class FontStyleBox, class FontSizeBox,
class FontNameMenu, class FontSizeMenu class FontNameMenu, class FontSizeMenu
...@@ -55,53 +54,47 @@ class FontNameMenu, class FontSizeMenu ...@@ -55,53 +54,47 @@ class FontNameMenu, class FontSizeMenu
FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2 = NULL, FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2 = NULL,
bool bAll = true ); bool bAll = true );
Konstruktor der Klasse FontList. Vom uebergebenen OutputDevice werden die Constructor of the FontList class. The relevant fonts will be queried from
entsprechenden Fonts abgefragt. Das OutputDevice muss solange existieren, the OutputDevice. The OutputDevice needs to exist as long as the FontList
wie auch die Klasse FontList existiert. Optional kann noch ein 2tes class exists. Optionally, a second output device can be given in order to,
Ausgabedevice uebergeben werden, damit man zum Beispiel die Fonts von e.g., manage the fonts from both, a printer and a screen in a single FontList
einem Drucker und dem Bildschirm zusammen in einer FontListe verwalten kann and thus also give FontMenus the fonts if both OutputDevices.
und somit auch den FontListen und FontMenus die Fonts von beiden OutputDevices The pDevice2 needs to exist as long as the FontList class exists.
zu uebergeben. Auch das pDevice2 muss solange existieren, wie die Klasse
FontList existiert. The OutputDevice given first should be the preferred one. This is usually
the printer. Because if two different device fonts (one for the printer and
Das OutputDevice, welches als erstes uebergeben wird, sollte das bevorzugte one for the screen) exist, the ones from the "pDevice" are preferred.
sein. Dies sollte im normalfall der Drucker sein. Denn wenn 2 verschiede
Device-Schriften (eine fuer Drucker und eine fuer den Bildschirm) vorhanden The third paramter governs whether only scalable or all fonts shall be queried.
sind, wird die vom uebergebenen Device "pDevice" bevorzugt. With sal_True Bitmap-Schriften will also be queried.
With sal_False vectorized and scalable fonts will be queried.
Mit dem dritten Parameter kann man angeben, ob nur skalierbare Schriften
abgefragt werden sollen oder alle. Wenn sal_True uebergeben wird, werden auch
Bitmap-Schriften mit abgefragt. Bei sal_False werden Vector-Schriften und
scalierbare Schriften abgefragt.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
String FontList::GetStyleName( const FontInfo& rInfo ) const; String FontList::GetStyleName( const FontInfo& rInfo ) const;
Diese Methode gibt den StyleName von einer FontInfo zurueck. Falls kein This method returns the StyleName of a FontInfo.
StyleName gesetzt ist, wird aus den gesetzten Attributen ein entsprechender If no StyleName is set, a name will be generated from the set attributes.
Name generiert, der dem Anwender praesentiert werden kann.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
OUString FontList::GetFontMapText( const FontInfo& rInfo ) const; OUString FontList::GetFontMapText( const FontInfo& rInfo ) const;
Diese Methode gibt einen Matchstring zurueck, der dem Anwender This method returns a Matchstring which indicates the problem that could
anzeigen soll, welche Probleme es mit diesem Font geben kann. arise when using a font. This string should be displayed to the user.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
FontInfo FontList::Get( const String& rName, const String& rStyleName ) const; FontInfo FontList::Get( const String& rName, const String& rStyleName ) const;
Diese Methode sucht aus dem uebergebenen Namen und dem uebergebenen StyleName This method search a FontInfo for the given name and the given style name.
die entsprechende FontInfo-Struktur raus. Der Stylename kann in dieser The Stylename can also be a synthetic one.
Methode auch ein syntetischer sein. In diesem Fall werden die entsprechenden In that case the relevant FontInfo fields will be set.
Werte in der FontInfo-Struktur entsprechend gesetzt. Wenn ein StyleName If a StyleName is provived, a FontInfo structure without a Stylename can be
uebergeben wird, kann jedoch eine FontInfo-Struktur ohne Stylename returned. To get a representation of the StyleName for displaying it to the user,
zurueckgegeben werden. Um den StyleName dem Anwender zu repraesentieren, call GetStyleName() on this FontInfo structure.
muss GetStyleName() mit dieser FontInfo-Struktur aufgerufen werden.
Querverweise Links:
FontList::GetStyleName() FontList::GetStyleName()
...@@ -110,13 +103,12 @@ FontList::GetStyleName() ...@@ -110,13 +103,12 @@ FontList::GetStyleName()
FontInfo FontList::Get( const String& rName, FontWeight eWeight, FontInfo FontList::Get( const String& rName, FontWeight eWeight,
FontItalic eItalic ) const; FontItalic eItalic ) const;
Diese Methode sucht aus dem uebergebenen Namen und den uebergebenen Styles This method search a FontInfo structure for a provided name and styles.
die entsprechende FontInfo-Struktur raus. Diese Methode kann auch eine This method can also return a FontInfo without a Stylename.
FontInfo-Struktur ohne Stylename zurueckgegeben. Um den StyleName dem To get a representation of the StyleName to be presented to the user
Anwender zu repraesentieren, muss GetStyleName() mit dieser FontInfo-Struktur call GetStyleName() with this FontInfo.
aufgerufen werden.
Querverweise Links:
FontList::GetStyleName() FontList::GetStyleName()
...@@ -124,13 +116,13 @@ FontList::GetStyleName() ...@@ -124,13 +116,13 @@ FontList::GetStyleName()
const sal_IntPtr* FontList::GetSizeAry( const FontInfo& rInfo ) const; const sal_IntPtr* FontList::GetSizeAry( const FontInfo& rInfo ) const;
Diese Methode liefert zum uebergebenen Font die vorhandenen Groessen. This method returns the available sizes for the given font.
Falls es sich dabei um einen skalierbaren Font handelt, werden Standard- If it is a scalable font, standard sizes are returned.
Groessen zurueckgegeben. Das Array enthaelt die Hoehen des Fonts in 10tel The array contains the heights of the font in tenth (1/10) point.
Point. Der letzte Wert des Array ist 0. Das Array, was zurueckgegeben wird, The last value of the array is 0.
wird von der FontList wieder zerstoert. Nach dem Aufruf der naechsten Methode The returned array will destroyed by the FontList.
von der FontList, sollte deshalb das Array nicht mehr referenziert werden. You should thus not reference the array after the next method call on the
FontList.
*/ */
......
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