Kaydet (Commit) 51f9af74 authored tarafından Philipp Weissenbacher's avatar Philipp Weissenbacher Kaydeden (comit) Miklos Vajna

Translate German comments, fix some WS

Conflicts:
	include/svx/unoapi.hxx

Change-Id: Icd0adbe98727a83fae3822863f7c6395f7474882
üst 389bdc16
...@@ -24,24 +24,24 @@ ...@@ -24,24 +24,24 @@
/*************************************************************************/ /*************************************************************************/
// SdrItemPool V2, 09-11-1995: // SdrItemPool V2, 09-11-1995:
// 7 neue Items fuer XLineAttrSetItem // 7 new Items for XLineAttrSetItem
// 7 neue Items fuer XFillAttrSetItem // 7 new Items for XFillAttrSetItem
// 8 neue Items fuer SdrShadowSetItem // 8 new Items for SdrShadowSetItem
// 5 neue Items fuer SdrCaptionSetItem // 5 new Items for SdrCaptionSetItem
// 25 neue Items fuer SdrMiscSetItem // 25 new Items for SdrMiscSetItem
// 6 neue Items fuer SdrNotPersist // 6 new Items for SdrNotPersist
// SdrItemPool V3, 29-02-1996 // SdrItemPool V3, 29-02-1996
// 17 neue Items fuer XFillAttrSetItem (Bitmapfuellungen) (von KA) // 17 new Items for XFillAttrSetItem (Bitmapfill)
// SdrItemPool V4, 10-08-1996 // SdrItemPool V4, 10-08-1996
// 45 neue Items fuer Edge und Measure (Verbinder und Bemassungsobjekt) (von Joe) // 45 new Items for Edge and Measure (Connector and Measuring object)
// SdrItemPool V4+, 18-10-1996 // SdrItemPool V4+, 18-10-1996
// 8 neue Items fuer CircItems // 8 new Items for CircItems
// 18 neue Items fuer NotPersist+Umbau dort // 18 new Items for NotPersist + Refactoring there
// SdrItemPool V4++, 13-11-1996 // SdrItemPool V4++, 13-11-1996
// 2 neue Items fuer NotPersist+(MoveX/Y) // 2 new Items for NotPersist+(MoveX/Y)
// SdrItemPool V4+++, 07-06-1999 // SdrItemPool V4+++, 07-06-1999
// 15 neue Items fuer NotPersist (Reserve) // 15 new Items for NotPersist (Reserve)
// 15 neue Items fuer GrafItems // 15 new Items for GrafItems
// //
// WhichMapping: // WhichMapping:
// V1 Range = 1000..1065 (66) // V1 Range = 1000..1065 (66)
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
// V4 Range = 1000..1185 (186) (45 neue Whiches) // V4 Range = 1000..1185 (186) (45 neue Whiches)
// Map V2: 10 6 20 4 11 6 9 // Map V2: 10 6 20 4 11 6 9
// V1: 1000..1009, 1010..1015, 1016..1035, 1036..1039, 1040..1050, 1051..1056 1057..1065 // V1: 1000..1009, 1010..1015, 1016..1035, 1036..1039, 1040..1050, 1051..1056 1057..1065
// V2: 1000..1009, 1017..1022, 1030..1049, 1050..1053, 1062..1072, 1078..1083, 1109..1117, und hinten noch 6 neue dran // V2: 1000..1009, 1017..1022, 1030..1049, 1050..1053, 1062..1072, 1078..1083, 1109..1117, and 6 new ones appended at the end
// |<------------ XOut ------------>| |<----------- SvDraw -----------> // |<------------ XOut ------------>| |<----------- SvDraw ----------->
// Map V3: // Map V3:
// V2: 1000..1029, 1030..1123 // V2: 1000..1029, 1030..1123
...@@ -145,10 +145,10 @@ ...@@ -145,10 +145,10 @@
#define SDRATTR_MEASURESCALE (SDRATTR_MEASURE_FIRST+13) /* 1160 */ /* Pool V4 */ #define SDRATTR_MEASURESCALE (SDRATTR_MEASURE_FIRST+13) /* 1160 */ /* Pool V4 */
#define SDRATTR_MEASURESHOWUNIT (SDRATTR_MEASURE_FIRST+14) /* 1161 */ /* Pool V4 */ #define SDRATTR_MEASURESHOWUNIT (SDRATTR_MEASURE_FIRST+14) /* 1161 */ /* Pool V4 */
#define SDRATTR_MEASUREFORMATSTRING (SDRATTR_MEASURE_FIRST+15) /* 1162 */ /* Pool V4 */ #define SDRATTR_MEASUREFORMATSTRING (SDRATTR_MEASURE_FIRST+15) /* 1162 */ /* Pool V4 */
#define SDRATTR_MEASURETEXTAUTOANGLE (SDRATTR_MEASURE_FIRST+16) /* 1163 */ /* Pool V4, Nachtrag 25-9-1996 */ #define SDRATTR_MEASURETEXTAUTOANGLE (SDRATTR_MEASURE_FIRST+16) /* 1163 */ /* Pool V4, Correction 25-9-1996 */
#define SDRATTR_MEASURETEXTAUTOANGLEVIEW (SDRATTR_MEASURE_FIRST+17) /* 1164 */ /* Pool V4, Nachtrag 25-9-1996 */ #define SDRATTR_MEASURETEXTAUTOANGLEVIEW (SDRATTR_MEASURE_FIRST+17) /* 1164 */ /* Pool V4, Correction 25-9-1996 */
#define SDRATTR_MEASURETEXTISFIXEDANGLE (SDRATTR_MEASURE_FIRST+18) /* 1165 */ /* Pool V4, Nachtrag 25-9-1996 */ #define SDRATTR_MEASURETEXTISFIXEDANGLE (SDRATTR_MEASURE_FIRST+18) /* 1165 */ /* Pool V4, Correction 25-9-1996 */
#define SDRATTR_MEASURETEXTFIXEDANGLE (SDRATTR_MEASURE_FIRST+19) /* 1166 */ /* Pool V4, Nachtrag 25-9-1996 */ #define SDRATTR_MEASURETEXTFIXEDANGLE (SDRATTR_MEASURE_FIRST+19) /* 1166 */ /* Pool V4, Correction 25-9-1996 */
#define SDRATTR_MEASUREDECIMALPLACES (SDRATTR_MEASURE_FIRST+20) /* 1167 */ /* Pool V4 */ #define SDRATTR_MEASUREDECIMALPLACES (SDRATTR_MEASURE_FIRST+20) /* 1167 */ /* Pool V4 */
#define SDRATTR_MEASURE_LAST (SDRATTR_MEASUREDECIMALPLACES) /* 1170 */ /* Pool V4 */ #define SDRATTR_MEASURE_LAST (SDRATTR_MEASUREDECIMALPLACES) /* 1170 */ /* Pool V4 */
......
...@@ -41,19 +41,19 @@ struct SVX_DLLPUBLIC SdrDragStatUserData ...@@ -41,19 +41,19 @@ struct SVX_DLLPUBLIC SdrDragStatUserData
class SVX_DLLPUBLIC SdrDragStat { class SVX_DLLPUBLIC SdrDragStat {
protected: protected:
SdrHdl* pHdl; // Der Handle an dem der User zottelt SdrHdl* pHdl; // The Handle for the User
SdrView* pView; SdrView* pView;
SdrPageView* pPageView; SdrPageView* pPageView;
std::vector<Point*> aPnts; // Alle bisherigen Punkte: [0]=Start, [Count()-2]=Prev std::vector<Point*> aPnts; // All previous Points: [0]=Start, [Count()-2]=Prev
Point aRef1; // Referenzpunkt: Resize-Fixpunkt, (Drehachse, Point aRef1; // Referencepoint: Resize fixed point, (axis of rotation,
Point aRef2; // Spiegelachse, ...) Point aRef2; // axis of reflection, ...)
Point aPos0; // Position beim letzten Event Point aPos0; // Position at the last Event
Point aRealPos0; // Position beim letzten Event Point aRealPos0; // Position at the last Event
Point aRealNow; // Aktuelle Dragposition ohne Snap, Ortho und Limit Point aRealNow; // Current dragging position without Snap, Ortho and Limit
Point aRealLast; // RealPos des letzten Punkts (fuer MinMoved) Point aRealLast; // RealPos of the last Point (for MinMoved)
Rectangle aActionRect; Rectangle aActionRect;
// Reserve fuer kompatible Erweiterungen, die sonst inkompatibel wuerden. // Backup for compatible extensions which otherwise would become incompatible
Point aReservePoint1; Point aReservePoint1;
Point aReservePoint2; Point aReservePoint2;
Point aReservePoint3; Point aReservePoint3;
...@@ -139,8 +139,7 @@ public: ...@@ -139,8 +139,7 @@ public:
bool IsNoSnap() const { return bWantNoSnap; } bool IsNoSnap() const { return bWantNoSnap; }
void SetNoSnap(bool bOn = true) { bWantNoSnap=bOn; } void SetNoSnap(bool bOn = true) { bWantNoSnap=bOn; }
// And here the Obj say which Ortho (if there is one) // And here the Obj say which Ortho (if there is one) can be usefully applied to him.
// can be usefully applied to him.
// Ortho4 means Ortho in four directions (for Rect and CIRT) // Ortho4 means Ortho in four directions (for Rect and CIRT)
bool IsOrtho4Possible() const { return bOrtho4; } bool IsOrtho4Possible() const { return bOrtho4; }
void SetOrtho4Possible(bool bOn = true) { bOrtho4=bOn; } void SetOrtho4Possible(bool bOn = true) { bOrtho4=bOn; }
...@@ -175,7 +174,7 @@ public: ...@@ -175,7 +174,7 @@ public:
const Rectangle& GetActionRect() const { return aActionRect; } const Rectangle& GetActionRect() const { return aActionRect; }
void SetActionRect(const Rectangle& rR) { aActionRect=rR; } void SetActionRect(const Rectangle& rR) { aActionRect=rR; }
// also considering 1stPointAsCenter // Also considering 1stPointAsCenter
void TakeCreateRect(Rectangle& rRect) const; void TakeCreateRect(Rectangle& rRect) const;
}; };
......
...@@ -37,25 +37,25 @@ class SdrPageView; ...@@ -37,25 +37,25 @@ class SdrPageView;
typedef std::set<sal_uInt16> SdrUShortCont; typedef std::set<sal_uInt16> SdrUShortCont;
// Alles was eine View ueber ein markiertes Objekt wissen muss // Everything a View needs to know about a selected object
class SVX_DLLPUBLIC SdrMark : public sdr::ObjectUser class SVX_DLLPUBLIC SdrMark : public sdr::ObjectUser
{ {
protected: protected:
SdrObject* mpSelectedSdrObject; // the seleceted object SdrObject* mpSelectedSdrObject; // the selected object
SdrPageView* mpPageView; SdrPageView* mpPageView;
SdrUShortCont* mpPoints; // Markierte Punkte SdrUShortCont* mpPoints; // Selected Points
SdrUShortCont* mpLines; // Markierte Linienabschnitte SdrUShortCont* mpLines; // Selected Line
SdrUShortCont* mpGluePoints; // Markierte Klebepunkte (deren Id's) SdrUShortCont* mpGluePoints; // Selected Gluepoints (their Id's)
sal_Bool mbCon1; // fuer Connectoren sal_Bool mbCon1; // for Connectors
sal_Bool mbCon2; // fuer Connectoren sal_Bool mbCon2; // for Connectors
sal_uInt16 mnUser; // z.B. fuer CopyObjects, mitkopieren von Edges sal_uInt16 mnUser; // E.g. for CopyObjects, also copy Edges
public: public:
explicit SdrMark(SdrObject* pNewObj = 0L, SdrPageView* pNewPageView = 0L); explicit SdrMark(SdrObject* pNewObj = 0L, SdrPageView* pNewPageView = 0L);
SdrMark(const SdrMark& rMark); SdrMark(const SdrMark& rMark);
virtual ~SdrMark(); virtual ~SdrMark();
// derived from ObjectUser // Derived from ObjectUser
virtual void ObjectInDestruction(const SdrObject& rObject); virtual void ObjectInDestruction(const SdrObject& rObject);
SdrMark& operator=(const SdrMark& rMark); SdrMark& operator=(const SdrMark& rMark);
...@@ -233,8 +233,8 @@ public: ...@@ -233,8 +233,8 @@ public:
mbGluePointNameOk = sal_False; mbGluePointNameOk = sal_False;
} }
// Eine verbale Beschreibung der markierten Objekte z.B.: // A verbal description of selected objects e.g.:
// "27 Linien", "12 Objekte", "Polygon" oder auch "Kein Objekt" // "27 Lines", "12 Objects", "Polygon" or even "Not an object"
const String& GetMarkDescription() const; const String& GetMarkDescription() const;
const String& GetPointMarkDescription() const const String& GetPointMarkDescription() const
{ {
...@@ -246,7 +246,7 @@ public: ...@@ -246,7 +246,7 @@ public:
return GetPointMarkDescription(sal_True); return GetPointMarkDescription(sal_True);
} }
// pPage=0L: Die Markierungen aller! Seiten beruecksichtigen // pPage=0L: Selection of everything! Respect Pages
sal_Bool TakeBoundRect(SdrPageView* pPageView, Rectangle& rRect) const; sal_Bool TakeBoundRect(SdrPageView* pPageView, Rectangle& rRect) const;
sal_Bool TakeSnapRect(SdrPageView* pPageView, Rectangle& rRect) const; sal_Bool TakeSnapRect(SdrPageView* pPageView, Rectangle& rRect) const;
......
...@@ -62,7 +62,7 @@ protected: ...@@ -62,7 +62,7 @@ protected:
Graphic* pGraphic; Graphic* pGraphic;
String aProgName; String aProgName;
// wg. Kompatibilitaet erstmal am SdrTextObj // Due to compatibility at SdrTextObj for now
bool bFrame:1; bool bFrame:1;
bool bInDestruction:1; bool bInDestruction:1;
// #i118524# // #i118524#
...@@ -94,13 +94,13 @@ public: ...@@ -94,13 +94,13 @@ public:
bool isUiActive() const; bool isUiActive() const;
void SetAspect( sal_Int64 nAspect ); void SetAspect( sal_Int64 nAspect );
// Ein OLE-Zeichenobjekt kann eine StarView-Grafik beinhalten. // An OLE graphic object can contain a StarView graphic,
// Diese wird angezeigt, wenn das OLE-Objekt leer ist. // which will be displayed if the OLE object is empty.
void SetGraphic(const Graphic* pGrf); void SetGraphic(const Graphic* pGrf);
const Graphic* GetGraphic() const; const Graphic* GetGraphic() const;
void GetNewReplacement(); void GetNewReplacement();
// the original size of the object ( size of the icon for iconified object ) // The original size of the object (size of the icon for iconified object)
// no conversion is done if no target mode is provided // no conversion is done if no target mode is provided
Size GetOrigObjSize( MapMode* pTargetMapMode = NULL ) const; Size GetOrigObjSize( MapMode* pTargetMapMode = NULL ) const;
...@@ -113,8 +113,8 @@ public: ...@@ -113,8 +113,8 @@ public:
String GetPersistName() const; String GetPersistName() const;
void SetPersistName( const String& rPersistName ); void SetPersistName( const String& rPersistName );
// Einem SdrOle2Obj kann man ein Applikationsnamen verpassen, den man // One can add an application name to a SdrOle2Obj, which can be queried for
// spaeter wieder abfragen kann (SD braucht das fuer Praesentationsobjekte). // later on (SD needs this for presentation objects).
void SetProgName(const String& rNam) { aProgName=rNam; } void SetProgName(const String& rNam) { aProgName=rNam; }
const String& GetProgName() const { return aProgName; } const String& GetProgName() const { return aProgName; }
bool IsEmpty() const; bool IsEmpty() const;
......
This diff is collapsed.
...@@ -35,51 +35,57 @@ class SvxNumBulletItem; ...@@ -35,51 +35,57 @@ class SvxNumBulletItem;
class SfxItemPool; class SfxItemPool;
class String; class String;
/** creates a StarOffice API wrapper with the given type and inventor /**
Deprecated: This will be replaced with a function returning XShape. * Creates a StarOffice API wrapper with the given type and inventor
*/ * Deprecated: This will be replaced with a function returning XShape.
*/
SVX_DLLPUBLIC SvxShape* CreateSvxShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor ) throw(); SVX_DLLPUBLIC SvxShape* CreateSvxShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor ) throw();
/** returns a StarOffice API wrapper for the given SdrObject */ /** Returns a StarOffice API wrapper for the given SdrObject */
SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > GetXShapeForSdrObject( SdrObject* pObj ) throw (); SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > GetXShapeForSdrObject( SdrObject* pObj ) throw ();
/** returns the SdrObject from the given StarOffice API wrapper */ /** Returns the SdrObject from the given StarOffice API wrapper */
SVX_DLLPUBLIC SdrObject* GetSdrObjectFromXShape( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape ) throw() ; SVX_DLLPUBLIC SdrObject* GetSdrObjectFromXShape( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape ) throw() ;
/** returns a StarOffice API wrapper for the given SdrPage */ /** Returns a StarOffice API wrapper for the given SdrPage */
SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > GetXDrawPageForSdrPage( SdrPage* pPage ) throw (); SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > GetXDrawPageForSdrPage( SdrPage* pPage ) throw ();
/** returns the SdrPage from the given StarOffice API wrapper */ /** Returns the SdrPage from the given StarOffice API wrapper */
SVX_DLLPUBLIC SdrPage* GetSdrPageFromXDrawPage( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > xDrawPage ) throw() ; SVX_DLLPUBLIC SdrPage* GetSdrPageFromXDrawPage( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > xDrawPage ) throw() ;
/** returns the SvxNumBulletItem with the given name from the pool or a null if there is no item /**
with that name * Returns the SvxNumBulletItem with the given name from the pool or a null if there is no item with that name
*/ */
SvxNumBulletItem* SvxGetNumBulletItemByName( SfxItemPool* pPool, const OUString& aName ) throw(); SvxNumBulletItem* SvxGetNumBulletItemByName( SfxItemPool* pPool, const OUString& aName ) throw();
/** maps the vcl MapUnit enum to a API constant MeasureUnit. /**
Returns false if conversion is not supported. * Maps the vcl MapUnit enum to a API constant MeasureUnit.
*/ * Returns false if conversion is not supported.
*/
SVX_DLLPUBLIC sal_Bool SvxMapUnitToMeasureUnit( const short nVcl, short& eApi ) throw(); SVX_DLLPUBLIC sal_Bool SvxMapUnitToMeasureUnit( const short nVcl, short& eApi ) throw();
/** maps the API constant MeasureUnit to a vcl MapUnit enum. /**
Returns false if conversion is not supported. * Maps the API constant MeasureUnit to a vcl MapUnit enum.
*/ * Returns false if conversion is not supported.
*/
SVX_DLLPUBLIC sal_Bool SvxMeasureUnitToFieldUnit( const short eApi, short& nVcl ) throw(); SVX_DLLPUBLIC sal_Bool SvxMeasureUnitToFieldUnit( const short eApi, short& nVcl ) throw();
/** maps the vcl MapUnit enum to a API constant MeasureUnit. /**
Returns false if conversion is not supported. * Maps the vcl MapUnit enum to a API constant MeasureUnit.
*/ * Returns false if conversion is not supported.
*/
SVX_DLLPUBLIC sal_Bool SvxFieldUnitToMeasureUnit( const short nVcl, short& eApi ) throw(); SVX_DLLPUBLIC sal_Bool SvxFieldUnitToMeasureUnit( const short nVcl, short& eApi ) throw();
/** if the given name is a predefined name for the current language it is replaced by /**
the corresponding api name. * If the given name is a predefined name for the current language it is replaced by
* the corresponding API name.
*/ */
SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString
SvxUnogetApiNameForItem(const sal_Int16 nWhich, const OUString& rInternalName) throw(); SvxUnogetApiNameForItem(const sal_Int16 nWhich, const OUString& rInternalName) throw();
/** if the given name is a predefined api name it is replaced by the predefined name /**
for the current language. * If the given name is a predefined API name it is replaced by the predefined name
* for the current language.
*/ */
SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString
SvxUnogetInternalNameForItem(const sal_Int16 nWhich, const OUString& rApiName) throw(); SvxUnogetInternalNameForItem(const sal_Int16 nWhich, const OUString& rApiName) throw();
......
...@@ -49,15 +49,12 @@ class SvxShape; ...@@ -49,15 +49,12 @@ class SvxShape;
class SvxShapeGroup; class SvxShapeGroup;
class SvxShapeConnector; class SvxShapeConnector;
/*********************************************************************** /**
* Macros fuer Umrechnung Twips<->100tel mm * * Macros to convert Twips<->100tel mm
***********************************************************************/ */
#define TWIPS_TO_MM(val) ((val * 127 + 36) / 72) #define TWIPS_TO_MM(val) ((val * 127 + 36) / 72)
#define MM_TO_TWIPS(val) ((val * 72 + 63) / 127) #define MM_TO_TWIPS(val) ((val * 72 + 63) / 127)
/***********************************************************************
* *
***********************************************************************/
class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper5< ::com::sun::star::drawing::XDrawPage, class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper5< ::com::sun::star::drawing::XDrawPage,
::com::sun::star::drawing::XShapeGrouper, ::com::sun::star::drawing::XShapeGrouper,
::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XServiceInfo,
...@@ -86,22 +83,20 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper5< ::com::sun: ...@@ -86,22 +83,20 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper5< ::com::sun:
SdrPage* GetSdrPage() const { return mpPage; } SdrPage* GetSdrPage() const { return mpPage; }
void ChangeModel( SdrModel* pNewModel ); void ChangeModel( SdrModel* pNewModel );
// Erzeugen eines SdrObjects und Einfugen in die SdrPage // Creation of a SdrObject and insertion into the SdrPage
SdrObject *CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(); SdrObject *CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw();
// Typ und Inventor bestimmen // Determine Type and Inventor
void GetTypeAndInventor( sal_uInt16& rType, sal_uInt32& rInventor, const OUString& aName ) const throw(); void GetTypeAndInventor( sal_uInt16& rType, sal_uInt32& rInventor, const OUString& aName ) const throw();
// Erzeugen eines SdrObjects anhand einer Description. Kann von // Creating a SdrObject using it's Description.
// abgeleiteten Klassen dazu benutzt werden, eigene Shapes zu // Can be used by derived classes to support their owen Shapes (e.g. Controls).
// unterstuetzen (z.B. Controls)
virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(); virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw();
static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = NULL, SvxDrawPage *pPage = NULL ) throw(); static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = NULL, SvxDrawPage *pPage = NULL ) throw();
// Die folgende Methode wird gerufen, wenn ein SvxShape-Objekt angelegt // The following method is called if a SvxShape object is to be created.
// werden soll. abgeleitete Klassen koennen hier eine Ableitung oder // Derived classes can create a derivation or an SvxShape aggregating object.
// ein ein SvxShape aggregierenden Objekt anlegen.
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw(); virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw();
UNO3_GETIMPLEMENTATION_DECL( SvxDrawPage ) UNO3_GETIMPLEMENTATION_DECL( SvxDrawPage )
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
class SvxItemPropertySet; class SvxItemPropertySet;
class SfxItemPool; class SfxItemPool;
/*********************************************************************** /**
* class UHashMap * * class UHashMap
***********************************************************************/ */
#define UHASHMAP_NOTFOUND sal::static_int_cast< sal_uInt32 >(~0) #define UHASHMAP_NOTFOUND sal::static_int_cast< sal_uInt32 >(~0)
class UHashMap class UHashMap
...@@ -42,9 +42,9 @@ public: ...@@ -42,9 +42,9 @@ public:
static ::com::sun::star::uno::Sequence< OUString > getServiceNames(); static ::com::sun::star::uno::Sequence< OUString > getServiceNames();
}; };
/*********************************************************************** /**
* Soriterer * * Sorter
***********************************************************************/ */
#define SVXMAP_SHAPE 0 #define SVXMAP_SHAPE 0
#define SVXMAP_CONNECTOR 1 #define SVXMAP_CONNECTOR 1
...@@ -73,9 +73,11 @@ public: ...@@ -73,9 +73,11 @@ public:
#define SVXMAP_TABLE 24 #define SVXMAP_TABLE 24
#define SVXMAP_PAGE 25 #define SVXMAP_PAGE 25
#define SVXMAP_END 26 // last+1 ! #define SVXMAP_END 26 // last+1 !
/***********************************************************************
* SvxUnoPropertyMapProvider * /**
***********************************************************************/ * SvxUnoPropertyMapProvider
*/
class SVX_DLLPUBLIC SvxUnoPropertyMapProvider class SVX_DLLPUBLIC SvxUnoPropertyMapProvider
{ {
SfxItemPropertyMapEntry* aMapArr[SVXMAP_END]; SfxItemPropertyMapEntry* aMapArr[SVXMAP_END];
...@@ -87,9 +89,9 @@ public: ...@@ -87,9 +89,9 @@ public:
const SvxItemPropertySet* GetPropertySet(sal_uInt16 nPropertyId, SfxItemPool& rPool); const SvxItemPropertySet* GetPropertySet(sal_uInt16 nPropertyId, SfxItemPool& rPool);
}; };
/*********************************************************************** /**
* Globals * * Globals
***********************************************************************/ */
const sal_Int16 OBJ_OLE2_APPLET = 100; const sal_Int16 OBJ_OLE2_APPLET = 100;
const sal_Int16 OBJ_OLE2_PLUGIN = 101; const sal_Int16 OBJ_OLE2_PLUGIN = 101;
...@@ -98,9 +100,9 @@ const sal_Int16 OBJ_OLE2_PLUGIN = 101; ...@@ -98,9 +100,9 @@ const sal_Int16 OBJ_OLE2_PLUGIN = 101;
#include <editeng/unoipset.hxx> #include <editeng/unoipset.hxx>
/*********************************************************************** /**
* class SvxPropertySetInfoPool * * class SvxPropertySetInfoPool
***********************************************************************/ */
const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS = 0; const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS = 0;
const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER = 1; const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER = 1;
......
...@@ -26,39 +26,37 @@ ...@@ -26,39 +26,37 @@
#include <basegfx/point/b2dpoint.hxx> #include <basegfx/point/b2dpoint.hxx>
#include "svx/svxdllapi.h" #include "svx/svxdllapi.h"
//************************************************************ /*
// Vorausdeklarationen * Forward declarations
//************************************************************ */
class E3dObject; class E3dObject;
class E3dScene; class E3dScene;
class Impl3DMirrorConstructOverlay; class Impl3DMirrorConstructOverlay;
/************************************************************************* /**
|* * Derived class of SdrView to edit 3D objects.
|* Ableitung von SdrView zur Bearbeitung von 3D-Objekten */
|*
\************************************************************************/
class SVX_DLLPUBLIC E3dView : public SdrView class SVX_DLLPUBLIC E3dView : public SdrView
{ {
protected: protected:
E3dDefaultAttributes a3DDefaultAttr; E3dDefaultAttributes a3DDefaultAttr;
MouseEvent aMouseEvent; // Die Parameter der letzten Events (Mouse, Keyboard) MouseEvent aMouseEvent; // The parameters of the last Events (Mouse, Keyboard)
Color aDefaultLightColor; // dito mit den Farben Color aDefaultLightColor; // The paramaters for the last colors
Color aDefaultAmbientColor; Color aDefaultAmbientColor;
double fDefaultScaleX; // Verzerrungen double fDefaultScaleX; // Scaling
double fDefaultScaleY; double fDefaultScaleY;
double fDefaultScaleZ; double fDefaultScaleZ;
double fDefaultRotateX; // und Drehungen double fDefaultRotateX; // and Rotation
double fDefaultRotateY; double fDefaultRotateY;
double fDefaultRotateZ; double fDefaultRotateZ;
double fDefaultExtrusionDeepth; // Extrusionstiefe double fDefaultExtrusionDeepth; // Extrusion depth
double fDefaultLightIntensity; // Intensitaeten der beiden (notwendigen) Licht- double fDefaultLightIntensity; // Intensity of the two (necessary) light sources.
double fDefaultAmbientIntensity; // quellen double fDefaultAmbientIntensity;
long nHDefaultSegments; // wieviele HSegmente braucht mein Lathe-Ojekt long nHDefaultSegments; // Amount of HSegments required by the Lathe object
long nVDefaultSegments; // wieviele VSegmente braucht mein Lathe-Ojekt long nVDefaultSegments; // Amount of VSegments required by the Lathe object
E3dDragConstraint eDragConstraint; E3dDragConstraint eDragConstraint;
...@@ -83,24 +81,22 @@ public: ...@@ -83,24 +81,22 @@ public:
E3dView(SdrModel* pModel, OutputDevice* pOut = 0L); E3dView(SdrModel* pModel, OutputDevice* pOut = 0L);
virtual ~E3dView(); virtual ~E3dView();
// Alle markierten Objekte auf dem angegebenen OutputDevice ausgeben. // Output all marked Objects on the given OutputDevice.
virtual void DrawMarkedObj(OutputDevice& rOut) const; virtual void DrawMarkedObj(OutputDevice& rOut) const;
// Zugriff auf die Default-Attribute // Access to the default attributes.
E3dDefaultAttributes& Get3DDefaultAttributes() { return a3DDefaultAttr; } E3dDefaultAttributes& Get3DDefaultAttributes() { return a3DDefaultAttr; }
virtual sal_Bool BegDragObj(const Point& rPnt, OutputDevice* pOut = NULL, SdrHdl* pHdl = NULL, short nMinMov = -3, SdrDragMethod* pForcedMeth = NULL); virtual sal_Bool BegDragObj(const Point& rPnt, OutputDevice* pOut = NULL, SdrHdl* pHdl = NULL, short nMinMov = -3, SdrDragMethod* pForcedMeth = NULL);
virtual void CheckPossibilities(); virtual void CheckPossibilities();
// Event setzen/rausruecken // Get/Set Event
void SetMouseEvent(const MouseEvent& rNew) { aMouseEvent = rNew; } void SetMouseEvent(const MouseEvent& rNew) { aMouseEvent = rNew; }
const MouseEvent& GetMouseEvent() { return aMouseEvent; } const MouseEvent& GetMouseEvent() { return aMouseEvent; }
// Model holen ueberladen, da bei einzelnen 3D Objekten noch eine Szene // Override getting the model, as we need to supply a Scene together with individual 3D Objects.
// untergeschoben werden muss
virtual SdrModel* GetMarkedObjModel() const; virtual SdrModel* GetMarkedObjModel() const;
// Bei Paste muss - falls in eine Scene eingefuegt wird - die // On Paste: We need to insert the objects of the Scene, but not the Scene itself
// Objekte der Szene eingefuegt werden, die Szene selbst aber nicht
using SdrView::Paste; using SdrView::Paste;
virtual sal_Bool Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0); virtual sal_Bool Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0);
...@@ -110,14 +106,13 @@ public: ...@@ -110,14 +106,13 @@ public:
bool IsConvertTo3DObjPossible() const; bool IsConvertTo3DObjPossible() const;
void ConvertMarkedObjTo3D(bool bExtrude=true, basegfx::B2DPoint aPnt1 = basegfx::B2DPoint(0.0, 0.0), basegfx::B2DPoint aPnt2 = basegfx::B2DPoint(0.0, 1.0)); void ConvertMarkedObjTo3D(bool bExtrude=true, basegfx::B2DPoint aPnt1 = basegfx::B2DPoint(0.0, 0.0), basegfx::B2DPoint aPnt2 = basegfx::B2DPoint(0.0, 1.0));
// Nachtraeglichhe Korrekturmoeglichkeit um alle Extrudes in einer // Means to create all Extrudes in a certain depth order.
// bestimmten Tiefensortierung anzulegen
void DoDepthArrange(E3dScene* pScene, double fDepth); void DoDepthArrange(E3dScene* pScene, double fDepth);
void ConvertMarkedToPolyObj(sal_Bool bLineToArea); void ConvertMarkedToPolyObj(sal_Bool bLineToArea);
E3dScene* SetCurrent3DObj(E3dObject* p3DObj); E3dScene* SetCurrent3DObj(E3dObject* p3DObj);
void Start3DCreation(); void Start3DCreation();
// migration of overlay // Migration of overlay
bool Is3DRotationCreationActive() const { return (0L != mpMirrorOverlay); } bool Is3DRotationCreationActive() const { return (0L != mpMirrorOverlay); }
virtual void MovAction(const Point& rPnt); virtual void MovAction(const Point& rPnt);
...@@ -261,6 +256,6 @@ public: ...@@ -261,6 +256,6 @@ public:
void Set3DAttributes(const SfxItemSet& rAttr, E3dScene* pInScene = NULL, sal_Bool bOnly3DAttr=sal_False); void Set3DAttributes(const SfxItemSet& rAttr, E3dScene* pInScene = NULL, sal_Bool bOnly3DAttr=sal_False);
}; };
#endif // _E3D_VIEW3D_HXX #endif // _E3D_VIEW3D_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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