[Libreoffice-commits] core.git: include/svx

Jennifer Liebel jliebel94 at gmail.com
Tue Dec 16 23:30:50 PST 2014


 include/svx/svdsnpv.hxx  |  157 ++++++++++++++++++++++-------------------------
 include/svx/svdsob.hxx   |    4 -
 include/svx/svdtypes.hxx |   73 ++++++++++-----------
 include/svx/svdview.hxx  |   79 +++++++++++------------
 4 files changed, 153 insertions(+), 160 deletions(-)

New commits:
commit d8b05b5951fd446ff3fa904a6f68846f1abdb2fe
Author: Jennifer Liebel <jliebel94 at gmail.com>
Date:   Tue Dec 16 10:10:34 2014 +0000

    fdo#39468: translate german comments
    
    Change-Id: I97d4b615a9c1ea2a9e7e9dfa7fa789fc396b7f29
    Reviewed-on: https://gerrit.libreoffice.org/13491
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/svx/svdsnpv.hxx b/include/svx/svdsnpv.hxx
index 93dff24..e053326 100644
--- a/include/svx/svdsnpv.hxx
+++ b/include/svx/svdsnpv.hxx
@@ -30,7 +30,7 @@
 #define SDRSNAP_YSNAPPED    0x0002
 #define SDRSNAP_XYSNAPPED   0x0003
 
-// SDRCROOK_STRETCH ist noch nicht implementiert!
+// SDRCROOK_STRETCH is not implemented yet!
 enum SdrCrookMode {
     SDRCROOK_ROTATE,
     SDRCROOK_SLANT,
@@ -62,7 +62,7 @@ protected:
 
     bool                        bSnapEnab : 1;
     bool                        bGridSnap : 1;
-    bool                        bSnapTo1Pix : 1;             // Wenn GridSnap aus, auf ein Pixel fangen um Werte wie 10.01 zu vermeiden
+    bool                        bSnapTo1Pix : 1;             // If GridSnap off, snap to one Pixel to avoid values like 10.01
     bool                        bBordSnap : 1;
     bool                        bHlplSnap : 1;
     bool                        bOFrmSnap : 1;
@@ -72,14 +72,14 @@ protected:
     bool                        bMoveOFrmSnap : 1;
     bool                        bMoveOPntSnap : 1;
     bool                        bMoveOConSnap : 1;
-    bool                        bMoveSnapOnlyTopLeft : 1;    //  Speacial fuer den Dialogeditor
+    bool                        bMoveSnapOnlyTopLeft : 1;    //  Special for dialogeditor
     bool                        bOrtho : 1;
     bool                        bBigOrtho : 1;
     bool                        bAngleSnapEnab : 1;
-    bool                        bMoveOnlyDragging : 1;       // Objekte nur verschieben bei Resize/Rotate/...
-    bool                        bSlantButShear : 1;          // Slant anstelle von Shear anwenden
-    bool                        bCrookNoContortion : 1;      // Objekte bei Crook nicht verzerren
-    bool                        bHlplFixed : 1;       // sal_True=Hilfslinien fixiert, also nicht verschiebbar
+    bool                        bMoveOnlyDragging : 1;       // only move objects while Resize/Rotate/...
+    bool                        bSlantButShear : 1;          // use slant instead of shear
+    bool                        bCrookNoContortion : 1;      // no contorsion while Crook
+    bool                        bHlplFixed : 1;              // sal_True= fixed auxiliary lines, so it isn't movable
     bool                        bEliminatePolyPoints : 1;
 
 private:
@@ -95,7 +95,7 @@ public:
     virtual void MovAction(const Point& rPnt) SAL_OVERRIDE;
     virtual void EndAction() SAL_OVERRIDE;
     virtual void BckAction() SAL_OVERRIDE;
-    virtual void BrkAction() SAL_OVERRIDE; // f.abg.Klassen Actions z,B, Draggen abbrechen.
+    virtual void BrkAction() SAL_OVERRIDE; // break actions for derived classes e.g. interrupt dragging.
     virtual void TakeActionRect(Rectangle& rRect) const SAL_OVERRIDE;
 
     void SetSnapGridWidth(const Fraction& rX, const Fraction& rY) { aSnapWdtX=rX; aSnapWdtY=rY; }
@@ -107,26 +107,25 @@ public:
     void SetSnapMagneticPixel(sal_uInt16 nPix) { nMagnSizPix=nPix; }
     sal_uInt16 GetSnapMagneticPixel() const { return nMagnSizPix; }
 
-    // RecalcLogicSnapMagnetic muss bei jedem Wechsel des OutputDevices
-    // sowie bei jedem Wechsel des MapModes gerufen werden!
+    // RecalcLogicSnapMagnetic has to be called for every change of OutputDevices and every change of the MapMode!
     void RecalcLogicSnapMagnetic(const OutputDevice& rOut) { SetSnapMagnetic(rOut.PixelToLogic(Size(nMagnSizPix,nMagnSizPix))); }
     void SetActualWin(const OutputDevice* pWin) { SdrPaintView::SetActualWin(pWin); if (pWin!=NULL) RecalcLogicSnapMagnetic(*pWin); }
 
-    // Auf die View bezogene Koordinaten!
-    // Rueckgabewerte sind SDRSNAP_NOTSNAPPED,SDRSNAP_XSNAPPED,
-    // SDRSNAP_YSNAPPED oder SDRSNAP_XYSNAPPED
+    // Coordinates refered to the view!
+    // Returnvalues are SDRSNAP_NOTSNAPPED,SDRSNAP_XSNAPPED,
+    // SDRSNAP_YSNAPPED or SDRSNAP_XYSNAPPED
     sal_uInt16 SnapPos(Point& rPnt, const SdrPageView* pPV) const;
     Point GetSnapPos(const Point& rPnt, const SdrPageView* pPV) const;
     void CheckSnap(const Point& rPt, const SdrPageView* pPV, long& nBestXSnap, long& nBestYSnap, bool& bXSnapped, bool& bYSnapped) const;
 
-    // Alle Fangeinstellungen sind Persistent.
+    // All attitudes to snap are persistent.
     bool IsSnapEnabled() const { return bSnapEnab; }
-    bool IsGridSnap() const { return bGridSnap; } // Fang auf Rastergitter
-    bool IsBordSnap() const { return bBordSnap; } // Fang auf Seitenraender
-    bool IsHlplSnap() const { return bHlplSnap; } // Fang auf Hilfslinien
-    bool IsOFrmSnap() const { return bOFrmSnap; } // Fang auf LogFram von umgebenden Zeichenobjekten
-    bool IsOPntSnap() const { return bOPntSnap; } // Fang auf ausgepraegte Punkte von umgebenden Zeichenobjekten
-    bool IsOConSnap() const { return bOConSnap; } // Fang auf Konnektoren der Zeichenobjekte
+    bool IsGridSnap() const { return bGridSnap; } // Snap to grid
+    bool IsBordSnap() const { return bBordSnap; } // Snap to border
+    bool IsHlplSnap() const { return bHlplSnap; } // Snap to auxiliary line
+    bool IsOFrmSnap() const { return bOFrmSnap; } // Snap to LogFram from surrounding drawing objects
+    bool IsOPntSnap() const { return bOPntSnap; } // Snap to distinct points from surrounding drawing objects
+    bool IsOConSnap() const { return bOConSnap; } // Snap to connectors of the drawing objects
     void SetSnapEnabled(bool bOn) { bSnapEnab=bOn; }
     void SetGridSnap(bool bOn) { bGridSnap=bOn; }
     void SetBordSnap(bool bOn) { bBordSnap=bOn; }
@@ -135,15 +134,14 @@ public:
     void SetOPntSnap(bool bOn) { bOPntSnap=bOn; }
     void SetOConSnap(bool bOn) { bOConSnap=bOn; }
 
-    // Normalerweise werden beim Move-Dragging von Zeichenobjekten alle
-    // 4 Ecken des Object-SnapRects gefangen. Folgende Einstellmoeglichkeit,
-    // wenn man nur auf die linke obere Ecke fangen will (z.B. DialogEditor):
-    // Persistent, Default=FALSE.
+    // Usually every 4 corners of Object-SnapRects are snapped for Move-Dragging.
+    // The following attitudes e.g. if you only want to snap the left corner on the top (e.g. DialogEditor)
+    // persistent, Default=FALSE.
     void SetMoveSnapOnlyTopLeft(bool bOn) { bMoveSnapOnlyTopLeft=bOn; }
     bool IsMoveSnapOnlyTopLeft() const { return bMoveSnapOnlyTopLeft; }
 
-    // Hilfslinien fixiert (nicht verschiebbar)
-    // Persistent, Default=FALSE.
+    // auxiliary lines fixed (not moveable)
+    // persistent, Default=FALSE.
     bool IsHlplFixed() const { return bHlplFixed; }
     void SetHlplFixed(bool bOn) { bHlplFixed=bOn; }
 
@@ -164,108 +162,105 @@ public:
     void BrkSetPageOrg();
     bool IsSetPageOrg() const { return (0L != mpPageOriginOverlay); }
 
-    // HitTest. Bei sal_True steht in rnHelpLineNum die Nummer der Hilfslinie und in rpPV
-    // die zugehoerige PageView.
+    // HitTest. If sal_True, in rnHelpLineNum is the number of the auxiliary line and in rpPv
+    // the appendent PageView.
     bool PickHelpLine(const Point& rPnt, short nTol, const OutputDevice& rOut, sal_uInt16& rnHelpLineNum, SdrPageView*& rpPV) const;
 
-    // Verschieben einer vorhandenen Hilfslinie. nHelpLineNum und pPV von PickHelpLine verwenden.
+    // Move of an available auxiliary line. Use nHelpLineNum and pPV from PickHelpLine.
     bool BegDragHelpLine(sal_uInt16 nHelpLineNum, SdrPageView* pPV);
-    // Interaktives einfuegen einer neuen Hilfslinie
+    // interactive insertionof a new auxiliary line
     bool BegDragHelpLine(const Point& rPnt, SdrHelpLineKind eNewKind);
     Pointer GetDraggedHelpLinePointer() const;
 
-    // Aendern des Hilfslinientyps waerend des draggens
+    // change the type of auxiliary line while dragging
     // void SetDraggedHelpLineKind(SdrHelpLineKind eNewKind);
     void MovDragHelpLine(const Point& rPnt);
     bool EndDragHelpLine();
     void BrkDragHelpLine();
     bool IsDragHelpLine() const { return (0L != mpHelpLineOverlay); }
 
-    // SnapAngle ist fuer Winkel im Kreis, RotateDragging, ...
-    // Der Winkelfang wird unterdrueckt, wenn er mit
-    // durch SetAngleSnapEnabled(sal_False) ausgeschaltet ist.
-    // Der Winkelfang ist unabhaengig vom Koordinatenfang
-    // und somit von der Einstellung IsSnapEnabled()
-    // Es sollten nur Werte angegeben werden fuer die gilt:
+    // SnapAngle is for angles in circle, RotateDragging, ...
+    // The snapping of an angle is beared down, if it is swiched off
+    // with SetAngleSnapEnabled(sal_False)
+    // The snapping angles is independent of snapping coordinates
+    // and so independent of the attitude IsSnapEnabled()
+    // Only values should be specified for them is applied:
     //     36000 modulu nAngle = 0
-    // Implementiert fuer:
+    // Implemented for:
     // - Rotate (Dragging)
     // - Shear (Dragging)
-    // - Kreisbogen/-sektor/-abschnitt Winkel (Create und Dragging)
-    // Persistent.
+    // - circular arc/-sector/-section angle (Create and Dragging)
+    // persistent.
     void SetAngleSnapEnabled(bool bOn) { bAngleSnapEnab=bOn; }
     bool IsAngleSnapEnabled() const { return bAngleSnapEnab; }
     void SetSnapAngle(long nAngle) { nSnapAngle=nAngle; }
     long GetSnapAngle() const { return nSnapAngle; }
 
-    // Ortho hat je nach Kontext verschiedene Effekte:
+    // different effects from Ortho (depending on the context):
     // - Create
-    //   - Linien werden nur im 45deg Raster zugelassen
-    //   - Statt Rechtecke werden Quadrate erzeugt
-    //   - Statt Ellipsen werden Kreise erzeugt
+    //   - only lines in 45deg grid
+    //   - instead of rectangles squares are created
+    //   - instead of ellipse circles are created
     // - Dragging
-    //   - allgemeines Dragging
-    //     - Move nur Hor, Vert oder 45deg
+    //   - general Dragging
+    //     - Move only horizontal, vertical or 45deg
     //     - Resize proportional
-    //     - Mirror: nichts
-    //     - Shear ohne Resize
-    //     - Crook ohne Resize
-    //   - verschieben der Handles
-    //     - Spiegelachse nur 45deg Raster
-    //   - Objekteigenes Dragging
-    //     - Rechteck Eckenradius: nichts
-    //     - Kreisobjekt Winkel: nichts
-    //     - Linie behaelt beim Draggen ihren Winkel bei und wird nur    (ni)
-    //       verlaengert bzw. verkuerzt.
-    // Defaultmaessig ist Ortho ausgeschaltet. Persistent.
+    //     - Mirror: nothing
+    //     - Shear without Resize
+    //     - Crook without Resize
+    //   - move handles
+    //     - mirror axis only 45deg grid
+    //   - object-specific Dragging
+    //     - rectangle corner radius: nothing
+    //     - circle object angle: nothing
+    //     - line keeps while Dragging the angle and is only streched/ contracted
+    // Default value for Ortho is off. persistent.
     void SetOrtho(bool bOn) { bOrtho=bOn; } // unvollstaendig
     bool IsOrtho() const { return bOrtho; }
 
-    // BigOrtho hat nur Relevanz wenn Ortho eingeschaltet ist.
-    // Beispiel: Ein Rechteck wird mit eingeschaltetem Ortho (also ein Quadrat)
-    //   erzeugt und die Maus wurde dabei vom Nullpunkt zu den Koordinaten
-    //   (80,30) gedraggt. Dann stuenden nun 2 Alternativen zur Bestimmung der
-    //   Kantenlaenge des Quadrats zur Wahl: 30 und 80.
-    //   Die normale Ortho-Funktuionalitaet brachte hierbei ein Quadrat mit
-    //   Kantenlaenge 30 (also immer die kleinere Groesse). Bei hinzugeschal-
-    //   tetem BigOrtho bekaeme man dagegen ein Quadrat der Kantenlaenge 80.
-    // Gleiches gilt auch fuer Resize.
-    // Defaultmaessig ist BigOrtho eingeschaltet. Persistent.
+    // BigOrtho is only relevant if Ortho is switched on.
+    // Example: rectangle is created and ortho is switched on (--> square)
+    //   and the Mouse was dragged from zero to the coordinates
+    //   (80,30). Now there are 2 alternatives to determine the edge length
+    //   of the square: 30 and 80.
+    //   The standard Ortho-Function took 30 ( everytime the smaller length)
+    //   If BigOrtho is switched on, you get a square with edge length of 80.
+    // The same also applies to Resize.
+    // Default value for BigOrtho is on. persistent.
     void SetBigOrtho(bool bOn) { bBigOrtho=bOn; }
     bool IsBigOrtho() const { return bBigOrtho; }
 
-    // bei MoveOnlyDragging=sal_True wird bei Resize/Rotate/Shear/Mirror/Crook
-    // nur das Zentrum der markierten Objekte transformiert. Groesse, Form
-    // und Drehwinkel der Objekte bleiben erhalten, nur ihre Positionen
-    // aendern sich. Persistent. Default=FALSE. (ni)
+    // If MoveOnlyDragging=sal_True only the center of the marked objects is
+    // transformed when Resize/Rotate/Shear/Mirror/Crook is executed.
+    // Size, form and rotation angle of the objects are conserved only their positions
+    // are changed. persistent. Default=FALSE. (ni)
     void SetMoveOnlyDragging(bool bOn) { bMoveOnlyDragging=bOn; }
     bool IsMoveOnlyDragging() const { return bMoveOnlyDragging; }
 
-    // Slant anstelle von Shear anwenden. Persistent. Default=FALSE.
+    // Use Slant instead of Shear. persistent. Default=FALSE.
     void SetSlantButShear(bool bOn) { bSlantButShear=bOn; }
     bool IsSlantButShear() const { return bSlantButShear; }
 
-    // Objekte bei Crook nicht verzerren. Persistent. Default=FALSE. (ni)
+    // Don't contort objecte while Crook. persistent. Default=FALSE. (ni)
     void SetCrookNoContortion(bool bOn) { bCrookNoContortion=bOn; }
     bool IsCrookNoContortion() const { return bCrookNoContortion; }
 
-    // Crook-Modus. Persistent. Default=SDRCROOK_ROTATE. (ni)
+    // Crook-Mode. persistent. Default=SDRCROOK_ROTATE. (ni)
     void SetCrookMode(SdrCrookMode eMode) { eCrookMode=eMode; }
     SdrCrookMode GetCrookMode() const { return eCrookMode; }
 
-    // Special fuer IBM: Beim Draggen eines Polygonpunkts wird dieser
-    // geloescht, wenn seine beiden angrenzenden Linien eh' fast eine
-    // durchgehende Linie sind.
+    // Special for IBM: While Dragging of a traverse station, it is deleted
+    // if its adjacent lines are almost a solid line.
     void SetEliminatePolyPoints(bool bOn) { bEliminatePolyPoints=bOn; }
     bool IsEliminatePolyPoints() const { return bEliminatePolyPoints; }
     void SetEliminatePolyPointLimitAngle(long nAngle) { nEliminatePolyPointLimitAngle=nAngle; }
     long GetEliminatePolyPointLimitAngle() const { return nEliminatePolyPointLimitAngle; }
 };
 
-// Begriffsdefinition:
-//   - Etwas fangen=Gefangen werden kann z.B. der Mauszeiger oder die z.Zt. im
-//     Drag befindlichen markierten Objekte.
-//   - Auf etwas fangen=Man kann z.B. auf das Grid oder auf Hilfslinien fangen.
+// definition:
+//   - snap something= e.g. the mouse pointer or some marked objects in drag can be snapped
+//   - snap on sth.= you can e.g. snap on the grid or on auxiliary lines.
+//
 //
 // Grundsaetzlich wird nur gefangen auf sichtbare Elemente (-> Border,
 // Hilfslinien, Konnektoren; Ausnahme: Grid). Ebenso koennen nur sichtbare
diff --git a/include/svx/svdsob.hxx b/include/svx/svdsob.hxx
index da66a2a..69bebbf 100644
--- a/include/svx/svdsob.hxx
+++ b/include/svx/svdsob.hxx
@@ -27,8 +27,8 @@
 
 
 /*
-  Deklaration eines statischen Mengentyps. Die Menge kann die Elemente
-  0..255 aufnehmen und verbraucht stets 32 Bytes.
+  Declaration of a static set type. The set can collect elements
+  from 0 to 255 and it takes always 32 Bytes.
 */
 
 class SVX_DLLPUBLIC SetOfByte
diff --git a/include/svx/svdtypes.hxx b/include/svx/svdtypes.hxx
index 58abbf1..6864cf6 100644
--- a/include/svx/svdtypes.hxx
+++ b/include/svx/svdtypes.hxx
@@ -30,20 +30,20 @@ const sal_uInt32 SdrInventor=sal_uInt32('S')*0x00000001+
                          sal_uInt32('D')*0x00010000+
                          sal_uInt32('r')*0x01000000;
 
-// Kommandos fuer EndCreate()
-enum SdrCreateCmd {SDRCREATE_NEXTPOINT,     // Naechster Polygonpunkt, Kreissegment: Naechste Koordinate
-                   SDRCREATE_NEXTOBJECT,    // Naechstes Polygon im PolyPolygon
-                   SDRCREATE_FORCEEND};     // Ende erzwungen
+// commands for EndCreate()
+enum SdrCreateCmd {SDRCREATE_NEXTPOINT,     // next traverse station, segment of a circle: next coordinate
+                   SDRCREATE_NEXTOBJECT,    // next polygon in PolyPolygon
+                   SDRCREATE_FORCEEND};     // forced end
 
 enum SdrDragMode
 {
-    SDRDRAG_MOVE,       // Verschieben
-    SDRDRAG_RESIZE,     // Groesse aendern
-    SDRDRAG_ROTATE,     // Drehen
-    SDRDRAG_MIRROR,     // Spiegeln
-    SDRDRAG_SHEAR,      // Schraegstellen
-    SDRDRAG_CROOK,      // Kreisfoermig verbiegen
-    SDRDRAG_DISTORT,    // Freies verzerren (Rect in beliebiges Viereck transformieren)
+    SDRDRAG_MOVE,
+    SDRDRAG_RESIZE,
+    SDRDRAG_ROTATE,
+    SDRDRAG_MIRROR,
+    SDRDRAG_SHEAR,
+    SDRDRAG_CROOK,
+    SDRDRAG_DISTORT,    // Free deform (transform Rect in arbitrary quad)
 
     // new modes for interactive transparence and gradient tools
     SDRDRAG_TRANSPARENCE,
@@ -55,36 +55,35 @@ enum SdrDragMode
 
 
 // fuer SdrObject::ConvertToPoly()
-enum SdrConvertType {SDRCONVERT_POLY,   // reines Polygon erzeugen
-                     SDRCONVERT_BEZIER, // alles Beziersegmente
-                     SDRCONVERT_MIXED}; // Gemischtes Objekt (optimal)
+enum SdrConvertType {SDRCONVERT_POLY,   // create pure polygon
+                     SDRCONVERT_BEZIER, // Beziersegment
+                     SDRCONVERT_MIXED}; // mixed object (optimal)
 
 /*
  * Layer
  */
-// Bei der Identifikation eines Layer kann es vorkommen, das dieser nicht
-// vorhanden ist. SdrLayerAdmin::GetLayerID(const String&) liefert
-// dann diesen Wert:
+// If there is no layer when it should be identified, then
+// drLayerAdmin::GetLayerID(const String&) returns a value.
 #define SDRLAYER_NOTFOUND 0xFF
-// Man kann diesen Wert jodoch ohne Bedenken den Methoden des SdrLayerSet
-// zuwerfen, bekommt dann jedoch immer sal_False, bzw. tut die Methode nix.
-// Typdeklaration fuer Layer-IDs
+// You can use this value in the methods of SdrLayerSet, but sal_False is returned
+// everytime or the methode does nothing.
+// type deklaration for Layer-IDs
 typedef sal_uInt8 SdrLayerID;
 
 /*
  * Page + ObjList
  */
-enum SdrObjListKind {SDROBJLIST_UNKNOWN    =0x00,    // Unbekannt
+enum SdrObjListKind {SDROBJLIST_UNKNOWN    =0x00,
                      // reine Objektlisten:
-                     SDROBJLIST_GROUPOBJ   =0x01,    // Objektliste eines Gruppenobjekts
-                     SDROBJLIST_VIRTOBJECTS=0x02,    // Liste ist die Liste der virtuellen Objekte
-                     SDROBJLIST_SYMBOLTABLE=0x03,    // Liste ist die Symboltabelle
-                     // Hier haben zur Not noch 12 weitere Listentypen Platz
+                     SDROBJLIST_GROUPOBJ   =0x01,
+                     SDROBJLIST_VIRTOBJECTS=0x02,
+                     SDROBJLIST_SYMBOLTABLE=0x03,
+                     // Here is space for 12 more types of lists
                      // Pages:
-                     SDROBJLIST_DRAWPAGE   =0x10,    // Liste ist eine Zeichenseite
-                     SDROBJLIST_MASTERPAGE =0x11    // Liste ist eine Masterpage
-                     // Hier haben zur Not noch 8 weitere Pagetypen Platz
-};   // fuer die Surrogate reserviert
+                     SDROBJLIST_DRAWPAGE   =0x10,
+                     SDROBJLIST_MASTERPAGE =0x11
+                     // Here is space for 8 more types of pages
+};   // reserved for Surrogate
 
 inline bool SdrIsPageKind(SdrObjListKind eK) { return eK>=SDROBJLIST_DRAWPAGE && eK<=0x1A; }
 
@@ -92,20 +91,20 @@ inline bool SdrIsPageKind(SdrObjListKind eK) { return eK>=SDROBJLIST_DRAWPAGE &&
  * Repeat
  */
 enum SdrRepeatFunc {SDRREPFUNC_OBJ_NONE,
-                    // Mit Parameter
-                    SDRREPFUNC_OBJ_MOVE,         // Distanz
-                    SDRREPFUNC_OBJ_RESIZE,       // Faktor, Referenz(%) bezogen auf MarkRect
-                    SDRREPFUNC_OBJ_SETSNAPRECT,  // Rectangle
-                    SDRREPFUNC_OBJ_SETLOGICRECT, // Rectangle
-                    SDRREPFUNC_OBJ_ROTATE,       // Drehwinkel, Referenz(%) bezogen auf MarkRect
-                    SDRREPFUNC_OBJ_SHEAR,        // Winkel,Faktor, Referenz(%) bezogen auf MarkRect
+                    // with parameter
+                    SDRREPFUNC_OBJ_MOVE,         // distance
+                    SDRREPFUNC_OBJ_RESIZE,       // factor, reference(%) related to MarkRect
+                    SDRREPFUNC_OBJ_SETSNAPRECT,  // rectangle
+                    SDRREPFUNC_OBJ_SETLOGICRECT, // rectangle
+                    SDRREPFUNC_OBJ_ROTATE,       // rotation angle, reference(%) related to MarkRect
+                    SDRREPFUNC_OBJ_SHEAR,        // angle, factor, reference(%) related to MarkRect
                     SDRREPFUNC_OBJ_CROOKROTATE,
                     SDRREPFUNC_OBJ_CROOKSLANT,
                     SDRREPFUNC_OBJ_CROOKSTRETCH,
                     SDRREPFUNC_OBJ_ALIGN,        // Hor/Vert/bBound
                     SDRREPFUNC_OBJ_SETATTRIBUTES,// ItemSet
                     SDRREPFUNC_OBJ_SETSTYLESHEET,// StyleSheet*
-                    // Ohne Parameter
+                    // Without parameter
                     SDRREPFUNC_OBJ_DELETE,
                     SDRREPFUNC_OBJ_COMBINE_POLYPOLY,
                     SDRREPFUNC_OBJ_COMBINE_ONEPOLY,
diff --git a/include/svx/svdview.hxx b/include/svx/svdview.hxx
index 2a754d1..bb9db82 100644
--- a/include/svx/svdview.hxx
+++ b/include/svx/svdview.hxx
@@ -31,7 +31,7 @@
 #include <basegfx/polygon/b2dpolypolygon.hxx>
 #include <basegfx/polygon/b2dpolygon.hxx>
 
-//  Klassenhierarchie der View:
+//  class hierarchy of View:
 //         SfxListener
 //         SdrPaintView    PntV   Action            ModChg   Attr   Notify
 //         SdrSnapView     SnpV   Action
@@ -91,7 +91,7 @@ struct SVX_DLLPUBLIC SdrViewEvent
 {
     SdrHdl*                     pHdl;
     SdrObject*                  pObj;
-    SdrObject*                  pRootObj;        // Dieses Markieren bei SdrBeginTextEdit
+    SdrObject*                  pRootObj;        // mark this when SdrBeginTextEdit is executed
     SdrPageView*                pPV;
     const SvxURLField*          pURLField;
 
@@ -99,7 +99,7 @@ struct SVX_DLLPUBLIC SdrViewEvent
     SdrHitKind                  eHit;
     SdrEventKind                eEvent;
     SdrHdlKind                  eHdlKind;
-    SdrCreateCmd                eEndCreateCmd;   // auch fuer EndInsPoint
+    SdrCreateCmd                eEndCreateCmd;   // for EndInsPoint too
 
     sal_uInt16                  nMouseClicks;
     MouseEventModifiers         nMouseMode;
@@ -109,10 +109,10 @@ struct SVX_DLLPUBLIC SdrViewEvent
 
     bool                        bMouseDown : 1;
     bool                        bMouseUp : 1;
-    bool                        bDoubleHdlSize : 1;  // Doppelte Handlegroesse wg. TextEdit
-    bool                        bIsAction : 1;       // Action ist aktiv
-    bool                        bIsTextEdit : 1;     // TextEdit laeuft zur Zeit
-    bool                        bTextEditHit : 1;    // offene OutlinerView getroffen
+    bool                        bDoubleHdlSize : 1;  // Double Handlesize because of TextEdit
+    bool                        bIsAction : 1;       // Action is active
+    bool                        bIsTextEdit : 1;     // TextEdit runs currently
+    bool                        bTextEditHit : 1;    // hit open OutlinerView?
     bool                        bAddMark : 1;
     bool                        bUnmark : 1;
     bool                        bPrevNextMark : 1;
@@ -126,7 +126,7 @@ public:
     SdrViewEvent();
     ~SdrViewEvent();
 
-    // nEventKind ist SDRMOUSEBUTTONDOWN, SDRMOUSEMOVE oder SDRMOUSEBUTTONUP
+    // nEventKind is SDRMOUSEBUTTONDOWN, SDRMOUSEMOVE oder SDRMOUSEBUTTONUP
     void SetMouseEvent(const MouseEvent& rMEvt, sal_uInt16 nEventKind);
 };
 
@@ -169,10 +169,10 @@ public:
     explicit SdrView(SdrModel* pModel1, OutputDevice* pOut = 0L);
     virtual ~SdrView();
 
-    // Default sind alle Dispatcher aktiviert. Will die App z.B. fuer
-    // Sonderbehandlungen im MouseDispatcher eingreifen, so muss sie
-    // den erweiterten MouseDispather mit unten stehender Methode deaktivieren
-    // und selbst nachimplementieren. Beispiel fuer MouseButtonDown:
+    // The default value for all dispatchers is activated. If the app for example
+    // wants to intervene in MouseDispatcher for special treatment, you have to
+    // deactivate the MouseDispatcher with the help of the methode below and you have
+    // to implement it yourself. Example for MouseButtonDown:
     //      SdrViewEvent aVEvt;
     //      SdrHitKind eHit=pSdrView->PickAnything(rMEvt,SDRMOUSEBUTTONDOWN,aVEvt);
     //      ... hier Applikationsspezifischer Eingriff ...
@@ -210,19 +210,19 @@ public:
 
     SfxStyleSheet* GetStyleSheet() const;
 
-    // unvollstaendige Implementation:
-    // Das OutputDevice ist notwendig, damit ich die HandleSize ermitteln kann.
-    // Bei NULL wird das 1. angemeldete Win verwendet.
+    // incomplete implementation:
+    // OutputDevice is necessary to determine HandleSize.
+    // If NULL the first signed on Win is used.
     Pointer GetPreferredPointer(const Point& rMousePos, const OutputDevice* pOut, sal_uInt16 nModifier=0, bool bLeftDown=false) const;
     SdrHitKind PickAnything(const MouseEvent& rMEvt, sal_uInt16 nMouseDownOrMoveOrUp, SdrViewEvent& rVEvt) const;
     SdrHitKind PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) const;
     bool DoMouseEvent(const SdrViewEvent& rVEvt);
     virtual SdrViewContext GetContext() const;
 
-    // Die Methoden beruecksichtigen den jeweiligen Kontex:
-    // - Einfaches Zeichnen
-    // - Punktbearbeitungs-Mode
-    // - Klebepunkt-Editmode
+    // The methods consider the particular context:
+    // - simple drawing
+    // - mode for editing points
+    // - mode for editing glue points
     // - TextEdit
     // - ... to be continued
     void MarkAll();
@@ -232,19 +232,19 @@ public:
 
     virtual void DeleteMarked();
 
-    // Markieren von Objekten, Polygonpunkten oder Klebepunkten (je nach View-
-    // Kontext) durch Aufziehen eines Selektionsrahmens.
-    //   bAddMark=TRUE: zur bestehenden Selektion hinzumarkieren (->Shift)
-    //   bUnmark=TRUE: Bereits selektierte Objekte/Punkte/Klebepunkte die innerhalb
-    //                 des aufgezogenen Rahmens liegen werden deselektiert.
+    // Marking objects, traverse stations or glue points (depending on view-
+    // context) by enveloping the selection frame.
+    //   bAddMark=TRUE: add to existing selection (->Shift)
+    //   bUnmark=TRUE: remove objects from selection which are inside of
+    //                 the enveloped frame.
     bool BegMark(const Point& rPnt, bool bAddMark=false, bool bUnmark=false);
 
-    // Folgende Actions sind moeglich:
+    // The following actions are possible:
     //   - ObjectCreating
     //   - ObjectMarking
     //   - Object-specific dragging
     //   - General dragging
-    // und mehr...
+    // and more...
     OUString GetStatusText();
 
     SvtAccessibilityOptions& getAccessibilityOptions() { return maAccessibilityOptions;}
@@ -254,21 +254,20 @@ public:
 
 #endif // INCLUDED_SVX_SVDVIEW_HXX
 
-// Die App macht sich zunaechst ein SdrModel.
-// Anschliessend oeffnet sie ein Win und erzeugt dann eine SdrView.
-// An der SdrView meldet sie dann mit der Methode ShowSdrPage() eine Seite an.
-// Eine SdrView kann in beliebig vielen Fenstern gleichzeitig angezeigt werden.
-// Intern:
-// Eine SdrView kann beliebig viele Seiten gleichzeitig anzeigen. Seiten
-// werden an- und abgemeldet mit ShowSdrPage()/HideSdrPage(). Fuer jede angemeldete
-// Seite wird eine SdrPageView-Instanz im Container aPages angelegt. Bei
-// gleichzeitiger Anzeige mehrerer Seiten ist darauf zu achten, dass der Offset-
-// Parameter von ShowSdrPage() der Seitengroesse angepasst ist, da sich sonst die
-// Seiten ueberlappen koennten.
+// First of all the app creates a SdrModel.
+// Then it opens a Win and creates a SdrView.
+// ShowSdrPage() announces a page at SdrView.
+// It's possible to show SdrView in any Wins at once.
+// internal:
+// SdrView can show as many Wins as it wants at once. Pages are announced
+// or checked out with the help of ShowSdrPage()/HideSdrPage(). For every announced
+// page there is a SdrPageView instance in container aPages. If more than one page
+// is showed, you have to pay attention that the offset parameter of ShowSdrPage()
+// is conformed to the size of the page (to prevent overlapping of two pages).
 //
-// Elementare Methoden:
+// elementary methods:
 // ~~~~~~~~~~~~~~~~~~~~
-//   Einfache Events:
+//   simple events:
 //   ~~~~~~~~~~~~~~~~
 //     sal_Bool KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin);
 //     sal_Bool MouseButtonDown(const MouseEvent& rMEvt, vcl::Window* pWin);
@@ -289,7 +288,7 @@ public:
 //     SfxStyleSheet* GetStyleSheet() const;
 //     sal_Bool SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr);
 //
-//   Sonstiges:
+//   others:
 //   ~~~~~~~~~~
 //     Pointer GetPreferredPointer(const Point& rMousePos, const OutputDevice* pOut, sal_uInt16 nTol=0) const;
 //     OUString GetStatusText();


More information about the Libreoffice-commits mailing list