Kaydet (Commit) 18378191 authored tarafından Christoph Herzog's avatar Christoph Herzog

Translation of German comments.

üst 48518b08
...@@ -37,12 +37,11 @@ ...@@ -37,12 +37,11 @@
class SwFlyFrmFmt; class SwFlyFrmFmt;
class IntlWrapper; class IntlWrapper;
//Verbindung (Textfluss) zwischen zwei FlyFrms // Connection (text flow) between two FlyFrms.
class SW_DLLPUBLIC SwFmtChain: public SfxPoolItem class SW_DLLPUBLIC SwFmtChain: public SfxPoolItem
{ {
SwClient aPrev, //Vorgaenger (SwFlyFrmFmt), wenn es diesen gibt. SwClient aPrev, // Previous SwFlyFrmFmt (if existent).
aNext; //Nachfolger (SwFlyFrmFmt), wenn es diesen gibt. aNext; // Next SwFlyFrmFmt (if existent).
public: public:
...@@ -51,7 +50,7 @@ public: ...@@ -51,7 +50,7 @@ public:
inline SwFmtChain &operator=( const SwFmtChain& ); inline SwFmtChain &operator=( const SwFmtChain& );
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual int operator==( const SfxPoolItem& ) const; virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
......
...@@ -35,20 +35,20 @@ ...@@ -35,20 +35,20 @@
class SwNodeIndex; class SwNodeIndex;
class SwStartNode; class SwStartNode;
//Cntnt, Inhalt des Frame (Header, Footer, Fly) ----
// Cntnt, content of frame (header, footer, fly).
class SW_DLLPUBLIC SwFmtCntnt: public SfxPoolItem class SW_DLLPUBLIC SwFmtCntnt: public SfxPoolItem
{ {
SwNodeIndex *pStartNode; SwNodeIndex *pStartNode;
SwFmtCntnt &operator=( const SwFmtCntnt & ); //Kopieren verboten SwFmtCntnt &operator=( const SwFmtCntnt & ); // Copying not allowed.
public: public:
SwFmtCntnt( const SwStartNode* pStartNode = 0 ); SwFmtCntnt( const SwStartNode* pStartNode = 0 );
SwFmtCntnt( const SwFmtCntnt &rCpy ); SwFmtCntnt( const SwFmtCntnt &rCpy );
~SwFmtCntnt(); ~SwFmtCntnt();
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual int operator==( const SfxPoolItem& ) const; virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
#include <svl/svarray.hxx> #include <svl/svarray.hxx>
#include "swdllapi.h" #include "swdllapi.h"
#include <format.hxx> #include <format.hxx>
#include <swtypes.hxx> // fuer MAXLEVEL #include <swtypes.hxx> // For MAXLEVEL.
class SwDoc; // fuer friend class SwDoc; // For friend.
class SwFmtColl : public SwFmt class SwFmtColl : public SwFmt
{ {
...@@ -51,7 +51,8 @@ protected: ...@@ -51,7 +51,8 @@ protected:
{ SetAuto( FALSE ); } { SetAuto( FALSE ); }
private: private:
// erstmal wird nicht kopiert und nicht zugewiesen
// For now don't copy and don't assign.
SwFmtColl(const SwFmtColl & ); SwFmtColl(const SwFmtColl & );
const SwFmtColl &operator=(const SwFmtColl &); const SwFmtColl &operator=(const SwFmtColl &);
}; };
...@@ -92,10 +93,10 @@ protected: ...@@ -92,10 +93,10 @@ protected:
{ pNextTxtFmtColl = this; } { pNextTxtFmtColl = this; }
public: public:
// zum "abfischen" von UL-/LR-/FontHeight Aenderungen // To get UL- / LR- / FontHeight-changes.
virtual void Modify( SfxPoolItem*, SfxPoolItem* ); virtual void Modify( SfxPoolItem*, SfxPoolItem* );
TYPEINFO(); //Bereits in Basisklasse Client drin. TYPEINFO(); // Already in base class Client.
inline void SetNextTxtFmtColl(SwTxtFmtColl& rNext); inline void SetNextTxtFmtColl(SwTxtFmtColl& rNext);
SwTxtFmtColl& GetNextTxtFmtColl() const { return *pNextTxtFmtColl; } SwTxtFmtColl& GetNextTxtFmtColl() const { return *pNextTxtFmtColl; }
...@@ -112,13 +113,13 @@ public: ...@@ -112,13 +113,13 @@ public:
void AssignToListLevelOfOutlineStyle(const int nAssignedListLevel); void AssignToListLevelOfOutlineStyle(const int nAssignedListLevel);
void DeleteAssignmentToListLevelOfOutlineStyle(); void DeleteAssignmentToListLevelOfOutlineStyle();
// override to recognize changes on the <SwNumRuleItem> and register/unregister // Override to recognize changes on the <SwNumRuleItem> and register/unregister
// the paragragh style at the corresponding <SwNumRule> instance // the paragragh style at the corresponding <SwNumRule> instance.
virtual BOOL SetFmtAttr( const SfxPoolItem& rAttr ); virtual BOOL SetFmtAttr( const SfxPoolItem& rAttr );
virtual BOOL SetFmtAttr( const SfxItemSet& rSet ); virtual BOOL SetFmtAttr( const SfxItemSet& rSet );
virtual BOOL ResetFmtAttr( USHORT nWhich1, USHORT nWhich2 = 0 ); virtual BOOL ResetFmtAttr( USHORT nWhich1, USHORT nWhich2 = 0 );
// override <ResetAllFmtAttr()> to stay assigned to list level of outline style // Override <ResetAllFmtAttr()> to stay assigned to list level of outline style.
virtual USHORT ResetAllFmtAttr(); virtual USHORT ResetAllFmtAttr();
inline bool StayAssignedToListLevelOfOutlineStyle() const inline bool StayAssignedToListLevelOfOutlineStyle() const
...@@ -129,12 +130,10 @@ public: ...@@ -129,12 +130,10 @@ public:
bool AreListLevelIndentsApplicable() const; bool AreListLevelIndentsApplicable() const;
/* /*
wird die Funktionalitaet von Zeichenvorlagen an Absatzvorlagen Is the functionality of character styles at paragraph styles needed?
ueberhaupt benoetigt ?? If so, a second Attset for char-attributes has to be created
in TextNode and here in TxtCollection in order to make both
Wenn, ja dann muessen im TextNode und hier in der TxtCollection ein 2. the inheritance of and the access to set attributes function correctly!
Attset fuer die Char-Attribute angelegt werden; damit die Vererbung
und der Zugriff auf die gesetzen Attribute richtig funktioniert!!
virtual BOOL SetDerivedFrom( SwFmtColl* pDerFrom = 0 ); virtual BOOL SetDerivedFrom( SwFmtColl* pDerFrom = 0 );
...@@ -142,15 +141,15 @@ public: ...@@ -142,15 +141,15 @@ public:
inline BOOL IsCharFmtSet() const; inline BOOL IsCharFmtSet() const;
void SetCharFmt(SwCharFmt *); void SetCharFmt(SwCharFmt *);
void ResetCharFmt(); void ResetCharFmt();
inline BOOL SwTxtFmtColl::IsCharFmtSet() const inline BOOL SwTxtFmtColl::IsCharFmtSet() const
{ {
return aCharDepend.GetRegisteredIn() ? TRUE : FALSE; return aCharDepend.GetRegisteredIn() ? TRUE : FALSE;
} }
inline SwCharFmt* SwTxtFmtColl::GetCharFmt() const inline SwCharFmt* SwTxtFmtColl::GetCharFmt() const
{ {
return (SwCharFmt*)aCharDepend.GetRegisteredIn(); return (SwCharFmt*)aCharDepend.GetRegisteredIn();
} }
--------------------------------------------------*/ */
}; };
typedef SwTxtFmtColl* SwTxtFmtCollPtr; typedef SwTxtFmtColl* SwTxtFmtCollPtr;
...@@ -173,15 +172,14 @@ protected: ...@@ -173,15 +172,14 @@ protected:
{} {}
public: public:
TYPEINFO(); //Bereits in Basisklasse Client drin. TYPEINFO(); // Already in base class Client.
}; };
typedef SwGrfFmtColl* SwGrfFmtCollPtr; typedef SwGrfFmtColl* SwGrfFmtCollPtr;
SV_DECL_PTRARR(SwGrfFmtColls,SwGrfFmtCollPtr,2,4) SV_DECL_PTRARR(SwGrfFmtColls,SwGrfFmtCollPtr,2,4)
//FEATURE::CONDCOLL // FEATURE::CONDCOLL
// --------- Bedingte Vorlagen ------------------------------- // Conditional styles.
enum Master_CollConditions enum Master_CollConditions
{ {
PARA_IN_LIST = 0x0001, PARA_IN_LIST = 0x0001,
...@@ -208,7 +206,7 @@ class SW_DLLPUBLIC SwCollCondition : public SwClient ...@@ -208,7 +206,7 @@ class SW_DLLPUBLIC SwCollCondition : public SwClient
} aSubCondition; } aSubCondition;
public: public:
TYPEINFO(); //Bereits in Basisklasse Client drin. TYPEINFO(); // Already in base class Client.
SwCollCondition( SwTxtFmtColl* pColl, ULONG nMasterCond, SwCollCondition( SwTxtFmtColl* pColl, ULONG nMasterCond,
ULONG nSubCond = 0 ); ULONG nSubCond = 0 );
...@@ -255,7 +253,7 @@ protected: ...@@ -255,7 +253,7 @@ protected:
{} {}
public: public:
TYPEINFO(); //Bereits in Basisklasse Client drin. TYPEINFO(); // Already in base class Client.
virtual ~SwConditionTxtFmtColl(); virtual ~SwConditionTxtFmtColl();
...@@ -267,10 +265,8 @@ public: ...@@ -267,10 +265,8 @@ public:
void SetConditions( const SwFmtCollConditions& ); void SetConditions( const SwFmtCollConditions& );
}; };
//FEATURE::CONDCOLL // FEATURE::CONDCOLL
// Inline implementations.
// ------------- Inline Implementierungen --------------------
inline void SwTxtFmtColl::SetNextTxtFmtColl( SwTxtFmtColl& rNext ) inline void SwTxtFmtColl::SetNextTxtFmtColl( SwTxtFmtColl& rNext )
{ {
pNextTxtFmtColl = &rNext; pNextTxtFmtColl = &rNext;
......
...@@ -33,25 +33,24 @@ ...@@ -33,25 +33,24 @@
class SwFrmFmt; class SwFrmFmt;
class SwTxtFlyCnt; class SwTxtFlyCnt;
// ATT_FLYCNT ******************************************************* // ATT_FLYCNT
class SwFmtFlyCnt : public SfxPoolItem class SwFmtFlyCnt : public SfxPoolItem
{ {
friend class SwTxtFlyCnt; friend class SwTxtFlyCnt;
SwTxtFlyCnt* pTxtAttr; // mein TextAttribut SwTxtFlyCnt* pTxtAttr;
SwFrmFmt* pFmt; // mein Fly/DrawFrame-Format SwFrmFmt* pFmt; // My Fly/DrawFrame-format.
// protected CopyCtor // protected CopyCtor
SwFmtFlyCnt& operator=(const SwFmtFlyCnt& rFlyCnt); SwFmtFlyCnt& operator=(const SwFmtFlyCnt& rFlyCnt);
public: public:
SwFmtFlyCnt( SwFrmFmt *pFrmFmt ); SwFmtFlyCnt( SwFrmFmt *pFrmFmt );
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual int operator==( const SfxPoolItem& ) const; virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
inline SwFrmFmt *GetFrmFmt() const { return pFmt; } inline SwFrmFmt *GetFrmFmt() const { return pFmt; }
// fuer Undo: loesche "logisch" das FlyFrmFormat, wird sich im // For Undo: delete the FlyFrmFormat "logically"; it is kept in Undo-object.
// Undo-Object gemerkt.
inline void SetFlyFmt( SwFrmFmt* pNew = 0 ) { pFmt = pNew; } inline void SetFlyFmt( SwFrmFmt* pNew = 0 ) { pFmt = pNew; }
const SwTxtFlyCnt *GetTxtFlyCnt() const { return pTxtAttr; } const SwTxtFlyCnt *GetTxtFlyCnt() const { return pTxtAttr; }
......
...@@ -39,25 +39,25 @@ class SwField; ...@@ -39,25 +39,25 @@ class SwField;
class SwTxtFld; class SwTxtFld;
class SwView; class SwView;
// ATT_FLD *********************************** // ATT_FLD
class SW_DLLPUBLIC SwFmtFld : public SfxPoolItem, public SwClient, public SfxBroadcaster class SW_DLLPUBLIC SwFmtFld : public SfxPoolItem, public SwClient, public SfxBroadcaster
{ {
friend class SwTxtFld; friend class SwTxtFld;
friend void _InitCore(); friend void _InitCore();
SwField *pField; SwField *pField;
SwTxtFld* pTxtAttr; // mein TextAttribut SwTxtFld* pTxtAttr;
SwFmtFld(); // das default-Attibut SwFmtFld(); // Default attibute.
// protected CopyCtor // Protected CopyCtor.
// @@@ copy construction allowed, but copy assignment is not? @@@ // @@@ copy construction allowed, but copy assignment is not? @@@
SwFmtFld& operator=(const SwFmtFld& rFld); SwFmtFld& operator=(const SwFmtFld& rFld);
public: public:
TYPEINFO(); TYPEINFO();
// single argument constructors shall be explicit. // Single argument constructors shall be explicit.
explicit SwFmtFld( const SwField &rFld ); explicit SwFmtFld( const SwField &rFld );
// @@@ copy construction allowed, but copy assignment is not? @@@ // @@@ copy construction allowed, but copy assignment is not? @@@
...@@ -65,7 +65,7 @@ public: ...@@ -65,7 +65,7 @@ public:
virtual ~SwFmtFld(); virtual ~SwFmtFld();
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual int operator==( const SfxPoolItem& ) const; virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <hintids.hxx> #include <hintids.hxx>
#include <format.hxx> #include <format.hxx>
//Die FillOrder ---------------------------------
enum SwFillOrder enum SwFillOrder
{ {
...@@ -50,7 +49,7 @@ public: ...@@ -50,7 +49,7 @@ public:
SwFmtFillOrder( SwFillOrder = ATT_TOP_DOWN ); SwFmtFillOrder( SwFillOrder = ATT_TOP_DOWN );
inline SwFmtFillOrder &operator=( const SwFmtFillOrder &rCpy ); inline SwFmtFillOrder &operator=( const SwFmtFillOrder &rCpy );
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual USHORT GetValueCount() const; virtual USHORT GetValueCount() const;
......
...@@ -37,15 +37,14 @@ ...@@ -37,15 +37,14 @@
class IntlWrapper; class IntlWrapper;
//Die Framesize --------------------------------- //Frame size.
enum SwFrmSize enum SwFrmSize
{ {
ATT_VAR_SIZE, //Frm ist in der Var-Richtung variabel ATT_VAR_SIZE, // Frame is variable in Var-direction.
ATT_FIX_SIZE, //Frm ist in der Var-Richtung unbeweglich ATT_FIX_SIZE, // Frame cannot be moved in Var-direction.
ATT_MIN_SIZE //Der Wert in der Var-Richtung beschreibt eine ATT_MIN_SIZE // Value in Var-direction gives minimum
//Minimalgroesse, die nicht unter- wohl aber // (can be exceeded but not be less).
//ueberschritten werden kann.
}; };
class SW_DLLPUBLIC SwFmtFrmSize: public SfxPoolItem class SW_DLLPUBLIC SwFmtFrmSize: public SfxPoolItem
...@@ -53,27 +52,28 @@ class SW_DLLPUBLIC SwFmtFrmSize: public SfxPoolItem ...@@ -53,27 +52,28 @@ class SW_DLLPUBLIC SwFmtFrmSize: public SfxPoolItem
Size aSize; Size aSize;
SwFrmSize eFrmHeightType; SwFrmSize eFrmHeightType;
SwFrmSize eFrmWidthType; SwFrmSize eFrmWidthType;
BYTE nWidthPercent; //Fuer Tabellen kann die Breite in Prozent BYTE nWidthPercent;
BYTE nHeightPercent; //angegeben sein. BYTE nHeightPercent;
//Fuer Rahmen koennen Hoehe und/oder Breite
//in Prozent angegeben sein. Wenn nur eine // For tables: width can be given in percent.
//der Angaben in Prozent angeben ist, kann
//durch den ausgezeichneten Wert 0xFF in der // For frames: height and/or width may be given in percent.
//anderen Prozentangabe bestimmt werden, das // If only one of these percentage values is given, the value 0xFF
//sich diese Richtung proportional zur anderen // used instead of the missing percentage value indicates this side
//verhaelt. Basis fuer die Umrechnung sind fuer // being proportional to the given one.
//diesen Fall die Angaben in der Size. // The calculation in this case is based upon the values in Size.
//Die Prozentwerte beziehen sich immer auf die // Percentages are always related to the environment in which
//Umgebung in der das Objekt steht (PrtArea) // the object is placed (PrtArea) and to the screen width
//Auf die Bildschirmbreite abzueglich Raender // minus borders in BrowseView if the environment is the page.
//in der BrowseView wenn die Umgebung die Seite
//ist.
public: public:
SwFmtFrmSize( SwFrmSize eSize = ATT_VAR_SIZE, SwFmtFrmSize( SwFrmSize eSize = ATT_VAR_SIZE,
SwTwips nWidth = 0, SwTwips nHeight = 0 ); SwTwips nWidth = 0, SwTwips nHeight = 0 );
SwFmtFrmSize& operator=( const SwFmtFrmSize& rCpy ); SwFmtFrmSize& operator=( const SwFmtFrmSize& rCpy );
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual int operator==( const SfxPoolItem& ) const; virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
......
...@@ -35,17 +35,17 @@ ...@@ -35,17 +35,17 @@
class SwDoc; class SwDoc;
class SwTxtFtn; class SwTxtFtn;
// ATT_FTN ********************************************************** // ATT_FTN
class SW_DLLPUBLIC SwFmtFtn: public SfxPoolItem class SW_DLLPUBLIC SwFmtFtn: public SfxPoolItem
{ {
friend class SwTxtFtn; friend class SwTxtFtn;
SwTxtFtn* pTxtAttr; //my TextAttribute SwTxtFtn* pTxtAttr; // My TextAttribute.
String aNumber; //user-defined 'Number' String aNumber; // User-defined 'Number'.
USHORT nNumber; //automatic numbering USHORT nNumber; // Automatic numbering.
bool m_bEndNote; // is it an End note? bool m_bEndNote; // Is it an End note?
// protected CopyCtor // Protected CopyCtor.
SwFmtFtn& operator=(const SwFmtFtn& rFtn); SwFmtFtn& operator=(const SwFmtFtn& rFtn);
SwFmtFtn( const SwFmtFtn& ); SwFmtFtn( const SwFmtFtn& );
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
SwFmtFtn( bool bEndNote = false ); SwFmtFtn( bool bEndNote = false );
virtual ~SwFmtFtn(); virtual ~SwFmtFtn();
// "pure virtual methods" of SfxPoolItem // "Pure virtual methods" of SfxPoolItem.
virtual int operator==( const SfxPoolItem& ) const; virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
......
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