summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/inc/txtftn.hxx13
-rw-r--r--sw/inc/txtrfmrk.hxx2
-rw-r--r--sw/inc/txttxmrk.hxx2
-rw-r--r--sw/inc/undobj.hxx55
-rw-r--r--sw/inc/unocrsr.hxx14
-rw-r--r--sw/inc/unodraw.hxx15
6 files changed, 50 insertions, 51 deletions
diff --git a/sw/inc/txtftn.hxx b/sw/inc/txtftn.hxx
index d48bcf7c8dff..22ee7c4c7792 100644
--- a/sw/inc/txtftn.hxx
+++ b/sw/inc/txtftn.hxx
@@ -53,21 +53,22 @@ public:
void SetNumber( const sal_uInt16 nNumber, const String* = 0 );
void CopyFtn(SwTxtFtn & rDest, SwTxtNode & rDestNode) const;
- // get and set TxtNode pointer
+ // Get and set TxtNode pointer.
inline const SwTxtNode& GetTxtNode() const;
void ChgTxtNode( SwTxtNode* pNew ) { m_pTxtNode = pNew; }
- // lege eine neue leere TextSection fuer diese Fussnote an
+ // Create a new empty TextSection for this footnote.
void MakeNewTextSection( SwNodes& rNodes );
- // loesche die FtnFrame aus der Seite
+ // Delete the FtnFrame from page.
void DelFrms( const SwFrm* );
- // bedingten Absatzvorlagen checken
+
+ // Check conditional paragraph styles.
void CheckCondColl();
- // fuer die Querverweise auf Fussnoten
+ // For references to footnotes.
sal_uInt16 SetSeqRefNo();
- void SetSeqNo( sal_uInt16 n ) { m_nSeqNo = n; } // for Readers
+ void SetSeqNo( sal_uInt16 n ) { m_nSeqNo = n; } // For Readers.
sal_uInt16 GetSeqRefNo() const { return m_nSeqNo; }
static void SetUniqueSeqRefNo( SwDoc& rDoc );
diff --git a/sw/inc/txtrfmrk.hxx b/sw/inc/txtrfmrk.hxx
index d60dd47cad4c..d70a063d0da0 100644
--- a/sw/inc/txtrfmrk.hxx
+++ b/sw/inc/txtrfmrk.hxx
@@ -33,7 +33,7 @@
class SwTxtNode;
// SWTXT_REFMARK *************************************
-// Attribut fuer Inhalts-/Positions-Referenzen im Text
+// Attribute for content-/position references in text.
class SwTxtRefMark : public SwTxtAttrEnd
{
diff --git a/sw/inc/txttxmrk.hxx b/sw/inc/txttxmrk.hxx
index 56a928b98ce2..5fae221ce87d 100644
--- a/sw/inc/txttxmrk.hxx
+++ b/sw/inc/txttxmrk.hxx
@@ -34,7 +34,7 @@ class SwTxtNode;
class SwDoc;
// SWTXT_TOXMARK *******************************
-// Attribut fuer die Verzeichnisse
+// Attribute for indices/tables of contents.
class SwTxtTOXMark : public SwTxtAttrEnd
{
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx
index dda46d6ef8b5..871c4ceb1eb5 100644
--- a/sw/inc/undobj.hxx
+++ b/sw/inc/undobj.hxx
@@ -114,14 +114,14 @@ public:
*/
virtual String GetComment() const;
- // das UndoObject merkt sich, welcher Mode eingeschaltet war.
- // In Undo/Redo/Repeat wird dann immer auf diesen zurueck geschaltet
+ // UndoObject remembers which mode was turned on.
+ // In Undo/Redo/Repeat this remembered mode is switched on.
sal_uInt16 GetRedlineMode() const { return nOrigRedlineMode; }
void SetRedlineMode( sal_uInt16 eMode ) { nOrigRedlineMode = eMode; }
bool IsDelBox() const;
- // sicher und setze die RedlineDaten
+ // Save and set Redline data.
static sal_Bool FillSaveData( const SwPaM& rRange, SwRedlineSaveDatas& rSData,
sal_Bool bDelRange = sal_True, sal_Bool bCopyNext = sal_True );
static sal_Bool FillSaveDataForFmt( const SwPaM& , SwRedlineSaveDatas& );
@@ -145,20 +145,20 @@ bool IsDestroyFrameAnchoredAtChar(SwPosition const & rAnchorPos,
SwPosition const & rStart, SwPosition const & rEnd,
DelCntntType const nDelCntntType = nsDelCntntType::DELCNT_ALL);
-// diese Klasse muss in ein Undo-Object vererbt werden, wenn dieses Inhalt
-// fuers Redo/Undo ... speichert
+
+// This class has to be inherited into an Undo-object if it saves content
+// for Redo/Undo...
class SwUndoSaveCntnt
{
protected:
SwHistory* pHistory;
- // wird fuer das loeschen von Inhalt benoetigt. Fuer das ReDo werden
- // Inhalte in das UndoNodesArray verschoben. Diese Methoden fuegen
- // am Ende eines TextNodes ein Trenner fuer die Attribute. Damit werden
- // Attribute nicht expandiert.
- // MoveTo.. verschiebt aus dem NodesArray in das UndoNodesArray
- // MoveFrom.. verschiebt aus dem UndoNodesArray in das NodesArray
+ // Needed for deletion of content. For Redo content is moved into the
+ // UndoNodesArray. These methods insert a separator for the attributes
+ // at the end of a TextNode. So the attributes do not get expanded.
+ // MoveTo: moves from the NodesArray into the UndoNodesArray.
+ // MoveFrom: moves from the UndoNodesArray into the NodesArray.
void MoveToUndoNds( SwPaM& rPam,
SwNodeIndex* pNodeIdx = 0, SwIndex* pCntIdx = 0,
sal_uLong* pEndNdIdx = 0, xub_StrLen * pEndCntIdx = 0 );
@@ -166,15 +166,15 @@ protected:
SwPosition& rInsPos,
sal_uLong* pEndNdIdx = 0, xub_StrLen * pEndCntIdx = 0 );
- // diese beiden Methoden bewegen den SPoint vom Pam zurueck/vor. Damit
- // kann fuer ein Undo/Redo ein Bereich aufgespannt werden. (Der
- // SPoint liegt dann vor dem manipuliertem Bereich !!)
- // Das Flag gibt an, ob noch vorm SPoint Inhalt steht.
+ // These two methods move the SPoint back/forth from PaM. With it
+ // a range can be spanned for Undo/Redo. (In this case the SPoint
+ // is before the manipulated range!!)
+ // The flag indicates if there is content before the SPoint.
sal_Bool MovePtBackward( SwPaM& rPam );
void MovePtForward( SwPaM& rPam, sal_Bool bMvBkwrd );
- // vor dem Move ins UndoNodes-Array muss dafuer gesorgt werden, das
- // die Inhaltstragenden Attribute aus dem Nodes-Array entfernt werden.
+ // Before moving stuff into UndoNodes-Array care has to be taken that
+ // the content-bearing attributes are removed from the nodes-array.
void DelCntntIndex( const SwPosition& pMark, const SwPosition& pPoint,
DelCntntType nDelCntntType = nsDelCntntType::DELCNT_ALL );
@@ -183,12 +183,12 @@ public:
~SwUndoSaveCntnt();
};
-// sicher eine vollstaendige Section im Nodes-Array
+// Save a complete section in nodes-array.
class SwUndoSaveSection : private SwUndoSaveCntnt
{
SwNodeIndex *pMvStt;
SwRedlineSaveDatas* pRedlSaveData;
- sal_uLong nMvLen; // Index ins UndoNodes-Array
+ sal_uLong nMvLen; // Index into UndoNodes-Array.
sal_uLong nStartPos;
protected:
@@ -208,8 +208,9 @@ public:
SwHistory* GetHistory() { return pHistory; }
};
-// Diese Klasse speichert den Pam als sal_uInt16's und kann diese wieder zu
-// einem PaM zusammensetzen
+
+// This class saves the PaM as sal_uInt16's and is able to restore it
+// into a PaM.
class SwUndRng
{
public:
@@ -238,8 +239,8 @@ class SwUndoInserts : public SwUndo, public SwUndRng, private SwUndoSaveCntnt
sal_Bool bSttWasTxtNd;
protected:
sal_uLong nNdDiff;
- SwPosition *pPos; // Inhalt fuers Redo
- sal_uInt16 nSetPos; // Start in der History-Liste
+ SwPosition *pPos; // Content for Redo.
+ sal_uInt16 nSetPos; // Start in the history list.
SwUndoInserts( SwUndoId nUndoId, const SwPaM& );
public:
@@ -249,7 +250,7 @@ public:
virtual void RedoImpl( ::sw::UndoRedoContext & );
virtual void RepeatImpl( ::sw::RepeatContext & );
- // setze den Destination-Bereich nach dem Einlesen.
+ // Set destination range after reading.
void SetInsertRange( const SwPaM&, sal_Bool bScanFlys = sal_True,
sal_Bool bSttWasTxtNd = sal_True );
};
@@ -271,11 +272,11 @@ public:
class SwUndoFlyBase : public SwUndo, private SwUndoSaveSection
{
protected:
- SwFrmFmt* pFrmFmt; // das gespeicherte FlyFormat
+ SwFrmFmt* pFrmFmt; // The saved FlyFormat.
sal_uLong nNdPgPos;
- xub_StrLen nCntPos; // Seite/am Absatz/im Absatz
+ xub_StrLen nCntPos; // Page at/in paragraph.
sal_uInt16 nRndId;
- sal_Bool bDelFmt; // loesche das gespeicherte Format
+ sal_Bool bDelFmt; // Delete saved format.
void InsFly(::sw::UndoRedoContext & rContext, bool bShowSel = true);
void DelFly( SwDoc* );
diff --git a/sw/inc/unocrsr.hxx b/sw/inc/unocrsr.hxx
index 26f193a9dc81..74713a77e665 100644
--- a/sw/inc/unocrsr.hxx
+++ b/sw/inc/unocrsr.hxx
@@ -49,8 +49,8 @@ protected:
public:
- // gibt es eine Selection vom Content in die Tabelle
- // Return Wert gibt an, ob der Crsr auf der alten Position verbleibt
+ // Does a selection of content exist in table?
+ // Return value indicates if the cursor remains at its old position.
virtual sal_Bool IsSelOvr( int eFlags =
( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE |
@@ -81,9 +81,9 @@ public:
class SwUnoTableCrsr : public virtual SwUnoCrsr, public virtual SwTableCursor
{
- // die Selection hat die gleiche Reihenfolge wie die
- // TabellenBoxen. D.h., wird aus dem einen Array an einer Position
- // etwas geloescht, dann muss es auch im anderen erfolgen!!
+ // The selection has the same order as the table boxes, i.e.
+ // if something is deleted from the one array at a certain position
+ // it has also to be deleted from the other!
SwCursor aTblSel;
using SwTableCursor::MakeBoxSels;
@@ -92,8 +92,8 @@ public:
SwUnoTableCrsr( const SwPosition& rPos );
virtual ~SwUnoTableCrsr();
- // gibt es eine Selection vom Content in die Tabelle
- // Return Wert gibt an, ob der Crsr auf der alten Position verbleibt
+ // Does a selection of content exist in table?
+ // Return value indicates if the cursor remains at its old position.
virtual sal_Bool IsSelOvr( int eFlags =
( nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION |
nsSwCursorSelOverFlags::SELOVER_TOGGLE |
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx
index 7cc830cf6a96..7de8903edf87 100644
--- a/sw/inc/unodraw.hxx
+++ b/sw/inc/unodraw.hxx
@@ -47,17 +47,14 @@
class SdrMarkList;
class SdrView;
class SwDoc;
-/******************************************************************************
- *
- ******************************************************************************/
+
class SwFmDrawPage : public SvxFmDrawPage
{
SdrPageView* pPageView;
protected:
- // Erzeugen eines SdrObjects anhand einer Description. Kann von
- // abgeleiteten Klassen dazu benutzt werden, eigene ::com::sun::star::drawing::Shapes zu
- // unterstuetzen (z.B. Controls)
+ // Create a SdrObject according to a description. Can be used by derived classes to
+ // support own ::com::sun::star::drawing::Shapes (e.g. controls).
virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape ) throw ();
public:
@@ -72,9 +69,9 @@ public:
void RemovePageView();
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > GetInterface( SdrObject* pObj );
- // Die folgende Methode wird gerufen, wenn ein SvxShape-Objekt angelegt
- // werden soll. abgeleitete Klassen koennen hier eine Ableitung oder
- // ein ein SvxShape aggregierendes Objekt anlegen.
+ // The following method is called when a SvxShape-object is to be created.
+ // Derived classes may obtain at this point a derivation or an object
+ // that is aggregating a SvxShape.
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw ();
};