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