Kaydet (Commit) b6a3cdf1 authored tarafından Philipp Weissenbacher's avatar Philipp Weissenbacher Kaydeden (comit) Michael Stahl

tdf#39468 Translate German comments - include/svx

Also fixed one comment I forgot in the previous patch

Change-Id: I3ee090b03bb3d5b5c0d4095c991f22a894ed912a
Signed-off-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst e3a74864
...@@ -29,12 +29,15 @@ ...@@ -29,12 +29,15 @@
// ExchangeFormat-Id der DrawingEngine holen. Daten koennen dann per /**
// static bool CopyData(pData,nLen,nFormat); * Get ExchangeFormatID of the DrawingEngine.
// bereitgestellt werden, wobei pData/nLen einen SvMemoryStream beschreiben in * The data can then be made available via
// dem ein SdrModel gestreamt wird an dem fuer die Zeitdauer des Streamens das * static bool CopyData(pData,nLen,nFormat);
// Flag SdrModel::SetStreamingSdrModel(sal_True) gesetzt wird. *
// sal_uIntPtr SdrGetExchangeFormat(); -- JP 18.01.99 - dafuer gibt es ein define * However, pData/nLen describe an SvMemoryStream in which an SdrModel is
* streamed. For its lifetime, the flag SdrModel::SetStreamingSdrModel(true)
* is set.
*/
class SdrOutliner; class SdrOutliner;
class SdrModel; class SdrModel;
...@@ -45,16 +48,20 @@ namespace com { namespace sun { namespace star { namespace lang { ...@@ -45,16 +48,20 @@ namespace com { namespace sun { namespace star { namespace lang {
struct Locale; struct Locale;
}}}} }}}}
// Einen Outliner mit den engineglobalen /**
// Defaulteinstellungen auf dem Heap erzeugen. * Create an Outliner with the engine-global default settings on the heap.
// Ist pMod<>NULL, dann wird der MapMode des uebergebenen * If pMod != nullptr, the MapMode of the passed model is used.
// Models verwendet. Die resultierende Default-Fonthoehe bleibt * The resulting default font height, however, stays the same (the logical
// jedoch dieselbe (die logische Fonthoehe wird umgerechnet). * font height is converted).
*/
SVX_DLLPUBLIC SdrOutliner* SdrMakeOutliner(sal_uInt16 nOutlinerMode, SdrModel& rMod); SVX_DLLPUBLIC SdrOutliner* SdrMakeOutliner(sal_uInt16 nOutlinerMode, SdrModel& rMod);
// Globale Defaulteinstellungen fuer die DrawingEngine. /**
// Diese Einstellungen sollte man direkt beim Applikationsstart * Global default settings for the DrawingEngine.
// vornehmen, noch bevor andere Methoden der Engine gerufen werden. *
* One should set these default settings as the first
* thing at program start, before any other method is called.
*/
class SVX_DLLPUBLIC SdrEngineDefaults class SVX_DLLPUBLIC SdrEngineDefaults
{ {
friend class SdrAttrObj; friend class SdrAttrObj;
...@@ -71,66 +78,71 @@ private: ...@@ -71,66 +78,71 @@ private:
public: public:
SdrEngineDefaults(); SdrEngineDefaults();
// Default FontColor ist COL_BLACK // Default FontColor is COL_BLACK
static Color GetFontColor() { return GetDefaults().aFontColor; } static Color GetFontColor() { return GetDefaults().aFontColor; }
// Default FontHeight ist 847. Die Fonthoehe wird in logischen Einheiten // Default FontHeight is 847. The font height uses logical units (MapUnit/MapFraction
// (MapUnit/MapFraction (siehe unten)) angegeben. Die Defaulteinstellung // see below for further details). The default setting 847/100mm corresponds to about
// 847/100mm entspricht also ca. 24 Point. Verwendet man stattdessen // 24 Point. If e.g. one would use Twips (SetMapUnit(MAP_TWIP)) (20 Twip = 1 Point)
// beispielsweise Twips (SetMapUnit(MAP_TWIP)) (20 Twip = 1 Point) muss // instead, one would need to set the font height to 480, in order to get a 24 Point height.
// man als Fonthoehe 480 angeben um 24 Point als default zu erhalten.
static sal_uIntPtr GetFontHeight() { return GetDefaults().nFontHeight; } static sal_uIntPtr GetFontHeight() { return GetDefaults().nFontHeight; }
// Der MapMode wird fuer den globalen Outliner benoetigt. // The MapMode is needed for the global Outliner.
// Gleichzeitig bekommt auch jedes neu instanziierte SdrModel // Incidentally, every newly instantiated SdrModel is assigned this MapMode by default.
// diesen MapMode default zugewiesen. // Default MapUnit is MAP_100TH_MM
// Default MapUnit ist MAP_100TH_MM
static MapUnit GetMapUnit() { return GetDefaults().eMapUnit; } static MapUnit GetMapUnit() { return GetDefaults().eMapUnit; }
// Default MapFraction ist 1/1. // Default MapFraction is 1/1.
static Fraction GetMapFraction() { return GetDefaults().aMapFraction; } static Fraction GetMapFraction() { return GetDefaults().aMapFraction; }
// Einen Outliner mit den engineglobalen // Create an Outliner with the engine-global default values on the heap.
// Defaulteinstellungen auf dem Heap erzeugen. // If pMod != nullptr, the MapMode of the passed model is used.
// Ist pMod<>NULL, dann wird der MapMode des uebergebenen // The resulting default font height, however, stays the same (the logical font height is converted).
// Models verwendet. Die resultierende Default-Fonthoehe bleibt
// jedoch dieselbe (die logische Fonthoehe wird umgerechnet).
friend SVX_DLLPUBLIC SdrOutliner* SdrMakeOutliner(sal_uInt16 nOutlinerMode, SdrModel& rMod); friend SVX_DLLPUBLIC SdrOutliner* SdrMakeOutliner(sal_uInt16 nOutlinerMode, SdrModel& rMod);
}; };
class SfxItemSet; class SfxItemSet;
// Liefert eine Ersatzdarstellung fuer einen XFillStyle
// Bei XFILL_NONE gibt's sal_False und rCol bleibt unveraendert. /**
* Returns a replacement for an XFillStyle
*
* @returns false for XFILL_NONE and rCol remains unchanged
*/
SVX_DLLPUBLIC bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol); SVX_DLLPUBLIC bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol);
// Ein ItemSet auf Outliner- bzw. EditEngine-Items durchsuchen /**
// Liefert sal_True, wenn der Set solchen Items enthaelt. * Search an ItemSet for Outliner/EditEngine Items
*
* @returns true, if the set contains such items
*/
bool SearchOutlinerItems(const SfxItemSet& rSet, bool bInklDefaults, bool* pbOnlyEE=NULL); bool SearchOutlinerItems(const SfxItemSet& rSet, bool bInklDefaults, bool* pbOnlyEE=NULL);
// zurueck erhaelt man einen neuen WhichTable den /**
// man dann irgendwann mit delete platthauen muss. * @returns a new WhichTable, which we need to squash at some point with a delete
*/
sal_uInt16* RemoveWhichRange(const sal_uInt16* pOldWhichTable, sal_uInt16 nRangeBeg, sal_uInt16 nRangeEnd); sal_uInt16* RemoveWhichRange(const sal_uInt16* pOldWhichTable, sal_uInt16 nRangeBeg, sal_uInt16 nRangeEnd);
// Hilfsklasse zur kommunikation zwischen dem Dialog /**
// zum aufbrechen von Metafiles (sd/source/ui/dlg/brkdlg.cxx), * Helper class for the communication between the dialog
// SdrEditView::DoImportMarkedMtf() und * In order to break open Metafiles (sd/source/ui/dlg/brkdlg.cxx),
// ImpSdrGDIMetaFileImport::DoImport() * SdrEditView::DoImportMarkedMtf() and ImpSdrGDIMetaFileImport::DoImport()
*/
class SVX_DLLPUBLIC SvdProgressInfo class SVX_DLLPUBLIC SvdProgressInfo
{ {
private: private:
sal_uIntPtr nSumActionCount; // Summe aller Actions sal_uIntPtr nSumActionCount; // Sum of all Actions
sal_uIntPtr nSumCurAction; // Summe aller bearbeiteten Actions sal_uIntPtr nSumCurAction; // Sum of all handled Actions
sal_uIntPtr nActionCount; // Anzahl der Actions im akt. Obj. sal_uIntPtr nActionCount; // Count of Actions in the current object
sal_uIntPtr nCurAction; // Anzahl bearbeiteter Act. im akt. Obj. sal_uIntPtr nCurAction; // Count of handled Actions in the current object
sal_uIntPtr nInsertCount; // Anzahl einzufuegender Act. im akt. Obj. sal_uIntPtr nInsertCount; // Count of to-be-inserted Actions in the current object
sal_uIntPtr nCurInsert; // Anzahl bereits eingefuegter Actions sal_uIntPtr nCurInsert; // Count of already inserted Actions
sal_uIntPtr nObjCount; // Anzahl der selektierten Objekte sal_uIntPtr nObjCount; // Count of selected objects
sal_uIntPtr nCurObj; // Aktuelles Objekt sal_uIntPtr nCurObj; // Current object
Link<> *pLink; Link<> *pLink;
......
This diff is collapsed.
...@@ -136,7 +136,7 @@ inline void RotatePoint(Point& rPnt, const Point& rRef, double sn, double cs) ...@@ -136,7 +136,7 @@ inline void RotatePoint(Point& rPnt, const Point& rRef, double sn, double cs)
inline void ShearPoint(Point& rPnt, const Point& rRef, double tn, bool bVShear) inline void ShearPoint(Point& rPnt, const Point& rRef, double tn, bool bVShear)
{ {
if (!bVShear) { // Horizontal if (!bVShear) { // Horizontal
if (rPnt.Y()!=rRef.Y()) { // sonst nicht noetig if (rPnt.Y()!=rRef.Y()) { // else not needed
rPnt.X()-=Round((rPnt.Y()-rRef.Y())*tn); rPnt.X()-=Round((rPnt.Y()-rRef.Y())*tn);
} }
} else { // or else vertical } else { // or else vertical
......
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