diff options
author | Christina Roßmanith <ChrRossmanith@web.de> | 2011-01-03 14:04:34 +0100 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-03 22:42:05 -0500 |
commit | 29f33ee76e5e6771b57a1e460d1dafbaabf92471 (patch) | |
tree | 46a07ee6aab7fc7ba09b567d62a74c72d83bf22b | |
parent | cf92f247fdf953b41e868ded0dd3f0456b82dfe8 (diff) |
Translated comments from German to English.
-rw-r--r-- | chart2/source/controller/dialogs/tp_TitleRotation.cxx | 2 | ||||
-rw-r--r-- | sc/inc/arealink.hxx | 3 | ||||
-rw-r--r-- | sc/inc/attrib.hxx | 20 | ||||
-rw-r--r-- | sc/inc/bigrange.hxx | 2 | ||||
-rw-r--r-- | sc/inc/callform.hxx | 4 | ||||
-rw-r--r-- | sc/inc/cell.hxx | 17 | ||||
-rw-r--r-- | sc/inc/cellsuno.hxx | 32 | ||||
-rw-r--r-- | sc/inc/chartpos.hxx | 18 | ||||
-rw-r--r-- | sc/inc/chgtrack.hxx | 150 |
9 files changed, 117 insertions, 131 deletions
diff --git a/chart2/source/controller/dialogs/tp_TitleRotation.cxx b/chart2/source/controller/dialogs/tp_TitleRotation.cxx index 89e6545aa79a..ecbeb6f6d7b0 100644 --- a/chart2/source/controller/dialogs/tp_TitleRotation.cxx +++ b/chart2/source/controller/dialogs/tp_TitleRotation.cxx @@ -91,7 +91,7 @@ SfxTabPage* SchAlignmentTabPage::CreateWithoutRotation(Window* pParent, BOOL SchAlignmentTabPage::FillItemSet(SfxItemSet& rOutAttrs) { - //Seit 4/1998 koennen Texte frei gedreht werden: SCHATTR_TEXT_DEGREES + //Since 04/1998 text can be rotated by an arbitrary angle: SCHATTR_TEXT_DEGREES bool bStacked = aOrientHlp.GetStackedState() == STATE_CHECK; rOutAttrs.Put( SfxBoolItem( SCHATTR_TEXT_STACKED, bStacked ) ); diff --git a/sc/inc/arealink.hxx b/sc/inc/arealink.hxx index 832bc61cb332..63baf59e3a76 100644 --- a/sc/inc/arealink.hxx +++ b/sc/inc/arealink.hxx @@ -51,8 +51,7 @@ private: ScRange aDestArea; BOOL bAddUndo; BOOL bInCreate; - BOOL bDoInsert; // wird fuer das erste Update auf FALSE gesetzt - + BOOL bDoInsert; // is set to FALSE for first update BOOL FindExtRange( ScRange& rRange, ScDocument* pSrcDoc, const String& rAreaName ); public: diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index 784638e64956..0aeac4cb42f9 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -38,8 +38,8 @@ //------------------------------------------------------------------------ - // Flags fuer durch Merge verdeckte Zellen - // und Control fuer Auto-Filter + // flags for cells hidden by merge + // and control for auto filter #define SC_MF_HOR 0x0001 #define SC_MF_VER 0x0002 #define SC_MF_AUTO 0x0004 /// autofilter arrow @@ -161,7 +161,7 @@ public: //---------------------------------------------------------------------------- -// ScRangeItem: verwaltet einen Tabellenbereich +// ScRangeItem: manages an area of a table #define SCR_INVALID 0x01 #define SCR_ALLTABS 0x02 @@ -180,7 +180,7 @@ public: inline ScRangeItem& operator=( const ScRangeItem &rCpy ); - // "pure virtual Methoden" vom SfxPoolItem + // "pure virtual methods" from SfxPoolItem virtual int operator==( const SfxPoolItem& ) const; virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, @@ -201,7 +201,7 @@ private: }; inline ScRangeItem::ScRangeItem( const USHORT nWhichP ) - : SfxPoolItem( nWhichP ), nFlags( SCR_INVALID ) // == ungueltige Area + : SfxPoolItem( nWhichP ), nFlags( SCR_INVALID ) // == invalid area { } @@ -223,7 +223,7 @@ inline ScRangeItem& ScRangeItem::operator=( const ScRangeItem &rCpy ) } //---------------------------------------------------------------------------- -// ScTableListItem: verwaltet eine Liste von Tabellen +// ScTableListItem: manages a list of tables //---------------------------------------------------------------------------- class ScTableListItem : public SfxPoolItem { @@ -236,7 +236,7 @@ public: ScTableListItem& operator=( const ScTableListItem &rCpy ); - // "pure virtual Methoden" vom SfxPoolItem + // "pure virtual Methoden" from SfxPoolItem virtual int operator==( const SfxPoolItem& ) const; virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, @@ -255,7 +255,7 @@ inline ScTableListItem::ScTableListItem( const USHORT nWhichP ) {} //---------------------------------------------------------------------------- -// Seitenformat-Item: Kopf-/Fusszeileninhalte +// page format item: contents of header and footer #define SC_HF_LEFTAREA 1 #define SC_HF_CENTERAREA 2 @@ -290,13 +290,13 @@ public: void SetCenterArea( const EditTextObject& rNew ); void SetRightArea( const EditTextObject& rNew ); - //Set mit Uebereignung der Pointer, nArea siehe defines oben + // Set method with pointer assignment, nArea see defines above void SetArea( EditTextObject *pNew, int nArea ); }; //---------------------------------------------------------------------------- -// Seitenformat-Item: Kopf-/Fusszeileninhalte +// page format item: contents of header and footer class SC_DLLPUBLIC ScViewObjectModeItem: public SfxEnumItem { diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx index ac92d30a27cf..577e9b4ec28f 100644 --- a/sc/inc/bigrange.hxx +++ b/sc/inc/bigrange.hxx @@ -112,7 +112,7 @@ inline void ScBigAddress::PutInOrder( ScBigAddress& r ) inline BOOL ScBigAddress::IsValid( const ScDocument* pDoc ) const -{ //! Min/Max sind ok, kennzeichnen ganze Col/Row/Tab +{ // min/max interval bounds define whole col/row/tab return ((0 <= nCol && nCol <= MAXCOL) || nCol == nInt32Min || nCol == nInt32Max) && diff --git a/sc/inc/callform.hxx b/sc/inc/callform.hxx index dd6f13057d76..aa79c0df6c99 100644 --- a/sc/inc/callform.hxx +++ b/sc/inc/callform.hxx @@ -98,8 +98,8 @@ public: BOOL Call(void** ppParam); BOOL Unadvice(double nHandle); - // Name und Beschreibung des Parameters nParam. - // nParam==0 => Desc := Funktions-Beschreibung, + // name and description of parameter nParam. + // nParam==0 => Desc := function description, // Name := n/a BOOL GetParamDesc( String& aName, String& aDesc, USHORT nParam ); }; diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx index 3aade8f2478d..297d9015d6d3 100644 --- a/sc/inc/cell.hxx +++ b/sc/inc/cell.hxx @@ -252,8 +252,8 @@ class SC_DLLPUBLIC ScEditCell : public ScBaseCell { private: EditTextObject* pData; - String* pString; // fuer schnelleren Zugriff von Formeln - ScDocument* pDoc; // fuer EditEngine Zugriff mit Pool + String* pString; // for faster access to formulas + ScDocument* pDoc; // for EditEngine access with Pool void SetTextObject( const EditTextObject* pObject, const SfxItemPool* pFromPool ); @@ -267,12 +267,12 @@ public: DECL_FIXEDMEMPOOL_NEWDEL( ScEditCell ) #endif - ~ScEditCell(); // wegen pData immer! + ~ScEditCell(); // always because of pData! ScEditCell( const EditTextObject* pObject, ScDocument*, const SfxItemPool* pFromPool /* = NULL */ ); ScEditCell( const ScEditCell& rCell, ScDocument& rDoc ); - // fuer Zeilenumbrueche + // for line breaks ScEditCell( const String& rString, ScDocument* ); void SetData( const EditTextObject* pObject, @@ -506,13 +506,12 @@ public: void SetMatColsRows( SCCOL nCols, SCROW nRows ); void GetMatColsRows( SCCOL& nCols, SCROW& nRows ) const; - // ob Zelle im ChangeTrack und nicht im echten Dokument ist + // cell belongs to ChangeTrack and not to the real document void SetInChangeTrack( BOOL bVal ) { bInChangeTrack = bVal; } BOOL IsInChangeTrack() const { return bInChangeTrack; } - // Zu Typ und Format das entsprechende Standardformat. - // Bei Format "Standard" evtl. das in die Formelzelle - // uebernommene Format. + // standard format for type and format + // for format "Standard" possibly the format used in the formula cell ULONG GetStandardFormat( SvNumberFormatter& rFormatter, ULONG nFormat ) const; // For import filters! @@ -543,7 +542,7 @@ public: void MaybeInterpret(); }; -// Iterator fuer Referenzen in einer Formelzelle +// Iterator for references in a formula cell class ScDetectiveRefIter { private: diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 11e189009189..9459da28909c 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -131,10 +131,10 @@ typedef ScNamedEntry* ScNamedEntryPtr; SV_DECL_PTRARR_DEL( ScNamedEntryArr_Impl, ScNamedEntryPtr, 4, 4 ) -// ScCellRangesBase - Basisklasse fuer ScCellRangesObj (mit Index-Access) -// und ScCellRangeObj (ohne Index-Access) +// ScCellRangesBase - base class for ScCellRangesObj (with access by index) +// and ScCellRangeObj (without access by index) -// XServiceInfo ist in den Ableitungen implementiert +// XServiceInfo is implemented in derived classes class ScHelperFunctions { @@ -174,9 +174,9 @@ class SC_DLLPUBLIC ScCellRangesBase : public com::sun::star::beans::XPropertySet public cppu::OWeakObject, public SfxListener { - friend class ScTabViewObj; // fuer select() - friend class ScTableSheetObj; // fuer createCursorByRange() - friend class ooo::vba::excel::ScVbaCellRangeAccess; + friend class ScTabViewObj; // for select() + friend class ScTableSheetObj; // for createCursorByRange() + friend class ooo::vba::excel::ScVbaCellRangeAccess; private: const SfxItemPropertySet* pPropSet; @@ -245,16 +245,16 @@ public: virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual void RefChanged(); - // aus Ableitungen, aber auch per getImplementation + // from derived classes and by getImplementation ScDocShell* GetDocShell() const { return pDocShell; } ScDocument* GetDocument() const; const ScRangeList& GetRangeList() const { return aRanges; } void AddRange(const ScRange& rRange, const sal_Bool bMergeRanges); - // per Service erzeugtes Objekt zum Leben erwecken: + // arouse object created via service: void InitInsertRange(ScDocShell* pDocSh, const ScRange& rR); - void SetNewRange(const ScRange& rNew); // fuer Cursor + void SetNewRange(const ScRange& rNew); // for cursor void SetNewRanges(const ScRangeList& rNew); void SetCursorOnly(BOOL bSet); @@ -656,7 +656,7 @@ public: const formula::FormulaGrammar::Grammar ) throw(::com::sun::star::uno::RuntimeException); - // XCellRange ist Basisklasse von XSheetCellRange und XSheetOperation + // XCellRange is base class of XSheetCellRange and XSheetOperation // operator XCellRangeRef() const { return (XSheetCellRange*)this; } // XCellRangeAddressable @@ -792,7 +792,7 @@ public: getCellRangeByName( const ::rtl::OUString& aRange, const ScAddress::Details& rDetails ) throw(::com::sun::star::uno::RuntimeException); - // XPropertySet ueberladen wegen Range-Properties + // XPropertySet overloaded due to Range-Properties virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); @@ -955,7 +955,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getTextFieldMasters() throw(::com::sun::star::uno::RuntimeException); - // XPropertySet ueberladen wegen Zell-Properties + // XPropertySet overloaded due to cell properties virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); @@ -1006,7 +1006,7 @@ class ScTableSheetObj : public ScCellRangeObj, public com::sun::star::sheet::XExternalSheetName, public com::sun::star::document::XEventsSupplier { - friend class ScTableSheetsObj; // fuer insertByName() + friend class ScTableSheetsObj; // for insertByName() private: const SfxItemPropertySet* pSheetPropSet; @@ -1213,7 +1213,7 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > SAL_CALL getEvents() throw (::com::sun::star::uno::RuntimeException); - // XPropertySet ueberladen wegen Sheet-Properties + // XPropertySet overloaded due to sheet properties virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); @@ -1274,7 +1274,7 @@ public: virtual void SAL_CALL setName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException); - // XPropertySet ueberladen wegen Spalten-Properties + // XPropertySet overloaded due to column properties virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); @@ -1314,7 +1314,7 @@ public: ScTableRowObj(ScDocShell* pDocSh, SCROW nRow, SCTAB nTab); virtual ~ScTableRowObj(); - // XPropertySet ueberladen wegen Zeilen-Properties + // XPropertySet overloaded due to row properties virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx index 9542ef104e50..f44e0a4d2bf3 100644 --- a/sc/inc/chartpos.hxx +++ b/sc/inc/chartpos.hxx @@ -50,9 +50,9 @@ class ScChartPositionMap SCROW nRowCount; ScChartPositionMap( SCCOL nChartCols, SCROW nChartRows, - SCCOL nColAdd, // Header-Spalten - SCROW nRowAdd, // Header-Zeilen - Table& rCols // Table mit Col-Tables mit Address* + SCCOL nColAdd, // header columns + SCROW nRowAdd, // header rows + Table& rCols // table with col tables with address* ); ~ScChartPositionMap(); //! deletes all ScAddress* @@ -68,7 +68,7 @@ public: BOOL IsValid( SCCOL nCol, SCROW nRow ) const { return nCol < nColCount && nRow < nRowCount; } - // Daten spaltenweise + // data column by column ULONG GetIndex( SCCOL nCol, SCROW nRow ) const { return (ULONG) nCol * nRowCount + nRow; } @@ -79,7 +79,7 @@ public: return NULL; } - //! kann NULL sein und damit "kein Wert" + //! might be NULL indicating "no value" const ScAddress* GetPosition( SCCOL nChartCol, SCROW nChartRow ) const { if ( IsValid( nChartCol, nChartRow ) ) @@ -103,15 +103,15 @@ public: enum ScChartGlue { SC_CHARTGLUE_NA, - SC_CHARTGLUE_NONE, // alte Mimik - SC_CHARTGLUE_COLS, // alte Mimik + SC_CHARTGLUE_NONE, // old mimic + SC_CHARTGLUE_COLS, // old mimic SC_CHARTGLUE_ROWS, SC_CHARTGLUE_BOTH }; class ScDocument; -class ScChartPositioner // nur noch Parameter-Struct +class ScChartPositioner // only parameter struct { ScRangeListRef aRangeListRef; ScDocument* pDocument; @@ -126,7 +126,7 @@ class ScChartPositioner // nur noch Parameter-Struct private: void CheckColRowHeaders(); - void GlueState(); // zusammengefasste Bereiche + void GlueState(); // summarised areas void CreatePositionMap(); public: diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx index 4d8a91ae8c11..7c371c166342 100644 --- a/sc/inc/chgtrack.hxx +++ b/sc/inc/chgtrack.hxx @@ -90,9 +90,9 @@ class SvStream; // --- ScChangeActionLinkEntry --------------------------------------------- -// Fuegt sich selbst am Beginn einer Kette ein, bzw. vor einem anderen -// LinkEntry, on delete selbstaendiges ausklinken auch des gelinkten. -// ppPrev == &previous->pNext oder Adresse des Pointers auf Beginn der Kette, +// Inserts itself as the head of a chain (better: linked list?), or before a LinkEntry +// on delete: automatically remove of what is linked (German original was strange...) +// ppPrev == &previous->pNext oder address of pointer to head of linked list, // *ppPrev == this class ScChangeAction; @@ -239,18 +239,15 @@ protected: ScBigRange aBigRange; // Ins/Del/MoveTo/ContentPos DateTime aDateTime; //! UTC - String aUser; // wer war's - String aComment; // Benutzerkommentar - ScChangeAction* pNext; // naechster in Kette - ScChangeAction* pPrev; // vorheriger in Kette - ScChangeActionLinkEntry* pLinkAny; // irgendwelche Links - ScChangeActionLinkEntry* pLinkDeletedIn; // Zuordnung zu - // geloeschten oder - // druebergemoveten oder - // rejecteten Insert - // Bereichen - ScChangeActionLinkEntry* pLinkDeleted; // Links zu geloeschten - ScChangeActionLinkEntry* pLinkDependent; // Links zu abhaengigen + String aUser; // who? + String aComment; // user comment + ScChangeAction* pNext; // next in linked list + ScChangeAction* pPrev; // previous in linked list + ScChangeActionLinkEntry* pLinkAny; // arbitrary links + ScChangeActionLinkEntry* pLinkDeletedIn; // access to insert areas which were + // deleted or moved or rejected + ScChangeActionLinkEntry* pLinkDeleted; // links to deleted + ScChangeActionLinkEntry* pLinkDependent; // links to dependent ULONG nAction; ULONG nRejectAction; ScChangeActionType eType; @@ -371,27 +368,25 @@ public: BOOL IsRejecting() const { return nRejectAction != 0; } - // ob Action im Dokument sichtbar ist + // if action is visible in the document BOOL IsVisible() const; - // ob Action anfassbar ist + // if action if touchable BOOL IsTouchable() const; - // ob Action ein Eintrag in Dialog-Root ist + // if action is an entry in dialog root BOOL IsDialogRoot() const; - // ob ein Eintrag im Dialog aufklappbar sein soll + // if an entry in a dialog shall be a drop down entry BOOL IsDialogParent() const; - // ob Action ein Delete ist, unter dem - // aufgeklappt mehrere einzelne Deletes sind + // if action is a delete with subdeletes (aufgeklappt = open ?) BOOL IsMasterDelete() const; - // ob Action akzeptiert/selektiert/abgelehnt - // werden kann + // if action is acceptable/selectable/rejectable BOOL IsClickable() const; - // ob Action abgelehnt werden kann + // if action is rejectable BOOL IsRejectable() const; const ScBigRange& GetBigRange() const { return aBigRange; } @@ -425,22 +420,21 @@ public: BOOL HasDeleted() const { return pLinkDeleted != NULL; } - // Description wird an String angehaengt. - // Mit bSplitRange wird bei Delete nur - // eine Spalte/Zeile beruecksichtigt (fuer - // Auflistung der einzelnen Eintraege). + // description will be appended to string + // with bSplitRange only one column/row will be considered for delete + // (for a listing of entries) virtual void GetDescription( String&, ScDocument*, BOOL bSplitRange = FALSE, bool bWarning = true ) const; virtual void GetRefString( String&, ScDocument*, BOOL bFlag3D = FALSE ) const; - // fuer DocumentMerge altes Datum einer anderen - // Action setzen, mit GetDateTimeUTC geholt + // for DocumentMerge set old date of the other + // action, fetched by GetDateTimeUTC void SetDateTimeUTC( const DateTime& rDT ) { aDateTime = rDT; } - // Benutzerkommentar setzen + // set user comment void SetComment( const String& rStr ) { aComment = rStr; } @@ -546,8 +540,8 @@ class ScChangeActionDel : public ScChangeAction ScChangeTrack* pTrack; ScChangeActionCellListEntry* pFirstCell; - ScChangeActionIns* pCutOff; // abgeschnittener Insert - short nCutOff; // +: Start -: End + ScChangeActionIns* pCutOff; // cut insert + short nCutOff; // +: start -: end ScChangeActionDelMoveEntry* pLinkMove; SCsCOL nDx; SCsROW nDy; @@ -583,20 +577,18 @@ public: const ScChangeActionType eType, const SCsCOLROW nD, ScChangeTrack* pTrack); // only to use in the XML import - // wich of nDx and nDy is set is depend on the type + // which of nDx and nDy is set is dependend on the type - // ob dieses das unterste einer Reihe (oder - // auch einzeln) ist + // is the last in a row (or single) BOOL IsBaseDelete() const; - // ob dieses das oberste einer Reihe (oder - // auch einzeln) ist + // is the first in a row (or single) BOOL IsTopDelete() const; - // ob dieses ein Teil einer Reihe ist + // is part of a row BOOL IsMultiDelete() const; - // ob es eine Col ist, die zu einem TabDelete gehoert + // is col, belonging to a TabDelete BOOL IsTabDeleteCol() const; SCsCOL GetDx() const { return nDx; } @@ -716,9 +708,9 @@ class ScChangeActionContent : public ScChangeAction String aNewValue; ScBaseCell* pOldCell; ScBaseCell* pNewCell; - ScChangeActionContent* pNextContent; // an gleicher Position + ScChangeActionContent* pNextContent; // at the same position ScChangeActionContent* pPrevContent; - ScChangeActionContent* pNextInSlot; // in gleichem Slot + ScChangeActionContent* pNextInSlot; // in the same slot ScChangeActionContent** ppPrevInSlot; void InsertInSlot( ScChangeActionContent** pp ) @@ -874,8 +866,8 @@ public: void SetPrevContent( ScChangeActionContent* p ) { pPrevContent = p; } - // moeglichst nicht verwenden, - // setzt nur String bzw. generiert Formelzelle + // don't use: + // assigns String / creates forumula cell void SetOldValue( const String& rOld, ScDocument* ); void SetNewValue( const String& rNew, ScDocument* ); @@ -955,10 +947,10 @@ public: enum ScChangeTrackMsgType { SC_CTM_NONE, - SC_CTM_APPEND, // Actions angehaengt - SC_CTM_REMOVE, // Actions weggenommen - SC_CTM_CHANGE, // Actions geaendert - SC_CTM_PARENT // war kein Parent und ist jetzt einer + SC_CTM_APPEND, // Actions appended + SC_CTM_REMOVE, // Actions removed + SC_CTM_CHANGE, // Actions changed + SC_CTM_PARENT // became a parent (and wasn't before) }; struct ScChangeTrackMsgInfo @@ -970,7 +962,7 @@ struct ScChangeTrackMsgInfo ULONG nEndAction; }; -// MsgQueue fuer Benachrichtigung via ModifiedLink +// MsgQueue for notification via ModifiedLink DECLARE_QUEUE( ScChangeTrackMsgQueue, ScChangeTrackMsgInfo* ) DECLARE_STACK( ScChangeTrackMsgStack, ScChangeTrackMsgInfo* ) @@ -983,13 +975,11 @@ enum ScChangeTrackMergeState SC_CTMS_OTHER }; -// zusaetzlich zu pFirst/pNext/pLast/pPrev eine Table, um schnell sowohl -// per ActionNumber als auch ueber Liste zugreifen zu koennen +// Table, additionally to pFirst/pNext/pLast/pPrev, to enable fast access by ActionNumber and by list DECLARE_TABLE( ScChangeActionTable, ScChangeAction* ) -// Intern generierte Actions beginnen bei diesem Wert (fast alle Bits gesetzt) -// und werden runtergezaehlt, um sich in einer Table wertemaessig nicht mit den -// "normalen" Actions in die Quere zu kommen. +// Internally generated actions start at this value (nearly all bits set) +// and are decremented, to keep values in a table seperated from "normal" actions. #define SC_CHGTRACK_GENERATED_START ((UINT32) 0xfffffff0) class ScChangeTrack : public utl::ConfigurationListener @@ -1076,7 +1066,7 @@ class ScChangeTrack : public utl::ConfigurationListener void SetLastCutMoveRange( const ScRange&, ScDocument* ); - // ModifyMsg blockweise und nicht einzeln erzeugen + // create block of ModifyMsg void StartBlockModify( ScChangeTrackMsgType, ULONG nStartAction ); void EndBlockModify( ULONG nEndAction ); @@ -1114,11 +1104,11 @@ class ScChangeTrack : public utl::ConfigurationListener ScChangeActionCellListEntry*&, ScChangeAction* pDeletor ); - // Action und alle abhaengigen rejecten, - // Table stammt aus vorherigem GetDependents, - // ist nur bei Insert und Move (MasterType) - // noetig, kann ansonsten NULL sein. - // bRecursion == Aufruf aus Reject mit Table + // Reject action and all dependent actions, + // Table stems from previous GetDependents, + // only needed for Insert and Move (MasterType), + // is NULL otherwise. + // bRecursion == called from reject with table BOOL Reject( ScChangeAction*, ScChangeActionTable*, BOOL bRecursion ); @@ -1201,32 +1191,32 @@ public: ScDocument* pRefDoc, ULONG& nStartAction, ULONG& nEndAction, SCsTAB nDz = 0 ); - // nDz: Multi-TabDel, LookUpContent ist - // um -nDz verschoben zu suchen + // nDz: multi TabDel, LookUpContent must be searched + // with an offset of -nDz - // nachdem neuer Wert im Dokument gesetzt wurde, - // alter Wert aus RefDoc/UndoDoc + // after new value was set in the document, + // old value from RefDoc/UndoDoc void AppendContent( const ScAddress& rPos, ScDocument* pRefDoc ); - // nachdem neue Werte im Dokument gesetzt wurden, - // alte Werte aus RefDoc/UndoDoc + // after new values were set in the document, + // old values from RefDoc/UndoDoc void AppendContentRange( const ScRange& rRange, ScDocument* pRefDoc, ULONG& nStartAction, ULONG& nEndAction, ScChangeActionClipMode eMode = SC_CACM_NONE ); - // nachdem neuer Wert im Dokument gesetzt wurde, - // alter Wert aus pOldCell, nOldFormat, + // after new value was set in the document, + // old value from pOldCell, nOldFormat, // RefDoc==NULL => Doc void AppendContent( const ScAddress& rPos, const ScBaseCell* pOldCell, ULONG nOldFormat, ScDocument* pRefDoc = NULL ); - // nachdem neuer Wert im Dokument gesetzt wurde, - // alter Wert aus pOldCell, Format aus Doc + // after new value was set in the document, + // old value from pOldCell, format from Doc void AppendContent( const ScAddress& rPos, const ScBaseCell* pOldCell ); - // nachdem neue Werte im Dokument gesetzt wurden, - // alte Werte aus RefDoc/UndoDoc. - // Alle Contents, wo im RefDoc eine Zelle steht. + // after new values were set in the document, + // old values from RefDoc/UndoDoc. + // All contents with a cell in RefDoc void AppendContentsIfInRefDoc( ScDocument* pRefDoc, ULONG& nStartAction, ULONG& nEndAction ); @@ -1244,9 +1234,8 @@ public: ULONG nOldFormat = 0, ULONG nNewFormat = 0 ); - // die folgenden beiden nur benutzen wenn's - // nicht anders geht (setzen nur String fuer - // NewValue bzw. Formelerzeugung) + // Only use the following two if there is no different solution! + // (Assign String for NewValue or creation of a formula respectively) SC_DLLPUBLIC void AppendInsert( const ScRange& ); @@ -1275,15 +1264,14 @@ public: SC_DLLPUBLIC void Undo( ULONG nStartAction, ULONG nEndAction, bool bMerge = false ); - // fuer MergeDocument, Referenzen anpassen, - //! darf nur in einem temporaer geoeffneten - //! Dokument verwendet werden, der Track - //! ist danach verhunzt + // for MergeDocument, adjust references, + //! may only be used in a temporary opened document + //! der Track ist danach verhunzt void MergePrepare( ScChangeAction* pFirstMerge, bool bShared = false ); void MergeOwn( ScChangeAction* pAct, ULONG nFirstMerge, bool bShared = false ); static BOOL MergeIgnore( const ScChangeAction&, ULONG nFirstMerge ); - // Abhaengige in Table einfuegen. + // Insert dependents into table. // Bei Insert sind es echte Abhaengige, // bei Move abhaengige Contents im FromRange // und geloeschte im ToRange bzw. Inserts in |