[PATCH] Translations of comments in writer/sw/inc
Christoph Herzog
rhogez at googlemail.com
Fri Jan 7 17:37:47 PST 2011
---
sw/inc/IDocumentLinksAdministration.hxx | 20 +-------
sw/inc/IDocumentRedlineAccess.hxx | 77 ++++++++-----------------------
sw/inc/IDocumentState.hxx | 24 ++--------
sw/inc/IDocumentStatistics.hxx | 10 +---
sw/inc/IDocumentStylePoolAccess.hxx | 20 +++-----
sw/inc/IDocumentUndoRedo.hxx | 59 ++++++++----------------
6 files changed, 58 insertions(+), 152 deletions(-)
diff --git a/sw/inc/IDocumentLinksAdministration.hxx b/sw/inc/IDocumentLinksAdministration.hxx
index 2d6b282..46a5ef4 100644
--- a/sw/inc/IDocumentLinksAdministration.hxx
+++ b/sw/inc/IDocumentLinksAdministration.hxx
@@ -40,20 +40,14 @@ namespace sfx2 { class SvLinkSource; class LinkManager; }
class IDocumentLinksAdministration
{
public:
- /** Links un-/sichtbar in LinkManager einfuegen (gelinkte Bereiche)
+ /** Insert links in-/visibly into LinkManager (linked ranges).
*/
virtual bool IsVisibleLinks() const = 0;
- /**
- */
virtual void SetVisibleLinks(bool bFlag) = 0;
- /**
- */
virtual sfx2::LinkManager& GetLinkManager() = 0;
- /**
- */
virtual const sfx2::LinkManager& GetLinkManager() const = 0;
/** #i42634# Moved common code of SwReader::Read() and
@@ -61,28 +55,20 @@ namespace sfx2 { class SvLinkSource; class LinkManager; }
*/
virtual void UpdateLinks(BOOL bUI) = 0;
- /** SS fuers Linken von Dokumentteilen
+ /** SS fuers Linken von Dokumentteilen / ?? for linking of parts of documents.
*/
virtual bool GetData(const String& rItem, const String& rMimeType, ::com::sun::star::uno::Any& rValue) const = 0;
- /**
- */
virtual bool SetData(const String& rItem, const String& rMimeType, const ::com::sun::star::uno::Any& rValue) = 0;
- /**
- */
virtual ::sfx2::SvLinkSource* CreateLinkSource(const String& rItem) = 0;
- /** embedded alle lokalen Links (Bereiche/Grafiken)
+ /** Embed all local links (ranges/graphics).
*/
virtual bool EmbedAllLinks() = 0;
- /**
- */
virtual void SetLinksUpdated(const bool bNewLinksUpdated) = 0;
- /**
- */
virtual bool LinksUpdated() const = 0;
protected:
diff --git a/sw/inc/IDocumentRedlineAccess.hxx b/sw/inc/IDocumentRedlineAccess.hxx
index 97f53e8..d3a125c 100644
--- a/sw/inc/IDocumentRedlineAccess.hxx
+++ b/sw/inc/IDocumentRedlineAccess.hxx
@@ -60,31 +60,31 @@ namespace nsRedlineMode_t
const RedlineMode_t REDLINE_SHOW_DELETE = 0x20;// show all delets
const RedlineMode_t REDLINE_SHOW_MASK = REDLINE_SHOW_INSERT | REDLINE_SHOW_DELETE;
- // fuer die interne Verwaltung:
- // die originalen Redlines inclusive des Contents entfernen
- // (ClipBoard/Textbausteine)
+ // For internal management:
+ // remove the original Redlines together with their content
+ // (Clipboard/text modules).
const RedlineMode_t REDLINE_DELETE_REDLINES = 0x100;
- // beim Loeschen innerhalb ein RedlineObjectes, waehrend des Appends,
- // das DeleteRedline ignorieren
+ // When deleting within a RedlineObject
+ // ignore the DeleteRedline during Append.
const RedlineMode_t REDLINE_IGNOREDELETE_REDLINES = 0x200;
- // don't combine any readlines. This flags is may only used in the Undo.
+ // don't combine any readlines. This flag may be only used in Undo.
const RedlineMode_t REDLINE_DONTCOMBINE_REDLINES = 0x400;
}
typedef USHORT RedlineType_t;
namespace nsRedlineType_t
{
- // die RedlineTypen gehen von 0 bis 127
- const RedlineType_t REDLINE_INSERT = 0x0;// Inhalt wurde eingefuegt
- const RedlineType_t REDLINE_DELETE = 0x1;// Inhalt wurde geloescht
- const RedlineType_t REDLINE_FORMAT = 0x2;// Attributierung wurde angewendet
- const RedlineType_t REDLINE_TABLE = 0x3;// TabellenStruktur wurde veraendert
- const RedlineType_t REDLINE_FMTCOLL = 0x4;// FormatVorlage wurde veraendert (Autoformat!)
-
- // ab 128 koennen Flags hineinverodert werden
+ // Range of RedlineTypes is 0 to 127.
+ const RedlineType_t REDLINE_INSERT = 0x0;// Content has been inserted.
+ const RedlineType_t REDLINE_DELETE = 0x1;// Content has been deleted.
+ const RedlineType_t REDLINE_FORMAT = 0x2;// Attributes have been applied.
+ const RedlineType_t REDLINE_TABLE = 0x3;// Table structure has been altered.
+ const RedlineType_t REDLINE_FMTCOLL = 0x4;// Style has been altered (Autoformat!).
+
+ // When larger than 128, flags can be inserted.
const RedlineType_t REDLINE_NO_FLAG_MASK = 0x7F;
//const RedlineType_t REDLINE_FLAG_MASK = 0xFF80;
- const RedlineType_t REDLINE_FORM_AUTOFMT = 0x80;// kann als Flag im RedlineType stehen
+ const RedlineType_t REDLINE_FORM_AUTOFMT = 0x80;// Can be a flag in RedlineType.
}
/** IDocumentRedlineAccess
@@ -139,18 +139,11 @@ public:
*/
virtual bool IsRedlineOn() const = 0;
- /**
- */
virtual bool IsIgnoreRedline() const = 0;
- /**
- */
virtual const SwRedlineTbl& GetRedlineTbl() const = 0;
-
- /*
- */
- virtual bool IsInRedlines(const SwNode& rNode) const = 0;
+ virtual bool IsInRedlines(const SwNode& rNode) const = 0;
/***************************************************
Manipulation
@@ -166,90 +159,60 @@ public:
*/
virtual bool AppendRedline(/*[in]*/SwRedline* pPtr, /*[in]*/bool bCallDelete) = 0;
- /**
- */
virtual bool SplitRedline(/*[in]*/const SwPaM& rPam) = 0;
- /**
- */
virtual bool DeleteRedline(
/*[in]*/const SwPaM& rPam,
/*[in]*/bool bSaveInUndo,
/*[in]*/sal_uInt16 nDelType) = 0;
- /**
- */
virtual bool DeleteRedline(
/*[in]*/const SwStartNode& rSection,
/*[in]*/bool bSaveInUndo,
/*[in]*/sal_uInt16 nDelType) = 0;
- /**
- */
virtual sal_uInt16 GetRedlinePos(
/*[in]*/const SwNode& rNode,
/*[in]*/sal_uInt16 nType) const = 0;
virtual void CompressRedlines() = 0;
- /**
- */
virtual const SwRedline* GetRedline(
/*[in]*/const SwPosition& rPos,
/*[in]*/sal_uInt16* pFndPos) const = 0;
- /**
- */
virtual bool IsRedlineMove() const = 0;
- /**
- */
virtual void SetRedlineMove(/*[in]*/bool bFlag) = 0;
- /**
- */
virtual bool AcceptRedline(/*[in]*/sal_uInt16 nPos, /*[in]*/bool bCallDelete) = 0;
- /**
- */
virtual bool AcceptRedline(/*[in]*/const SwPaM& rPam, /*[in]*/bool bCallDelete) = 0;
- /**
- */
virtual bool RejectRedline(/*[in]*/sal_uInt16 nPos, /*[in]*/bool bCallDelete) = 0;
- /**
- */
virtual bool RejectRedline(/*[in]*/const SwPaM& rPam, /*[in]*/bool bCallDelete) = 0;
- /**
- */
virtual const SwRedline* SelNextRedline(/*[in]*/SwPaM& rPam) const = 0;
- /**
- */
virtual const SwRedline* SelPrevRedline(/*[in]*/SwPaM& rPam) const = 0;
- // alle Redline invalidieren, die Darstellung hat sich geaendert
+ // Representation has changed, invalidate all Redlines.
virtual void UpdateRedlineAttr() = 0;
- // legt gegebenenfalls einen neuen Author an
+ // Create a new Author if required.
virtual sal_uInt16 GetRedlineAuthor() = 0;
- // fuer die Reader usw. - neuen Author in die Tabelle eintragen
+ // For Readers etc.: register new Author in table.
virtual sal_uInt16 InsertRedlineAuthor(const String& rAuthor) = 0;
- // Kommentar am Redline an der Position setzen
+ // Place a comment at Redline at given position.
virtual bool SetRedlineComment(
/*[in]*/const SwPaM& rPam,
/*[in]*/const String& rComment) = 0;
- /**
- */
virtual const ::com::sun::star::uno::Sequence <sal_Int8>& GetRedlinePassword() const = 0;
- /**
- */
virtual void SetRedlinePassword(
/*[in]*/const ::com::sun::star::uno::Sequence <sal_Int8>& rNewPassword) = 0;
diff --git a/sw/inc/IDocumentState.hxx b/sw/inc/IDocumentState.hxx
index e4a7552..913a5a4 100644
--- a/sw/inc/IDocumentState.hxx
+++ b/sw/inc/IDocumentState.hxx
@@ -36,49 +36,33 @@
class IDocumentState
{
public:
- /** Bei Formataenderungen muss das zu Fuss gerufen werden!
+ /** Must be called manually at changes of format.
*/
virtual void SetModified() = 0;
- /**
- */
virtual void ResetModified() = 0;
- /** Dokumentaenderungen?
+ /** Changes of document?
*/
virtual bool IsModified() const = 0;
- /** Zustaende ueber Ladezustand
- frueher DocInfo
+ /** State of being loaded or not.
+ Formerly DocInfo.
*/
virtual bool IsLoaded() const = 0;
- /**
- */
virtual bool IsUpdateExpFld() const = 0;
- /**
- */
virtual bool IsNewDoc() const = 0;
- /**
- */
virtual bool IsPageNums() const = 0;
- /**
- */
virtual void SetPageNums(bool b) = 0;
- /**
- */
virtual void SetNewDoc(bool b) = 0;
- /**
- */
virtual void SetUpdateExpFldStat(bool b) = 0;
- /**
- */
virtual void SetLoaded(bool b = sal_True) = 0;
protected:
diff --git a/sw/inc/IDocumentStatistics.hxx b/sw/inc/IDocumentStatistics.hxx
index e31f148..2421aff 100644
--- a/sw/inc/IDocumentStatistics.hxx
+++ b/sw/inc/IDocumentStatistics.hxx
@@ -37,21 +37,17 @@
{
public:
- /** die DocInfo hat siche geaendert (Notify ueber die DocShell)
- stosse die entsp. Felder zum Updaten an.
+ /** DocInfo has changed (notify via DocShell):
+ make required fields update.
*/
virtual void DocInfoChgd() = 0;
- /** Dokument - Statistics
+ /** Document - Statistics
*/
virtual const SwDocStat &GetDocStat() const = 0;
- /**
- */
virtual void SetDocStat(const SwDocStat& rStat) = 0;
- /**
- */
virtual void UpdateDocStat(SwDocStat& rStat) = 0;
protected:
diff --git a/sw/inc/IDocumentStylePoolAccess.hxx b/sw/inc/IDocumentStylePoolAccess.hxx
index cdb9ef0..77ea7c9 100644
--- a/sw/inc/IDocumentStylePoolAccess.hxx
+++ b/sw/inc/IDocumentStylePoolAccess.hxx
@@ -47,34 +47,30 @@
{
public:
- /** Gebe die "Auto-Collection" mit der Id zurueck. Existiert
- sie noch nicht, dann erzuege sie
- Ist der String-Pointer definiert, dann erfrage nur die
- Beschreibung der Attribute, !! es legt keine Vorlage an !!
+ /** Return "Auto-Collection with ID.
+ Create, if it does not yet exist.
+ If string pointer is defined request only description
+ of attributes, do not create style sheet!
*/
virtual SwTxtFmtColl* GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage = true ) = 0;
- /** return das geforderte automatische Format - Basis-Klasse !
+ /** Return required automatic format base class.
*/
virtual SwFmt* GetFmtFromPool( sal_uInt16 nId ) = 0;
- /** returne das geforderte automatische Format
+ /** Return required automatic format.
*/
virtual SwFrmFmt* GetFrmFmtFromPool( sal_uInt16 nId ) = 0;
- /**
- */
virtual SwCharFmt* GetCharFmtFromPool( sal_uInt16 nId ) = 0;
- /** returne die geforderte automatische Seiten-Vorlage
+ /** Return required automatic page style.
*/
virtual SwPageDesc* GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage = true ) = 0;
- /**
- */
virtual SwNumRule* GetNumRuleFromPool( sal_uInt16 nId ) = 0;
- /** pruefe, ob diese "Auto-Collection" in Dokument schon/noch benutzt wird
+ /** Check whether this "auto-collection" is used in document.
*/
virtual bool IsPoolTxtCollUsed( sal_uInt16 nId ) const = 0;
virtual bool IsPoolFmtUsed( sal_uInt16 nId ) const = 0;
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index 81c31ed..c8be9f9 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -48,35 +48,27 @@ typedef sal_uInt16 SwUndoNoModifiedPosition;
class IDocumentUndoRedo
{
public:
- /**
- */
virtual void SetUndoNoResetModified() = 0;
- /**
- */
virtual bool IsUndoNoResetModified() const = 0;
- /** UndoHistory am Dokument pflegen
- bei Save, SaveAs, Create wird UndoHistory zurueckgesetzt ???
+ /** Care for UndoHistory of document.
+ UndoHistory is reset at Save, SaveAs, Create ???
*/
virtual void DoUndo(bool bUn) = 0;
- /**
- */
virtual bool DoesUndo() const = 0;
- /** Zusammenfassen von Kontinuierlichen Insert/Delete/Overwrite von
- Charaktern. Default ist ::com::sun::star::sdbcx::Group-Undo.
+ /** Concatenate continuous Insert/Delete/Overwrite of characters.
+ Default is ::com::sun::star::sdbcx::Group-Undo.
*/
virtual void DoGroupUndo(bool bUn) = 0;
- /**
- */
virtual bool DoesGroupUndo() const = 0;
- /** macht rueckgaengig:
- 0 letzte Aktion, sonst Aktionen bis zum Start der Klammerung nUndoId
- In rUndoRange wird der restaurierte Bereich gesetzt.
+ /* Undo:
+ 0 last action, else actions until start of parenthesis nUndoId.
+ Restored range is set in rUndoRange.
*/
virtual bool Undo( SwUndoIter& ) = 0;
@@ -110,28 +102,26 @@ public:
virtual SwUndoId EndUndo( SwUndoId eUndoId, const SwRewriter * pRewriter) = 0;
/**
- loescht die gesamten UndoObjecte ( fuer Methoden die am Nodes
- Array drehen ohne entsprechendes Undo !!)
+ Deletes all UndoObjects (for methods that do something with the Nodes Array
+ without corresponding Undo!)
*/
virtual void DelAllUndoObj() = 0;
- /** liefert die Id der letzten undofaehigen Aktion zurueck
- oder USHRT_MAX fuellt ggf. VARARR mit ::com::sun::star::sdbcx::User-UndoIds
+ /** Returns the ID of the last action that can be undone.
+ Alternatively USHRT_MAX is filling VARARR with ::com::sun::star::sdbcx::User-UndoIdDs
*/
virtual SwUndoId GetUndoIds(String* pStr, SwUndoIds *pUndoIds) const = 0;
- /**
- */
virtual String GetUndoIdsStr(String* pStr, SwUndoIds *pUndoIds) const = 0;
- /** gibt es Klammerung mit der Id?
+ /** Are there parentheses with this ID?
*/
virtual bool HasUndoId(SwUndoId eId) const = 0;
/* @@@MAINTAINABILITY-HORROR@@@
Implementation details made public.
- die drei folgenden Methoden werden beim Undo und nur dort
- benoetigt. Sollten sonst nicht aufgerufen werden.
+ The following three methods are required only for Undo.
+ They should not be called otherwise.
*/
virtual const SwNodes* GetUndoNds() const = 0;
@@ -143,38 +133,29 @@ public:
*/
virtual bool HasTooManyUndos() const = 0;
- /**
- */
virtual bool Redo( SwUndoIter& ) = 0;
- /** liefert die Id der letzten Redofaehigen Aktion zurueck
- fuellt ggf. VARARR mit RedoIds
+ /** Return the ID of the last undoable action.
+ Fills VARARR with RedoIds if required.
*/
virtual SwUndoId GetRedoIds( String* pStr, SwUndoIds *pRedoIds) const = 0;
- /**
- */
virtual String GetRedoIdsStr( String* pStr, SwUndoIds *pRedoIds) const = 0;
- /**
- */
virtual bool Repeat( SwUndoIter&, sal_uInt16 nRepeatCnt) = 0;
- /** liefert die Id der letzten Repeatfaehigen Aktion zurueck
- fuellt ggf. VARARR mit RedoIds
+ /** Return the ID of the last repeatable action.
+ Fills VARARR mit RedoIds if required.
*/
virtual SwUndoId GetRepeatIds( String* pStr, SwUndoIds *pRedoIds) const = 0;
- /**
- */
virtual String GetRepeatIdsStr( String* pStr, SwUndoIds *pRedoIds) const = 0;
- /** interne Verkuerzung fuer Insert am Ende
+ /** Internal shortcut for Insert at end.
*/
virtual void AppendUndo(SwUndo*) = 0;
- /** loescht alle UndoObjecte von nUndoPos
- bis zum Ende des Undo-Arrays
+ /** Delete all UndoObjects of nUndoPos until the end of the Undo-Array.
*/
virtual void ClearRedo() = 0;
--
1.7.1
--------------090507010001010509010205--
More information about the LibreOffice
mailing list