Kaydet (Commit) f80f169f authored tarafından Christoph Herzog's avatar Christoph Herzog Kaydeden (comit) Thorsten Behrens

Translations of comments in writer/sw/inc

üst 534216a3
...@@ -52,14 +52,14 @@ namespace com { namespace sun { namespace star { namespace i18n { ...@@ -52,14 +52,14 @@ namespace com { namespace sun { namespace star { namespace i18n {
typedef SwFieldType* SwFldTypePtr; typedef SwFieldType* SwFldTypePtr;
#define GROW_FLDTYPES 16 #define GROW_FLDTYPES 16
//PageDescriptor-Schnittstelle // PageDescriptor-interface
//typedef SwPageDesc * SwPageDescPtr; // typedef SwPageDesc * SwPageDescPtr;
//SV_DECL_PTRARR_DEL(SwPageDescs, SwPageDescPtr,1,1); // SV_DECL_PTRARR_DEL(SwPageDescs, SwPageDescPtr,1,1);
typedef SwFrmFmt* SwFrmFmtPtr; typedef SwFrmFmt* SwFrmFmtPtr;
SV_DECL_PTRARR_DEL(SwFrmFmts,SwFrmFmtPtr,4,4) SV_DECL_PTRARR_DEL(SwFrmFmts,SwFrmFmtPtr,4,4)
//Spezifische Frameformate (Rahmen, DrawObjecte) // Specific frame formats (frames, DrawObjects).
SV_DECL_PTRARR_DEL(SwSpzFrmFmts,SwFrmFmtPtr,0,4) SV_DECL_PTRARR_DEL(SwSpzFrmFmts,SwFrmFmtPtr,0,4)
typedef SwCharFmt* SwCharFmtPtr; typedef SwCharFmt* SwCharFmtPtr;
...@@ -73,7 +73,8 @@ SV_DECL_PTRARR_DEL( SwTOXTypes, SwTOXTypePtr, 0, 1 ) ...@@ -73,7 +73,8 @@ SV_DECL_PTRARR_DEL( SwTOXTypes, SwTOXTypePtr, 0, 1 )
// Undo // Undo
#define INIT_UNDOS 5 #define INIT_UNDOS 5
#define GROW_UNDOS 5 #define GROW_UNDOS 5
// Das Array der Undo-History
// Array of Undo-history.
typedef SwUndo* SwUndoPtr; typedef SwUndo* SwUndoPtr;
SV_DECL_PTRARR_DEL( SwUndos, SwUndoPtr, INIT_UNDOS, GROW_UNDOS ) SV_DECL_PTRARR_DEL( SwUndos, SwUndoPtr, INIT_UNDOS, GROW_UNDOS )
...@@ -103,9 +104,9 @@ public: ...@@ -103,9 +104,9 @@ public:
void Remove( USHORT nP, USHORT nL = 1 ); void Remove( USHORT nP, USHORT nL = 1 );
void DeleteAndDestroy( USHORT nP, USHORT nL=1 ); void DeleteAndDestroy( USHORT nP, USHORT nL=1 );
// suche den naechsten oder vorherigen Redline mit dergleichen Seq.No // Search next or previous Redline with the same Seq. No.
// Mit dem Lookahead kann die Suche eingeschraenkt werden. 0 oder // Search can be restricted via Lookahaed.
// USHRT_MAX suchen im gesamten Array. // Using 0 or USHRT_MAX makes search the whole array.
USHORT FindNextOfSeqNo( USHORT nSttPos, USHORT nLookahead = 20 ) const; USHORT FindNextOfSeqNo( USHORT nSttPos, USHORT nLookahead = 20 ) const;
USHORT FindPrevOfSeqNo( USHORT nSttPos, USHORT nLookahead = 20 ) const; USHORT FindPrevOfSeqNo( USHORT nSttPos, USHORT nLookahead = 20 ) const;
USHORT FindNextSeqNo( USHORT nSeqNo, USHORT nSttPos, USHORT FindNextSeqNo( USHORT nSeqNo, USHORT nSttPos,
......
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
SwDocFac( SwDoc *pDoc = 0 ); SwDocFac( SwDoc *pDoc = 0 );
~SwDocFac(); ~SwDocFac();
// Das Dokument ist nach dem Aufruf von Read(..) angelegt // Document is created after calling Read(...).
SwDoc* GetDoc(); SwDoc* GetDoc();
}; };
......
...@@ -64,31 +64,31 @@ class IDocumentChartDataProviderAccess; ...@@ -64,31 +64,31 @@ class IDocumentChartDataProviderAccess;
class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
{ {
SwDoc* pDoc; // Document SwDoc* pDoc; // Document.
rtl::Reference< SfxStyleSheetBasePool > mxBasePool; // Durchreiche fuer Formate rtl::Reference< SfxStyleSheetBasePool > mxBasePool; // Passing through for formats.
FontList* pFontList; // aktuelle FontListe FontList* pFontList; // Current Fontlist.
// Nix geht ohne die WrtShell (historische Gruende) // For "historical reasons" nothing can be done without the WrtShell.
// RuekwaertsPointer auf die View (historische Gruende) // Back-pointer on View (again "for historical reasons").
// Dieser gilt solange bis im Activate ein neuer gesetzt wird // Back-pointer is valid until in Activate a new one is set
// oder dieser im Dtor der View geloescht wird // or until it is deleted in the View's Dtor.
//
SwView* pView; SwView* pView;
SwWrtShell* pWrtShell; SwWrtShell* pWrtShell;
Timer aFinishedTimer; // Timer fuers ueberpriefen der Timer aFinishedTimer; // Timer for checking graphics-links.
// Grafik-Links. Sind alle da, // If all are present, the doc is loaded completely.
// dann ist Doc voll. geladen
comphelper::EmbeddedObjectContainer* pOLEChildList; comphelper::EmbeddedObjectContainer* pOLEChildList;
sal_Int16 nUpdateDocMode; // contains the com::sun::star::document::UpdateDocMode sal_Int16 nUpdateDocMode; // contains the com::sun::star::document::UpdateDocMode
bool bInUpdateFontList; //prevent nested calls of UpdateFontList bool bInUpdateFontList; //prevent nested calls of UpdateFontList
bool bIsATemplate; //prevent nested calls of UpdateFontList bool bIsATemplate; //prevent nested calls of UpdateFontList
// Methoden fuer den Zugriff aufs Doc
// Methods for access to doc.
SW_DLLPRIVATE void AddLink(); SW_DLLPRIVATE void AddLink();
SW_DLLPRIVATE void RemoveLink(); SW_DLLPRIVATE void RemoveLink();
// Hint abfangen fuer DocInfo // Catch hint for DocInfo.
SW_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); SW_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
// FileIO // FileIO
...@@ -102,14 +102,14 @@ class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener ...@@ -102,14 +102,14 @@ class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
SW_DLLPRIVATE virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE ); SW_DLLPRIVATE virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE );
// DocInfo dem Doc melden
// // Make DocInfo known to the Doc.
SW_DLLPRIVATE virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog( SW_DLLPRIVATE virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog(
Window *pParent, const SfxItemSet &); Window *pParent, const SfxItemSet &);
// OLE-Geraffel // OLE-stuff
SW_DLLPRIVATE virtual void Draw( OutputDevice*, const JobSetup&, USHORT); SW_DLLPRIVATE virtual void Draw( OutputDevice*, const JobSetup&, USHORT);
// Methoden fuer StyleSheets // Methods for StyleSheets
SW_DLLPRIVATE USHORT Edit( const String &rName, const String& rParent, USHORT nFamily, SW_DLLPRIVATE USHORT Edit( const String &rName, const String& rParent, USHORT nFamily,
USHORT nMask, BOOL bNew, USHORT nMask, BOOL bNew,
BOOL bColumn = FALSE, BOOL bColumn = FALSE,
...@@ -124,7 +124,7 @@ class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener ...@@ -124,7 +124,7 @@ class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
USHORT nFamily, USHORT nMask, SwWrtShell* pShell = 0); USHORT nFamily, USHORT nMask, SwWrtShell* pShell = 0);
SW_DLLPRIVATE void InitDraw(); SW_DLLPRIVATE void InitDraw();
SW_DLLPRIVATE void SubInitNew(); // fuer InitNew und HtmlSourceModus SW_DLLPRIVATE void SubInitNew(); // for InitNew and HtmlSourceMode.
SW_DLLPRIVATE void RemoveOLEObjects(); SW_DLLPRIVATE void RemoveOLEObjects();
SW_DLLPRIVATE void CalcLayoutForOLEObjects(); SW_DLLPRIVATE void CalcLayoutForOLEObjects();
...@@ -143,7 +143,7 @@ protected: ...@@ -143,7 +143,7 @@ protected:
public: public:
using SotObject::GetInterface; using SotObject::GetInterface;
// aber selbst implementieren // but we implement this ourselves.
SFX_DECL_INTERFACE(SW_DOCSHELL) SFX_DECL_INTERFACE(SW_DOCSHELL)
SFX_DECL_OBJECTFACTORY() SFX_DECL_OBJECTFACTORY()
TYPEINFO(); TYPEINFO();
...@@ -152,16 +152,16 @@ public: ...@@ -152,16 +152,16 @@ public:
static rtl::OUString GetEventName( sal_Int32 nId ); static rtl::OUString GetEventName( sal_Int32 nId );
//Das Doc wird fuer SO-Datenaustausch benoetigt! //Doc is required for SO data exchange!
SwDocShell( SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED ); SwDocShell( SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED );
SwDocShell( const sal_uInt64 i_nSfxCreationFlags ); SwDocShell( const sal_uInt64 i_nSfxCreationFlags );
SwDocShell( SwDoc *pDoc, SfxObjectCreateMode eMode = SFX_CREATE_MODE_STANDARD ); SwDocShell( SwDoc *pDoc, SfxObjectCreateMode eMode = SFX_CREATE_MODE_STANDARD );
~SwDocShell(); ~SwDocShell();
// OLE 2.0-Benachrichtigung // OLE 2.0-notification.
DECL_LINK( Ole2ModifiedHdl, void * ); DECL_LINK( Ole2ModifiedHdl, void * );
// OLE-Geraffel // OLE-stuff.
virtual void SetVisArea( const Rectangle &rRect ); virtual void SetVisArea( const Rectangle &rRect );
virtual Rectangle GetVisArea( USHORT nAspect ) const; virtual Rectangle GetVisArea( USHORT nAspect ) const;
virtual Printer *GetDocumentPrinter(); virtual Printer *GetDocumentPrinter();
...@@ -181,7 +181,7 @@ public: ...@@ -181,7 +181,7 @@ public:
void StateAlways(SfxItemSet &); void StateAlways(SfxItemSet &);
void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = 0 ); void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = 0 );
// Doc rausreichen aber VORSICHT // returns Doc. But be careful!
inline SwDoc* GetDoc() { return pDoc; } inline SwDoc* GetDoc() { return pDoc; }
inline const SwDoc* GetDoc() const { return pDoc; } inline const SwDoc* GetDoc() const { return pDoc; }
IDocumentDeviceAccess* getIDocumentDeviceAccess(); IDocumentDeviceAccess* getIDocumentDeviceAccess();
...@@ -192,13 +192,13 @@ public: ...@@ -192,13 +192,13 @@ public:
void UpdateFontList(); void UpdateFontList();
void UpdateChildWindows(); void UpdateChildWindows();
// globaler IO // global IO.
virtual BOOL Save(); virtual BOOL Save();
// fuer VorlagenPI // For Style PI.
virtual SfxStyleSheetBasePool* GetStyleSheetPool(); virtual SfxStyleSheetBasePool* GetStyleSheetPool();
// Fuer Organizer // For Organizer.
virtual BOOL Insert(SfxObjectShell &rSource, virtual BOOL Insert(SfxObjectShell &rSource,
USHORT nSourceIdx1, USHORT nSourceIdx1,
USHORT nSourceIdx2, USHORT nSourceIdx2,
...@@ -214,22 +214,22 @@ public: ...@@ -214,22 +214,22 @@ public:
virtual Bitmap GetStyleFamilyBitmap( SfxStyleFamily eFamily ); virtual Bitmap GetStyleFamilyBitmap( SfxStyleFamily eFamily );
// View setzen fuer Aktionen ueber Shell // Set View for actions via Shell.
void SetView(SwView* pVw); void SetView(SwView* pVw);
const SwView *GetView() const { return pView; } const SwView *GetView() const { return pView; }
SwView *GetView() { return pView; } SwView *GetView() { return pView; }
// Zugriff auf die zur SwView gehoerige SwWrtShell // Accress to the SwWrtShell belonging to SwView.
SwWrtShell *GetWrtShell() { return pWrtShell; } SwWrtShell *GetWrtShell() { return pWrtShell; }
const SwWrtShell *GetWrtShell() const { return pWrtShell; } const SwWrtShell *GetWrtShell() const { return pWrtShell; }
// fuer die Core - die kennt die DocShell aber keine WrtShell! // For Core - it knows the DocShell but not the WrtShell!
SwFEShell *GetFEShell(); SwFEShell *GetFEShell();
const SwFEShell *GetFEShell() const const SwFEShell *GetFEShell() const
{ return ((SwDocShell*)this)->GetFEShell(); } { return ((SwDocShell*)this)->GetFEShell(); }
// Fuer Einfuegen Dokument // For inserting document.
Reader* StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr, Reader* StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr,
SwCrsrShell* pCrsrSh = 0, SwPaM* pPaM = 0); SwCrsrShell* pCrsrSh = 0, SwPaM* pPaM = 0);
...@@ -252,7 +252,7 @@ public: ...@@ -252,7 +252,7 @@ public:
void _LoadStyles( SfxObjectShell& rSource, BOOL bPreserveCurrentDocument ); void _LoadStyles( SfxObjectShell& rSource, BOOL bPreserveCurrentDocument );
// Seitenvorlagedialog anzeigen, ggf. auf Spaltenpage // Display dialog for page style. If required display column page.
void FormatPage( const String& rPage, void FormatPage( const String& rPage,
BOOL bColumn = FALSE, BOOL bColumn = FALSE,
SwWrtShell* pActShell = 0 ); SwWrtShell* pActShell = 0 );
...@@ -264,10 +264,10 @@ public: ...@@ -264,10 +264,10 @@ public:
void LoadingFinished(); void LoadingFinished();
// eine Uebertragung wird abgebrochen (wird aus dem SFX gerufen) // Cancel transfer (called from SFX).
virtual void CancelTransfers(); virtual void CancelTransfers();
// Doc aus Html-Source neu laden // Re-read Doc from Html-source.
void ReloadFromHtml( const String& rStreamName, SwSrcView* pSrcView ); void ReloadFromHtml( const String& rStreamName, SwSrcView* pSrcView );
sal_Int16 GetUpdateDocMode() const {return nUpdateDocMode;} sal_Int16 GetUpdateDocMode() const {return nUpdateDocMode;}
......
...@@ -47,7 +47,7 @@ class SwFrmFmt; ...@@ -47,7 +47,7 @@ class SwFrmFmt;
class SwNumRule; class SwNumRule;
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Lokale Hilfsklasse Local helper class.
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
class SwPoolFmtList : public SvStringsDtor class SwPoolFmtList : public SvStringsDtor
{ {
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: temp. StyleSheet Temporary StyleSheet.
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
class SW_DLLPUBLIC SwDocStyleSheet : public SfxStyleSheetBase class SW_DLLPUBLIC SwDocStyleSheet : public SfxStyleSheetBase
{ {
...@@ -78,10 +78,10 @@ class SW_DLLPUBLIC SwDocStyleSheet : public SfxStyleSheetBase ...@@ -78,10 +78,10 @@ class SW_DLLPUBLIC SwDocStyleSheet : public SfxStyleSheetBase
BOOL bPhysical; BOOL bPhysical;
// leere Huelse zum richtigen StyleSheet (Core) machen // Make empty shell a real StyleSheet (Core).
SW_DLLPRIVATE void Create(); SW_DLLPRIVATE void Create();
// den StyleSheet mit Daten fuellen // Fill StyleSheet with data.
enum FillStyleType { enum FillStyleType {
FillOnlyName, FillOnlyName,
FillAllInfo, FillAllInfo,
...@@ -127,9 +127,8 @@ public: ...@@ -127,9 +127,8 @@ public:
virtual ULONG GetHelpId( String& rFile ); virtual ULONG GetHelpId( String& rFile );
virtual void SetHelpId( const String& r, ULONG nId ); virtual void SetHelpId( const String& r, ULONG nId );
// Vorbelegen der member ohne physikalischen Zugriff // Preset the members without physical access.
// wird vom StyleSheetPool benutzt // Used by StyleSheetPool.
//
void PresetName(const String& rName) { aName = rName; } void PresetName(const String& rName) { aName = rName; }
void PresetNameAndFamily(const String& rName); void PresetNameAndFamily(const String& rName);
void PresetParent(const String& rName){ aParent = rName; } void PresetParent(const String& rName){ aParent = rName; }
...@@ -156,7 +155,7 @@ public: ...@@ -156,7 +155,7 @@ public:
}; };
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
Beschreibung: Iterator fuer den Pool Iterator for Pool.
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
class SwStyleSheetIterator : public SfxStyleSheetIterator, public SfxListener class SwStyleSheetIterator : public SfxStyleSheetIterator, public SfxListener
...@@ -186,15 +185,12 @@ public: ...@@ -186,15 +185,12 @@ public:
virtual void Notify( SfxBroadcaster&, const SfxHint& ); virtual void Notify( SfxBroadcaster&, const SfxHint& );
}; };
/*--------------------------------------------------------------------
Beschreibung: Pool fuer
--------------------------------------------------------------------*/
class SwDocStyleSheetPool : public SfxStyleSheetBasePool class SwDocStyleSheetPool : public SfxStyleSheetBasePool
{ {
rtl::Reference< SwDocStyleSheet > mxStyleSheet; rtl::Reference< SwDocStyleSheet > mxStyleSheet;
SwDoc& rDoc; SwDoc& rDoc;
BOOL bOrganizer : 1; // TRUE: fuer den Organizer BOOL bOrganizer : 1; // TRUE: for Organizer.
virtual SfxStyleSheetBase* Create( const String&, SfxStyleFamily, USHORT nMask); virtual SfxStyleSheetBase* Create( const String&, SfxStyleFamily, USHORT nMask);
...@@ -233,7 +229,7 @@ public: ...@@ -233,7 +229,7 @@ public:
protected: protected:
virtual ~SwDocStyleSheetPool(); virtual ~SwDocStyleSheetPool();
//Fuer die daemlicheren Compiler //For not-so-clever compilers.
private: private:
SwDocStyleSheetPool( const SwDocStyleSheetPool& ); SwDocStyleSheetPool( const SwDocStyleSheetPool& );
}; };
......
This diff is collapsed.
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