Bugzilla – Attachment 42397 Details for
Bug 33424
[PATCH] Translation of German comments in sfx2/
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
part 2
sfx2-german-comments-part2.diff (text/plain), 518.34 KB, created by
Albert Thuswaldner
on 2011-01-24 12:34:23 UTC
(
hide
)
Description:
part 2
Filename:
MIME Type:
Creator:
Albert Thuswaldner
Created:
2011-01-24 12:34:23 UTC
Size:
518.34 KB
patch
obsolete
>diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx >index 0e56783..2a84a9c 100644 >--- a/sfx2/source/control/shell.cxx >+++ b/sfx2/source/control/shell.cxx >@@ -76,12 +76,12 @@ using namespace com::sun::star; > //========================================================================= > struct SfxShell_Impl: public SfxBroadcaster > { >- String aObjectName;// Name des Sbx-Objects >- SfxItemArray_Impl aItems; // Datenaustausch auf Item-Basis >- SfxViewShell* pViewSh; // SfxViewShell falls Shell ViewFrame/ViewShell/SubShell ist >- SfxViewFrame* pFrame; // Frame, falls <UI-aktiv> >- SfxRepeatTarget* pRepeatTarget; >-// SbxObjectRef xParent; >+ String aObjectName; // Name of Sbx-Objects >+ SfxItemArray_Impl aItems; // Data exchange on Item level >+ SfxViewShell* pViewSh; // SfxViewShell if Shell is >+ // ViewFrame/ViewShell/SubShell >+ SfxViewFrame* pFrame; // Frame, if <UI-activ> >+ SfxRepeatTarget* pRepeatTarget; // SbxObjectRef xParent; > BOOL bInAppBASIC; > BOOL bActive; > ULONG nDisableFlags; >@@ -99,10 +99,10 @@ struct SfxShell_Impl: public SfxBroadcaster > > String SfxShellIdent_Impl( const SfxShell *pSh ) > >-/* [Beschreibung] >+/* [Description] > >- Interne Hilfesfunktion. Liefert einen die SfxShell 'pSh' beschreibenden >- String zur"uck. Z.B.: SfxApplication[StarWriter] >+ Internal helper function. Returns a SfxShell 'pSh' descriptive string. >+ For instance: SfxApplication [StarWriter] > */ > > { >@@ -133,11 +133,11 @@ void SfxShell::EmptyStateStub(SfxShell *, SfxItemSet &) > > SfxShell::SfxShell() > >-/* [Beschreibung] >+/* [Description] > >- Der Konstruktor der Klasse SfxShell initialisierung nur einfache >- Typen, das dazugeh"orige SbxObject wird erst on-demand erzeugt. >- Daher ist das Anlegen einer SfxShell Instanz sehr billig. >+ The constructor of the SfxShell class initializes only simple types, >+ the corresponding SbxObject is only created on-demand. Therefore, >+ the application of a SfxShell instance is very cheap. > */ > > : pImp(0), >@@ -159,11 +159,11 @@ SfxShell::SfxShell() > > SfxShell::SfxShell( SfxViewShell *pViewSh ) > >-/* [Beschreibung] >+/* [Description] > >- Der Konstruktor der Klasse SfxShell initialisierung nur einfache >- Typen, das dazugeh"orige SbxObject wird erst on-demand erzeugt. >- Daher ist das Anlegen einer SfxShell Instanz sehr billig. >+ The constructor of the SfxShell class initializes only simple types, >+ the corresponding SbxObject is only created on-demand. Therefore, >+ the application of a SfxShell instance is very cheap. > */ > > : pImp(0), >@@ -184,11 +184,11 @@ SfxShell::SfxShell( SfxViewShell *pViewSh ) > > SfxShell::~SfxShell() > >-/* [Beschreibung] >+/* [Description] > >- Die Verbindungs zu einem ggf. zugeh"origen SbxObject wird gel"ost. >- Das SbxObject existiert ggf. weiter, kann aber keine Funktionen >- mehr ausf"uhren und keine Properties mehr bereitstellen. >+ The connection to a possible corresponding SbxObject is dissolved. >+ The SbxObject may continoue to exist, but can not any longer perform >+ any functions and can not provide any properties. > */ > > { >@@ -200,10 +200,10 @@ SfxShell::~SfxShell() > > void SfxShell::SetName( const String &rName ) > >-/* [Beschreibung] >+/* [Description] > >- Setzt den Namen des Shell-Objekts. Mit diesem Namen kann die >- SfxShell-Instanz vom BASIC aus angesprochen werden. >+ Sets the name of the Shell object. With this name, the SfxShell instance >+ of BASIC can be expressed. > */ > > { >@@ -214,10 +214,10 @@ void SfxShell::SetName( const String &rName ) > > const String& SfxShell::GetName() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert den Namen des Shell-Objekts. Mit diesem Namen kann die >- SfxShell-Instanz vom BASIC aus angesprochen werden. >+ Returns the name of the Shell object. With this name, the SfxShell instance >+ of BASIC can be expressed. > */ > > { >@@ -228,11 +228,11 @@ const String& SfxShell::GetName() const > > SvGlobalName SfxShell::GetGlobalName() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert den Global Unique Identifier des Shell-Objekts. Mit diesem >- Namen kann die SfxShell-Instanz z.B. via OLE Automation angesprochen >- werden, bzw. in der Registration-Database gefunden werden. >+ Provides the Global Unique Identifier of the Shell object. With this name >+ can the SfxShell instance for example be expressed via OLE Automation, or >+ be found in the Registration Database. > */ > > { >@@ -243,14 +243,13 @@ SvGlobalName SfxShell::GetGlobalName() const > > SfxDispatcher* SfxShell::GetDispatcher() const > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode liefert einen Pointer auf den <SfxDispatcher>, in >- dem die SfxShell gerade <UI-aktiv> ist bzw. einen 0-Pointer, wenn >- sie gerade nicht UI-aktiv ist. >+ This method returns a pointer to the <SfxDispatcher>, when the SfxShell >+ is currently <UI-active> or a NULL-pointer if it is not UI-active. > >- Der zur"uckgegebene Pointer ist nur im unmittelbaren Kontext des >- Methodenaufrufs g"ultig. >+ The returned pointer is only valid in the immediate context of the method >+ call. > */ > > { >@@ -261,10 +260,11 @@ SfxDispatcher* SfxShell::GetDispatcher() const > > SfxViewShell* SfxShell::GetViewShell() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert bei SubShells die SfxViewShell, in der sie liegen. Sonst und >- falls nicht vom App-Entwickler angegeben liefert diese Methode 0. >+ Returns the SfxViewShell in which they are located in the subshells. >+ Otherwise, and if not specified by the App developer, this method >+ returns NULL. > */ > > { >@@ -275,25 +275,23 @@ SfxViewShell* SfxShell::GetViewShell() const > > SfxViewFrame* SfxShell::GetFrame() const > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode liefert einen Pointer auf den <SfxViewFrame>, dem diese >- SfxShell-Instanz zugeordnet ist oder in dem sie zur Zeit <UI-aktiv> ist. >- Ein 0-Pointer wird geliefert, wenn diese SfxShell-OInstanz gerade nicht >- UI-aktiv ist und auch keinem SfxViewFrame fest zugeordnet ist. >+ This method returns a pointer to the <SfxViewFrame> to which this SfxShell >+ instance is associated or in which they currently is <UI-active>. >+ A NULL pointer is returned if this SfxShell instance is not UI-active at >+ the moment and also no SfxViewFrame is permanently assigned. > >- Der zur"uckgegebene Pointer ist nur im unmittelbaren Kontext des >- Methodenaufrufs g"ultig. >+ The returned pointer is only valid in the immediate context of the method >+ call. > >+ [Note] > >- [Anmerkung] >+ Only instances of a subclass of SfxApplication and SfxObjectShell >+ should here provide a NULL-pointer. Otherwise, there is an error in the >+ application program (wrong constructor was called from SfxShell). > >- Nur Instanzen von Subklasse von SfxApplication und SfxObjectShell sollten >- hier einen 0-Pointer liefern. Ansonsten liegt ein Fehler im Anwendungs- >- programm vor (falscher Ctor von SfxShell gerufen). >- >- >- [Querverweise] >+ [Cross-reference] > > <SfxViewShell::GetViewFrame()const> > */ >@@ -310,21 +308,19 @@ SfxViewFrame* SfxShell::GetFrame() const > > const SfxPoolItem* SfxShell::GetItem > ( >- USHORT nSlotId // Slot-Id des zu erfragenden <SfxPoolItem>s >+ USHORT nSlotId // Slot-Id of the querying <SfxPoolItem>s > ) const > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode kann auf beliebige Objekte von Subklassen von >- <SfxPoolItem> zugegriffen werden. Diese Austauschtechnik wird ben"otigt, >- wenn z.B. spezielle <SfxToolBoxControl> Subklassen Zugriff auf >- bestimmte Daten z.B. der <SfxObjectShell> ben"otigen. >+ With this method any objects of <SfxPoolItemu> subclasses can be accessed. >+ This exchange method is needed if, for example special <SfxToolBoxControl> >+ subclasses need access to certain data such as the <SfxObjectShell>. > >- Die zur"uckgelieferte Instanz geh"ort der jeweilige SfxShell und >- darf nur im unmittelbaren Kontext des Methodenaufrufs verwendet werden. >+ The returned instance belongs to the particular SfxShell and may be >+ used only in the immediate context of the method call. > >- >- [Querverweise] >+ [Cross-reference] > > <SfxShell::PutItem(const SfxPoolItem&)> > <SfxShell::RemoveItem(USHORT)> >@@ -341,19 +337,17 @@ const SfxPoolItem* SfxShell::GetItem > > void SfxShell::RemoveItem > ( >- USHORT nSlotId // Slot-Id des zu l"oschenden <SfxPoolItem>s >+ USHORT nSlotId // Slot-Id of the deleting <SfxPoolItem>s > ) > >-/* [Beschreibung] >- >- Mit dieser Methode k"onnen die allgemein zur Verf"ugung gestellten >- Instanzen von Subklassen von <SfxPoolItem> aus der SfxShell entfernt >- werden. >+/* [Description] > >- Die gespeicherte Instanz wird gel"oscht. >+ With this method the general available subclasses instances of >+ <cSfxPoolItem> from the SfxShell are removed. > >+ The stored instance is deleted. > >- [Querverweise] >+ [Cross-reference] > > <SfxShell::PutItem(const SfxPoolItem&)> > <SfxShell::GetItem(USHORT)> >@@ -363,12 +357,12 @@ void SfxShell::RemoveItem > for ( USHORT nPos = 0; nPos < pImp->aItems.Count(); ++nPos ) > if ( pImp->aItems.GetObject(nPos)->Which() == nSlotId ) > { >- // Item entfernen und l"oschen >+ // Remove and delete Item > SfxPoolItem *pItem = pImp->aItems.GetObject(nPos); > delete pItem; > pImp->aItems.Remove(nPos); > >- // falls aktiv Bindings benachrichtigen >+ // if active, notify Bindings > SfxDispatcher *pDispat = GetDispatcher(); > if ( pDispat ) > { >@@ -382,23 +376,20 @@ void SfxShell::RemoveItem > > void SfxShell::PutItem > ( >- const SfxPoolItem& rItem /* Instanz, von der eine Kopie erstellt wird, >- die in der SfxShell in einer Liste >- gespeichert wird. */ >+ const SfxPoolItem& rItem /* Instance, of which a copy is created, >+ which is stored in the SfxShell in a list. */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode k"onnen beliebige Objekte von Subklassen von >- <SfxPoolItem> zur Verf"ugung gestellt werden. Diese Austauschtechnik >- wird ben"otigt, wenn z.B. spezielle <SfxToolBoxControl> Subklassen >- Zugriff auf bestimmte Daten z.B. der <SfxObjectShell> ben"otigen. >+ With this method, any objects of subclasses of <SfxPoolItem> can be made >+ available. This exchange technology is needed if, for example, special >+ <SfxToolBoxControl> Subclasses need access to certain data such as the >+ <SfxObjectShell> > >- Falls ein SfxPoolItem mit derselben Slot-Id exisitert, wird dieses >- automatisch gel"oscht. >+ If a SfxPoolItem exists with the same slot ID, it is deleted automatically. > >- >- [Querverweise] >+ [Cross-reference] > > <SfxShell::RemoveItem(USHORT)> > <SfxShell::GetItem(USHORT)> >@@ -409,7 +400,7 @@ void SfxShell::PutItem > DBG_ASSERT( SfxItemPool::IsSlot( rItem.Which() ), > "items with Which-Ids aren't allowed here" ); > >- // MSC auf WNT/W95 machte hier Mist, Vorsicht bei Umstellungen >+ // MSC made a mess here of WNT/W95, beware of changes > const SfxPoolItem *pItem = rItem.Clone(); > SfxPoolItemHint aItemHint( (SfxPoolItem*) pItem ); > const USHORT nWhich = rItem.Which(); >@@ -419,12 +410,12 @@ void SfxShell::PutItem > { > if ( (*ppLoopItem)->Which() == nWhich ) > { >- // Item austauschen >+ // Replace Item > delete *ppLoopItem; > pImp->aItems.Remove(nPos); > pImp->aItems.Insert( (SfxPoolItemPtr) pItem, nPos ); > >- // falls aktiv Bindings benachrichtigen >+ // if active, notify Bindings > SfxDispatcher *pDispat = GetDispatcher(); > if ( pDispat ) > { >@@ -450,15 +441,14 @@ void SfxShell::PutItem > > SfxInterface* SfxShell::GetInterface() const > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser virtuellen Methode, die durch das Makro <SFX_DECL_INTERFACE> >- von jeder Subclass mit eigenen Slots automatisch "uberladen wird, kann >- auf die zu der Subklasse geh"orende <SfxInterface>-Instanz zugegriffen >- werden. >+ With this virtual method, which is automatically overloaded by each subclass >+ with its own slots through the macro <SFX_DECL_INTERFACE>, one can access >+ each of the <SfxInterface> instance beloning to the subclass. > >- Die Klasse SfxShell selbst hat noch kein eigenes SfxInterface >- (keine Slots), daher wird ein 0-Pointer zur"uckgeliefert. >+ The class SfxShell itself has no own SfxInterface (no slots), therefore a >+ NULL-pointer is returned. > */ > > { >@@ -469,10 +459,10 @@ SfxInterface* SfxShell::GetInterface() const > > SfxBroadcaster* SfxShell::GetBroadcaster() > >-/* [Beschreibung] >+/* [Description] > >- Liefert einen SfxBroadcaster f"ur diese SfxShell-Instanz bis die >- Klasse SfxShell von SfxBroadcaster abgeleitet ist. >+ Returns a SfxBroadcaster for this SfxShell instance until the class of >+ SfxShell is derived by SfxBroadcaster. > */ > > { >@@ -483,14 +473,13 @@ SfxBroadcaster* SfxShell::GetBroadcaster() > > SfxUndoManager* SfxShell::GetUndoManager() > >-/* [Beschreibung] >+/* [Description] > >- Jede Subclass von SfxShell kann "uber einen <SfxUndoManager> verf"ugen. >- Dieser kann in den abgeleiteten Klasse mit <SfxShell:SetUndoManager()> >- gesetzt werden. >+ Each Subclass of SfxShell can hava a <SfxUndoManager>. This can be set in >+ the derived class with <SfxShell:SetUndoManager()>. > >- Die Klasse SfxShell selbst hat noch keinen SfxUndoManager, es wird >- daher ein 0-Pointer zur"uckgeliefert. >+ The class SfxShell itself does not have a SfxUndoManager, a NULL-pointer >+ is therefore returned. > */ > > { >@@ -501,17 +490,17 @@ SfxUndoManager* SfxShell::GetUndoManager() > > void SfxShell::SetUndoManager( SfxUndoManager *pNewUndoMgr ) > >-/* [Beschreibung] >+/* [Description] > >- Setzt einen <SfxUndoManager> f"ur diese <SfxShell> Instanz. F"ur das >- Undo wird immer nur der Undo-Manager an der jeweils oben auf dem >- Stack des <SfxDispatcher> liegenden SfxShell verwendet. >+ Sets a <SfxUndoManager> for this <SfxShell> Instance. For the undo >+ is only the undo-manager used for SfxShell at the top of the stack of each >+ <SfxDispatcher>. > >- Am "ubergebenen <SfxUndoManager> wird automatisch die aktuelle >- Max-Undo-Action-Count Einstellung aus den Optionen gesetzt. >+ On the given <SfxUndoManager> is automatically the current >+ Max-Undo-Action-Count setting set form the options. > >- 'pNewUndoMgr' mu\s bis zum Dtor dieser SfxShell-Instanz oder bis >- zum n"achsten 'SetUndoManager()' existieren. >+ 'pNewUndoMgr' must exist until the Destuctor of SfxShell instance is called >+ or until the next 'SetUndoManager()'. > */ > > { >@@ -524,20 +513,17 @@ void SfxShell::SetUndoManager( SfxUndoManager *pNewUndoMgr ) > > SfxRepeatTarget* SfxShell::GetRepeatTarget() const > >-/* [Beschreibung] >- >- Liefert einen Pointer auf die <SfxRepeatTarget>-Instanz, die >- als RepeatTarget bei SID_REPEAT verwendet wird, wenn der >- von dieser SfxShell gelieferte <SfxUndoManager> angesprochen wird. >- Der R"uckgabewert kann 0 sein. >+/* [Description] > >+ Returns a pointer to the <SfxRepeatTarget> instance that is used in >+ SID_REPEAT as repeat target when it is adressed from the <SfxUndoManager> >+ supplied by this SfxShell. The return value can be NULL. > >- [Anmerkung] >+ [Note] > >- Eine Ableitung von <SfxShell> oder einer ihrer Subklassen von >- <SfxRepeatTarget> ist nicht zu empfehlen, da Compiler-Fehler >- provoziert werden (wegen Call-to-Pointer-to-Member-Function to >- subclass). >+ A derivation of <SfxShell> or one of its subclasses of <SfxRepeatTarget> >+ is not recommended, as compiler errors are provoked. >+ (due to Call-to-Pointer-to-Member-Function to the subclass). > */ > > { >@@ -548,21 +534,18 @@ SfxRepeatTarget* SfxShell::GetRepeatTarget() const > > void SfxShell::SetRepeatTarget( SfxRepeatTarget *pTarget ) > >-/* [Beschreibung] >+/* [Description] > >- Setzt den die <SfxRepeatTarget>-Instanz, die bei SID_REPEAT als >- RepeatTarget verwendet wird, wenn der von dieser SfxShell gelieferte >- <SfxUndoManager> angesprochen wird. Durch 'pTarget==0' wird SID_REPEAT >- f"ur diese SfxShell disabled. Die Instanz '*pTarget' mu\s so lange >- leben, wie sie angemeldet ist. >+ Sets the <SfxRepeatTarget> instance that is used in SID_REPEAT as >+ RepeatTarget, when the current supplied by this <SfxUndoManager> is >+ addressed. By 'pTarget==0' the SID_REPEAT is disabled for this SfxShell. >+ The instance '*pTarget' must live as long as it is registered. > >+ [Note] > >- [Anmerkung] >- >- Eine Ableitung von <SfxShell> oder einer ihrer Subklassen von >- <SfxRepeatTarget> ist nicht zu empfehlen, da Compiler-Fehler >- provoziert werden (wegen Call-to-Pointer-to-Member-Function to >- subclass). >+ A derivation of <SfxShell> or one of its subclasses of <SfxRepeatTarget> >+ is not recommended, as compiler errors are provoked. >+ (due to Call-to-Pointer-to-Member-Function to the subclass). > */ > > { >@@ -573,19 +556,20 @@ void SfxShell::SetRepeatTarget( SfxRepeatTarget *pTarget ) > > void SfxShell::Invalidate > ( >- USHORT nId /* Zu invalidierende Slot-Id oder Which-Id. >- Falls diese 0 ist (default), werden >- alle z.Zt. von dieser Shell bedienten >- Slot-Ids invalidiert. */ >+ USHORT nId /* Invalidated Slot-Id or Which-Id. >+ If these are 0 (default), then all >+ by this Shell currently handled Slot-Ids are >+ invalidated. */ > ) > >-/* [Beschreibung] >+/* [Description] >+ >+ With this method can the slots of the subclasses be invalidated through the >+ slot Id or alternatively through the Which ID. Slot IDs, which are >+ inherited by the subclass are also invalidert. > >- Mit dieser Methode k"onnen Slots der Subclasses "uber die Slot-Id >- oder alternativ "uber die Which-Id invalidiert werden. Slot-Ids, >- die von der Subclass ererbt sind, werden ebenfalls invalidert. >+ [Cross-reference] > >- [Querverweise] > <SfxBindings::Invalidate(USHORT)> > <SfxBindings::InvalidateAll(BOOL)> > */ >@@ -614,11 +598,11 @@ void SfxShell::Invalidate_Impl( SfxBindings& rBindings, USHORT nId ) > const SfxSlot *pSlot = pIF->GetSlot(nId); > if ( pSlot ) > { >- // bei Enum-Slots ist der Master-Slot zu invalidieren >+ // At Enum-Slots invalidate the Master-Slot > if ( SFX_KIND_ENUM == pSlot->GetKind() ) > pSlot = pSlot->GetLinkedSlot(); > >- // den Slot selbst und ggf. auch alle Slave-Slots invalidieren >+ // Invalidate the Slot itself and possible also all Slave-Slots > rBindings.Invalidate( pSlot->GetSlotId() ); > for ( const SfxSlot *pSlave = pSlot->GetLinkedSlot(); > pSlave && pIF->ContainsSlot_Impl( pSlave ) && >@@ -642,15 +626,15 @@ void SfxShell::Invalidate_Impl( SfxBindings& rBindings, USHORT nId ) > > void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, BOOL bMDI ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode steuert die Aktivierung der SfxShell-Instanz. Zun"achst >- wird durch Aufruf der virtuellen Methode <SfxShell::Activate(BOOL)> >- der Subclass die M"oglichkeit gegeben, auf das Event zu reagieren. >+ This method controls the activation of SfxShell instance. First, by calling >+ the virtual method <SfxShell::Activate(BOOL)> which gives the subclass the >+ opportunity to respond to the event. > >- Bei bMDI == TRUE wird das zugeh"orige SbxObject 'scharfgeschaltet', >- so da\s Methoden des Objekts unqualifiziert (ohne den Namen des Objekts) >- vom BASIC gefunden werden. >+ When bMDI == TRUE, the associated SbxObject is being 'armed', so that >+ unqualified methods of the object (without the name of the object) >+ from BASIC are found. > */ > > { >@@ -671,12 +655,12 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, BOOL bMDI ) > > if ( bMDI ) > { >- // Frame merken, in dem aktiviert wird >+ // Remember Frame, in which it was activated > pImp->pFrame = pFrame; > pImp->bActive = TRUE; > } > >- // Subklasse benachrichtigen >+ // Notify Subclass > Activate(bMDI); > } > >@@ -684,16 +668,14 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, BOOL bMDI ) > > void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, BOOL bMDI ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode steuert die Deaktivierung der SfxShell-Instanz. Bei >- bMDI == TRUE wird zun"achst das SbxObject in einen Status versetzt, >- so da\s Methoden vom BASIC aus nur noch qualifiziert gerufen werden >- k"onnen. >+ This method controls the deactivation of the SfxShell instance. When >+ bMDI == TRUE the SbxObject is first set to a status that only qualified >+ BASIC methods can be called. > >- Dann erh"alt in jedem Fall die Subclass durch Aufruf der virtuellen >- Methode <SfxShell::Deactivate(BOOL)> die M"oglichkeit auf das Event >- zu reagieren. >+ Then the subclass gets the opportunity in every case to respond to the >+ event by calling the virtual method <SfxShell::Deactivate(BOOL)>. > */ > > { >@@ -712,15 +694,16 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, BOOL bMDI ) > DbgTrace( aMsg.GetBuffer() ); > #endif > >- // nur wenn er vom Frame kommt (nicht z.B. pop der BASIC-IDE vom AppDisp) >+ // Only when it comes from a Frame >+ // (not when for instance by poping BASIC-IDE from AppDisp) > if ( bMDI && pImp->pFrame == pFrame ) > { >- // austragen >+ // deliver > pImp->pFrame = 0; > pImp->bActive = FALSE; > } > >- // Subklasse benachrichtigen >+ // Notify Subclass > Deactivate(bMDI); > } > >@@ -736,28 +719,27 @@ BOOL SfxShell::IsActive() const > void SfxShell::Activate > ( > BOOL /*bMDI*/ /* TRUE >- der <SfxDispatcher>, auf dem die SfxShell sich >- befindet, ist aktiv geworden oder die SfxShell >- Instanz wurde auf einen aktiven SfxDispatcher >- gepusht. (vergl. SystemWindow::IsMDIActivate()) >+ the <SfxDispatcher>, on which the SfxShell is >+ located, is activated or the SfxShell instance >+ was pushed on an active SfxDispatcher. >+ (compare with SystemWindow::IsMDIActivate()) > > FALSE >- das zum <SfxViewFrame>, auf dessen SfxDispatcher >- sich die SfxShell Instanz befindet, wurde >- aktiviert. >- (z.B. durch einen geschlossenen Dialog) */ >+ the <SfxViewFrame>, on which SfxDispatcher >+ the SfxShell instance is located, was >+ activated. (for example by a closing dialoge) */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Virtuelle Methode, die beim Aktivieren der SfxShell Instanz gerufen >- wird, um den Subclasses die Gelegenheit zu geben, auf das Aktivieren >- zu reagieren. >+ Virtual method that is called when enabling the SfxShell instance, >+ in order to give the Subclasses the opportunity to respond to the >+ to the enabling. > >- Die Basisimplementation ist leer und braucht nicht gerufen zu werden. >+ The base implementation is empty and does not need to be called. > >+ [Cross-reference] > >- [Querverweise] > StarView SystemWindow::Activate(BOOL) > */ > >@@ -769,28 +751,27 @@ void SfxShell::Activate > void SfxShell::Deactivate > ( > BOOL /*bMDI*/ /* TRUE >- der <SfxDispatcher>, auf dem die SfxShell sich >- befindet, ist inaktiv geworden oder die SfxShell >- Instanz wurde auf einen aktiven SfxDispatcher >- gepoppt. (vergl. SystemWindow::IsMDIActivate()) >+ the <SfxDispatcher>, on which the SfxShell is >+ located, is inactivated or the SfxShell instance >+ was popped on an active SfxDispatcher. >+ (compare with SystemWindow::IsMDIActivate()) > > FALSE >- das zum <SfxViewFrame>, auf dessen SfxDispatcher >- sich die SfxShell Instanz befindet, wurde >- deaktiviert. (z.B. durch einen Dialog) */ >+ the <SfxViewFrame>, on which SfxDispatcher >+ the SfxShell instance is located, was >+ deactivated. (for example by a dialoge) */ > > ) > >-/* [Beschreibung] >+/* [Description] > >- Virtuelle Methode, die beim Deaktivieren der SfxShell Instanz gerufen >- wird, um den Subclasses die Gelegenheit zu geben, auf das Deaktivieren >- zu reagieren. >+ Virtual method that is called when disabling the SfxShell instance, >+ to give the Subclasses the opportunity to respond to the disabling. > >- Die Basisimplementation ist leer und braucht nicht gerufen zu werden. >+ The base implementation is empty and does not need to be called. > >+ [Cross-reference] > >- [Querverweise] > StarView SystemWindow::Dectivate(BOOL) > */ > >@@ -801,15 +782,16 @@ void SfxShell::ParentActivate > ( > ) > >-/* [Beschreibung] >+/* [Description] > >- Ein Parent des <SfxDispatcher>, auf dem die SfxShell sich befindet, >- ist aktiv geworden, oder die SfxShell Instanz wurde auf einen >- <SfxDispatcher> gepusht, dessen parent aktiv ist. >+ A parent of the <SfxDispatcher> on which the SfxShell is located, has >+ become active, or the SfxShell instance was pushed on a <SfxDispatcher>, >+ which parent is active. > >- Die Basisimplementation ist leer und braucht nicht gerufen zu werden. >+ The base implementation is empty and does not need to be called. >+ >+ [Cross-reference] > >- [Querverweise] > SfxShell::Activate() > */ > { >@@ -821,14 +803,15 @@ void SfxShell::ParentDeactivate > ( > ) > >-/* [Beschreibung] >+/* [Description] >+ >+ The active parent of the <SfxDispatcher> on which the SfxShell is located, >+ has been disabled. > >- Der aktive Parent des <SfxDispatcher>, auf dem die SfxShell sich befindet, >- ist deaktiviert worden. >+ The base implementation is empty and does not need to be called. > >- Die Basisimplementation ist leer und braucht nicht gerufen zu werden. >+ [Cross-reference] > >- [Querverweise] > SfxShell::Deactivate() > */ > { >@@ -838,11 +821,11 @@ void SfxShell::ParentDeactivate > > ResMgr* SfxShell::GetResMgr() const > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode liefert den ResMgr der <Resource-DLL>, die von der >- SfxShell-Instanz verwendet wird. Ist dies ein 0-Pointer, so >- ist der aktuelle Resource-Manager zu verwenden. >+ This method provides the ResMgr of the <Resource-DLL> that are used by >+ the SfxShell instance. If this is a NULL-pointer, then the current >+ resource manager is to be used. > */ > > { >@@ -853,13 +836,13 @@ ResMgr* SfxShell::GetResMgr() const > > bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode stellt durch Aufruf der Statusfunktion fest, >- ob 'rSlot' aktuell ausgef"uhrt werden kann. >+ This method determines by calling the status function whether 'rSlot' >+ can be executed currently. > */ > { >- // Slot-Status holen >+ // Get Slot status > SfxItemPool &rPool = GetPool(); > const USHORT nId = rSlot.GetWhich( rPool ); > SfxItemSet aSet(rPool, nId, nId); >@@ -876,8 +859,9 @@ long ShellCall_Impl( void* pObj, void* pArg ) > return 0; > } > >-/* [Beschreibung] >- Asynchrones ExecuteSlot fuer das RELOAD >+/* [Description] >+ >+ Asynchronous ExecuteSlot for the RELOAD > */ > > //-------------------------------------------------------------------- >@@ -897,24 +881,23 @@ const SfxPoolItem* SfxShell::ExecuteSlot( SfxRequest& rReq, BOOL bAsync ) > > const SfxPoolItem* SfxShell::ExecuteSlot > ( >- SfxRequest &rReq, // der weiterzuleitende <SfxRequest> >- const SfxInterface* pIF // default = 0 bedeutet virtuell besorgen >+ SfxRequest &rReq, // the relayed <SfxRequest> >+ const SfxInterface* pIF // default = 0 means get virtually > ) > >-/* [Beschreibung] >- >- Diese Methode erm"oglicht das Weiterleiten eines <SfxRequest> an >- die angegebene Basis-<SfxShell>. >+/* [Description] > >+ This method allows you to forward a <SfxRequest> to the specified >+ base <SfxShell>. > >- [Beispiel] >+ [Example] > >- In einer von SfxViewShell abgeleiteten Klasse soll SID_PRINTDOCDIRECT >- abgefangen werden. Unter bestimmten Umst"anden soll vor dem Drucken >- eine Abfrage erscheinen, und der Request soll ggf. abgebrochen werden. >+ In a derived class of SfxViewShell the SID_PRINTDOCDIRECT will be >+ intercepted. Under certain circumstances a query should appear before >+ you print, and the request will be aborted if necessary. > >- Dazu ist in der IDL dieser Subklasse der o.g. Slot einzutragen. Die >- Execute-Methode enth"alt dann skizziert: >+ Also in the IDL of this subclass of the above slot is entered. The status >+ method will contain in outline: > > void SubViewShell::Exec( SfxRequest &rReq ) > { >@@ -926,11 +909,10 @@ const SfxPoolItem* SfxShell::ExecuteSlot > } > } > >- Es braucht i.d.R. kein rReq.Done() gerufen zu werden, da das bereits >- die Implementierung der SfxViewShell erledigt bzw. abgebrochen wurde. >+ It usually takes no rReq.Done() to be called as that is already completed >+ in implementation of the SfxViewShell, for instance it has been canceled. > >- >- [Querverweise] >+ [Cross-reference] > > <SfxShell::GetSlotState(USHORT,const SfxInterface*,SfxItemSet*)> > */ >@@ -965,34 +947,33 @@ const SfxPoolItem* SfxShell::ExecuteSlot > > const SfxPoolItem* SfxShell::GetSlotState > ( >- USHORT nSlotId, // Slot-Id des zu befragenden Slots >- const SfxInterface* pIF, // default = 0 bedeutet virtuell besorgen >- SfxItemSet* pStateSet // SfxItemSet der Slot-State-Methode >+ USHORT nSlotId, // Slot-Id to the Slots in question >+ const SfxInterface* pIF, // default = 0 means get virtually >+ SfxItemSet* pStateSet // SfxItemSet of the Slot-State method > ) > >-/* [Beschreibung] >- >- Diese Methode liefert den Status des Slots mit der angegebenen Slot-Id >- "uber das angegebene Interface. >+/* [Description] > >- Ist der Slot disabled oder in dieser SfxShell (und deren Parent-Shells) >- nicht bekannt, wird ein 0-Pointer zur"uckgeliefert. >+ This method returns the status of the slot with the specified slot ID >+ on the specified interface. > >- Hat der Slot keinen Status, wird ein SfxVoidItem zur"uckgeliefert. >+ If the slot is disabled or in this SfxShell (and their parent shells) are >+ not known, a Null-pointer is returned. > >- Der Status wird bei pStateSet != 0 gleich in diesem Set gesetzt, so >- da\s <SfxShell>-Subklassen Slots-"uberladen und auch bei der >- Status-Methode die Basis-Implementierung rufen k"onnen. >+ If the slot does not have a Status, a SfxVoidItem is returned. > >+ The status is set directly in this Set when pStateSet != 0 , so that >+ overloaded Slots of the <SfxShell> Subclasses and also in the Status >+ method of the base implementation can be called. > >- [Beispiel] >+ [Example] > >- In einer von SfxViewShell abgeleiteten Klasse soll SID_PRINTDOCDIRECT >- abgefangen werden. Unter bestimmten Umst"anden soll vor dem Drucken >- eine Abfrage erscheinen, und der Request soll ggf. abgebrochen werden. >+ In a derived class of SfxViewShell the SID_PRINTDOCDIRECT will be >+ intercepted. Under certain circumstances a query should appear before >+ you print, and the request will be aborted if necessary. > >- Dazu ist in der IDL dieser Subklasse der o.g. Slot einzutragen. Die >- Status-Methode enth"alt dann skizziert: >+ Also in the IDL of this subclass of the above slot is entered. The status >+ method will contain in outline: > > void SubViewShell::PrintState( SfxItemSet &rState ) > { >@@ -1002,14 +983,13 @@ const SfxPoolItem* SfxShell::GetSlotState > ... > } > >- >- [Querverweise] >+ [Cross-reference] > > <SfxShell::ExecuteSlot(SfxRequest&)> > */ > > { >- // Slot am angegebenen Interface besorgen >+ // Get Slot on the given Interface > if ( !pIF ) > pIF = GetInterface(); > SfxItemState eState; >@@ -1028,21 +1008,21 @@ const SfxPoolItem* SfxShell::GetSlotState > } > > if ( pSlot ) >- // ggf. auf Which-Id mappen >+ // Mapp on Which-Id if possible > nSlotId = pSlot->GetWhich( rPool ); > >- // Item und Item-Status besorgen >+ // Get Item and Item status > const SfxPoolItem *pItem = NULL; >- SfxItemSet aSet( rPool, nSlotId, nSlotId ); // pItem stirbt sonst zu fr"uh >+ SfxItemSet aSet( rPool, nSlotId, nSlotId ); // else pItem dies too soon > if ( pSlot ) > { >- // Status-Methode rufen >+ // Call Status method > SfxStateFunc pFunc = pSlot->GetStateFnc(); > if ( pFunc ) > CallState( pFunc, aSet ); > eState = aSet.GetItemState( nSlotId, TRUE, &pItem ); > >- // ggf. Default-Item besorgen >+ // get default Item if possible > if ( eState == SFX_ITEM_DEFAULT ) > { > if ( SfxItemPool::IsWhich(nSlotId) ) >@@ -1054,7 +1034,7 @@ const SfxPoolItem* SfxShell::GetSlotState > else > eState = SFX_ITEM_UNKNOWN; > >- // Item und Item-Status auswerten und ggf. in pStateSet mitpflegen >+ // Evaluate Item and item status and possibly maintain them in pStateSet > SfxPoolItem *pRetItem = 0; > if ( eState <= SFX_ITEM_DISABLED ) > { >@@ -1088,12 +1068,12 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em > { > SfxViewShell *pViewSh = PTR_CAST ( SfxViewShell, this); > >- DBG_ASSERT(pViewSh, "SetVerbs nur an der ViewShell aufrufen!"); >+ DBG_ASSERT(pViewSh, "Only call SetVerbs at the ViewShell!"); > if ( !pViewSh ) > return; > >- // Zun"achst alle Statecaches dirty machen, damit keiner mehr versucht, >- // die Slots zu benutzen >+ // First make all Statecaches dirty, so that no-one no longer tries to use >+ // the Slots > { > SfxBindings *pBindings = > pViewSh->GetViewFrame()->GetDispatcher()->GetBindings(); >@@ -1109,7 +1089,7 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em > for (sal_Int32 n=0; n<aVerbs.getLength(); n++) > { > USHORT nSlotId = SID_VERB_START + nr++; >- DBG_ASSERT(nSlotId <= SID_VERB_END, "Zuviele Verben!"); >+ DBG_ASSERT(nSlotId <= SID_VERB_END, "To many Verbs!"); > if (nSlotId > SID_VERB_END) > break; > >@@ -1117,8 +1097,8 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em > pNewSlot->nSlotId = nSlotId; > pNewSlot->nGroupId = 0; > >- // Verb-Slots m"ussen asynchron ausgef"uhrt werden, da sie w"ahrend >- // des Ausf"uhrens zerst"ort werden k"onnten >+ // Verb slots must be executed asynchronously, so that they can be >+ // destroyed while executing. > pNewSlot->nFlags = SFX_SLOT_ASYNCHRON | SFX_SLOT_CONTAINER; > pNewSlot->nMasterSlotId = 0; > pNewSlot->nValue = 0; >@@ -1147,8 +1127,8 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em > > if (pViewSh) > { >- // Der Status von SID_OBJECT wird im Controller direkt an der Shell >- // abgeholt, es reicht also, ein neues StatusUpdate anzuregen >+ // The status of SID_OBJECT is collected in the controller directly on >+ // the Shell, it is thus enough to encourage a new status update > SfxBindings *pBindings = pViewSh->GetViewFrame()->GetDispatcher()-> > GetBindings(); > pBindings->Invalidate( SID_OBJECT, TRUE, TRUE ); >@@ -1204,9 +1184,9 @@ const SfxSlot* SfxShell::GetVerbSlot_Impl(USHORT nId) const > { > com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor > rList = pImp->aVerbList; > >- DBG_ASSERT(nId >= SID_VERB_START && nId <= SID_VERB_END,"Falsche VerbId!"); >+ DBG_ASSERT(nId >= SID_VERB_START && nId <= SID_VERB_END,"Wrong VerbId!"); > USHORT nIndex = nId - SID_VERB_START; >- DBG_ASSERT(nIndex < rList.getLength(),"Falsche VerbId!"); >+ DBG_ASSERT(nIndex < rList.getLength(),"Wrong VerbId!"); > > if (nIndex < rList.getLength()) > return pImp->aSlotArr[nIndex]; >@@ -1257,13 +1237,13 @@ void SfxShell::UIFeatureChanged() > SfxViewFrame *pFrame = GetFrame(); > if ( pFrame && pFrame->IsVisible() ) > { >- // Auch dann Update erzwingen, wenn Dispatcher schon geupdated ist, >- // sonst bleibt evtl. irgendwas in den gebunkerten Tools stecken. >- // Asynchron aufrufen, um Rekursionen zu vermeiden >+ // Also force an update, if dispatcher is already updated otherwise >+ // something my get stuck in the bunkered tools. Asynchronous call to >+ // prevent recursion. > if ( !pImp->pUpdater ) > pImp->pUpdater = new svtools::AsynchronLink( Link( this, DispatcherUpdate_Impl ) ); > >- // Mehrfachaufrufe gestattet >+ // Multiple views allowed > pImp->pUpdater->Call( pFrame->GetDispatcher(), TRUE ); > } > } >diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx >index 41eafeb..5279255 100644 >--- a/sfx2/source/control/statcach.cxx >+++ b/sfx2/source/control/statcach.cxx >@@ -202,10 +202,7 @@ void BindDispatch_Impl::Dispatch( uno::Sequence < beans::PropertyValue > aProps, > } > > //-------------------------------------------------------------------- >- >-/* Dieser Konstruktor fuer einen ungueltigen Cache, der sich also >- bei der ersten Anfrage zun"achst updated. >- */ >+// This constructor for an invalid cache that is updated in the first request. > > SfxStateCache::SfxStateCache( sal_uInt16 nFuncId ): > pDispatch( 0 ), >@@ -224,16 +221,13 @@ SfxStateCache::SfxStateCache( sal_uInt16 nFuncId ): > } > > //-------------------------------------------------------------------- >- >-/* Der Destruktor pr"uft per Assertion, ob noch Controller angemeldet >- sind. >- */ >+// The Destructor checks by assertion, even if controllers are registered. > > SfxStateCache::~SfxStateCache() > { > DBG_MEMTEST(); > DBG_DTOR(SfxStateCache, 0); >- DBG_ASSERT( pController == 0 && pInternalController == 0, "es sind noch Controller angemeldet" ); >+ DBG_ASSERT( pController == 0 && pInternalController == 0, "there are still Controllers registered" ); > if ( !IsInvalidItem(pLastItem) ) > delete pLastItem; > if ( pDispatch ) >@@ -261,7 +255,6 @@ void SfxStateCache::Invalidate( sal_Bool bWithMsg ) > } > > //-------------------------------------------------------------------- >- > // gets the corresponding function from the dispatcher or the cache > > const SfxSlotServer* SfxStateCache::GetSlotServer( SfxDispatcher &rDispat , const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > & xProv ) >@@ -358,24 +351,22 @@ const SfxSlotServer* SfxStateCache::GetSlotServer( SfxDispatcher &rDispat , cons > > //-------------------------------------------------------------------- > >-// Status setzen in allen Controllern >+// Set Status in all Controllers > > void SfxStateCache::SetState > ( >- SfxItemState eState, // <SfxItemState> von 'pState' >- const SfxPoolItem* pState, // Status des Slots, ggf. 0 oder -1 >+ SfxItemState eState, // <SfxItemState> from 'pState' >+ const SfxPoolItem* pState, // Slot Status, 0 or -1 > BOOL bMaybeDirty > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode verteilt die Status auf alle an dieser SID gebundenen >- <SfxControllerItem>s. Ist der Wert derselbe wie zuvor und wurde in- >- zwischen weder ein Controller angemeldet, noch ein Controller invalidiert, >- dann wird kein Wert weitergeleitet. Dadurch wird z.B. Flackern in >- ListBoxen vermieden. >+ This method distributes the status of all of this SID bound >+ <SfxControllerItem>s. If the value is the same as before, and if neither >+ controller was registered nor invalidated inbetween, then no value is >+ passed. This way the flickering is for example avoided in ListBoxes. > */ >- > { > // if ( pDispatch ) > // return; >@@ -413,7 +404,7 @@ void SfxStateCache::SetVisibleState( BOOL bShow ) > bDeleteItem = sal_True; > } > >- // Controller updaten >+ // Update Controller > if ( !pDispatch && pController ) > { > for ( SfxControllerItem *pCtrl = pController; >@@ -434,8 +425,8 @@ void SfxStateCache::SetVisibleState( BOOL bShow ) > > void SfxStateCache::SetState_Impl > ( >- SfxItemState eState, // <SfxItemState> von 'pState' >- const SfxPoolItem* pState, // Status des Slots, ggf. 0 oder -1 >+ SfxItemState eState, // <SfxItemState> from 'pState' >+ const SfxPoolItem* pState, // Slot Status, 0 or -1 > BOOL bMaybeDirty > ) > { >@@ -443,8 +434,8 @@ void SfxStateCache::SetState_Impl > DBG_MEMTEST(); > DBG_CHKTHIS(SfxStateCache, 0); > >- // wenn zwischen Enter- und LeaveRegistrations ein hartes Update kommt >- // k"onnen zwischenzeitlich auch Cached ohne Controller exisitieren >+ // If a hard update occurs between enter- and leave-registrations is a >+ // can also intermediate Cached exist without controller. > if ( !pController && !pInternalController ) > return; > >@@ -454,7 +445,7 @@ void SfxStateCache::SetState_Impl > DBG_ASSERT( SfxControllerItem::GetItemState(pState) == eState, "invalid SfxItemState" ); > DBG_PROFSTART(SfxStateCacheSetState); > >- // m"ussen die Controller "uberhaupt benachrichtigt werden? >+ // does the controller have to be notified at all? > bool bNotify = bItemDirty; > if ( !bItemDirty ) > { >@@ -470,7 +461,7 @@ void SfxStateCache::SetState_Impl > > if ( bNotify ) > { >- // Controller updaten >+ // Update Controller > if ( !pDispatch && pController ) > { > for ( SfxControllerItem *pCtrl = pController; >@@ -482,7 +473,7 @@ void SfxStateCache::SetState_Impl > if ( pInternalController ) > ((SfxDispatchController_Impl *)pInternalController)->StateChanged( nId, eState, pState, &aSlotServ ); > >- // neuen Wert merken >+ // Remember new value > if ( !IsInvalidItem(pLastItem) ) > DELETEZ(pLastItem); > if ( pState && !IsInvalidItem(pState) ) >@@ -499,22 +490,21 @@ void SfxStateCache::SetState_Impl > > > //-------------------------------------------------------------------- >- >-// alten Status in allen Controllern nochmal setzen >+// Set old status again in all the controllers > > void SfxStateCache::SetCachedState( BOOL bAlways ) > { > DBG_MEMTEST(); > DBG_CHKTHIS(SfxStateCache, 0); >- DBG_ASSERT(pController==NULL||pController->GetId()==nId, "Cache mit falschem ControllerItem" ); >+ DBG_ASSERT(pController==NULL||pController->GetId()==nId, "Cache with wrong ControllerItem" ); > DBG_PROFSTART(SfxStateCacheSetState); > >- // nur updaten wenn cached item vorhanden und auch verarbeitbar >- // (Wenn der State gesendet wird, mu\s sichergestellt sein, da\s ein >- // Slotserver vorhanden ist, s. SfxControllerItem::GetCoreMetric() ) >+ // Only update if cached item exists and also able to process. >+ // (If the State is sent, it must be ensured that a SlotServer is present, >+ // see SfxControllerItem:: GetCoreMetric()) > if ( bAlways || ( !bItemDirty && !bSlotDirty ) ) > { >- // Controller updaten >+ // Update Controller > if ( !pDispatch && pController ) > { > for ( SfxControllerItem *pCtrl = pController; >@@ -526,7 +516,7 @@ void SfxStateCache::SetCachedState( BOOL bAlways ) > if ( pInternalController ) > ((SfxDispatchController_Impl *)pInternalController)->StateChanged( nId, eLastState, pLastItem, &aSlotServ ); > >- // Controller sind jetzt ok >+ // Controller is now ok > bCtrlDirty = sal_True; > } > >@@ -535,8 +525,7 @@ void SfxStateCache::SetCachedState( BOOL bAlways ) > > > //-------------------------------------------------------------------- >- >-// FloatingWindows in allen Controls mit dieser Id zerstoeren >+// Destroy FloatingWindows in all Controls with this Id > > void SfxStateCache::DeleteFloatingWindows() > { >diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx >index 8ca5f20..fd514de 100644 >--- a/sfx2/source/control/unoctitm.cxx >+++ b/sfx2/source/control/unoctitm.cxx >@@ -106,7 +106,7 @@ SfxUnoControllerItem::SfxUnoControllerItem( SfxControllerItem *pItem, SfxBinding > : pCtrlItem( pItem ) > , pBindings( &rBind ) > { >- DBG_ASSERT( !pCtrlItem || !pCtrlItem->IsBound(), "ControllerItem fehlerhaft!" ); >+ DBG_ASSERT( !pCtrlItem || !pCtrlItem->IsBound(), "ControllerItem is incorrect!" ); > > aCommand.Complete = rCmd; > Reference < XURLTransformer > xTrans( ::comphelper::getProcessServiceFactory()->createInstance( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.URLTransformer"))), UNO_QUERY ); >@@ -132,18 +132,17 @@ void SfxUnoControllerItem::UnBind() > void SAL_CALL SfxUnoControllerItem::statusChanged(const ::com::sun::star::frame::FeatureStateEvent& rEvent) throw ( ::com::sun::star::uno::RuntimeException ) > { > SolarMutexGuard aGuard; >- DBG_ASSERT( pCtrlItem, "Dispatch hat den StatusListener nicht entfern!" ); >+ DBG_ASSERT( pCtrlItem, "Dispatch has not removed the StatusListener!" ); > > if ( rEvent.Requery ) > { >- // Fehler kann nur passieren, wenn das alte Dispatch fehlerhaft implementiert >- // ist, also removeStatusListener nicht gefunzt hat. Aber sowas soll >- // ja vorkommen ... >- // Also besser vor ReleaseDispatch gegen Abflug sch"utzen! >+ // Error can only happen if the old Dispatch is implemented incorrectly >+ // i.e. removeStatusListener did not work. But such things can happen... >+ // So protect before ReleaseDispatch from release! > ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > aRef( (::cppu::OWeakObject*)this, ::com::sun::star::uno::UNO_QUERY ); > ReleaseDispatch(); > if ( pCtrlItem ) >- GetNewDispatch(); // asynchron ?? >+ GetNewDispatch(); // asynchronous ?? > } > else if ( pCtrlItem ) > { >diff --git a/sfx2/source/dialog/about.cxx b/sfx2/source/dialog/about.cxx >index 4055bce..e5e0896 100644 >--- a/sfx2/source/dialog/about.cxx >+++ b/sfx2/source/dialog/about.cxx >@@ -102,7 +102,7 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS > // load image from module path > aAppLogo = SfxApplication::GetApplicationLogo(); > >- // Transparenter Font >+ // Transparent Font > Font aFont = GetFont(); > aFont.SetTransparent( TRUE ); > SetFont( aFont ); >@@ -119,7 +119,7 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS > #endif > aVersionText.SetText( sVersion ); > >- // Initialisierung fuer Aufruf Entwickler >+ // Initialization call for developers > if ( aAccelStr.Len() && ByteString(U2S(aAccelStr)).IsAlphaAscii() ) > { > Accelerator *pAccel = 0, *pPrevAccel = 0, *pFirstAccel = 0; >@@ -229,7 +229,7 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS > > FreeResource(); > >- // explizite Help-Id >+ // explicit Help-Id > SetHelpId( SID_ABOUT ); > } > >@@ -237,7 +237,7 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId, const String& rVerS > > AboutDialog::~AboutDialog() > { >- // L"oschen des Entwickleraufrufs >+ // Clearing the developers call > if ( !aAccelList.empty() ) > { > GetpApp()->RemoveAccel( aAccelList.front() ); >diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx >index 4e816f6..0450adc 100644 >--- a/sfx2/source/dialog/basedlgs.cxx >+++ b/sfx2/source/dialog/basedlgs.cxx >@@ -137,10 +137,10 @@ void SfxModalDialog::SetDialogData_Impl() > > void SfxModalDialog::GetDialogData_Impl() > >-/* [Beschreibung] >+/* [Description] > >- Hilfsfunktion; liest die Dialogposition aus der Ini-Datei >- und setzt diese am "ubergebenen Window. >+ Helper function, reads the dialogue position from the ini file and >+ puts them on the transfered window. > */ > > { >@@ -170,11 +170,10 @@ void SfxModalDialog::init() > > SfxModalDialog::SfxModalDialog(Window* pParent, const ResId &rResId ) > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor der allgemeinen Basisklasse f"ur modale Dialoge; >- ResId wird als ID im ini-file verwendet. >- Die dort gespeicherte Position wird gesetzt. >+ Constructor of the general base class for modal Dialoge; >+ ResId is used as ID in ini-file. The saved position from there is set. > */ > > : ModalDialog(pParent, rResId), >@@ -190,11 +189,11 @@ SfxModalDialog::SfxModalDialog(Window* pParent, const ResId &rResId ) > SfxModalDialog::SfxModalDialog(Window* pParent, > sal_uInt32 nUniqueId, > WinBits nWinStyle) : >-/* [Beschreibung] >+/* [Description] > >- Konstruktor der allgemeinen Basisklasse f"ur modale Dialoge; >- ID f"ur das ini-file wird explizit "ubergeben. >- Die dort gespeicherte Position wird gesetzt. >+ Constructor of the general base class for modal Dialoge; >+ The ID for the ini-file wird explicilty handed over. >+ The saved position from there is set. > */ > > ModalDialog(pParent, nWinStyle), >@@ -209,9 +208,9 @@ SfxModalDialog::SfxModalDialog(Window* pParent, > > SfxModalDialog::~SfxModalDialog() > >-/* [Beschreibung] >+/* [Description] > >- Dtor; schreibt Dialogposition in das ini-file >+ Destructor; writes the Dialog position in the ini-file. > */ > > { >@@ -302,12 +301,12 @@ void SfxModelessDialog::StateChanged( StateChangedType nStateChange ) > > void SfxModelessDialog::Initialize(SfxChildWinInfo *pInfo) > >-/* [Beschreibung] >+/* [Description] > >- Initialisierung der Klasse SfxModelessDialog "uber ein SfxChildWinInfo. >- Die Initialisierung erfolgt erst in einem 2.Schritt >- nach dem ctor und sollte vom ctor der abgeleiteten Klasse >- oder von dem des SfxChildWindows aufgerufen werden. >+ Initialization of the class SfxModelessDialog via a SfxChildWinInfo. >+ The initialization is done only in a 2nd step after the constructor, this >+ constructor should be called from the derived class or from the >+ SfxChildWindows. > */ > > { >@@ -316,12 +315,11 @@ void SfxModelessDialog::Initialize(SfxChildWinInfo *pInfo) > > void SfxModelessDialog::Resize() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse FloatingWindow merkt sich ggf. eine >- ver"anderte Gr"o\se. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- auch SfxFloatingWindow::Resize() gerufen werden. >+ This virtual method of the class FloatingWindow keeps track if a change >+ in size has been made. When this method is overridden by a derived class, >+ then the SfxFloatingWindow: Resize() must also be called. > */ > > { >@@ -407,10 +405,10 @@ SfxModelessDialog::SfxModelessDialog( SfxBindings *pBindinx, > > long SfxModelessDialog::Notify( NotifyEvent& rEvt ) > >-/* [Beschreibung] >+/* [Description] > >- Wenn ein ModelessDialog aktiviert wird, wird sein ViewFrame aktiviert. >- Notwendig ist das bei PlugInFrames. >+ If a ModelessDialog is enabled its ViewFrame wil be activated. >+ This is necessary by PluginInFrames. > */ > > { >@@ -436,9 +434,9 @@ long SfxModelessDialog::Notify( NotifyEvent& rEvt ) > } > else if( rEvt.GetType() == EVENT_KEYINPUT ) > { >- // KeyInput zuerst f"ur Dialogfunktionen zulassen ( TAB etc. ) >+ // First, allow KeyInput for Dialog functions ( TAB etc. ) > if ( !ModelessDialog::Notify( rEvt ) && SfxViewShell::Current() ) >- // dann auch global g"ultige Acceleratoren verwenden >+ // then also for valid global accelerators. > return SfxViewShell::Current()->GlobalKeyInput_Impl( *rEvt.GetKeyEvent() ); > return sal_True; > } >@@ -450,9 +448,9 @@ long SfxModelessDialog::Notify( NotifyEvent& rEvt ) > > SfxModelessDialog::~SfxModelessDialog() > >-/* [Beschreibung] >+/* [Description] > >- Dtor >+ Destructor > */ > > { >@@ -465,19 +463,16 @@ SfxModelessDialog::~SfxModelessDialog() > > sal_Bool SfxModelessDialog::Close() > >-/* [Beschreibung] >- >- Das Fenster wird geschlossen, indem das ChildWindow durch Ausf"uhren des >- ChildWindow-Slots zerst"ort wird. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- danach SfxModelessDialogWindow::Close() gerufen werden, wenn nicht das >- Close() mit "return sal_False" abgebrochen wird. >+/* [Description] > >+ The window is closed when the ChildWindow is destroyed by running the >+ ChildWindow-slots. If this is method is overridden by a derived class >+ method, then the SfxModelessDialogWindow: Close() must be called afterwards >+ if the Close() was not cancelled with "return sal_False". > */ > > { >- // Execute mit Parametern, da Toggle von einigen ChildWindows ignoriert >- // werden kann >+ // Execute with Parameters, since Toggle is ignored by some ChildWindows. > SfxBoolItem aValue( pImp->pMgr->GetType(), sal_False); > pBindings->GetDispatcher_Impl()->Execute( > pImp->pMgr->GetType(), >@@ -489,14 +484,13 @@ sal_Bool SfxModelessDialog::Close() > > void SfxModelessDialog::FillInfo(SfxChildWinInfo& rInfo) const > >-/* [Beschreibung] >+/* [Description] > >- F"ullt ein SfxChildWinInfo mit f"ur SfxModelessDialof spezifischen Daten, >- damit sie in die INI-Datei geschrieben werden koennen. >- Es wird angenommen, da\s rInfo alle anderen evt. relevanten Daten in >- der ChildWindow-Klasse erh"alt. >- ModelessDialogs haben keine spezifischen Informationen, so dass die >- Basisimplementierung nichts tut und daher nicht gerufen werden mu\s. >+ Fills a SfxChildWinInfo with specific data from SfxModelessDialog, >+ so that it can be written in the INI file. It is assumed that rinfo >+ receives all other possible relevant data in the ChildWindow class. >+ ModelessDialogs have no specific information, so that the base >+ implementation does nothing and therefore must not be called. > */ > > { >@@ -509,10 +503,10 @@ void SfxModelessDialog::FillInfo(SfxChildWinInfo& rInfo) const > > long SfxFloatingWindow::Notify( NotifyEvent& rEvt ) > >-/* [Beschreibung] >+/* [Description] > >- Wenn ein ModelessDialog aktiviert wird, wird sein ViewFrame aktiviert. >- Notwendig ist das bei PlugInFrames. >+ If a ModelessDialog is enabled, its ViewFrame will be activated. >+ This necessary for the PluginInFrames. > */ > > { >@@ -541,9 +535,9 @@ long SfxFloatingWindow::Notify( NotifyEvent& rEvt ) > } > else if( rEvt.GetType() == EVENT_KEYINPUT ) > { >- // KeyInput zuerst f"ur Dialogfunktionen zulassen >+ // First, allow KeyInput for Dialog functions > if ( !FloatingWindow::Notify( rEvt ) && SfxViewShell::Current() ) >- // dann auch global g"ultige Acceleratoren verwenden >+ // then also for valid global accelerators. > return SfxViewShell::Current()->GlobalKeyInput_Impl( *rEvt.GetKeyEvent() ); > return sal_True; > } >@@ -596,19 +590,16 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx, > > sal_Bool SfxFloatingWindow::Close() > >-/* [Beschreibung] >- >- Das Fenster wird geschlossen, indem das ChildWindow durch Ausf"uhren des >- ChildWindow-Slots zerst"ort wird. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- danach SfxFloatingWindow::Close() gerufen werden, wenn nicht das Close() >- mit "return sal_False" abgebrochen wird. >+/* [Description] > >+ The window is closed when the ChildWindow is destroyed by running the >+ ChildWindow-slots. If this is method is overridden by a derived class >+ method, then the SfxModelessDialogWindow: Close) must be called afterwards >+ if the Close() was not cancelled with "return sal_False". > */ > > { >- // Execute mit Parametern, da Toggle von einigen ChildWindows ignoriert >- // werden kann >+ // Execute with Parameters, since Toggle is ignored by some ChildWindows. > SfxBoolItem aValue( pImp->pMgr->GetType(), sal_False); > pBindings->GetDispatcher_Impl()->Execute( > pImp->pMgr->GetType(), >@@ -620,9 +611,9 @@ sal_Bool SfxFloatingWindow::Close() > > SfxFloatingWindow::~SfxFloatingWindow() > >-/* [Beschreibung] >+/* [Description] > >- Dtor >+ Destructor > */ > > { >@@ -635,12 +626,11 @@ SfxFloatingWindow::~SfxFloatingWindow() > > void SfxFloatingWindow::Resize() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse FloatingWindow merkt sich ggf. eine >- ver"anderte Gr"o\se. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- auch SfxFloatingWindow::Resize() gerufen werden. >+ This virtual method of the class FloatingWindow keeps track if a change >+ in size has been made. When this method is overridden by a derived class, >+ then the SfxFloatingWindow: Resize() must also be called. > */ > > { >@@ -699,12 +689,12 @@ void SfxFloatingWindow::StateChanged( StateChangedType nStateChange ) > > void SfxFloatingWindow::Initialize(SfxChildWinInfo *pInfo) > >-/* [Beschreibung] >+/* [Description] > >- Initialisierung der Klasse SfxFloatingWindow "uber ein SfxChildWinInfo. >- Die Initialisierung erfolgt erst in einem 2.Schritt >- nach dem ctor und sollte vom ctor der abgeleiteten Klasse >- oder von dem des SfxChildWindows aufgerufen werden. >+ Initialization of a class SfxFloatingWindow through a SfxChildWinInfo. >+ The initialization is done only in a 2nd step after the constructor and >+ should be called by the constructor of the derived class or from the >+ SfxChildWindows. > */ > { > pImp->aWinState = pInfo->aWinState; >@@ -714,15 +704,13 @@ void SfxFloatingWindow::Initialize(SfxChildWinInfo *pInfo) > > void SfxFloatingWindow::FillInfo(SfxChildWinInfo& rInfo) const > >-/* [Beschreibung] >+/* [Description] > >- F"ullt ein SfxChildWinInfo mit f"ur SfxFloatingWindow spezifischen Daten, >- damit sie in die INI-Datei geschrieben werden koennen. >- Es wird angenommen, da\s rInfo alle anderen evt. relevanten Daten in >- der ChildWindow-Klasse erh"alt. >- Eingetragen werden hier gemerkte Gr"o\se und das ZoomIn-Flag. >- Wird diese Methode "uberschrieben, mu\s zuerst die Basisimplementierung >- gerufen werden. >+ Fills a SfxChildWinInfo with specific data from SfxFloatingWindow, >+ so that it can be written in the INI file. It is assumed that rinfo >+ receives all other possible relevant data in the ChildWindow class. >+ Insertions are marked with size and the ZoomIn flag. >+ If this method is overridden, the base implementation must be called first. > */ > > { >@@ -735,9 +723,9 @@ void SfxFloatingWindow::FillInfo(SfxChildWinInfo& rInfo) const > > IMPL_LINK( SfxSingleTabDialog, OKHdl_Impl, Button *, EMPTYARG ) > >-/* [Beschreibung] >+/* [Description] > >- Ok_Handler; f"ur die gesetzte Page wird FillItemSet() gerufen. >+ Ok_Handler; FillItemSet() is called for setting of Page. > */ > > { >@@ -767,7 +755,7 @@ IMPL_LINK( SfxSingleTabDialog, OKHdl_Impl, Button *, EMPTYARG ) > > if ( bModified ) > { >- // auch noch schnell User-Daten im IniManager abspeichern >+ // Save user data in IniManager. > pImpl->m_pSfxPage->FillUserData(); > String sData( pImpl->m_pSfxPage->GetUserData() ); > SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( GetUniqId() ) ); >@@ -788,10 +776,10 @@ SfxSingleTabDialog::SfxSingleTabDialog > sal_uInt16 nUniqueId > ) : > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor der allgemeinen Basisklasse f"ur SingleTab-Dialoge; >- ID f"ur das ini-file wird "ubergeben. >+ Constructor of the general base class for SingleTab-Dialoge; >+ ID for the ini-file is handed over. > */ > > SfxModalDialog( pParent, nUniqueId, WinBits( WB_STDMODAL | WB_3DLOOK ) ), >@@ -801,7 +789,7 @@ SfxSingleTabDialog::SfxSingleTabDialog > pHelpBtn ( 0 ), > pImpl ( new SingleTabDlgImpl ) > { >- DBG_WARNING( "please use the ctor with ViewFrame" ); >+ DBG_WARNING( "please use the constructor with ViewFrame" ); > SetInputSet( &rSet ); > } > >@@ -814,11 +802,11 @@ SfxSingleTabDialog::SfxSingleTabDialog > const SfxItemSet* pInSet > ) > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor der allgemeinen Basisklasse f"ur SingleTab-Dialoge; >- ID f"ur das ini-file wird "ubergeben. >- Sollte nicht mehr benutzt werden. >+ Constructor of the general base class for SingleTab-Dialoge; >+ ID for the ini-file is handed over. >+ Deprecated. > */ > > : SfxModalDialog( pParent, nUniqueId, WinBits( WB_STDMODAL | WB_3DLOOK ) ), >@@ -828,7 +816,7 @@ SfxSingleTabDialog::SfxSingleTabDialog > pHelpBtn ( 0 ), > pImpl ( new SingleTabDlgImpl ) > { >- DBG_WARNING( "bitte den Ctor mit ViewFrame verwenden" ); >+ DBG_WARNING( "please use the constructor with ViewFrame" ); > SetInputSet( pInSet ); > } > >@@ -841,11 +829,11 @@ SfxSingleTabDialog::SfxSingleTabDialog > const String& rInfoURL > ) > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor der allgemeinen Basisklasse f"ur SingleTab-Dialoge; >- ID f"ur das ini-file wird "ubergeben. >- */ >+ Constructor of the general base class for SingleTab-Dialoge; >+ ID for the ini-file is handed over. >+*/ > > : SfxModalDialog( pParent, nUniqueId, WinBits( WB_STDMODAL | WB_3DLOOK ) ), > >@@ -905,7 +893,7 @@ void SfxSingleTabDialog::SetPage( TabPage* pNewPage ) > > if ( pImpl->m_pTabPage ) > { >- // Gr"ossen und Positionen anpassen >+ // Adjust size and position. > pImpl->m_pTabPage->SetPosPixel( Point() ); > Size aOutSz( pImpl->m_pTabPage->GetSizePixel() ); > Size aOffSz = LogicToPixel( Size( RSC_SP_CTRL_X, RSC_SP_CTRL_Y ), MAP_APPFONT ); >@@ -934,10 +922,10 @@ void SfxSingleTabDialog::SetPage( TabPage* pNewPage ) > pOKBtn->Show(); > pImpl->m_pTabPage->Show(); > >- // Text der TabPage in den Dialog setzen >+ // Set TabPage text in the Dialog > SetText( pImpl->m_pTabPage->GetText() ); > >- // Dialog bekommt HelpId der TabPage >+ // Dialog recieves the HelpId of TabPage > SetHelpId( pImpl->m_pTabPage->GetHelpId() ); > SetUniqueId( pImpl->m_pTabPage->GetUniqueId() ); > } >@@ -947,12 +935,11 @@ void SfxSingleTabDialog::SetPage( TabPage* pNewPage ) > > void SfxSingleTabDialog::SetTabPage( SfxTabPage* pTabPage, > GetTabPageRanges pRangesFunc ) >-/* [Beschreibung] >+/* [Description] > >- Setzen einer (neuen) TabPage; eine bereits vorhandene Page >- wird gel"oscht. >- Die "ubergebene Page wird durch Aufruf von Reset() mit dem >- initial "ubergebenen Itemset initialisiert. >+ Insert a (new) TabPage; an existing page is deleted. >+ The passed on page is initialized with the initially given Itemset >+ through calling Reset(). > */ > > { >@@ -975,7 +962,7 @@ void SfxSingleTabDialog::SetTabPage( SfxTabPage* pTabPage, > > if ( pImpl->m_pSfxPage ) > { >- // erstmal die User-Daten besorgen, dann erst Reset() >+ // First obtain the user data, only then Reset() > SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( GetUniqId() ) ); > String sUserData; > Any aUserItem = aPageOpt.GetUserItem( USERITEM_NAME ); >@@ -986,7 +973,7 @@ void SfxSingleTabDialog::SetTabPage( SfxTabPage* pTabPage, > pImpl->m_pSfxPage->Reset( *GetInputItemSet() ); > pImpl->m_pSfxPage->Show(); > >- // Gr"ossen und Positionen anpassen >+ // Adjust size and position > pImpl->m_pSfxPage->SetPosPixel( Point() ); > Size aOutSz( pImpl->m_pSfxPage->GetSizePixel() ); > Size aBtnSiz = LogicToPixel( Size( 50, 14 ), MAP_APPFONT ); >@@ -1004,10 +991,10 @@ void SfxSingleTabDialog::SetTabPage( SfxTabPage* pTabPage, > if ( Help::IsContextHelpEnabled() ) > pHelpBtn->Show(); > >- // Text der TabPage in den Dialog setzen >+ // Set TabPage text in the Dialog > SetText( pImpl->m_pSfxPage->GetText() ); > >- // Dialog bekommt HelpId der TabPage >+ // Dialog recieves the HelpId of TabPage > SetHelpId( pImpl->m_pSfxPage->GetHelpId() ); > SetUniqueId( pImpl->m_pSfxPage->GetUniqueId() ); > } >@@ -1021,7 +1008,7 @@ void SfxSingleTabDialog::SetInfoLink( const Link& rLink ) > } > > //-------------------------------------------------------------------- >-// Vergleichsfunktion fuer qsort >+// Comparison function for qsort > > #ifdef WNT > int __cdecl BaseDlgsCmpUS_Impl( const void* p1, const void* p2 ) >@@ -1039,15 +1026,15 @@ extern "C" int BaseDlgsCmpUS_Impl( const void* p1, const void* p2 ) > // ----------------------------------------------------------------------- > > /* >- Bildet das Set "uber die Ranges der Page. Die Page muss die statische >- Methode f"ur das Erfragen ihrer Ranges bei SetTabPage angegeben haben, >- liefert also ihr Set onDemand. >+ Creates the set over the Page range. the page must register the static >+ method for querys on the range in SetTabPage, so the Set is delivered >+ onDemand. > */ > const sal_uInt16* SfxSingleTabDialog::GetInputRanges( const SfxItemPool& rPool ) > { > if ( GetInputItemSet() ) > { >- DBG_ERROR( "Set bereits vorhanden!" ); >+ DBG_ERROR( "Set already exists!" ); > return GetInputItemSet()->GetRanges(); > } > >@@ -1065,13 +1052,13 @@ const sal_uInt16* SfxSingleTabDialog::GetInputRanges( const SfxItemPool& rPool ) > aUS.Insert( pTmpRanges, nLen, aUS.Count() ); > } > >- //! Doppelte Ids entfernen? >+ //! Remove duplicate IDs? > sal_uInt16 nCount = aUS.Count(); > > for ( sal_uInt16 i = 0; i < nCount; ++i ) > aUS[i] = rPool.GetWhich( aUS[i]) ; > >- // sortieren >+ // sort > if ( aUS.Count() > 1 ) > qsort( (void*)aUS.GetData(), aUS.Count(), sizeof(sal_uInt16), BaseDlgsCmpUS_Impl ); > >diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx >index 9e404e8..9d72131 100644 >--- a/sfx2/source/dialog/dinfdlg.cxx >+++ b/sfx2/source/dialog/dinfdlg.cxx >@@ -671,7 +671,7 @@ SfxTabPage *SfxDocumentDescPage::Create(Window *pParent, const SfxItemSet &rItem > > BOOL SfxDocumentDescPage::FillItemSet(SfxItemSet &rSet) > { >- // Pruefung, ob eine Aenderung vorliegt >+ // Test whether a change is present > const BOOL bTitleMod = aTitleEd.IsModified(); > const BOOL bThemeMod = aThemaEd.IsModified(); > const BOOL bKeywordsMod = aKeywordsEd.IsModified(); >@@ -681,7 +681,7 @@ BOOL SfxDocumentDescPage::FillItemSet(SfxItemSet &rSet) > return FALSE; > } > >- // Erzeugung der Ausgabedaten >+ // Generating the output data > const SfxPoolItem* pItem = NULL; > SfxDocumentInfoItem* pInfo = NULL; > SfxTabDialog* pDlg = GetTabDialog(); >@@ -1022,7 +1022,7 @@ BOOL SfxDocumentPage::FillItemSet( SfxItemSet& rSet ) > > void SfxDocumentPage::Reset( const SfxItemSet& rSet ) > { >- // Bestimmung der Dokumentinformationen >+ // Determine the document information > const SfxDocumentInfoItem *pInfoItem = > &(const SfxDocumentInfoItem &)rSet.Get(SID_DOCINFO); > >@@ -1060,7 +1060,7 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet ) > } > else > { >- DBG_ASSERT( pItem->IsA( TYPE( SfxStringItem ) ), "SfxDocumentPage:<SfxStringItem> erwartet" ); >+ DBG_ASSERT( pItem->IsA( TYPE( SfxStringItem ) ), "SfxDocumentPage:<SfxStringItem> expected" ); > aName = ( ( SfxStringItem* ) pItem )->GetValue(); > } > aNameED.SetText( aName ); >@@ -1501,13 +1501,13 @@ SfxDocumentInfoDialog::SfxDocumentInfoDialog( Window* pParent, > DBG_ASSERT( pURLItem, "No BaseURL provided for InternetTabPage!" ); > #endif > >- // Bestimmung des Titels >+ // Determine the Titels > const SfxPoolItem* pItem = 0; > String aTitle( GetText() ); > if ( SFX_ITEM_SET != > rItemSet.GetItemState( SID_EXPLORER_PROPS_START, FALSE, &pItem ) ) > { >- // Dateiname >+ // File name > String aFile( pInfoItem->GetValue() ); > #ifdef WIN > if ( aFile.Len() <= 8 ) >@@ -1540,12 +1540,12 @@ SfxDocumentInfoDialog::SfxDocumentInfoDialog( Window* pParent, > else > { > DBG_ASSERT( pItem->IsA( TYPE( SfxStringItem ) ), >- "SfxDocumentInfoDialog:<SfxStringItem> erwartet" ); >+ "SfxDocumentInfoDialog:<SfxStringItem> expected" ); > aTitle += ( ( SfxStringItem* ) pItem )->GetValue(); > } > SetText( aTitle ); > >- // Eigenschaftenseiten >+ // Property Pages > AddTabPage(TP_DOCINFODESC, SfxDocumentDescPage::Create, 0); > AddTabPage(TP_DOCINFODOC, SfxDocumentPage::Create, 0); > AddTabPage(TP_CUSTOMPROPERTIES, SfxCustomPropertiesPage::Create, 0); >diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx >index da195fe..338b5db 100644 >--- a/sfx2/source/dialog/dockwin.cxx >+++ b/sfx2/source/dialog/dockwin.cxx >@@ -450,8 +450,8 @@ friend class SfxDockingWindow; > // BOOL bAutoHide; > Timer aMoveTimer; > >- // Folgende members sind nur in der Zeit von StartDocking bis EndDocking >- // g"ultig: >+ // The following members are only valid in the time from startDocking to >+ // EndDocking: > BOOL bEndDocked; > Size aSplitSize; > long nHorizontalSize; >@@ -478,12 +478,11 @@ friend class SfxDockingWindow; > > void SfxDockingWindow::Resize() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse DockingWindow merkt sich ggf. eine >- ver"anderte FloatingSize. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- auch SfxDockingWindow::Resize() gerufen werden. >+ This virtual method of the class FloatingWindow keeps track of changes in >+ FloatingSize. If this method is overridden by a derived class, >+ then the SfxFloatingWindow: Resize() must also be called. > */ > { > DockingWindow::Resize(); >@@ -529,13 +528,13 @@ void SfxDockingWindow::Resize() > > BOOL SfxDockingWindow::PrepareToggleFloatingMode() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse DockingWindow erm"oglicht ein Eingreifen >- in das Umschalten des floating mode. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- danach SfxDockingWindow::PrepareToggleFloatingMode() gerufen werden, >- wenn nicht FALSE zur"uckgegeben wird. >+ This virtual method of the class DockingWindow makes it possible to >+ intervene in the switching of the floating mode. >+ If this method is overridden by a derived class, >+ then the SfxDockingWindow::PrepareToggleFloatingMode() must be called >+ afterwards, if not FALSE is returned. > */ > > { >@@ -550,13 +549,13 @@ BOOL SfxDockingWindow::PrepareToggleFloatingMode() > > if (!IsFloatingMode()) > { >- // Testen, ob FloatingMode erlaubt ist >+ // Test, if FloatingMode is permitted. > if ( CheckAlignment(GetAlignment(),SFX_ALIGN_NOALIGNMENT) != SFX_ALIGN_NOALIGNMENT ) > return FALSE; > > if ( pImp->pSplitWin ) > { >- // Das DockingWindow sitzt in einem SplitWindow und wird abgerissen >+ // The DockingWindow is inside a SplitWindow and will be teared of. > pImp->pSplitWin->RemoveWindow(this/*, FALSE*/); > pImp->pSplitWin = 0; > } >@@ -565,11 +564,11 @@ BOOL SfxDockingWindow::PrepareToggleFloatingMode() > { > pImp->aWinState = GetFloatingWindow()->GetWindowState(); > >- // Testen, ob es erlaubt ist, anzudocken >+ // Test if it is allowed to dock, > if (CheckAlignment(GetAlignment(),pImp->GetLastAlignment()) == SFX_ALIGN_NOALIGNMENT) > return FALSE; > >- // Testen, ob das Workwindow gerade ein Andocken erlaubt >+ // Test, if the Workwindow allows for docking at the moment. > SfxWorkWindow *pWorkWin = pBindings->GetWorkWindow_Impl(); > if ( !pWorkWin->IsDockingAllowed() || !pWorkWin->IsInternalDockingAllowed() ) > return FALSE; >@@ -582,24 +581,22 @@ BOOL SfxDockingWindow::PrepareToggleFloatingMode() > > void SfxDockingWindow::ToggleFloatingMode() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse DockingWindow setzt die internen >- Daten des SfxDockingWindow und sorgt f"ur korrektes Alignment am >- parent window. >- Durch PrepareToggleFloatMode und Initialize ist sichergestellt, da\s >- pImp->GetLastAlignment() immer eine erlaubtes Alignment liefert. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- zuerst SfxDockingWindow::ToggleFloatingMode() gerufen werden. >+ This virtual method of the DockingWindow class sets the internal data of >+ the SfxDockingWindow and ensures the correct alignment on the parent window. >+ Through PrepareToggleFloatMode and Initialize it is ensured that >+ pImp-> GetLastAlignment() always delivers an allowed alignment. If this >+ method is overloaded from a derived class, then first the >+ SfxDockingWindow:: ToggleFloatingMode() must be called. > */ > { > if ( !pImp->bConstructed || !pMgr ) >- return; // Kein Handler-Aufruf >+ return; // No Handler call > >- // Altes Alignment merken und dann umschalten. >- // Sv hat jetzt schon umgeschaltet, aber Alignment am SfxDockingWindow >- // ist noch das alte! >- // Was war ich bisher ? >+ // Remember old alignment and then switch. >+ // SV has already switched, but the alignment SfxDockingWindow is still >+ // the old one. What I was before? > SfxChildAlignment eLastAlign = GetAlignment(); > > SfxWorkWindow *pWorkWin = pBindings->GetWorkWindow_Impl(); >@@ -616,8 +613,8 @@ void SfxDockingWindow::ToggleFloatingMode() > GetFloatingWindow()->SetOutputSizePixel( GetFloatingSize() ); > /* > if ( pImp->bSplitable && !pImp->bEndDocked ) >- // Wenn das Fenster vorher in einem SplitWindow lag, kommt von >- // Sv kein Show >+ // If the window was in a SplitWindow before, then no show will >+ // come from SV. > Show(); > */ > } >@@ -625,16 +622,17 @@ void SfxDockingWindow::ToggleFloatingMode() > { > if (pImp->GetDockAlignment() == eLastAlign) > { >- // Wenn ToggleFloatingMode aufgerufen wurde, das DockAlignment >- // aber noch unver"andert ist, mu\s das ein Toggeln durch DClick >- // gewesen sein, also LastAlignment verwenden >+ // If ToggleFloatingMode was called, but the DockAlignment still >+ // is unchanged, then this means that it must have been a toggling >+ // through DClick, so use last alignment > SetAlignment (pImp->GetLastAlignment()); > if ( !pImp->bSplitable ) > SetSizePixel( CalcDockingSize(GetAlignment()) ); > } > else > { >- // Toggeln wurde durch Draggen ausgel"ost >+ >+ // Toggling was triggered by dragging > pImp->nLine = pImp->nDockLine; > pImp->nPos = pImp->nDockPos; > SetAlignment (pImp->GetDockAlignment()); >@@ -642,13 +640,13 @@ void SfxDockingWindow::ToggleFloatingMode() > > if ( pImp->bSplitable ) > { >- // Das DockingWindow kommt jetzt in ein SplitWindow >+ // The DockingWindow is now in a SplitWindow > pImp->pSplitWin = pWorkWin->GetSplitWindow_Impl(GetAlignment()); > >- // Das LastAlignment ist jetzt immer noch das zuletzt angedockte >+ // The LastAlignment is still the last docked > SfxSplitWindow *pSplit = pWorkWin->GetSplitWindow_Impl(pImp->GetLastAlignment()); > >- DBG_ASSERT( pSplit, "LastAlignment kann nicht stimmen!" ); >+ DBG_ASSERT( pSplit, "LastAlignment is not correct!" ); > if ( pSplit && pSplit != pImp->pSplitWin ) > pSplit->ReleaseWindow_Impl(this); > if ( pImp->GetDockAlignment() == eLastAlign ) >@@ -660,14 +658,14 @@ void SfxDockingWindow::ToggleFloatingMode() > } > } > >- // altes Alignment festhalten f"ur n"achstes Togglen; erst jetzt setzen >- // wg. Abmelden beim SplitWindow! >+ // Keep the old alignment for the next toggle; set it only now due to the >+ // unregister SplitWindow! > pImp->SetLastAlignment(eLastAlign); > >- // DockAlignment zur"ucksetzen, falls noch EndDocking gerufen wird >+ // Reset DockAlignment, if EndDocking is still called > pImp->SetDockAlignment(GetAlignment()); > >- // SfxChildWindow korrekt andocken bzw. entdocken >+ // Dock or undock SfxChildWindow correctly. > if ( pMgr ) > pWorkWin->ConfigChild_Impl( eIdent, SFX_TOGGLEFLOATMODE, pMgr->GetType() ); > } >@@ -676,12 +674,12 @@ void SfxDockingWindow::ToggleFloatingMode() > > void SfxDockingWindow::StartDocking() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse DockingWindow holt vom parent window >- das innere und "au\sere docking rectangle. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- am Ende SfxDockingWindow::StartDocking() gerufen werden. >+ This virtual method of the DockingWindow class takes the inner and outer >+ docking rectangle from the parent window. If this method is overloaded by a >+ a derived class, then SfxDockingWindow:StartDocking() has to be called at >+ the end. > */ > { > if ( !pImp->bConstructed || !pMgr ) >@@ -695,7 +693,7 @@ void SfxDockingWindow::StartDocking() > > if ( pImp->pSplitWin ) > { >- // Die aktuellen Docking-Daten besorgen >+ // Get the current docking data > pImp->pSplitWin->GetWindowPos(this, pImp->nLine, pImp->nPos); > pImp->nDockLine = pImp->nLine; > pImp->nDockPos = pImp->nPos; >@@ -707,12 +705,12 @@ void SfxDockingWindow::StartDocking() > > BOOL SfxDockingWindow::Docking( const Point& rPos, Rectangle& rRect ) > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse DockingWindow berechnet das aktuelle >- tracking rectangle. Dazu benutzt sie die Methode CalcAlignment(rPos,rRect), >- deren Verhalten von abgeleiteten Klassen beeinflu\st werden kann (s.u.). >- Diese Methode sollte nach M"oglichkeit nicht "uberschrieben werden. >+ This virtual method of the DockingWindow class calculates the current >+ tracking rectangle. For this purpose the method CalcAlignment(RPOs, rRect) >+ is used, the behavior can be influenced by the derived classes (see below). >+ This method should if possible not be overwritten. > */ > { > if ( Application::IsInModalMode() ) >@@ -732,7 +730,7 @@ BOOL SfxDockingWindow::Docking( const Point& rPos, Rectangle& rRect ) > > if ( GetOuterRect().IsInside( rPos ) && !IsDockingPrevented() ) > { >- // Maus innerhalb OuterRect : Alignment und Rectangle berechnen >+ // Mouse within OuterRect: calculate Alignment and Rectangle > SfxChildAlignment eAlign = CalcAlignment(rPos, rRect); > if (eAlign == SFX_ALIGN_NOALIGNMENT) > bFloatMode = TRUE; >@@ -740,15 +738,15 @@ BOOL SfxDockingWindow::Docking( const Point& rPos, Rectangle& rRect ) > } > else > { >- // Maus nicht innerhalb OuterRect : muss FloatingWindow sein >- // Ist das erlaubt ? >+ // Mouse is not within OuterRect: must be FloatingWindow >+ // Is this allowed? > if (CheckAlignment(pImp->GetDockAlignment(),SFX_ALIGN_NOALIGNMENT) != SFX_ALIGN_NOALIGNMENT) > return FALSE; > bFloatMode = TRUE; > if ( SFX_ALIGN_NOALIGNMENT != pImp->GetDockAlignment() ) > { >- // wg. SV-Bug darf rRect nur ver"andert werden, wenn sich das >- // Alignment "andert ! >+ // Due to a bug the rRect may only be changed when the >+ // alignment is changed! > pImp->SetDockAlignment(SFX_ALIGN_NOALIGNMENT); > rRect.SetSize(CalcDockingSize(SFX_ALIGN_NOALIGNMENT)); > } >@@ -756,8 +754,8 @@ BOOL SfxDockingWindow::Docking( const Point& rPos, Rectangle& rRect ) > > if ( !pImp->bSplitable ) > { >- // Bei individuell angedocktem Window wird die Position durch das >- // Alignment und die docking rects festgelegt. >+ // For individually docked window the position is set through the >+ // alignment and the docking rectangle. > Size aSize = rRect.GetSize(); > Point aPos; > >@@ -810,12 +808,11 @@ BOOL SfxDockingWindow::Docking( const Point& rPos, Rectangle& rRect ) > > void SfxDockingWindow::EndDocking( const Rectangle& rRect, BOOL bFloatMode ) > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode der Klasse DockingWindow sorgt f"ur das korrekte >- Alignment am parent window. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- zuerst SfxDockingWindow::EndDocking() gerufen werden. >+ Virtual method of the DockingWindow class ensures the correct alignment on >+ the parent window. If this method is overloaded by a derived class, then >+ SfxDockingWindow::EndDocking() must be called first. > */ > { > if ( !pImp->bConstructed || IsDockingCanceled() || !pMgr ) >@@ -827,11 +824,10 @@ void SfxDockingWindow::EndDocking( const Rectangle& rRect, BOOL bFloatMode ) > if ( pImp->bSplitable ) > { > eIdent = SFX_CHILDWIN_SPLITWINDOW; >- >- // Wenn sich das Alignment "andert und das Fenster befindet sich >- // im angedockten Zustand in einem SplitWindow, mu\s umgemeldet werden >- // Wenn neu angedockt wird, machen PrepareToggleFloatingMode() >- // und ToggleFloatingMode() das Ummelden. >+ // If the alignment changes and the window is in a docked state in a >+ // SplitWindow, then it must be re-registered. If it is docked again, >+ // PrepareToggleFloatingMode() and ToggleFloatingMode() preform the >+ // re-registered > if ( !bFloatMode ) > bReArrange = TRUE; > } >@@ -840,12 +836,12 @@ void SfxDockingWindow::EndDocking( const Rectangle& rRect, BOOL bFloatMode ) > { > if ( GetAlignment() != pImp->GetDockAlignment() ) > { >- // Vor dem Show() mu\s das Ummelden passiert sein, daher kann nicht >- // die Basisklasse gerufen werden >+ // before Show() is called must the reassignment have been made, >+ // therefore the base class can not be called > if ( IsFloatingMode() || !pImp->bSplitable ) > Show( FALSE, SHOW_NOFOCUSCHANGE ); > >- // Die Gr"o\se f"urs Toggeln setzen >+ // Set the size for toggling. > pImp->aSplitSize = rRect.GetSize(); > if ( IsFloatingMode() ) > { >@@ -867,7 +863,7 @@ void SfxDockingWindow::EndDocking( const Rectangle& rRect, BOOL bFloatMode ) > } > else if ( pImp->nLine != pImp->nDockLine || pImp->nPos != pImp->nDockPos || pImp->bNewLine ) > { >- // Ich wurde innerhalb meines Splitwindows verschoben. >+ // Moved within Splitwindows > if ( pImp->nLine != pImp->nDockLine ) > pImp->aSplitSize = rRect.GetSize(); > pImp->pSplitWin->MoveWindow( this, pImp->aSplitSize, pImp->nDockLine, pImp->nDockPos, pImp->bNewLine ); >@@ -887,13 +883,12 @@ void SfxDockingWindow::EndDocking( const Rectangle& rRect, BOOL bFloatMode ) > > void SfxDockingWindow::Resizing( Size& /*rSize*/ ) > >-/* [Beschreibung] >+/* [Description] > >- Virtuelle Methode der Klasse DockingWindow. >- Hier kann das interaktive Umgr"o\sern im FloatingMode beeinflu\t werden, >- z.B. indem nur diskrete Werte f"ur Breite und/oder H"ohe zugelassen werden. >- Die Basisimplementation verhindert, da\s die OutputSize kleiner wird als >- eine mit SetMinOutputSizePixel() gesetzte Gr"o\se. >+ Virtual method of the DockingWindow class. Here, the interactive resize in >+ FloatingMode can be influenced, for example by only allowing for discrete >+ values for width and / or height. The base implementation prevents that the >+ output size is smaller than one set with SetMinOutputSizePixel(). > */ > > { >@@ -914,10 +909,10 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, > pMgr(pCW), > pImp(NULL) > >-/* [Beschreibung] >+/* [Description] > >- ctor der Klasse SfxDockingWindow. Es wird ein SfxChildWindow ben"otigt, >- da das Andocken im Sfx "uber SfxChildWindows realisiert wird. >+ Constructor for the SfxDockingWindow class. A SfxChildWindow will be >+ required because the docking is implemented in Sfx through SfxChildWindows. > */ > > { >@@ -936,7 +931,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, > pImp->bSplitable = TRUE; > // pImp->bAutoHide = FALSE; > >- // Zun"achst auf Defaults setzen; das Alignment wird in der Subklasse gesetzt >+ // Initially set to default, the alignment is set in the subclass > pImp->nLine = pImp->nDockLine = 0; > pImp->nPos = pImp->nDockPos = 0; > pImp->bNewLine = FALSE; >@@ -944,7 +939,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, > pImp->aMoveTimer.SetTimeout(50); > pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxDockingWindow,TimerHdl)); > >-// DBG_ASSERT(pMgr,"DockingWindow erfordert ein SfxChildWindow!"); >+// DBG_ASSERT(pMgr,"DockingWindow requires a SfxChildWindow!"); > } > > //------------------------------------------------------------------------- >@@ -956,10 +951,10 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, > pMgr(pCW), > pImp(NULL) > >-/* [Beschreibung] >+/* [Description] > >- ctor der Klasse SfxDockingWindow. Es wird ein SfxChildWindow ben"otigt, >- da das Andocken im Sfx "uber SfxChildWindows realisiert wird. >+ Constructor for the SfxDockingWindow class. A SfxChildWindow will be >+ required because the docking is implemented in Sfx through SfxChildWindows. > */ > > { >@@ -976,7 +971,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, > pImp->bSplitable = TRUE; > // pImp->bAutoHide = FALSE; > >- // Zun"achst auf Defaults setzen; das Alignment wird in der Subklasse gesetzt >+ // Initially set to default, the alignment is set in the subclass > pImp->nLine = pImp->nDockLine = 0; > pImp->nPos = pImp->nDockPos = 0; > pImp->bNewLine = FALSE; >@@ -984,18 +979,18 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, > pImp->aMoveTimer.SetTimeout(50); > pImp->aMoveTimer.SetTimeoutHdl(LINK(this,SfxDockingWindow,TimerHdl)); > >-// DBG_ASSERT(pMgr,"DockingWindow erfordert ein SfxChildWindow!"); >+// DBG_ASSERT(pMgr,"DockingWindow requires a SfxChildWindow!"); > } > > //------------------------------------------------------------------------- > > void SfxDockingWindow::Initialize(SfxChildWinInfo *pInfo) >-/* [Beschreibung] >+/* [Description] > >- Initialisierung der Klasse SfxDockingWindow "uber ein SfxChildWinInfo. >- Die Initialisierung erfolgt erst in einem 2.Schritt nach dem ctor und sollte >- vom ctor der abgeleiteten Klasse oder vom ctor des SfxChildWindows >- aufgerufen werden. >+ Initialization of the SfxDockingDialog class via a SfxChildWinInfo. >+ The initialization is done only in a 2nd step after the constructor, this >+ constructor should be called from the derived class or from the >+ SfxChildWindows. > */ > { > if ( !pMgr ) >@@ -1157,10 +1152,9 @@ void SfxDockingWindow::Initialize(SfxChildWinInfo *pInfo) > else > { > //?????? Currently not supported >- // Fenster ist individuell angedockt; Gr"o\se berechnen. >- // Dazu mu\s sie mit der FloatingSize initialisiert werden, falls >- // irgendwer sich darauf verl"a\st, da\s eine vern"unftige Gr"o\se >- // gesetzt ist >+ // Window is docked individually; size is calculated. >+ // It must therefore be initialized with the DloatingSize if >+ // someone relies on it that a reasonable size is set > SetSizePixel(GetFloatingSize()); > SetSizePixel(CalcDockingSize(GetAlignment())); > } >@@ -1226,16 +1220,13 @@ void SfxDockingWindow::Initialize_Impl() > > void SfxDockingWindow::FillInfo(SfxChildWinInfo& rInfo) const > >-/* [Beschreibung] >+/* [Description] > >- F"ullt ein SfxChildWinInfo mit f"ur SfxDockingWindow spezifischen Daten, >- damit sie in die INI-Datei geschrieben werden koennen. >- Es wird angenommen, da\s rInfo alle anderen evt. relevanten Daten in >- der ChildWindow-Klasse erh"alt. >- Eingetragen werden hier gemerkten Gr"o\sen, das ZoomIn-Flag und die >- f"ur das Docking relevanten Informationen. >- Wird diese Methode "uberschrieben, mu\s zuerst die Basisimplementierung >- gerufen werden. >+ Fills a SfxChildWinInfo with specific data from SfxDockingWindow, >+ so that it can be written in the INI file. It is assumed that rinfo >+ receives all other possible relevant data in the ChildWindow class. >+ Insertions are marked with size and the ZoomIn flag. >+ If this method is overridden, the base implementation must be called first. > */ > > { >@@ -1293,20 +1284,18 @@ void SfxDockingWindow::ReleaseChildWindow_Impl() > > SfxChildAlignment SfxDockingWindow::CalcAlignment(const Point& rPos, Rectangle& rRect) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode berechnet f"ur gegebene Mausposition und tracking rectangle, >- welches Alignment sich daraus ergeben w"urde. Beim Wechsel des Alignments >- kann sich auch das tracking rectangle "andern, so dass ein ver"andertes >- rectangle zur"uckgegeben wird. >+ This method calculates a resulting alignment for the given mouse position >+ and tracking rectangle. When changing the alignment it can also be that >+ the tracking rectangle is changed, so that an altered rectangle is >+ returned. The user of this class can influence behaviour of this method, >+ and thus the behavior of his DockinWindow class when docking where the >+ called virtual method: > >- Der Klassenbenutzer kann das Verhalten dieser Methode und damit das Verhalten >- seiner DockinWindow-Klasse beim Docken beeinflussen, indem er die hier >- aufgerufene virtuelle Methode >+ SfxDockingWindow :: CalcDockingSize (SfxChildAlignment eAlign) > >- SfxDockingWindow::CalcDockingSize(SfxChildAlignment eAlign) >- >- "uberschreibt (s.u.). >+ is overridden (see below). > */ > > { >@@ -1496,9 +1485,9 @@ SfxChildAlignment SfxDockingWindow::CalcAlignment(const Point& rPos, Rectangle& > > if ( eDockAlign == SFX_ALIGN_NOALIGNMENT ) > { >- //Im FloatingMode erh"alt das tracking rectangle die floating size >- // wg. SV-Bug darf rRect nur ver"andert werden, wenn sich das >- // Alignment "andert ! >+ // In the FloatingMode the tracking rectangle will get the floating >+ // size. Due to a bug the rRect may only be changed when the >+ // alignment is changed! > if ( eDockAlign != pImp->GetDockAlignment() ) > aDockingRect.SetSize( aFloatingSize ); > } >@@ -1663,25 +1652,22 @@ SfxChildAlignment SfxDockingWindow::CalcAlignment(const Point& rPos, Rectangle& > > Size SfxDockingWindow::CalcDockingSize(SfxChildAlignment eAlign) > >-/* [Beschreibung] >- >- Virtuelle Methode der Klasse SfxDockingWindow. >- Hier wird festgelegt, wie sich die Gr"o\se des DockingWindows abh"angig vom >- Alignment "andert. >- Die Basisimplementation setzt im Floating Mode die Gr"o\se auf die gemerkte >- Floating Size. >- Bei horizontalem Alignment wird die Breite auf die Breite des "au\seren >- DockingRects, bei vertikalem Alignment die H"ohe auf die H"ohe des inneren >- DockingRects (ergibt sich aus der Reihenfolge, in der im SFX ChildWindows >- ausgegeben werden). Die jeweils andere Gr"o\se wird auf die aktuelle >- Floating Size gesetzt, hier k"onnte eine abgeleitete Klasse "andernd >- eingreifen. >- Die DockingSize mu\s f"ur Left/Right und Top/Bottom jeweils gleich sein. >+/* [Description] >+ >+ Virtual method of the SfxDockingWindow class. This method determines how >+ the size of the DockingWindows changes depending on the alignment. The base >+ implementation uses the floating mode, the size of the marked Floating >+ Size. For horizontal alignment, the width will be the width of the outer >+ DockingRectangle, with vertical alignment the height will be the height of >+ the inner DockingRectangle (resulting from the order in which the SFX child >+ windows are displayed). The other size is set to the current floating-size, >+ this could changed by a to intervening derived class. The docking size must >+ be the same for Left/Right and Top/Bottom. > */ > > { >- // Achtung: falls das Resizing auch im angedockten Zustand geht, mu\s dabei >- // auch die Floating Size angepa\st werden !? >+ // Note: if the resizing is also possible in the docked state, then the >+ // Floating-size does also have to be adjusted? > > Size aSize = GetFloatingSize(); > switch (eAlign) >@@ -1716,11 +1702,11 @@ Size SfxDockingWindow::CalcDockingSize(SfxChildAlignment eAlign) > SfxChildAlignment SfxDockingWindow::CheckAlignment(SfxChildAlignment, > SfxChildAlignment eAlign) > >-/* [Beschreibung] >+/* [Description] > >- Virtuelle Methode der Klasse SfxDockingWindow. >- Hier kann eine abgeleitete Klasse bestimmte Alignments verbieten. >- Die Basisimplementation verbietet kein Alignment. >+ Virtual method of the SfxDockingWindow class. Here a derived class can >+ disallow certain alignments. The base implementation does not >+ prohibit alignment. > */ > > { >@@ -1731,18 +1717,15 @@ SfxChildAlignment SfxDockingWindow::CheckAlignment(SfxChildAlignment, > > BOOL SfxDockingWindow::Close() > >-/* [Beschreibung] >- >- Das Fenster wird geschlossen, indem das ChildWindow durch Ausf"uhren des >- ChildWindow-Slots zerst"ort wird. >- Wird diese Methode von einer abgeleiteten Klasse "uberschrieben, mu\s >- danach SfxDockingWindow::Close() gerufen werden, wenn nicht das Close() >- mit "return FALSE" abgebrochen wird. >+/* [Description] > >+ The window is closed when the ChildWindow is destroyed by running the >+ ChildWindow-slots. If this is method is overridden by a derived class >+ method, then the SfxDockingDialogWindow: Close() must be called afterwards >+ if the Close() was not cancelled with "return sal_False". > */ > { >- // Execute mit Parametern, da Toggle von einigen ChildWindows ignoriert >- // werden kann >+ // Execute with Parameters, since Toggle is ignored by some ChildWindows. > if ( !pMgr ) > return TRUE; > >@@ -1756,10 +1739,10 @@ BOOL SfxDockingWindow::Close() > > void SfxDockingWindow::Paint(const Rectangle& /*rRect*/) > >-/* [Beschreibung] >+/* [Description] > >- Es wird im angedockten Zustand eine Begrenzungslinie an der angedockten >- Kante und ein Rahmen ausgegeben. Dabei wird SVLOOK ber"ucksichtigt. >+ Returns a boundary line to the docked edge and a frame when the Window is in >+ a docked state. In this way SVLOOK is considered. > */ > > { >@@ -1809,10 +1792,10 @@ void SfxDockingWindow::Paint(const Rectangle& /*rRect*/) > > void SfxDockingWindow::SetMinOutputSizePixel( const Size& rSize ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode kann eine minimale OutpuSize gesetzt werden, die >- im Resizing()-Handler abgefragt wird. >+ With this method, a minimal OutputSize be can set, that is queried in >+ the Resizing()-Handler. > */ > > { >@@ -1824,9 +1807,9 @@ void SfxDockingWindow::SetMinOutputSizePixel( const Size& rSize ) > > Size SfxDockingWindow::GetMinOutputSizePixel() const > >-/* [Beschreibung] >+/* [Description] > >- Die gesetzte minimale Gr"o\se wird zur"uckgegeben. >+ Set the minimum size which is returned. > */ > > { >@@ -1857,17 +1840,16 @@ long SfxDockingWindow::Notify( NotifyEvent& rEvt ) > if ( nHelpId ) > SfxHelp::OpenHelpAgent( &pBindings->GetDispatcher_Impl()->GetFrame()->GetFrame(), nHelpId ); > >- // In VCL geht Notify zun"achst an das Fenster selbst, >- // also base class rufen, sonst erf"ahrt der parent nichts >- // if ( rEvt.GetWindow() == this ) PB: #i74693# not necessary any longer >+ // In VCL Notify goes first to the window itself, also call the >+ // base class, otherwise the parent learns nothing > DockingWindow::Notify( rEvt ); > return TRUE; > } > else if( rEvt.GetType() == EVENT_KEYINPUT ) > { >- // KeyInput zuerst f"ur Dialogfunktionen zulassen >+ // First, allow KeyInput for Dialog functions > if ( !DockingWindow::Notify( rEvt ) && SfxViewShell::Current() ) >- // dann auch global g"ultige Acceleratoren verwenden >+ // then also for valid global accelerators. > return SfxViewShell::Current()->GlobalKeyInput_Impl( *rEvt.GetKeyEvent() ); > return TRUE; > } >diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx >index bff3f05..b8972dd 100644 >--- a/sfx2/source/dialog/mailmodel.cxx >+++ b/sfx2/source/dialog/mailmodel.cxx >@@ -906,17 +906,16 @@ SfxMailModel::SendMailResult SfxMailModel::SaveAndSend( const css::uno::Referenc > > BOOL CreateFromAddress_Impl( String& rFrom ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Funktion versucht mit Hilfe des IniManagers eine From-Adresse >- zu erzeugen. daf"ur werden die Felder 'Vorname', 'Name' und 'EMail' >- aus der Applikations-Ini-Datei ausgelesen. Sollten diese Felder >- nicht gesetzt sein, wird FALSE zur"uckgegeben. >+ This function tries to create a From-address with the help of IniManagers. >+ For this the fields 'first name', 'Name' and 'Email' are read from the >+ application-ini-data. If these fields are not set, FALSE is returned. > >- [R"uckgabewert] >+ [Return value] > >- TRUE: Adresse konnte erzeugt werden. >- FALSE: Adresse konnte nicht erzeugt werden. >+ TRUE: Address could be created. >+ FALSE: Address could not be created. > */ > > { >@@ -933,14 +932,14 @@ BOOL CreateFromAddress_Impl( String& rFrom ) > rFrom += ' '; > } > rFrom += TRIM( aName ); >- // unerlaubte Zeichen entfernen >+ // remove illegal characters > rFrom.EraseAllChars( '<' ); > rFrom.EraseAllChars( '>' ); > rFrom.EraseAllChars( '@' ); > } > String aEmailName = aUserCFG.GetEmail(); > >- // unerlaubte Zeichen entfernen >+ // remove illegal characters > aEmailName.EraseAllChars( '<' ); > aEmailName.EraseAllChars( '>' ); > >diff --git a/sfx2/source/dialog/mailmodelapi.cxx b/sfx2/source/dialog/mailmodelapi.cxx >index c786234..3c17fc6 100644 >--- a/sfx2/source/dialog/mailmodelapi.cxx >+++ b/sfx2/source/dialog/mailmodelapi.cxx >@@ -99,17 +99,17 @@ namespace > > BOOL CreateFromAddress_Impl( String& rFrom ) > >- /* [Beschreibung] >+ /* [Description] > >- Diese Funktion versucht mit Hilfe des IniManagers eine From-Adresse >- zu erzeugen. daf"ur werden die Felder 'Vorname', 'Name' und 'EMail' >- aus der Applikations-Ini-Datei ausgelesen. Sollten diese Felder >- nicht gesetzt sein, wird FALSE zur"uckgegeben. >+ This function tries to create a From-address with the help of >+ IniManagers. For this the fields 'first name', 'Name' and 'Email' are >+ read from the application-ini-data. If these fields are not set, >+ FALSE is returned. > >- [R"uckgabewert] >+ [Return value] > >- TRUE: Adresse konnte erzeugt werden. >- FALSE: Adresse konnte nicht erzeugt werden. >+ TRUE: Address could be created. >+ FALSE: Address could not be created. > */ > > { >@@ -126,13 +126,13 @@ namespace > rFrom += ' '; > } > rFrom += TRIM( aName ); >- // unerlaubte Zeichen entfernen >+ // remove illegal characters > rFrom.EraseAllChars( '<' ); > rFrom.EraseAllChars( '>' ); > rFrom.EraseAllChars( '@' ); > } > String aEmailName = aUserCFG.GetEmail(); >- // unerlaubte Zeichen entfernen >+ // remove illegal characters > aEmailName.EraseAllChars( '<' ); > aEmailName.EraseAllChars( '>' ); > >@@ -259,7 +259,7 @@ namespace > } > catch ( Exception& ) > { >- DBG_ERRORFILE( "SfxHelp::GetHelpModuleName_Impl(): exception of XModuleManager::identif y()" ); >+ DBG_ERRORFILE( "SfxHelp::GetHelpModuleName_Impl(): exception of XModuleManager::identify()" ); > } > } > >diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx >index 56bf5c6..b2c79b9 100644 >--- a/sfx2/source/dialog/mgetempl.cxx >+++ b/sfx2/source/dialog/mgetempl.cxx >@@ -84,10 +84,9 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > aParent ( pStyle->GetParent() ), > nFlags ( pStyle->GetMask() ) > >-/* [Beschreibung] >- >- Konstruktor; initialisiert die ListBoxen mit den Vorlagen >+/* [Description] > >+ Constructor, initializes the list box with the templates > */ > > { >@@ -102,11 +101,11 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > aDescED.Hide(); > aDescFt.Show(); > >- // diese Page braucht ExchangeSupport >+ // this Page needs ExchangeSupport > SetExchangeSupport(); > > ResMgr* pResMgr = SFX_APP()->GetModule_Impl()->GetResMgr(); >- DBG_ASSERT( pResMgr, "kein ResMgr am Modul" ); >+ DBG_ASSERT( pResMgr, "No ResMgr on Modul" ); > pFamilies = new SfxStyleFamilies( ResId( DLG_STYLE_DESIGNER, *pResMgr ) ); > > SfxStyleSheetBasePool* pPool = 0; >@@ -114,17 +113,17 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > > if ( pDocShell ) > pPool = pDocShell->GetStyleSheetPool(); >- DBG_ASSERT( pPool, "kein Pool oder keine DocShell" ); >+ DBG_ASSERT( pPool, "no Pool or no DocShell" ); > > if ( pPool ) > { > pPool->SetSearchMask( pStyle->GetFamily() ); >- pPool->First(); // fuer SW - interne Liste updaten >+ pPool->First(); // for SW - update internal list > } > > if ( !pStyle->GetName().Len() && pPool ) > { >- // NullString als Name -> Name generieren >+ // NullString as Name -> generate Name > String aNoName( SfxResId( STR_NONAME ) ); > USHORT nNo = 1; > String aNo( aNoName ); >@@ -155,7 +154,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > pPoolStyle = pPool->Next(); > } > >- // eine neue Vorlage ist noch nicht im Pool >+ // A new Template is not jet in the Pool > if ( LISTBOX_ENTRY_NOTFOUND == aFollowLb.GetEntryPos( pStyle->GetName() ) ) > aFollowLb.InsertEntry( pStyle->GetName() ); > } >@@ -174,7 +173,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > if ( pStyle->HasParentSupport() && pPool ) > { > if ( pStyle->HasClearParentSupport() ) >- // die Basisvorlage darf auf NULL gesetzt werden >+ // the base template can be set to NULL > aBaseLb.InsertEntry( String( SfxResId( STR_NONE ) ) ); > > SfxStyleSheetBase* pPoolStyle = pPool->First(); >@@ -182,7 +181,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > while ( pPoolStyle ) > { > const String aStr( pPoolStyle->GetName() ); >- // eigener Namen nicht als Basisvorlage >+ // own name as base template > if ( aStr != aName ) > aBaseLb.InsertEntry( aStr ); > pPoolStyle = pPool->Next(); >@@ -213,7 +212,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > USHORT nIdx = 0; > USHORT nMask = pStyle->GetMask() & ~SFXSTYLEBIT_USERDEF; > >- if ( !nMask ) // Benutzervorlage? >+ if ( !nMask ) // User Template? > nMask = pStyle->GetMask(); > > for ( i = 0; i < nCount; ++i ) >@@ -254,7 +253,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > aNameEd.SetLoseFocusHdl( > LINK( this, SfxManageStyleSheetPage, LoseFocusHdl ) ); > } >- // ist es ein Style mit automatischem Update? (nur SW) >+ // It is a style with auto update? (SW only) > if(SFX_ITEM_SET == rAttrSet.GetItemState(SID_ATTR_AUTO_STYLE_UPDATE)) > { > Size aSize = aNameEd.GetSizePixel(); >@@ -268,9 +267,9 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem > > SfxManageStyleSheetPage::~SfxManageStyleSheetPage() > >-/* [Beschreibung] >+/* [Description] > >- Destruktor; Freigabe der Daten >+ Destructor, release of the data > > */ > >@@ -288,23 +287,21 @@ SfxManageStyleSheetPage::~SfxManageStyleSheetPage() > void SfxManageStyleSheetPage::UpdateName_Impl( ListBox* pBox, > const String& rNew ) > >-/* [Beschreibung] >+/* [Description] > >- Nach der "Anderung eines Vorlagennamens die ListBox pBox >- aktualisieren >+ After the change of a template name update the ListBox pBox > > [Parameter] > >- ListBox* pBox ListBox, deren Eintr"age aktualisiert >- werden sollen >- const String& rNew der neue Name >+ ListBox* pBox ListBox, whose entries are to be updated >+ const String& rNew the new Name > > */ > > { > if ( pBox->IsEnabled() ) > { >- // ist der aktuelle Eintrag, dessen Namen modifizieren wurde >+ // it is the current entry, which name was modified > const BOOL bSelect = pBox->GetSelectEntry() == aBuf; > pBox->RemoveEntry( aBuf ); > pBox->InsertEntry( rNew ); >@@ -318,9 +315,9 @@ void SfxManageStyleSheetPage::UpdateName_Impl( ListBox* pBox, > > void SfxManageStyleSheetPage::SetDescriptionText_Impl() > >-/* [Beschreibung] >+/* [Description] > >- Attributbeschreibung setzen. daf"ur die eingestellte Metrik besorgen. >+ Set attribute description. Get the set metric for this. > */ > > { >@@ -360,10 +357,9 @@ void SfxManageStyleSheetPage::SetDescriptionText_Impl() > > IMPL_LINK_INLINE_START( SfxManageStyleSheetPage, GetFocusHdl, Edit *, pEdit ) > >-/* [Beschreibung] >- >- StarView Handler; GetFocus-Handler des Edits mit dem Vorlagennamen. >+/* [Description] > >+ StarView Handler; GetFocus-Handler of the Edits with the template name. > */ > > { >@@ -376,19 +372,17 @@ IMPL_LINK_INLINE_END( SfxManageStyleSheetPage, GetFocusHdl, Edit *, pEdit ) > > IMPL_LINK_INLINE_START( SfxManageStyleSheetPage, LoseFocusHdl, Edit *, pEdit ) > >-/* [Beschreibung] >- >- StarView Handler; LoseFocus-Handler des Edits mit dem Vorlagennamen. >- Dieser aktualisiert ggf. die Listbox mit den Folgevorlagen. >- In der Listbox mit den Basisvorlagen ist die aktuelle Vorlage >- selbst nicht enthalten. >+/* [Description] > >+ StarView Handler; loose-focus-handler of the edits of the template name. >+ This will update the listbox with the subsequent templates. The current >+ template itself is not returned in the listbox of the base templates. > */ > > { > const String aStr( pEdit->GetText().EraseLeadingChars() ); > pEdit->SetText( aStr ); >- // ggf. Listbox der Basisvorlagen aktualisieren >+ // Update the Listbox of the base template if possible > if ( aStr != aBuf ) > UpdateName_Impl( &aFollowLb, aStr ); > return 0; >@@ -399,42 +393,37 @@ IMPL_LINK_INLINE_END( SfxManageStyleSheetPage, LoseFocusHdl, Edit *, pEdit ) > > BOOL SfxManageStyleSheetPage::FillItemSet( SfxItemSet& rSet ) > >-/* [Beschreibung] >- >+/* [Description] > >- Handler f"ur das Setzen der (modifizierten) Daten. Wird aus >- dem Ok des SfxTabDialog gerufen. >+ Handler for setting the (modified) data. I called from the OK of the >+ SfxTabDialog. > > [Parameter] > >- SfxItemSet &rAttrSet das Set, das die Daten entgegennimmt. >+ SfxItemSet &rAttrSet The set, which receives the data. > >+ [Return value] > >- [R"uckgabewert] >+ BOOL TRUE: The data had been changed >+ FALSE: The data had not been changed > >- BOOL TRUE: es hat eine "Anderung der Daten >- stattgefunden >- FALSE: es hat keine "Anderung der Daten >- stattgefunden >- >- [Querverweise] >+ [Cross-reference] > > <class SfxTabDialog> >- > */ > > { > const USHORT nFilterIdx = aFilterLb.GetSelectEntryPos(); > >- // Filter setzen >+ // Set Filter > > if ( LISTBOX_ENTRY_NOTFOUND != nFilterIdx && > nFilterIdx != aFilterLb.GetSavedValue() && > aFilterLb.IsEnabled() ) > { > bModified = TRUE; >- DBG_ASSERT( pItem, "kein Item" ); >- // geht nur bei Benutzervorlagen >+ DBG_ASSERT( pItem, "No Item" ); >+ // is only possibly for user templates > #if OSL_DEBUG_LEVEL > 1 > USHORT nIdx = (USHORT)(long)aFilterLb.GetEntryData( nFilterIdx ); > SfxFilterTupel* p = pItem->GetFilterList()[ nIdx ]; >@@ -455,20 +444,17 @@ BOOL SfxManageStyleSheetPage::FillItemSet( SfxItemSet& rSet ) > > void SfxManageStyleSheetPage::Reset( const SfxItemSet& /*rAttrSet*/ ) > >-/* [Beschreibung] >- >+/* [Description] > >- Handler f"ur das Initialisieren der Seite mit den initialen Daten. >+ Handler to initialize the page with the initial data. > > [Parameter] > >- const SfxItemSet &rAttrSet das Set mit den Daten >+ const SfxItemSet &rAttrSet The data set > >- >- [Querverweise] >+ [Cross-reference] > > <class SfxTabDialog> >- > */ > > { >@@ -506,7 +492,7 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet& /*rAttrSet*/ ) > > if ( String( SfxResId( STR_STANDARD ) ) == aName ) > { >- // die Standardvorlage kann nicht verkn"upft werden >+ // the default template can not be linked > aBaseFt.Disable(); > aBaseLb.Disable(); > } >@@ -527,15 +513,13 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet& /*rAttrSet*/ ) > SfxTabPage* SfxManageStyleSheetPage::Create( Window* pParent, > const SfxItemSet &rAttrSet ) > >-/* [Beschreibung] >+/* [Description] > >+ Factory for the creation of the page. > >- Factory f"ur das Erzeugen der Seite >- >- [Querverweise] >+ [Cross-reference] > > <class SfxTabDialog> >- > */ > > { >@@ -546,27 +530,25 @@ SfxTabPage* SfxManageStyleSheetPage::Create( Window* pParent, > > void SfxManageStyleSheetPage::ActivatePage( const SfxItemSet& rSet) > >-/* [Beschreibung] >+/* [Description] > >- ActivatePage- Handler des SfxTabDialog; wird f"ur die Aktualisierung >- des beschreibenden Textes verwendet, da sich dieser durch "Anderungen >- der Daten anderer Seiten ge"andert haben kann. >+ ActivatePage handler of SfxTabDialog, is used for the the update of the >+ descriptive text, since this might have changed through changes of data on >+ other pages. > > [Parameter] > >- const SfxItemSet& das Set f"ur den Datenaustausch; wird >- hier nicht verwendet. >+ const SfxItemSet& the set for the exchange of data; is not used here. > >- [Querverweise] >+ [Cross-reference] > > <SfxTabDialog::ActivatePage(const SfxItemSet &)> >- > */ > > { > SetDescriptionText_Impl(); > >- // ist es ein Style mit automatischem Update? (nur SW) >+ // It is a style with auto update? (SW only) > const SfxPoolItem* pPoolItem; > > if ( SFX_ITEM_SET == >@@ -579,21 +561,18 @@ void SfxManageStyleSheetPage::ActivatePage( const SfxItemSet& rSet) > > int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet ) > >-/* [Beschreibung] >- >- DeactivatePage- Handler des SfxTabDialog; die Daten werden >- an der Vorlage eingestellt, damit die richtige Vererbung >- f"ur die anderen Seiten des Dialoges vorliegt. >- Im Fehlerfall wird das Verlassen der Seite unterbunden. >+/* [Description] > >+ DeactivatePage-handler of SfxTabDialog; data is set on the template, so >+ that the correct inheritance on the other pages of the dialog is made. >+ If an error occurs, leaving the page is prevented. > [Parameter] > >- SfxItemSet* das Set f"ur den Datenaustausch; wird hier nicht verwendet. >+ SfxItemSet* the set for the exchange of data; is not used here. > >- [Querverweise] >+ [Cross-reference] > > <SfxTabDialog::DeactivatePage(SfxItemSet*)> >- > */ > > { >@@ -601,7 +580,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet ) > > if ( aNameEd.IsModified() ) > { >- // bei <Enter> wird kein LoseFocus() durch StarView ausgel"ost >+ // By pressing <Enter> LoseFocus() is not trigged through StarView > if ( aNameEd.HasFocus() ) > LoseFocusHdl( &aNameEd ); > >diff --git a/sfx2/source/dialog/navigat.cxx b/sfx2/source/dialog/navigat.cxx >index c8f6174..6349097 100644 >--- a/sfx2/source/dialog/navigat.cxx >+++ b/sfx2/source/dialog/navigat.cxx >@@ -81,7 +81,7 @@ void SfxNavigator::Resizing( Size &rSize ) > SfxDockingWindow::Resizing( rSize ); > > SfxChildWindowContext *pCon = GetChildWindow_Impl()->GetContext_Impl(); >- DBG_ASSERT( pCon, "Kein Context!" ); >+ DBG_ASSERT( pCon, "No Context!" ); > if ( pCon ) > pCon->Resizing( rSize ); > } >@@ -89,7 +89,7 @@ void SfxNavigator::Resizing( Size &rSize ) > BOOL SfxNavigator::Close() > { > SfxChildWindowContext *pCon = GetChildWindow_Impl()->GetContext_Impl(); >- DBG_ASSERT( pCon, "Kein Context!" ); >+ DBG_ASSERT( pCon, "No Context!" ); > if ( !pCon || pCon->Close() ) > return SfxDockingWindow::Close(); > else >diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx >index a38141a..68564f1 100644 >--- a/sfx2/source/dialog/partwnd.cxx >+++ b/sfx2/source/dialog/partwnd.cxx >@@ -71,7 +71,7 @@ SfxPartChildWnd_Impl::SfxPartChildWnd_Impl > ) > : SfxChildWindow( pParentWnd, nId ) > { >- // Window erzeugen >+ // Create Window > pWindow = new SfxPartDockWnd_Impl( pBindings, this, pParentWnd, WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK ); > eChildAlignment = SFX_ALIGN_TOP; > if ( pInfo ) >@@ -201,8 +201,9 @@ Rectangle impl_Rectangle_Struct2Object( const ::com::sun::star::awt::Rectangle& > > void SfxPartDockWnd_Impl::Resize() > >-/* [Beschreibung] >- Anpassung der Gr"osse der Controls an die neue Windowgr"osse >+/* [Description] >+ >+ Adjusting the size of the controls wrt the new window size > */ > > { >diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx >index 4cf18e2..dab8e14 100644 >--- a/sfx2/source/dialog/splitwin.cxx >+++ b/sfx2/source/dialog/splitwin.cxx >@@ -62,9 +62,9 @@ using namespace ::rtl; > struct SfxDock_Impl > { > USHORT nType; >- SfxDockingWindow* pWin; // SplitWindow hat dieses Fenster >+ SfxDockingWindow* pWin; // SplitWindow has this window > BOOL bNewLine; >- BOOL bHide; // SplitWindow hatte dieses Fenster >+ BOOL bHide; // SplitWindow had this window > long nSize; > }; > >@@ -74,11 +74,11 @@ SV_IMPL_PTRARR( SfxDockArr_Impl, SfxDockPtr); > > class SfxEmptySplitWin_Impl : public SplitWindow > { >-/* [Beschreibung] >+/* [Description] > >- Das SfxEmptySplitWin_Impldow ist ein leeres SplitWindow, das das SfxSplitWindow >- im AutoHide-Modus ersetzt. Es dient nur als Platzhalter, um MouseMoves >- zu empfangen und ggf. das eigentlichte SplitWindow einzublenden >+ The SfxEmptySplitWin_Impldow is an empty SplitWindow, that replaces the >+ SfxSplitWindow AutoHide mode. It only serves as a placeholder to receive >+ mouse moves and if possible blend in the true SplitWindow display. > */ > friend class SfxSplitWindow; > >@@ -155,9 +155,9 @@ void SfxEmptySplitWin_Impl::FadeIn() > pOwner->Show_Impl(); > if ( bAutoHide ) > { >- // Timer zum Schlie\sen aufsetzen; der Aufrufer mu\s selbst sicherstellen, >- // da\s das Window nicht gleich wieder zu geht ( z.B. durch Setzen des >- // Focus oder einen modal mode ) >+ // Set Timer to close; the caller has to ensure themselves that the >+ // Window is not closed instantly (eg by setting the focus or a modal >+ // mode. > aLastPos = GetPointerPosPixel(); > aTimer.Start(); > } >@@ -183,12 +183,12 @@ void SfxEmptySplitWin_Impl::MouseMove( const MouseEvent& rMEvt ) > SfxSplitWindow::SfxSplitWindow( Window* pParent, SfxChildAlignment eAl, > SfxWorkWindow *pW, BOOL bWithButtons, WinBits nBits ) > >-/* [Beschreibung] >+/* [Description] > >- Ein SfxSplitWindow verbirgt die rekursive Struktur des SV-Splitwindows >- nach au\sen, indem es einen tabellenartigen Aufbau mit Zeilen und Spalten >- ( also maximale Rekursionstiefe 2 ) simuliert. >- Au\erdem sichert es die Persistenz der Anordnung der SfxDockingWindows. >+ A SfxSplitWindow brings the recursive structure of the SV-SplitWindows to >+ the outside by simulating a table-like structure with rows and columns >+ (maximum recursion depth 2). Furthermore, it ensures the persistence of >+ the arrangement of the SfxDockingWindows. > */ > > : SplitWindow ( pParent, nBits | WB_HIDE ), >@@ -206,7 +206,7 @@ SfxSplitWindow::SfxSplitWindow( Window* pParent, SfxChildAlignment eAl, > ShowFadeOutButton( TRUE ); > } > >- // SV-Alignment setzen >+ // Set SV-Alignment > WindowAlign eTbxAlign; > switch ( eAlign ) > { >@@ -238,7 +238,7 @@ SfxSplitWindow::SfxSplitWindow( Window* pParent, SfxChildAlignment eAl, > > if ( bWithButtons ) > { >- // Konfiguration einlesen >+ // Read Configuration > String aWindowId = String::CreateFromAscii("SplitWindow"); > aWindowId += String::CreateFromInt32( (sal_Int32) eTbxAlign ); > SvtViewOptions aWinOpt( E_WINDOW, aWindowId ); >@@ -266,11 +266,11 @@ SfxSplitWindow::SfxSplitWindow( Window* pParent, SfxChildAlignment eAl, > pDock->nType = (USHORT) aWinData.GetToken(i++, ',').ToInt32(); > if ( !pDock->nType ) > { >- // K"onnte NewLine bedeuten >+ // could mean NewLine > pDock->nType = (USHORT) aWinData.GetToken(i++, ',').ToInt32(); > if ( !pDock->nType ) > { >- // Lesefehler >+ // Read error > delete pDock; > break; > } >@@ -302,9 +302,8 @@ SfxSplitWindow::~SfxSplitWindow() > > if ( pEmptyWin ) > { >- // pOwner auf NULL setzen, sonst versucht pEmptyWin, nochmal zu >- // l"oschen; es wird n"amlich von au\sen immer das Fenster deleted, >- // das gerade angedockt ist >+ // Set pOwner to NULL, otherwise try to delete pEmptyWin once more. The >+ // window that is just beeing docked is always deleted from the outside. > pEmptyWin->pOwner = NULL; > delete pEmptyWin; > } >@@ -314,7 +313,7 @@ SfxSplitWindow::~SfxSplitWindow() > > void SfxSplitWindow::SaveConfig_Impl() > { >- // Konfiguration abspeichern >+ // Save configuration > String aWinData('V'); > aWinData += String::CreateFromInt32( VERSION ); > aWinData += ','; >@@ -433,15 +432,14 @@ void SfxSplitWindow::Split() > > void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize) > >-/* [Beschreibung] >- >- Zum Einf"ugen von SfxDockingWindows kann auch keine Position "ubergeben >- werden. Das SfxSplitWindow sucht dann die zuletzt gemerkte zu dem >- "ubergebenen SfxDockingWindow heraus oder h"angt es als letztes neu an. >+/* [Description] > >+ To insert SfxDockingWindows can no position be passed. The SfxSplitWindow >+ searches the last marked one to the passed SfxDockingWindow or appends a >+ new one at the end. > */ > { >- short nLine = -1; // damit erstes Fenster nLine auf 0 hochsetzen kann >+ short nLine = -1; // so that the first window cab set nline to 0 > USHORT nL; > USHORT nPos = 0; > BOOL bNewLine = TRUE; >@@ -453,33 +451,33 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > SfxDock_Impl *pDock = (*pDockArr)[n]; > if ( pDock->bNewLine ) > { >- // Das Fenster er"offnet eine neue Zeile >+ // The window opens a new line > if ( pFoundDock ) >- // Aber hinter dem gerade eingef"ugten Fenster >+ // But after the just inserted window > break; > >- // Neue Zeile >+ // New line > nPos = 0; > bNewLine = TRUE; > } > > if ( pDock->pWin ) > { >- // Es gibt an dieser Stelle gerade ein Fenster >+ // Does there exist a window now at this position > if ( bNewLine && !pFoundDock ) > { >- // Bisher ist nicht bekannt, in welcher realen Zeile es liegt >+ // Not known until now in which real line it is located > GetWindowPos( pDock->pWin, nL, nPos ); > nLine = (short) nL; > } > > if ( !pFoundDock ) > { >- // Fenster liegt vor dem eingef"ugten >+ // The window is located before the inserted one > nPos++; > } > >- // Zeile ist schon er"offnet >+ // Line is opened > bNewLine = FALSE; > if ( pFoundDock ) > break; >@@ -487,16 +485,16 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > > if ( pDock->nType == pDockWin->GetType() ) > { >- DBG_ASSERT( !pFoundDock && !pDock->pWin, "Fenster ist schon vorhanden!"); >+ DBG_ASSERT( !pFoundDock && !pDock->pWin, "Window does already exist!"); > pFoundDock = pDock; > if ( !bNewLine ) > break; > else > { >- // Es wurde zuletzt eine neue Reihe gestartet, aber noch kein >- // darin liegendes Fenster gefunden; daher weitersuchen, ob noch >- // ein Fenster in dieser Zeile folgt, um bNewLine korrekt zu setzen. >- // Dabei darf aber nLine oder nPos nicht mehr ver"andert werden! >+ // A new line has been created but no window was fond there; >+ // continue searching for a window in this line in-order to set >+ // bNewLine correctly. While doing so nline or nPos are not >+ // to be changed! > nLine++; > } > } >@@ -504,7 +502,7 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > > if ( !pFoundDock ) > { >- // Nicht gefunden, am Ende einf"ugen >+ // Not found, insert at end > pFoundDock = new SfxDock_Impl; > pFoundDock->bHide = TRUE; > pDockArr->Insert( pFoundDock, nCount ); >@@ -527,9 +525,9 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > > void SfxSplitWindow::ReleaseWindow_Impl(SfxDockingWindow *pDockWin, BOOL bSave) > >-/* [Beschreibung] >+/* [Description] > >- Das DockingWindow wird nicht mehr in den internen Daten gespeichert. >+ The docking window is no longer stored in the internal data. > */ > > { >@@ -544,7 +542,7 @@ void SfxSplitWindow::ReleaseWindow_Impl(SfxDockingWindow *pDockWin, BOOL bSave) > if ( pDock->bNewLine && n<nCount-1 ) > (*pDockArr)[n+1]->bNewLine = TRUE; > >- // Fenster hat schon eine Position, die vergessen wir >+ // Window has a position, this we forget > bFound = TRUE; > pDockArr->Remove(n); > break; >@@ -563,10 +561,9 @@ void SfxSplitWindow::ReleaseWindow_Impl(SfxDockingWindow *pDockWin, BOOL bSave) > void SfxSplitWindow::MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize, > USHORT nLine, USHORT nPos, BOOL bNewLine) > >-/* [Beschreibung] >- >- Das DockingWindow wird innerhalb des Splitwindows verschoben. >+/* [Description] > >+ The docking window is moved within the SplitWindows. > */ > > { >@@ -575,8 +572,8 @@ void SfxSplitWindow::MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize, > > if ( nLine > nL && GetItemCount( GetItemId( nL, 0 ) ) == 1 ) > { >- // Wenn das letzte Fenster aus seiner Zeile entfernt wird, rutscht >- // alles eine Zeile nach vorne! >+ // If the last window is removed from its line, then everything slips >+ // one line to the front! > nLine--; > } > /* >@@ -594,11 +591,10 @@ void SfxSplitWindow::MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize, > void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize, > USHORT nLine, USHORT nPos, BOOL bNewLine) > >-/* [Beschreibung] >- >- Das DockingWindow wird in dieses Splitwindow geschoben und soll die >- "ubergebene Position und Gr"o\se haben. >+/* [Description] > >+ The DockingWindow that is pushed on this SplitWindow and shall hold the >+ given position and size. > */ > { > ReleaseWindow_Impl( pDockWin, FALSE ); >@@ -608,16 +604,16 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > pDock->bNewLine = bNewLine; > pDock->pWin = pDockWin; > >- DBG_ASSERT( nPos==0 || !bNewLine, "Falsche Paramenter!"); >+ DBG_ASSERT( nPos==0 || !bNewLine, "Wrong Paramenter!"); > if ( bNewLine ) > nPos = 0; > >- // Das Fenster mu\s vor dem ersten Fenster eingef"ugt werden, das die >- // gleiche oder eine gr"o\sere Position hat als pDockWin. >+ // The window must be inserted before the first window so that it has the >+ // same or a greater position than pDockWin. > USHORT nCount = pDockArr->Count(); > USHORT nLastWindowIdx(0); > >- // Wenn gar kein Fenster gefunden wird, wird als erstes eingef"ugt >+ // If no window is found, a first window is inserted > USHORT nInsertPos = 0; > for ( USHORT n=0; n<nCount; n++ ) > { >@@ -625,9 +621,9 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > > if (pD->pWin) > { >- // Ein angedocktes Fenster wurde gefunden >- // Wenn kein geeignetes Fenster hinter der gew"unschten Einf"ugeposition >- // gefunden wird, wird am Ende eingef"ugt >+ // A docked window has been found. If no suitable window behind the >+ // the desired insertion point s found, then insertion is done at >+ // the end. > nInsertPos = nCount; > nLastWindowIdx = n; > USHORT nL=0, nP=0; >@@ -635,12 +631,12 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize > > if ( (nL == nLine && nP == nPos) || nL > nLine ) > { >- DBG_ASSERT( nL == nLine || bNewLine || nPos > 0, "Falsche Parameter!" ); >+ DBG_ASSERT( nL == nLine || bNewLine || nPos > 0, "Wrong Parameter!" ); > if ( nL == nLine && nPos == 0 && !bNewLine ) > { >- DBG_ASSERT(pD->bNewLine, "Keine neue Zeile?"); >+ DBG_ASSERT(pD->bNewLine, "No new line?"); > >- // Das Fenster wird auf nPos==0 eingeschoben >+ // The posption is pushed to nPos==0 > pD->bNewLine = FALSE; > pDock->bNewLine = TRUE; > } >@@ -666,10 +662,10 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, > const Size& rSize, > USHORT nLine, USHORT nPos, BOOL bNewLine) > >-/* [Beschreibung] >+/* [Description] > >- F"ugt ein DockingWindow ein und veranla\st die Neuberechnung der Gr"o\se >- des Splitwindows. >+ Adds a DockingWindow, and causes the recalculation of the size of >+ the SplitWindows. > */ > > { >@@ -697,8 +693,8 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, > > if ( bNewLine || nLine == GetItemCount( 0 ) ) > { >- // Es soll nicht in eine vorhandene Zeile eingef"ugt werden, sondern >- // eine neue erzeugt werden >+ // An existing row should not be inserted, instead a new one >+ // will be created > > USHORT nId = 1; > for ( USHORT n=0; n<GetItemCount(0); n++ ) >@@ -707,28 +703,28 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, > nId = GetItemId(n)+1; > } > >- // Eine neue nLine-te Zeile erzeugen >+ // Create a new nLine:th line > USHORT nBits = nItemBits; > if ( GetAlign() == WINDOWALIGN_TOP || GetAlign() == WINDOWALIGN_BOTTOM ) > nBits |= SWIB_COLSET; > InsertItem( nId, nSetSize, nLine, 0, nBits ); > } > >- // In Zeile mit Position nLine das Fenster einf"ugen >- // ItemWindowSize auf "Prozentual" setzen, da SV dann das Umgr"o\sern >- // so macht, wie man erwartet; "Pixel" macht eigentlich nur Sinn, wenn >- // auch Items mit prozentualen oder relativen Gr"o\sen dabei sind. >+ // Insert the window at line with the position nline. ItemWindowSize set to >+ // "percentage" share since the SV then does the re-sizing as expected, >+ // "pixel" actually only makes sense if also items with percentage or >+ // relative sizes are present. > nItemBits |= SWIB_PERCENTSIZE; > bLocked = TRUE; > USHORT nSet = GetItemId( nLine ); > InsertItem( pDockWin->GetType(), pDockWin, nWinSize, nPos, nSet, nItemBits ); > >- // Splitwindows werden im SFX einmal angelegt und beim Einf"ugen des ersten >- // DockingWindows sichtbar gemacht. >+ // SplitWindows are once created in SFX and when inserting the first >+ // DockingWindows is made visable. > if ( GetItemCount( 0 ) == 1 && GetItemCount( 1 ) == 1 ) > { >- // Das Neuarrangieren am WorkWindow und ein Show() auf das SplitWindow >- // wird vom SfxDockingwindow veranla\st (->SfxWorkWindow::ConfigChild_Impl) >+ // The Rearranging in WorkWindow and a Show() on the SplitWindow is >+ // caues by SfxDockingwindow (->SfxWorkWindow::ConfigChild_Impl) > if ( !bPinned && !IsFloatingMode() ) > { > bPinned = TRUE; >@@ -775,20 +771,19 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, > > void SfxSplitWindow::RemoveWindow( SfxDockingWindow* pDockWin, BOOL bHide ) > >-/* [Beschreibung] >+/* [Description] > >- Entfernt ein DockingWindow. Wenn es das letzte war, wird das SplitWindow >- gehidet. >+ Removes a DockingWindow. If it was the last one, then the SplitWindow is >+ beeing hidden. > */ > { > USHORT nSet = GetSet( pDockWin->GetType() ); > >- // Splitwindows werden im SFX einmal angelegt und nach dem Entfernen >- // des letzten DockingWindows unsichtbar gemacht. >+ // SplitWindows are once created in SFX and is made invisible after >+ // removing the last DockingWindows. > if ( GetItemCount( nSet ) == 1 && GetItemCount( 0 ) == 1 ) > { >- // Das Neuarrangieren am WorkWindow wird vom SfxDockingwindow >- // veranla\st! >+ // The Rearranging in WorkWindow is caues by SfxDockingwindow > Hide(); > pEmptyWin->aTimer.Stop(); > USHORT nRealState = pEmptyWin->nState; >@@ -822,8 +817,8 @@ void SfxSplitWindow::RemoveWindow( SfxDockingWindow* pDockWin, BOOL bHide ) > } > } > >- // Fenster removen, und wenn es das letzte der Zeile war, auch die Zeile >- // ( Zeile = ItemSet ) >+ // Remove Windows, and if it was the last of the line, then also remove >+ // the line (line = itemset) > BOOL bUpdateMode = IsUpdateMode(); > if ( bUpdateMode ) > SetUpdateMode( FALSE ); >@@ -843,10 +838,10 @@ void SfxSplitWindow::RemoveWindow( SfxDockingWindow* pDockWin, BOOL bHide ) > > BOOL SfxSplitWindow::GetWindowPos( const SfxDockingWindow* pWindow, > USHORT& rLine, USHORT& rPos ) const >-/* [Beschreibung] >+/* [Description] > >- Liefert die Id des Itemsets und die des Items f"ur das "ubergebene >- DockingWindow in der alten Zeilen/Spalten-Bezeichnung zur"uck. >+ Returns the ID of the item sets and items for the DockingWindow in >+ the position passed on the old row / column-name. > */ > > { >@@ -863,11 +858,10 @@ BOOL SfxSplitWindow::GetWindowPos( const SfxDockingWindow* pWindow, > > BOOL SfxSplitWindow::GetWindowPos( const Point& rTestPos, > USHORT& rLine, USHORT& rPos ) const >-/* [Beschreibung] >+/* [Description] > >- Liefert die Id des Itemsets und die des Items f"ur das DockingWindow >- an der "ubergebenen Position in der alten Zeilen/Spalten-Bezeichnung >- zur"uck. >+ Returns the ID of the item sets and items for the DockingWindow in >+ the position passed on the old row / column-name. > */ > > { >@@ -885,9 +879,9 @@ BOOL SfxSplitWindow::GetWindowPos( const Point& rTestPos, > > USHORT SfxSplitWindow::GetLineCount() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert die Zeilenzahl = Zahl der Sub-Itemsets im Root-Set. >+ Returns the number of rows = number of sub-itemsets in the root set. > */ > { > return GetItemCount( 0 ); >@@ -897,9 +891,9 @@ USHORT SfxSplitWindow::GetLineCount() const > > long SfxSplitWindow::GetLineSize( USHORT nLine ) const > >-/* [Beschreibung] >+/* [Description] > >- Liefert die "Zeilenh"ohe" des nLine-ten Itemsets. >+ Returns the Row Height of nline itemset. > */ > { > USHORT nId = GetItemId( nLine ); >@@ -910,9 +904,9 @@ long SfxSplitWindow::GetLineSize( USHORT nLine ) const > > USHORT SfxSplitWindow::GetWindowCount( USHORT nLine ) const > >-/* [Beschreibung] >+/* [Description] > >- Liefert die >+ Returns the total number of windows > */ > { > USHORT nId = GetItemId( nLine ); >@@ -923,9 +917,9 @@ USHORT SfxSplitWindow::GetWindowCount( USHORT nLine ) const > > USHORT SfxSplitWindow::GetWindowCount() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert die Gesamtzahl aller Fenstert >+ Returns the total number of windows > */ > { > return GetItemCount( 0 ); >@@ -947,8 +941,8 @@ IMPL_LINK( SfxSplitWindow, TimerHdl, Timer*, pTimer) > > if ( CursorIsOverRect( FALSE ) || !pTimer ) > { >- // Wenn der Mauszeiger innerhalb des Fensters liegt, SplitWindow anzeigen >- // und Timer zum Schlie\sen aufsetzen >+ // If the cursor is within the window, display the SplitWindow and set >+ // up the timer for close > pEmptyWin->bAutoHide = TRUE; > if ( !IsVisible() ) > pEmptyWin->FadeIn(); >@@ -960,16 +954,16 @@ IMPL_LINK( SfxSplitWindow, TimerHdl, Timer*, pTimer) > { > if ( GetPointerPosPixel() != pEmptyWin->aLastPos ) > { >- // Die Maus wurd innerhalb der Timerlaugzeit bewegt, also erst einmal >- // nichts tun >+ // The mouse has moved within the running time of the timer, thus >+ // do nothing > pEmptyWin->aLastPos = GetPointerPosPixel(); > pEmptyWin->aTimer.Start(); > return 0L; > } > >- // Speziell f"ur TF_AUTOSHOW_ON_MOUSEMOVE : >- // Wenn das Fenster nicht sichtbar ist, gibt es nichts zu tun >- // (Benutzer ist einfach mit der Maus "uber pEmptyWin gefahren) >+ // Especially for TF_AUTOSHOW_ON_MOUSEMOVE : >+ // If the window is not visible, there is nothing to do >+ // (user has simply moved the mouse over pEmptyWin) > if ( IsVisible() ) > { > pEmptyWin->bEndAutoHide = FALSE; >@@ -977,18 +971,18 @@ IMPL_LINK( SfxSplitWindow, TimerHdl, Timer*, pTimer) > !PopupMenu::IsInExecute() && > !pEmptyWin->bSplit && !HasChildPathFocus( TRUE ) ) > { >- // W"ahrend ein modaler Dialog oder ein Popupmenu offen sind >- // oder w"ahrend des Splittens auf keinen Fall zumachen; auch >- // solange eines der Children den Focus hat, bleibt das >- // das Fenster offen >+ // While a modal dialog or a popup menu is open or while the >+ // Splitting is done, in any case, do not close. Even as long >+ // as one of the Children has the focus, the window remains >+ // open. > pEmptyWin->bEndAutoHide = TRUE; > } > > if ( pEmptyWin->bEndAutoHide ) > { >- // Von mir aus kann Schlu\s sein mit AutoShow >- // Aber vielleicht will noch ein anderes SfxSplitWindow offen bleiben, >- // dann bleiben auch alle anderen offen >+ // As far as I am concered this can be the end of AutoShow >+ // But maybe some other SfxSplitWindow will remain open, >+ // then all others remain open too. > if ( !pWorkWin->IsAutoHideMode( this ) ) > { > FadeOut_Impl(); >@@ -1017,13 +1011,13 @@ BOOL SfxSplitWindow::CursorIsOverRect( BOOL bForceAdding ) const > { > BOOL bVisible = IsVisible(); > >- // Auch das kollabierte SplitWindow ber"ucksichtigen >+ // Also, take the collapsed SplitWindow into account > Point aPos = pEmptyWin->GetParent()->OutputToScreenPixel( pEmptyWin->GetPosPixel() ); > Size aSize = pEmptyWin->GetSizePixel(); > > if ( bForceAdding ) > { >- // Um +/- ein paar Pixel erweitern, sonst ist es zu nerv"os >+ // Extend with +/- a few pixels, otherwise it is too nervous > aPos.X() -= nPixel; > aPos.Y() -= nPixel; > aSize.Width() += 2 * nPixel; >@@ -1037,7 +1031,7 @@ BOOL SfxSplitWindow::CursorIsOverRect( BOOL bForceAdding ) const > Point aVisPos = GetPosPixel(); > Size aVisSize = GetSizePixel(); > >- // Um +/- ein paar Pixel erweitern, sonst ist es zu nerv"os >+ // Extend with +/- a few pixels, otherwise it is too nervous > aVisPos.X() -= nPixel; > aVisPos.Y() -= nPixel; > aVisSize.Width() += 2 * nPixel; >@@ -1088,7 +1082,7 @@ void SfxSplitWindow::SetPinned_Impl( BOOL bOn ) > pEmptyWin->nState |= 1; > if ( pEmptyWin->bFadeIn ) > { >- // Ersatzfenster anmelden >+ // Unregister replacement windows > DBG_TRACE( "SfxSplitWindow::SetPinned_Impl - releasing real Splitwindow" ); > pWorkWin->ReleaseChild_Impl( *this ); > Hide(); >@@ -1114,7 +1108,7 @@ void SfxSplitWindow::SetPinned_Impl( BOOL bOn ) > > if ( pEmptyWin->bFadeIn ) > { >- // Ersatzfenster abmelden >+ // Unregister replacement windows > DBG_TRACE( "SfxSplitWindow::SetPinned_Impl - releasing empty Splitwindow" ); > pWorkWin->ReleaseChild_Impl( *pEmptyWin ); > pEmptyWin->Hide(); >@@ -1143,7 +1137,7 @@ void SfxSplitWindow::SetFadeIn_Impl( BOOL bOn ) > pEmptyWin->nState |= 2; > if ( IsFloatingMode() ) > { >- // FloatingWindow ist nicht sichtbar, also anzeigen >+ // FloatingWindow is not visable, thus display it > pWorkWin->ArrangeAutoHideWindows( this ); > Show(); > } >@@ -1164,7 +1158,7 @@ void SfxSplitWindow::SetFadeIn_Impl( BOOL bOn ) > pEmptyWin->nState &= ~2; > if ( !IsFloatingMode() ) > { >- // Das Fenster "schwebt" nicht, soll aber ausgeblendet werden, >+ // The window is not "floating", should be hidden > DBG_TRACE( "SfxSplitWindow::SetFadeIn_Impl - releasing real Splitwindow" ); > pWorkWin->ReleaseChild_Impl( *this ); > Hide(); >@@ -1185,17 +1179,17 @@ void SfxSplitWindow::SetFadeIn_Impl( BOOL bOn ) > > void SfxSplitWindow::AutoHide() > { >- // Wenn dieser Handler am "echten" SplitWindow aufgerufen wird, ist es >- // entweder angedockt und soll "schwebend" angezeigt werden oder umgekehrt >+ // If this handler is called in the "real" SplitWindow, it is >+ // either docked and should be displayed as floating, or vice versa > if ( !bPinned ) > { >- // Es "schwebt", also wieder andocken >+ // It "floats", thus dock it again > SetPinned_Impl( TRUE ); > pWorkWin->ArrangeChilds_Impl(); > } > else > { >- // In den "Schwebezustand" bringen >+ // In "limbo" > SetPinned_Impl( FALSE ); > pWorkWin->ArrangeChilds_Impl(); > pWorkWin->ArrangeAutoHideWindows( this ); >@@ -1248,14 +1242,16 @@ void SfxSplitWindow::Pin_Impl( BOOL bPin ) > */ > BOOL SfxSplitWindow::ActivateNextChild_Impl( BOOL bForward ) > { >- // Wenn kein pActive, auf erstes bzw. letztes Fenster gehen ( bei !bForward wird erst in der loop dekrementiert ) >+ // If no pActive, go to first and last window (!bForward is first >+ // decremented in the loop) > USHORT nCount = pDockArr->Count(); > USHORT n = bForward ? 0 : nCount; > >- // Wenn Focus innerhalb, dann ein Fenster vor oder zur"uck, wenn m"oglich >+ // if Focus is within, then move to a window forward or backwards >+ // if possible > if ( pActive ) > { >- // Aktives Fenster ermitteln >+ // Determine the active window > for ( n=0; n<nCount; n++ ) > { > SfxDock_Impl *pD = (*pDockArr)[n]; >@@ -1264,13 +1260,14 @@ BOOL SfxSplitWindow::ActivateNextChild_Impl( BOOL bForward ) > } > > if ( bForward ) >- // ein Fenster weiter ( wenn dann n>nCount, wird die Schleife unten gar nicht durchlaufen ) >+ // up window counter (then when n>nCount, the loop below is >+ // not entered) > n++; > } > > if ( bForward ) > { >- // N"achstes Fenster suchen >+ // Search for next window > for ( USHORT nNext=n; nNext<nCount; nNext++ ) > { > SfxDock_Impl *pD = (*pDockArr)[nNext]; >@@ -1283,7 +1280,7 @@ BOOL SfxSplitWindow::ActivateNextChild_Impl( BOOL bForward ) > } > else > { >- // Vorheriges Fenster suchen >+ // Search for previous window > for ( USHORT nNext=n; nNext--; ) > { > SfxDock_Impl *pD = (*pDockArr)[nNext]; >diff --git a/sfx2/source/dialog/styfitem.cxx b/sfx2/source/dialog/styfitem.cxx >index 4567d34..a244ddb 100644 >--- a/sfx2/source/dialog/styfitem.cxx >+++ b/sfx2/source/dialog/styfitem.cxx >@@ -96,7 +96,7 @@ SfxStyleFamilyItem::SfxStyleFamilyItem( const ResId &rResId ) : > > // ----------------------------------------------------------------------- > >-// Destruktor; gibt interne Daten frei >+// Destructor; releases the internal data > > SfxStyleFamilyItem::~SfxStyleFamilyItem() > { >@@ -107,7 +107,7 @@ SfxStyleFamilyItem::~SfxStyleFamilyItem() > > // ----------------------------------------------------------------------- > >-// Implementierung des Resource-Konstruktors >+// Implementation of the resource constructor > > SfxStyleFamilies::SfxStyleFamilies( const ResId& rResId ) : > Resource( rResId.SetRT( RSC_SFX_STYLE_FAMILIES ).SetAutoRelease( FALSE ) ) >@@ -128,7 +128,7 @@ SfxStyleFamilies::SfxStyleFamilies( const ResId& rResId ) : > > // ----------------------------------------------------------------------- > >-// Destruktor; gibt interne Daten frei >+// Destructor; releases the internal data > > SfxStyleFamilies::~SfxStyleFamilies() > { >diff --git a/sfx2/source/dialog/styledlg.cxx b/sfx2/source/dialog/styledlg.cxx >index bddc0b9..cd85758 100644 >--- a/sfx2/source/dialog/styledlg.cxx >+++ b/sfx2/source/dialog/styledlg.cxx >@@ -47,20 +47,20 @@ SfxStyleDialog::SfxStyleDialog > ( > Window* pParent, // Parent > const ResId& rResId, // ResId >- SfxStyleSheetBase& rStyle, // zu bearbeitendes StyleSheet >- BOOL bFreeRes, // Flag Resourcen freigeben >+ SfxStyleSheetBase& rStyle, // stylesheet to be processed >+ BOOL bFreeRes, // Flag release resources > const String* pUserBtnTxt > ) : > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor: Verwalten-TabPage zuf"ugen, ExampleSet vom Style setzen. >+ Constructor: Add Manage TabPage, set ExampleSet from style. > */ > > SfxTabDialog( pParent, rResId, > rStyle.GetItemSet().Clone(), >- // auch ohne ParentSupport TRUE "ubergeben, aber erweitert >- // um den StandardButton zu unterdr"ucken >+ // return TRUE also without ParentSupport , but extended >+ // to suppress the standardButton > rStyle.HasParentSupport() ? TRUE : 2, > pUserBtnTxt ), > >@@ -71,8 +71,7 @@ SfxStyleDialog::SfxStyleDialog > String( SfxResId( STR_TABPAGE_MANAGESTYLES ) ), > SfxManageStyleSheetPage::Create, 0, FALSE, 0 ); > >- // bei neuer Vorlage immer die Verwaltungsseite als aktuelle >- // Seite setzen >+ // With new template always set the management page as the current page > > if( !rStyle.GetName().Len() ) > SetCurPageId( ID_TABPAGE_MANAGESTYLES ); >@@ -83,7 +82,7 @@ SfxStyleDialog::SfxStyleDialog > sTxt += rStyle.GetName(); > SetText( sTxt ); > } >- delete pExampleSet; // im SfxTabDialog::Ctor() schon angelegt >+ delete pExampleSet; // in SfxTabDialog::Ctor() already created > pExampleSet = &pStyle->GetItemSet(); > > if ( bFreeRes ) >@@ -95,10 +94,10 @@ SfxStyleDialog::SfxStyleDialog > > SfxStyleDialog::~SfxStyleDialog() > >-/* [Beschreibung] >+/* [Description] > >- Destruktor: ExampleSet auf NULL setzen, damit der SfxTabDialog nicht den >- Set vom Style l"oscht. >+ Destructor: set ExampleSet to NULL, so that SfxTabDialog does not delete >+ the Set from Style. > */ > > { >@@ -111,10 +110,10 @@ SfxStyleDialog::~SfxStyleDialog() > > const SfxItemSet* SfxStyleDialog::GetRefreshedSet() > >-/* [Beschreibung] >+/* [Description] > >- Diese wird gerufen, wenn <SfxTabPage::DeactivatePage(SfxItemSet *)> >- <SfxTabPage::REFRESH_SET> liefert. >+ This is called when <SfxTabPage::DeactivatePage(SfxItemSet *)> >+ returns <SfxTabPage::REFRESH_SET>. > */ > > { >@@ -125,9 +124,9 @@ const SfxItemSet* SfxStyleDialog::GetRefreshedSet() > > short SfxStyleDialog::Ok() > >-/* [Beschreibung] >+/* [Description] > >- "Uberladen, damit immer RET_OK zur"uckgegeben wird. >+ Overloaded, so that always RET_OK is returned. > */ > > { >@@ -139,10 +138,10 @@ short SfxStyleDialog::Ok() > > IMPL_LINK( SfxStyleDialog, CancelHdl, Button *, pButton ) > >-/* [Beschreibung] >+/* [Description] > >- Wenn der Dialog abgebrochen wurde, m"ussen alle schon eingestellten >- Attribute wieder zur"uckgesetzt werden. >+ If the dialogue was canceled, then all selected attributes must be reset >+ again. > */ > > { >diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx >index f5a6ca3..40e3e96 100644 >--- a/sfx2/source/dialog/tabdlg.cxx >+++ b/sfx2/source/dialog/tabdlg.cxx >@@ -80,14 +80,14 @@ NAMESPACE_LAYOUT_SFX_TABDIALOG > > struct Data_Impl > { >- USHORT nId; // Die ID >- CreateTabPage fnCreatePage; // Pointer auf die Factory >- GetTabPageRanges fnGetRanges;// Pointer auf die Ranges-Funktion >- SfxTabPage* pTabPage; // die TabPage selber >+ USHORT nId; // The ID >+ CreateTabPage fnCreatePage; // Pointer to Factory >+ GetTabPageRanges fnGetRanges; // Pointer to Ranges-Function >+ SfxTabPage* pTabPage; // The TabPage itself > BOOL bOnDemand; // Flag: ItemSet onDemand >- BOOL bRefresh; // Flag: Seite mu\s neu initialisiert werden >+ BOOL bRefresh; // Flag: Page must be re-initialized > >- // Konstruktor >+ // Constructor > Data_Impl( USHORT Id, CreateTabPage fnPage, > GetTabPageRanges fnRanges, BOOL bDemand ) : > >@@ -256,9 +256,9 @@ void SfxTabPage::SetFrame(const ::com::sun::star::uno::Reference< ::com::sun::st > SfxTabPage::SfxTabPage( Window *pParent, > const ResId &rResId, const SfxItemSet &rAttrSet ) : > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor >+ Constructor > */ > > TabPage( pParent, rResId ), >@@ -283,9 +283,9 @@ SfxTabPage:: SfxTabPage( Window *pParent, WinBits nStyle, const SfxItemSet &rAtt > > SfxTabPage::~SfxTabPage() > >-/* [Beschreibung] >+/* [Description] > >- Destruktor >+ Destructor > */ > > { >@@ -313,12 +313,10 @@ void SfxTabPage::Reset( const SfxItemSet& rSet ) > > void SfxTabPage::ActivatePage( const SfxItemSet& ) > >-/* [Beschreibung] >- >- Defaultimplementierung der virtuellen ActivatePage-Methode >- Diese wird gerufen, wenn eine Seite des Dialogs den Datenaustausch >- zwischen Pages unterst"utzt. >+/* [Description] > >+ Default implementation of the virtual ActivatePage method. This method is >+ called when a page of dialogue supports the exchange of data between pages. > <SfxTabPage::DeactivatePage(SfxItemSet *)> > */ > >@@ -329,22 +327,19 @@ void SfxTabPage::ActivatePage( const SfxItemSet& ) > > int SfxTabPage::DeactivatePage( SfxItemSet* ) > >-/* [Beschreibung] >+/* [Description] > >- Defaultimplementierung der virtuellen DeactivatePage-Methode >- Diese wird vor dem Verlassen einer Seite durch den Sfx gerufen; >- die Anwendung kann "uber den Returnwert steuern, >- ob die Seite verlassen werden soll. >- Falls die Seite "uber bHasExchangeSupport >- anzeigt, da\s sie einen Datenaustausch zwischen Seiten >- unterst"utzt, wird ein Pointer auf das Austausch-Set als >- Parameter "ubergeben. Dieser nimmt die Daten f"ur den Austausch >- entgegen; das Set steht anschlie\send als Parameter in >- <SfxTabPage::ActivatePage(const SfxItemSet &)> zur Verf"ugung. >+ Default implementation of the virtual DeactivatePage method. This method is >+ called by Sfx when leaving a page; the application can, through the return >+ value, control whether to leave the page. If the page is displayed through >+ bHasExchangeSupport which supports data exchange between pages, then a >+ pointer to the exchange set is passed as parameter. This takes on data for >+ the exchange, then the set is available as a parameter in >+ <SfxTabPage::ActivatePage(const SfxItemSet &)>. > >- [R"uckgabewert] >+ [Return value] > >- LEAVE_PAGE; Verlassen der Seite erlauben >+ LEAVE_PAGE; Allow leaving the page > */ > > { >@@ -355,12 +350,11 @@ int SfxTabPage::DeactivatePage( SfxItemSet* ) > > void SfxTabPage::FillUserData() > >-/* [Beschreibung] >+/* [Description] > >- virtuelle Methode, wird von der Basisklasse im Destruktor gerufen >- um spezielle Informationen der TabPage in der Ini-Datei zu speichern. >- Beim "Uberladen muss ein String zusammengestellt werden, der mit >- <SetUserData()> dann weggeschrieben wird. >+ Virtual method is called by the base class in the destructor to save >+ specific information of the TabPage in the ini-file. When overloading a >+ string must be compiled, which is then flushed with the <SetUserData()>. > */ > > { >@@ -377,11 +371,10 @@ BOOL SfxTabPage::IsReadOnly() const > > const SfxPoolItem* SfxTabPage::GetItem( const SfxItemSet& rSet, USHORT nSlot, sal_Bool bDeep ) > >-/* [Beschreibung] >- >- static Methode: hiermit wird der Code der TabPage-Implementierungen >- vereinfacht. >+/* [Description] > >+ static Method: hereby are the implementations of the TabPage code >+ beeing simplified. > */ > > { >@@ -404,10 +397,9 @@ const SfxPoolItem* SfxTabPage::GetItem( const SfxItemSet& rSet, USHORT nSlot, sa > const SfxPoolItem* SfxTabPage::GetOldItem( const SfxItemSet& rSet, > USHORT nSlot, sal_Bool bDeep ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode gibt f"ur Vergleiche den alten Wert eines >- Attributs zur"uck. >+ This method returns an attribute for comparison of the old value. > */ > > { >@@ -430,11 +422,10 @@ const SfxPoolItem* SfxTabPage::GetOldItem( const SfxItemSet& rSet, > const SfxPoolItem* SfxTabPage::GetExchangeItem( const SfxItemSet& rSet, > USHORT nSlot ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode gibt f"ur Vergleiche den alten Wert eines >- Attributs zur"uck. Dabei wird ber"ucksichtigt, ob der Dialog >- gerade mit OK beendet wurde. >+ This method returns an attribute for comparison of the old value. This way >+ it will be considered whether the dialogue has just been ended with OK. > */ > > { >@@ -496,21 +487,21 @@ void SfxTabPage::AddItemConnection( sfx::ItemConnectionBase* pConnection ) > > SfxTabDialog::SfxTabDialog > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor >+ Constructor > */ > > ( >- SfxViewFrame* pViewFrame, // Frame, zu dem der Dialog geh"ort >- Window* pParent, // Parent-Fenster >+ SfxViewFrame* pViewFrame, // Frame, to which the Dialog belongs >+ Window* pParent, // Parent Window > const ResId& rResId, // ResourceId >- const SfxItemSet* pItemSet, // Itemset mit den Daten; >- // kann NULL sein, wenn Pages onDemand >- BOOL bEditFmt, // Flag: es werden Vorlagen bearbeitet >- // wenn ja -> zus"atzlicher Button f"ur Standard >- const String* pUserButtonText // Text fuer BenutzerButton; >- // wenn != 0, wird der UserButton erzeugt >+ const SfxItemSet* pItemSet, // Itemset with the data; >+ // can be NULL, when Pages are onDemand >+ BOOL bEditFmt, // Flag: templates are processed >+ // when yes -> additional Button for standard >+ const String* pUserButtonText // Text for UserButton; >+ // if != 0, the UserButton is created > ) : > TabDialog( pParent, rResId ), > pFrame( pViewFrame ), >@@ -523,45 +514,45 @@ SfxTabDialog::SfxTabDialog > > SfxTabDialog::SfxTabDialog > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor, tempor"ar ohne Frame >+ Constructor, temporary without Frame > */ > > ( >- Window* pParent, // Parent-Fenster >+ Window* pParent, // Parent Window > const ResId& rResId, // ResourceId >- const SfxItemSet* pItemSet, // Itemset mit den Daten; kann NULL sein, >- // wenn Pages onDemand >- BOOL bEditFmt, // Flag: es werden Vorlagen bearbeitet >- // wenn ja -> zus"atzlicher Button f"ur Standard >- const String* pUserButtonText // Text f"ur BenutzerButton; >- // wenn != 0, wird der UserButton erzeugt >+ const SfxItemSet* pItemSet, // Itemset with the data; >+ // can be NULL, when Pages are onDemand >+ BOOL bEditFmt, // Flag: templates are processed >+ // when yes -> additional Button for standard >+ const String* pUserButtonText // Text for UserButton; >+ // if != 0, the UserButton is created > ) : > TabDialog( pParent, rResId ), > pFrame( 0 ), > INI_LIST(pItemSet) > { > Init_Impl( bFmt, pUserButtonText ); >- DBG_WARNING( "bitte den Ctor mit ViewFrame verwenden" ); >+ DBG_WARNING( "Please use the Construtor with the ViewFrame" ); > } > > SfxTabDialog::SfxTabDialog > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor, tempor"ar ohne Frame >+ Constructor, temporary without Frame > */ > > ( >- Window* pParent, // Parent-Fenster >+ Window* pParent, // Parent Window > const ResId& rResId, // ResourceId > USHORT nSetId, > SfxBindings& rBindings, >- BOOL bEditFmt, // Flag: es werden Vorlagen bearbeitet >- // wenn ja -> zus"atzlicher Button f"ur Standard >- const String* pUserButtonText // Text f"ur BenutzerButton; >- // wenn != 0, wird der UserButton erzeugt >+ BOOL bEditFmt, // Flag: templates are processed >+ // when yes -> additional Button for standard >+ const String* pUserButtonText // Text for UserButton; >+ // if != 0, the UserButton is created > ) : > TabDialog( pParent, rResId ), > pFrame( 0 ), >@@ -641,9 +632,9 @@ SfxTabDialog::~SfxTabDialog() > > void SfxTabDialog::Init_Impl( BOOL bFmtFlag, const String* pUserButtonText ) > >-/* [Beschreibung] >+/* [Description] > >- interne Initialisierung des Dialogs >+ internal initialization of the dialogue > */ > > { >@@ -677,10 +668,10 @@ void SfxTabDialog::Init_Impl( BOOL bFmtFlag, const String* pUserButtonText ) > aBaseFmtBtn.SetClickHdl( LINK( this, SfxTabDialog, BaseFmtHdl ) ); > aBaseFmtBtn.SetHelpId( HID_TABDLG_STANDARD_BTN ); > >- // bFmt = tempor"ares Flag im Ctor() "ubergeben, >- // wenn bFmt == 2, dann auch TRUE, >- // zus"atzlich Ausblendung vom StandardButton, >- // nach der Initialisierung wieder auf TRUE setzen >+ // bFmt = temporary Flag passed on in the Constructor(), >+ // if bFmt == 2, then also TRUE, >+ // additional suppression of the standard button, >+ // after the Initializing set to TRUE again > if ( bFmtFlag != 2 ) > aBaseFmtBtn.Show(); > else >@@ -833,7 +824,7 @@ void SfxTabDialog::Start_Impl() > SetWindowState( ByteString( aDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US ) ); > #endif /* !ENABLE_LAYOUT_SFX_TABDIALOG */ > >- // initiale TabPage aus Programm/Hilfe/Konfig >+ // initial TabPage from Program/Help/config > nActPage = (USHORT)aDlgOpt.GetPageID(); > > if ( USHRT_MAX != nAppPageId ) >@@ -878,20 +869,19 @@ void SfxTabDialog::AddTabPage( USHORT nId, const Bitmap &rRiderBitmap, BOOL bIte > > void SfxTabDialog::AddTabPage > >-/* [Beschreibung] >+/* [Description] > >- Hinzuf"ugen einer Seite zu dem Dialog. >- Mu\s korrespondieren zu einem entsprechende Eintrag im >- TabControl in der Resource des Dialogs. >+ Adding a page to the dialogue. Must correspond to a entry in the >+ TabControl in the resource of the dialogue. > */ > > ( >- USHORT nId, // ID der Seite >- CreateTabPage pCreateFunc, // Pointer auf die Factory-Methode >- GetTabPageRanges pRangesFunc, // Pointer auf die Methode f"ur das >- // Erfragen der Ranges onDemand >- BOOL bItemsOnDemand // gibt an, ob das Set dieser Seite beim >- // Erzeugen der Seite erfragt wird >+ USHORT nId, // Page ID >+ CreateTabPage pCreateFunc, // Pointer to the Factory Method >+ GetTabPageRanges pRangesFunc, // Pointer to the Method for quering >+ // Ranges onDemand >+ BOOL bItemsOnDemand // indicates whether the set of this page is >+ // requested when created > ) > { > pImpl->pData->Append( >@@ -902,11 +892,10 @@ void SfxTabDialog::AddTabPage > > void SfxTabDialog::AddTabPage > >-/* [Beschreibung] >+/* [Description] > >- Hinzuf"ugen einer Seite zu dem Dialog. >- Der Ridertext wird "ubergeben, die Seite hat keine Entsprechung im >- TabControl in der Resource des Dialogs. >+ Add a page to the dialog. The Rider text is passed on, the page has no >+ counterpart in the TabControl in the resource of the dialogue. > */ > > ( >@@ -919,7 +908,7 @@ void SfxTabDialog::AddTabPage > ) > { > DBG_ASSERT( TAB_PAGE_NOTFOUND == aTabCtrl.GetPagePos( nId ), >- "Doppelte Page-Ids in der Tabpage" ); >+ "Double Page-Ids in the Tabpage" ); > aTabCtrl.InsertPage( nId, rRiderText, nPos ); > pImpl->pData->Append( > new Data_Impl( nId, pCreateFunc, pRangesFunc, bItemsOnDemand ) ); >@@ -930,11 +919,10 @@ void SfxTabDialog::AddTabPage > > void SfxTabDialog::AddTabPage > >-/* [Beschreibung] >+/* [Description] > >- Hinzuf"ugen einer Seite zu dem Dialog. >- Die Riderbitmap wird "ubergeben, die Seite hat keine Entsprechung im >- TabControl in der Resource des Dialogs. >+ Add a page to the dialog. The riders bitmap is passed on, the page has no >+ counterpart in the TabControl in the resource of the dialogue. > */ > > ( >@@ -947,7 +935,7 @@ void SfxTabDialog::AddTabPage > ) > { > DBG_ASSERT( TAB_PAGE_NOTFOUND == aTabCtrl.GetPagePos( nId ), >- "Doppelte Page-Ids in der Tabpage" ); >+ "Duplicate Page-Ids in the Tabpage" ); > aTabCtrl.InsertPage( nId, rRiderBitmap, nPos ); > pImpl->pData->Append( > new Data_Impl( nId, pCreateFunc, pRangesFunc, bItemsOnDemand ) ); >@@ -958,9 +946,9 @@ void SfxTabDialog::AddTabPage > > void SfxTabDialog::RemoveTabPage( USHORT nId ) > >-/* [Beschreibung] >+/* [Description] > >- L"oschen der TabPage mit der ID nId >+ Delete the TabPage with ID nId > */ > > { >@@ -991,7 +979,7 @@ void SfxTabDialog::RemoveTabPage( USHORT nId ) > } > else > { >- DBG_WARNINGFILE( "TabPage-Id nicht bekannt" ); >+ DBG_WARNINGFILE( "TabPage-Id not known" ); > } > } > >@@ -999,16 +987,16 @@ void SfxTabDialog::RemoveTabPage( USHORT nId ) > > void SfxTabDialog::PageCreated > >-/* [Beschreibung] >+/* [Description] > >- Defaultimplemetierung der virtuellen Methode. >- Diese wird unmittelbar nach dem Erzeugen einer Seite gerufen. >- Hier kann der Dialog direkt an der TabPage Methoden rufen. >+ Default implemetation of the virtual method. This is called immediately >+ after creating a page. Here the dialogue can call the TabPage Method >+ directly. > */ > > ( >- USHORT, // Id der erzeugten Seite >- SfxTabPage& // Referenz auf die erzeugte Seite >+ USHORT, // Id of the created page >+ SfxTabPage& // Reference to the created page > ) > { > } >@@ -1017,11 +1005,10 @@ void SfxTabDialog::PageCreated > > SfxItemSet* SfxTabDialog::GetInputSetImpl() > >-/* [Beschreibung] >+/* [Description] > >- Abgeleitete Klassen legen ggf. fuer den InputSet neuen Speicher an. >- Dieser mu\s im Destruktor auch wieder freigegeben werden. Dazu mu\s >- diese Methode gerufen werden. >+ Derived classes may create new storage for the InputSet. This has to be >+ released in the Destructor. To do this, this method must be called. > */ > > { >@@ -1032,9 +1019,9 @@ SfxItemSet* SfxTabDialog::GetInputSetImpl() > > SfxTabPage* SfxTabDialog::GetTabPage( USHORT nPageId ) const > >-/* [Beschreibung] >+/* [Description] > >- TabPage mit der "Ubergebenen Id zur"uckgeben. >+ Return TabPage with the specified Id. > */ > > { >@@ -1057,18 +1044,17 @@ BOOL SfxTabDialog::IsInOK() const > > short SfxTabDialog::Ok() > >-/* [Beschreibung] >+/* [Description] > >- Ok-Handler des Dialogs >- Das OutputSet wird erstellt und jede Seite wird mit >- dem bzw. ihrem speziellen OutputSet durch Aufruf der Methode >- <SfxTabPage::FillItemSet(SfxItemSet &)> dazu aufgefordert, >- die vom Benuzter eingestellten Daten in das Set zu tun. >+ Ok handler for the Dialogue. >+ The OutputSet is created and for each page this or the special OutputSet >+ is set by calling the method <SfxTabPage::FillItemSet(SfxItemSet &)>, to >+ insert the entered data by the user into the set. > >- [R"uckgabewert] >+ [Return value] > >- RET_OK: wenn mindestens eine Seite TRUE als Returnwert von >- FillItemSet geliefert hat, sonst RET_CANCEL. >+ RET_OK: if at least one page has returned from FillItemSet, >+ otherwise RET_CANCEL. > */ > > { >@@ -1077,7 +1063,7 @@ short SfxTabDialog::Ok() > if ( !pOutSet ) > { > if ( !pExampleSet && pSet ) >- pOutSet = pSet->Clone( FALSE ); // ohne Items >+ pOutSet = pSet->Clone( FALSE ); // without Items > else if ( pExampleSet ) > pOutSet = new SfxItemSet( *pExampleSet ); > } >@@ -1133,14 +1119,14 @@ IMPL_LINK( SfxTabDialog, CancelHdl, Button*, pButton ) > > SfxItemSet* SfxTabDialog::CreateInputItemSet( USHORT ) > >-/* [Beschreibung] >+/* [Description] > >- Defaultimplemetierung der virtuellen Methode. >- Diese wird gerufen, wenn Pages ihre Sets onDenamd anlegen >+ Default implemetation of the virtual Method. >+ This is called when pages create their sets onDenamd. > */ > > { >- DBG_WARNINGFILE( "CreateInputItemSet nicht implementiert" ); >+ DBG_WARNINGFILE( "CreateInputItemSet not implemented" ); > return new SfxAllItemSet( SFX_APP()->GetPool() ); > } > >@@ -1148,15 +1134,15 @@ SfxItemSet* SfxTabDialog::CreateInputItemSet( USHORT ) > > const SfxItemSet* SfxTabDialog::GetRefreshedSet() > >-/* [Beschreibung] >+/* [Description] > >- Defaultimplemetierung der virtuellen Methode. >- Diese wird gerufen, wenn <SfxTabPage::DeactivatePage(SfxItemSet *)> >- <SfxTabPage::REFRESH_SET> liefert. >+ Default implemetation of the virtual Method. >+ This is called, when <SfxTabPage::DeactivatePage(SfxItemSet *)> >+ returns <SfxTabPage::REFRESH_SET>. > */ > > { >- DBG_ERRORFILE( "GetRefreshedSet nicht implementiert" ); >+ DBG_ERRORFILE( "GetRefreshedSet not implemented" ); > return 0; > } > >@@ -1164,13 +1150,12 @@ const SfxItemSet* SfxTabDialog::GetRefreshedSet() > > IMPL_LINK( SfxTabDialog, OkHdl, Button *, EMPTYARG ) > >-/* [Beschreibung] >+/* [Description] > >- Handler des Ok-Buttons >- Dieser ruft f"ur die aktuelle Seite >- <SfxTabPage::DeactivatePage(SfxItemSet *)>. >- Liefert diese <SfxTabPage::LEAVE_PAGE>, wird <SfxTabDialog::Ok()> gerufen >- und so der Dialog beendet. >+ Handler of the Ok-Buttons >+ This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>. >+ Returns <SfxTabPage::LEAVE_PAGE>, <SfxTabDialog::Ok()> is called >+ anf the Dialog is ended. > */ > > { >@@ -1229,13 +1214,12 @@ bool SfxTabDialog::PrepareLeaveCurrentPage() > > IMPL_LINK( SfxTabDialog, UserHdl, Button *, EMPTYARG ) > >-/* [Beschreibung] >+/* [Description] > >- Handler des User-Buttons >- Dieser ruft f"ur die aktuelle Seite >- <SfxTabPage::DeactivatePage(SfxItemSet *)>. >- Liefert diese <SfxTabPage::LEAVE_PAGE>, wird <SfxTabDialog::Ok()> gerufen. >- Mit dem Return-Wert von <SfxTabDialog::Ok()> wird dann der Dialog beendet. >+ Handler of the User-Buttons >+ This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>. >+ returns this <SfxTabPage::LEAVE_PAGE> and <SfxTabDialog::Ok()> is called. >+ Then the Dialog is ended with the Return value <SfxTabDialog::Ok()> > */ > > { >@@ -1256,22 +1240,21 @@ IMPL_LINK( SfxTabDialog, UserHdl, Button *, EMPTYARG ) > > IMPL_LINK( SfxTabDialog, ResetHdl, Button *, EMPTYARG ) > >-/* [Beschreibung] >+/* [Description] > >- Handler hinter dem Zur"ucksetzen-Button. >- Die aktuelle Page wird mit ihren initialen Daten >- neu initialisiert; alle Einstellungen, die der Benutzer >- auf dieser Seite get"atigt hat, werden aufgehoben. >+ Handler behind the reset button. >+ The Current Page is new initialized with their initial data, all the >+ settings that the user has made on this page are repealed. > */ > > { > const USHORT nId = aTabCtrl.GetCurPageId(); > Data_Impl* pDataObject = Find( *pImpl->pData, nId ); >- DBG_ASSERT( pDataObject, "Id nicht bekannt" ); >+ DBG_ASSERT( pDataObject, "Id not known" ); > > if ( pDataObject->bOnDemand ) > { >- // CSet auf AIS hat hier Probleme, daher getrennt >+ // CSet on AIS has problems here, thus separated > const SfxItemSet* pItemSet = &pDataObject->pTabPage->GetItemSet(); > pDataObject->pTabPage->Reset( *(SfxItemSet*)pItemSet ); > } >@@ -1284,18 +1267,17 @@ IMPL_LINK( SfxTabDialog, ResetHdl, Button *, EMPTYARG ) > > IMPL_LINK( SfxTabDialog, BaseFmtHdl, Button *, EMPTYARG ) > >-/* [Beschreibung] >+/* [Description] > >- Handler hinter dem Standard-Button. >- Dieser Button steht beim Bearbeiten von StyleSheets zur Verf"ugung. >- Alle in dem bearbeiteten StyleSheet eingestellten Attribute >- werden gel"oscht. >+ Handler behind the Standard-Button. >+ This button is available when editing style sheets. All the set attributes >+ in the edited stylesheet are deleted. > */ > > { > const USHORT nId = aTabCtrl.GetCurPageId(); > Data_Impl* pDataObject = Find( *pImpl->pData, nId ); >- DBG_ASSERT( pDataObject, "Id nicht bekannt" ); >+ DBG_ASSERT( pDataObject, "Id not known" ); > bFmt = 2; > > if ( pDataObject->fnGetRanges ) >@@ -1313,23 +1295,23 @@ IMPL_LINK( SfxTabDialog, BaseFmtHdl, Button *, EMPTYARG ) > > if ( *pTmpRanges == *pU ) > { >- // Range mit zwei gleichen Werten -> nur ein Item setzen >+ // Range which two identical values -> only set one Item > USHORT nWh = pPool->GetWhich( *pTmpRanges ); > pExampleSet->ClearItem( nWh ); > aTmpSet.ClearItem( nWh ); >- // am OutSet mit InvalidateItem, >- // damit die "Anderung wirksam wird >+ // At the Outset of InvalidateItem, >+ // so that the change takes effect > pOutSet->InvalidateItem( nWh ); > } > else > { >- // richtiger Range mit mehreren Werten >+ // Correct Range with multiple values > USHORT nTmp = *pTmpRanges, nTmpEnd = *pU; >- DBG_ASSERT( nTmp <= nTmpEnd, "Range ist falsch sortiert" ); >+ DBG_ASSERT( nTmp <= nTmpEnd, "Range is sorted the wrong way" ); > > if ( nTmp > nTmpEnd ) > { >- // wenn wirklich falsch sortiert, dann neu setzen >+ // If really sorted wrongly, then set new > USHORT nTmp1 = nTmp; > nTmp = nTmpEnd; > nTmpEnd = nTmp1; >@@ -1337,21 +1319,21 @@ IMPL_LINK( SfxTabDialog, BaseFmtHdl, Button *, EMPTYARG ) > > while ( nTmp <= nTmpEnd ) > { >- // "uber den Range iterieren, und die Items setzen >+ // Iterate over the Range and set the Items > USHORT nWh = pPool->GetWhich( nTmp ); > pExampleSet->ClearItem( nWh ); > aTmpSet.ClearItem( nWh ); >- // am OutSet mit InvalidateItem, >- // damit die "Anderung wirksam wird >+ // At the Outset of InvalidateItem, >+ // so that the change takes effect > pOutSet->InvalidateItem( nWh ); > nTmp++; > } > } >- // zum n"achsten Paar gehen >+ // Go to the next pair > pTmpRanges += 2; > } >- // alle Items neu gesetzt -> dann an der aktuellen Page Reset() rufen >- DBG_ASSERT( pDataObject->pTabPage, "die Page ist weg" ); >+ // Set all Items as new -> the call the current Page Reset() >+ DBG_ASSERT( pDataObject->pTabPage, "the Page is gone" ); > pDataObject->pTabPage->Reset( aTmpSet ); > pDataObject->pTabPage->pImpl->mbStandard = TRUE; > } >@@ -1368,29 +1350,27 @@ IMPL_LINK( SfxTabDialog, BaseFmtHdl, Button *, EMPTYARG ) > > IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl ) > >-/* [Beschreibung] >+/* [Description] > >- Handler, der vor dem Umschalten auf eine andere Seite >- durch Starview gerufen wird. >- Existiert die Seite noch nicht, so wird sie erzeugt und >- die virtuelle Methode <SfxTabDialog::PageCreated( USHORT, SfxTabPage &)> >- gerufen. Existiert die Seite bereits, so wird ggf. >- <SfxTabPage::Reset(const SfxItemSet &)> oder >- <SfxTabPage::ActivatePage(const SfxItemSet &)> gerufen. >+ Handler that is called by StarView for switching to a different page. >+ If the page not exist yet then it is created and the virtual Method >+ <SfxTabDialog::PageCreated( USHORT, SfxTabPage &)> is called. If the page >+ exist, then the if possible the <SfxTabPage::Reset(const SfxItemSet &)> or >+ <SfxTabPage::ActivatePage(const SfxItemSet &)> is called. > */ > > { > USHORT const nId = pTabCtrl->GetCurPageId(); > >- DBG_ASSERT( pImpl->pData->Count(), "keine Pages angemeldet" ); >+ DBG_ASSERT( pImpl->pData->Count(), "no Pages registered" ); > SFX_APP(); > > // Tab Page schon da? > SfxTabPage* pTabPage = dynamic_cast<SfxTabPage*> (pTabCtrl->GetTabPage( nId )); > Data_Impl* pDataObject = Find( *pImpl->pData, nId ); >- DBG_ASSERT( pDataObject, "Id nicht bekannt" ); >+ DBG_ASSERT( pDataObject, "Id not known" ); > >- // ggf. TabPage erzeugen: >+ // Create TabPage if possible: > if ( !pTabPage ) > { > #if ENABLE_LAYOUT_SFX_TABDIALOG >@@ -1444,7 +1424,7 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl ) > #endif /* ENABLE_LAYOUT */ > > Size aCtrlSiz = pTabCtrl->GetTabPageSizePixel(); >- // Gr"o/se am TabControl nur dann setzen, wenn < als TabPage >+ // Only set Size on TabControl when < as TabPage > if ( aCtrlSiz.Width() < aSiz.Width() || > aCtrlSiz.Height() < aSiz.Height() ) > { >@@ -1479,11 +1459,11 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl ) > > IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl ) > >-/* [Beschreibung] >+/* [Description] > >- Handler, der vor dem Verlassen einer Seite durch Starview gerufen wird. >+ Handler that is called by StarView before leaving a page. > >- [Querverweise] >+ [Cross-reference] > > <SfxTabPage::DeactivatePage(SfxItemSet *)> > */ >@@ -1492,13 +1472,13 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl ) > USHORT nId = pTabCtrl->GetCurPageId(); > SFX_APP(); > SfxTabPage *pPage = dynamic_cast<SfxTabPage*> (pTabCtrl->GetTabPage( nId )); >- DBG_ASSERT( pPage, "keine aktive Page" ); >+ DBG_ASSERT( pPage, "no active Page" ); > #ifdef DBG_UTIL > Data_Impl* pDataObject = Find( *pImpl->pData, pTabCtrl->GetCurPageId() ); >- DBG_ASSERT( pDataObject, "keine Datenstruktur zur aktuellen Seite" ); >+ DBG_ASSERT( pDataObject, "no Data structur for current page" ); > if ( pPage->HasExchangeSupport() && pDataObject->bOnDemand ) > { >- DBG_WARNING( "Datenaustausch bei ItemsOnDemand ist nicht gewuenscht!" ); >+ DBG_WARNING( "Data exchange in ItemsOnDemand is not desired!" ); > } > #endif > >@@ -1544,15 +1524,15 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl ) > if ( nRet & SfxTabPage::REFRESH_SET ) > { > pSet = GetRefreshedSet(); >- DBG_ASSERT( pSet, "GetRefreshedSet() liefert NULL" ); >- // alle Pages als neu zu initialsieren flaggen >+ DBG_ASSERT( pSet, "GetRefreshedSet() returns NULL" ); >+ // Flag all Pages as to be initialized as new > const USHORT nCount = pImpl->pData->Count(); > > for ( USHORT i = 0; i < nCount; ++i ) > { > Data_Impl* pObj = (*pImpl->pData)[i]; > >- if ( pObj->pTabPage != pPage ) // eigene Page nicht mehr refreshen >+ if ( pObj->pTabPage != pPage ) // Do not refresh own Page anymore > pObj->bRefresh = TRUE; > else > pObj->bRefresh = FALSE; >@@ -1568,11 +1548,11 @@ IMPL_LINK( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl ) > > const SfxItemSet* SfxTabDialog::GetOutputItemSet > >-/* [Beschreibung] >+/* [Description] > >- Liefert die Pages, die ihre Sets onDemand liefern, das OutputItemSet. >+ Return the pages that provide their sets onDemand, the OutputItemSet. > >- [Querverweise] >+ [Cross-reference] > > <SfxTabDialog::AddTabPage(USHORT, CreateTabPage, GetTabPageRanges, BOOL)> > <SfxTabDialog::AddTabPage(USHORT, const String &, CreateTabPage, GetTabPageRanges, BOOL, USHORT)> >@@ -1580,12 +1560,12 @@ const SfxItemSet* SfxTabDialog::GetOutputItemSet > */ > > ( >- USHORT nId // die Id, unter der die Seite bei AddTabPage() >- // hinzugef"ugt wurde. >+ USHORT nId // the Id, under which the page was added at AddTabPage(). >+ // hinzugefügt wurde. > ) const > { > Data_Impl* pDataObject = Find( *pImpl->pData, nId ); >- DBG_ASSERT( pDataObject, "TabPage nicht gefunden" ); >+ DBG_ASSERT( pDataObject, "TabPage not found" ); > > if ( pDataObject ) > { >@@ -1624,9 +1604,9 @@ extern "C" int TabDlgCmpUS_Impl( const void* p1, const void* p2 ) > #endif > #endif > >-/* [Beschreibung] >+/* [Description] > >- Vergleichsfunktion f"ur qsort >+ Comparison function for qsort > */ > > { >@@ -1637,9 +1617,9 @@ extern "C" int TabDlgCmpUS_Impl( const void* p1, const void* p2 ) > > void SfxTabDialog::ShowPage( USHORT nId ) > >-/* [Beschreibung] >+/* [Description] > >- Es wird die TabPage mit der "ubergebenen Id aktiviert. >+ The TabPage is activated with the specified Id. > */ > > { >@@ -1651,29 +1631,28 @@ void SfxTabDialog::ShowPage( USHORT nId ) > > const USHORT* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool ) > >-/* [Beschreibung] >+/* [Description] >+ >+ Makes the set over the range of all pages of the dialogue. Pages have the >+ static method for querying their range in AddTabPage, ie deliver their >+ sets onDemand. > >- Bildet das Set "uber die Ranges aller Seiten des Dialogs. >- Die Pages m"ussen die statische Methode f"ur das Erfragen ihrer >- Ranges bei AddTabPage angegeben haben, liefern also ihre Sets onDemand. >+ [Return value] > >- [Querverweise] >+ Pointer to a null-terminated array of USHORT. This array belongs to the >+ dialog and is deleted when the dialogue is destroy. >+ >+ [Cross-reference] > > <SfxTabDialog::AddTabPage(USHORT, CreateTabPage, GetTabPageRanges, BOOL)> > <SfxTabDialog::AddTabPage(USHORT, const String &, CreateTabPage, GetTabPageRanges, BOOL, USHORT)> > <SfxTabDialog::AddTabPage(USHORT, const Bitmap &, CreateTabPage, GetTabPageRanges, BOOL, USHORT)> >- >- [R"uckgabewert] >- >- Pointer auf nullterminiertes Array von USHORTs >- Dieses Array geh"ort dem Dialog und wird beim >- Zerst"oren des Dialogs gel"oscht. > */ > > { > if ( pSet ) > { >- DBG_ERRORFILE( "Set bereits vorhanden!" ); >+ DBG_ERRORFILE( "Set already exists!" ); > return pSet->GetRanges(); > } > >@@ -1699,7 +1678,7 @@ const USHORT* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool ) > } > } > >- //! Doppelte Ids entfernen? >+ //! Remove duplicated Ids? > #ifndef TF_POOLABLE > if ( rPool.HasMap() ) > #endif >@@ -1710,13 +1689,13 @@ const USHORT* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool ) > aUS[i] = rPool.GetWhich( aUS[i] ); > } > >- // sortieren >+ // sort > if ( aUS.Count() > 1 ) > qsort( (void*)aUS.GetData(), > aUS.Count(), sizeof(USHORT), TabDlgCmpUS_Impl ); > >- // Ranges erzeugen >- //!! Auskommentiert, da fehlerhaft >+ // Create Ranges >+ //!! Commented out because of errors > /* > pRanges = new USHORT[aUS.Count() * 2 + 1]; > int j = 0; >@@ -1725,13 +1704,13 @@ const USHORT* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool ) > while ( i < aUS.Count() ) > { > pRanges[j++] = aUS[i]; >- // aufeinanderfolgende Zahlen >+ // consecutive numbers > for( ; i < aUS.Count()-1; ++i ) > if ( aUS[i] + 1 != aUS[i+1] ) > break; > pRanges[j++] = aUS[i++]; > } >- pRanges[j] = 0; // terminierende NULL >+ pRanges[j] = 0; // terminated NULL > */ > > pRanges = new USHORT[aUS.Count() + 1]; >@@ -1744,10 +1723,9 @@ const USHORT* SfxTabDialog::GetInputRanges( const SfxItemPool& rPool ) > > void SfxTabDialog::SetInputSet( const SfxItemSet* pInSet ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode kann nachtr"aglich der Input-Set initial oder >- neu gesetzt werden. >+ With this method the Input-Set can subsequently be set initally or re-set. > */ > > { >diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx >index 3783eed..b3618a3 100644 >--- a/sfx2/source/dialog/templdlg.cxx >+++ b/sfx2/source/dialog/templdlg.cxx >@@ -83,8 +83,7 @@ using namespace ::com::sun::star::frame; > using namespace ::com::sun::star::uno; > > //========================================================================= >- >-// Fenster wird ab jetzt dynamisch erstellt. Daher hier R"ander usw. >+// Window is now created dynamically. So here margins, etc. > > #define SFX_TEMPLDLG_HFRAME 3 > #define SFX_TEMPLDLG_VTOPFRAME 3 >@@ -109,7 +108,7 @@ SFX_IMPL_DOCKINGWINDOW(SfxTemplateDialogWrapper, SID_STYLE_DESIGNER) > > //------------------------------------------------------------------------- > >-// Redirektionsfunktionen >+// Re-direct functions > > SfxTemplateDialog::SfxTemplateDialog > ( >@@ -118,8 +117,8 @@ SfxTemplateDialog::SfxTemplateDialog > Window *pParent > ) > >-/* [Beschreibung] >- Gestalterklasse. >+/* [Description] >+ Designer class. > */ > : SfxDockingWindow( pBind, pCW, pParent, SfxResId(DLG_STYLE_DESIGNER) ), > >@@ -348,11 +347,10 @@ SfxActionListBox::SfxActionListBox > WinBits nWinBits > ) > >-/* [Beschreibung] >- >- ListBox- Klasse, die im Command-Handler ein PopupMenu (Gestalter >- spezifisch) startet. >+/* [Description] > >+ ListBox class that starts a PopupMenu (designer specific) in the >+ command handler. > */ > > : DropListBox_Impl(pParent->GetWindow(), nWinBits, pParent) >@@ -407,11 +405,9 @@ void SfxTemplateDialogWrapper::SetParagraphFamily() > SV_DECL_PTRARR_DEL(ExpandedEntries, StringPtr,16,8) > SV_IMPL_PTRARR(ExpandedEntries, StringPtr) > >-/* [Beschreibung] >- >- TreeListBox- Klasse f"ur die Anzeige der hierarchischen View >- der Vorlagen >+/* [Description] > >+ TreeListBox class for displaying the hierarchical view of the templates > */ > > class StyleTreeListBox_Impl : public DropListBox_Impl >@@ -471,12 +467,10 @@ PopupMenu* StyleTreeListBox_Impl::CreateContextMenu() > > BOOL StyleTreeListBox_Impl::DoubleClickHdl() > >-/* [Beschreibung] >- >- >- DoubleClick-Handler; ruft entsprechenden Link. >- Virtuelle Methode aus SV. >+/* [Description] > >+ DoubleClick-Handler; calls the link. >+ SV virtual method. > */ > { > aDoubleClickLink.Call(this); >@@ -487,12 +481,10 @@ BOOL StyleTreeListBox_Impl::DoubleClickHdl() > > void StyleTreeListBox_Impl::Command( const CommandEvent& rCEvt ) > >-/* [Beschreibung] >- >- Command Handler; dieser executed ein PopupMenu (Gestalter >- spezifisch). >- Virtuelle Methode aus SV. >+/* [Description] > >+ Command Handler; this executes a PopupMenu (designer-specific) >+ SV virtual method. > */ > { > SvTreeListBox::Command(rCEvt); >@@ -527,12 +519,10 @@ BOOL StyleTreeListBox_Impl::NotifyMoving(SvLBoxEntry* pTarget, > SvLBoxEntry* pEntry, > SvLBoxEntry*& rpNewParent, > ULONG& lPos) >-/* [Beschreibung] >- >- NotifyMoving Handler; dieser leitet per Link das Event an den Dialog >- weiter. >- Virtuelle Methode aus SV. >+/* [Description] > >+ NotifyMoving Handler; This leads via a link on the event to the dialog. >+ SV virtual method. > */ > { > if(!pTarget || !pEntry) >@@ -556,14 +546,13 @@ BOOL StyleTreeListBox_Impl::NotifyMoving(SvLBoxEntry* pTarget, > > long StyleTreeListBox_Impl::ExpandingHdl() > >-/* [Beschreibung] >+/* [Description] > >- ExpandingHdl Handler; der aktuelle Eintrag wird gemerkt. >- Virtuelle Methode aus SV. >+ ExpandingHdl Handler; the current entry is noticed. >+ SV virtual method. > >- [Querverweise] >+ [Cross-reference] > <StyleTreeListBox_Impl::ExpandedHdl()> >- > */ > { > pCurEntry = GetCurEntry(); >@@ -574,14 +563,13 @@ long StyleTreeListBox_Impl::ExpandingHdl() > > void StyleTreeListBox_Impl::ExpandedHdl() > >-/* [Beschreibung] >+/* [Description] > > ExpandedHdl Handler; >- Virtuelle Methode aus SV. >+ SV virtual method. > >- [Querverweise] >+ [Cross-reference] > <StyleTreeListBox_Impl::ExpandingHdl()> >- > */ > > { >@@ -599,10 +587,9 @@ StyleTreeListBox_Impl::StyleTreeListBox_Impl( > pCurEntry(0), > pCommon(pParent) > >-/* [Beschreibung] >- >- Konstruktor StyleTreeListBox_Impl >+/* [Description] > >+ Constructor StyleTreeListBox_Impl > */ > { > EnableContextMenuHandling(); >@@ -614,10 +601,9 @@ StyleTreeListBox_Impl::StyleTreeListBox_Impl( > class StyleTreeArr_Impl; > > >-/* [Beschreibung] >- >- Interne Struktur f"ur den Aufbau der hierarchischen View >+/* [Description] > >+ Internal structure for the establishment of the hierarchical view > */ > > struct StyleTree_Impl >@@ -669,7 +655,7 @@ void StyleTree_Impl::Put(StyleTree_Impl* pIns, ULONG lPos) > StyleTreeArr_Impl &MakeTree_Impl(StyleTreeArr_Impl &rArr) > { > const USHORT nCount = rArr.Count(); >- // Alle unter ihren Parents einordnen >+ // Arrange all under their Parents > USHORT i; > for(i = 0; i < nCount; ++i) > { >@@ -681,7 +667,7 @@ StyleTreeArr_Impl &MakeTree_Impl(StyleTreeArr_Impl &rArr) > StyleTree_ImplPtr pCmp = rArr[j]; > if(pCmp->aName == pEntry->aParent) > { >- // initial sortiert einfuegen >+ // Paste initial filter > USHORT ii; > IntlWrapper aIntlWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() ); > const CollatorWrapper* pCollator = aIntlWrapper.getCaseCollator(); >@@ -695,8 +681,8 @@ StyleTreeArr_Impl &MakeTree_Impl(StyleTreeArr_Impl &rArr) > } > } > } >- // alle, die schon unter ihrem Parent eingeordnet wurden >- // entfernen >+ >+ // Remove all which are already arranged under their Parent > for(i = 0; i < rArr.Count(); ) > { > if(rArr[i]->HasParent()) >@@ -735,8 +721,7 @@ SvLBoxEntry* FillBox_Impl(SvTreeListBox *pBox, > } > > //------------------------------------------------------------------------- >- >-// Konstruktor >+// Constructor > > SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl( SfxBindings* pB, SfxDockingWindow* pW ) : > >@@ -848,16 +833,15 @@ USHORT SfxCommonTemplateDialog_Impl::InfoOffsetToStyleNr(USHORT nId) > for ( size_t i = 0; i < pStyleFamilies->size(); i++ ) > if ( SfxFamilyIdToNId(pStyleFamilies->at( i )->GetFamily()) == nId+1 ) > return i; >- DBG_ERROR("Style Nummer nicht gefunden"); >+ DBG_ERROR("Style Nummer not found"); > return 0; > } > >- > //------------------------------------------------------------------------- > > void SfxCommonTemplateDialog_Impl::ReadResource() > { >- // globale Benutzer-Resource auslesen >+ // Read global user resource > for(USHORT i = 0; i < MAX_FAMILIES; ++i) > pFamilyState[i] = 0; > >@@ -877,8 +861,8 @@ void SfxCommonTemplateDialog_Impl::ReadResource() > if ( pCurObjShell && 0xFFFF == nActFilter ) > nActFilter = pCurObjShell->GetAutoStyleFilterIndex(); > >- // Einfuegen in die Toolbox >- // umgekehrte Reihenfolge, da immer vorne eingefuegt wird. >+ // Paste in the toolbox >+ // reverse order, since always inserted at the head > size_t nCount = pStyleFamilies->size(); > > pBindings->ENTERREGISTRATIONS(); >@@ -922,14 +906,13 @@ void SfxCommonTemplateDialog_Impl::ReadResource() > > StartListening(*pBindings); > >-//In umgekehrter Reihenfolge des Auftretens in den Stylefamilies einfuegen. >-//Das ist fuer den Toolbar des Gestalters. Die Listbox des Kataloges achtet >-//selbst auf korrekte Reihenfolge. >+// Insert in the reverse order of occurrence in the Style Families. This is for >+// the toolbar of the designer. The list box of the catalog respects the >+// correct order by itself. > >-//Reihenfolgen: Reihenfolge in der Resource = Reihenfolge in Toolbar bzw. >-//Listbox. >-//Reihenfolge aufsteigender SIDs: Niedrige SIDs werden als erstes angezeigt, >-//wenn Vorlagen mehrerer Familien aktiv sind. >+// Sequences: the order of Resource = the order of Toolbar for example list box. >+// Order of ascending SIDs: Low SIDs are displayed first when templates of >+// several families are active. > > // in the Writer the UpdateStyleByExample Toolbox button is removed and > // the NewStyle button gets a PopupMenu >@@ -974,7 +957,7 @@ void SfxCommonTemplateDialog_Impl::ClearResource() > > void SfxCommonTemplateDialog_Impl::Initialize() > { >- // globale Benutzer-Resource auslesen >+ // Read global user resource > ReadResource(); > pBindings->Invalidate( SID_STYLE_FAMILY ); > pBindings->Update( SID_STYLE_FAMILY ); >@@ -1048,8 +1031,7 @@ void SfxCommonTemplateDialog_Impl::SetAutomaticFilter() > } > > //------------------------------------------------------------------------- >- >-// Hilfsfunktion: Zugriff auf aktuelles Family-Item >+// Helper function: Access to the current family item > const SfxStyleFamilyItem *SfxCommonTemplateDialog_Impl::GetFamilyItem_Impl() const > { > const size_t nCount = pStyleFamilies->size(); >@@ -1211,7 +1193,7 @@ void SfxCommonTemplateDialog_Impl::FillTreeBox() > pTreeBox->SetUpdateMode( TRUE ); > > String aStyle; >- if(pState) //Aktuellen Eintrag selektieren >+ if(pState) // Select current entry > aStyle = pState->GetStyleName(); > SelectStyle(aStyle); > EnableDelete(); >@@ -1228,21 +1210,21 @@ BOOL SfxCommonTemplateDialog_Impl::HasSelectedStyle() const > > //------------------------------------------------------------------------- > >-// intern: Aktualisierung der Anzeige >-void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags, was aktualisiert werden soll (s.o.) >+// internal: Update the display >+void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags, what should be updated (see above) > { >- DBG_ASSERT(nFlags, "nichts zu tun"); >+ DBG_ASSERT(nFlags, "nothing to do"); > const SfxStyleFamilyItem *pItem = GetFamilyItem_Impl(); > if (!pItem) > { >- // Ist beim Vorlagenkatalog der Fall >+ // Is the case for the template catalog > SfxTemplateItem **ppItem = pFamilyState; > const size_t nFamilyCount = pStyleFamilies->size(); > size_t n; > for( n = 0; n < nFamilyCount; n++ ) > if( ppItem[ StyleNrToInfoOffset(n) ] ) break; > if ( n == nFamilyCount ) >- // passiert gelegentlich bei Beichten, Formularen etc.; weiss der Teufel warum >+ // sometimes happens in reports, forms, etc.; the devil knows why > return; > ppItem += StyleNrToInfoOffset(n); > nAppFilter = (*ppItem)->GetValue(); >@@ -1254,17 +1236,17 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags > > SfxFilterTupel* pT = ( nActFilter < pItem->GetFilterList().size() ? pItem->GetFilterList()[nActFilter] : NULL ); > USHORT nFilter = pT ? pT->nFlags : 0; >- if(!nFilter) // automatisch >+ if(!nFilter) // automatic > nFilter = nAppFilter; > >- DBG_ASSERT(pStyleSheetPool, "kein StyleSheetPool"); >+ DBG_ASSERT(pStyleSheetPool, "no StyleSheetPool"); > if(pStyleSheetPool) > { > pStyleSheetPool->SetSearchMask(eFam, nFilter); > pItem = GetFamilyItem_Impl(); > if((nFlags & UPDATE_FAMILY) == UPDATE_FAMILY) > { >- CheckItem(nActFamily, TRUE); // Button in Toolbox checken >+ CheckItem(nActFamily, TRUE); // check Button in Toolbox > aFilterLb.SetUpdateMode(FALSE); > aFilterLb.Clear(); > //insert hierarchical at the beginning >@@ -1288,7 +1270,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags > pStyleSheetPool->SetSearchMask(eFam, nFilterFlags); > } > >- //Falls in Treedarstellung wieder Family Hierarchie selektieren >+ // if the tree view again, select family hierarchy > if(pTreeBox) > aFilterLb.SelectEntry(String(SfxResId(STR_STYLE_FILTER_HIERARCHICAL))); > >@@ -1322,8 +1304,8 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags > { > if( !nPos || *aStrings[nPos-1] < pStyle->GetName() ) > { >- // Die Namen stehen in den Styles, also nicht kopieren >- // Reingefallen!: Writer hat insgesamt nur 1 Style >+ // The names are in the styles, so do not copy. >+ // Writer has a total of only 1 Style > aStrings.Insert( > new String( pStyle->GetName() ), nPos ); > break; >@@ -1344,7 +1326,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags > > if( nPos < nCount || pEntry ) > { >- // Box mit den Vorlagen fuellen >+ // Fill Box with the template > aFmtLb.SetUpdateMode(FALSE); > aFmtLb.Clear(); > >@@ -1353,10 +1335,10 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags > aFmtLb.InsertEntry( *aStrings.GetObject( nPos++ )); > aFmtLb.SetUpdateMode(TRUE); > } >- // aktuelle Vorlage anzeigen >+ // Display current template > SfxTemplateItem *pState = pFamilyState[nActFamily-1]; > String aStyle; >- if(pState) //Aktuellen Eintrag selektieren >+ if(pState) //Select current entry > aStyle = pState->GetStyleName(); > SelectStyle(aStyle); > EnableDelete(); >@@ -1366,7 +1348,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags > > //------------------------------------------------------------------------- > >-// Aktualisierung Anzeige: Gie\skanne an/aus >+// Updated display: Watering the house > void SfxCommonTemplateDialog_Impl::SetWaterCanState(const SfxBoolItem *pItem) > { > // EnableItem(SID_STYLE_WATERCAN, pItem != 0); >@@ -1386,7 +1368,7 @@ void SfxCommonTemplateDialog_Impl::SetWaterCanState(const SfxBoolItem *pItem) > else > EnableItem(SID_STYLE_WATERCAN, FALSE); > >-//Waehrend Giesskannenmodus Statusupdates ignorieren. >+// Ignore while in watercan mode statusupdates > > size_t nCount = pStyleFamilies->size(); > pBindings->EnterRegistrations(); >@@ -1407,9 +1389,9 @@ void SfxCommonTemplateDialog_Impl::SetWaterCanState(const SfxBoolItem *pItem) > > //------------------------------------------------------------------------- > >-// Item mit dem Status einer Family wird kopiert und gemerkt >-// (Aktualisierung erfolgt, wenn alle Stati aktualisiert worden sind. >-// Siehe auch: <SfxBindings::AddDoneHdl(const Link &)> >+// Item with the status of a Family is copied and noted >+// (is updated when all states have also been updated.) >+// See also: <SfxBindings::AddDoneHdl(const Link &)> > > void SfxCommonTemplateDialog_Impl::SetFamilyState( USHORT nSlotId, const SfxTemplateItem* pItem ) > { >@@ -1419,14 +1401,13 @@ void SfxCommonTemplateDialog_Impl::SetFamilyState( USHORT nSlotId, const SfxTemp > pFamilyState[nIdx] = new SfxTemplateItem(*pItem); > bUpdate = TRUE; > >- // Wenn verwendete Vorlagen ( wie zum Teufel findet man das heraus ?? ) >+ // If used templates (how the hell you find this out??) > bUpdateFamily = TRUE; > } > > //------------------------------------------------------------------------- >- >-// Benachrichtigung durch SfxBindings, da"s die Aktualisierung >-// beendet ist. St"o\st die Aktualisierung der Anzeige an. >+// Notice from SfxBindings that the update is completed. Pushes out the update >+// of the display. > > void SfxCommonTemplateDialog_Impl::Update_Impl() > { >@@ -1467,12 +1448,11 @@ void SfxCommonTemplateDialog_Impl::Update_Impl() > if(pFamilyState[i]) > break; > if(i == MAX_FAMILIES || !pNewPool) >- // nichts erlaubt >+ // nothing is allowed > return; > > SfxTemplateItem *pItem = 0; >- // aktueller Bereich nicht innerhalb der erlaubten Bereiche >- // oder Default >+ // current region not within the allowed region or default > if(nActFamily == 0xffff || 0 == (pItem = pFamilyState[nActFamily-1] ) ) > { > CheckItem(nActFamily, FALSE); >@@ -1490,7 +1470,7 @@ void SfxCommonTemplateDialog_Impl::Update_Impl() > } > else if( bDocChanged ) > { >- // andere DocShell -> alles neu >+ // other DocShell -> all new > CheckItem( nActFamily, TRUE ); > nActFilter = static_cast< USHORT >( LoadFactoryStyleFilter( pDocShell ) ); > if ( 0xFFFF == nActFilter ) >@@ -1506,7 +1486,7 @@ void SfxCommonTemplateDialog_Impl::Update_Impl() > } > else > { >- // anderer Filter fuer automatisch >+ // other filters for automatic > CheckItem( nActFamily, TRUE ); > const SfxStyleFamilyItem *pStyleItem = GetFamilyItem_Impl(); > #if OSL_DEBUG_LEVEL > 1 >@@ -1564,7 +1544,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, TimeOut, Timer *, pTim ) > //------------------------------------------------------------------------- > void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint& rHint) > { >- // Aktualisierung anstossen >+ // tap update > if(rHint.Type() == TYPE(SfxSimpleHint)) > { > switch(((SfxSimpleHint&) rHint ).GetId()) >@@ -1609,10 +1589,10 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint > } > break; > } >- // noetig, wenn zwichen Dokumenten umgeschaltet wird, >- // aber in beiden Dokumenten die gleiche Vorlage gilt. >- // Nicht sofort Update_Impl rufen, fuer den Fall da\s eines >- // der Dokumente ein internes InPlaceObjekt ist! >+ >+ // Necessary if switching between documents and in both documents >+ // the same template is used. Do not immediately call Update_Impl, >+ // for the case that one of the documents is an internal InPlaceObjekt! > case SFX_HINT_DOCCHANGED: > bUpdate = TRUE; > break; >@@ -1625,9 +1605,9 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint > } > } > >- // Timer nicht aufsetzen, wenn der StyleSheetPool in die Kiste geht, denn >- // es kann sein, da\s sich ein neuer erst anmeldet, nachdem der Timer >- // abgelaufen ist - macht sich schlecht in UpdateStyles_Impl() ! >+ // Do not set timer when the stylesheet pool is in the box, because it is >+ // possible that a new one is registered after the timer is up - >+ // works bad in UpdateStyles_Impl ()! > > ULONG nId = rHint.ISA(SfxSimpleHint) ? ( (SfxSimpleHint&)rHint ).GetId() : 0; > >@@ -1650,12 +1630,12 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint > > //------------------------------------------------------------------------- > >-// Anderer Filter; kann durch den Benutzer umgeschaltet werden >-// oder als Folge von Neu oder Bearbeiten, wenn die aktuelle >-// Vorlage einem anderen Filter zugewiesen wurde. >+// Other filters; can be switched by the users or as a result of new or >+// editing, if the current document has been assigned a different filter. > void SfxCommonTemplateDialog_Impl::FilterSelect( >- USHORT nEntry, // Idx des neuen Filters >- BOOL bForce ) // Aktualisierung erzwingen, auch wenn der neue Filter gleich dem aktuellen ist >+ USHORT nEntry, // Idx of the new Filters >+ BOOL bForce ) // Force update, even if the new filter is >+ // equal to the current > { > if( nEntry != nActFilter || bForce ) > { >@@ -1684,7 +1664,7 @@ void SfxCommonTemplateDialog_Impl::FilterSelect( > > //------------------------------------------------------------------------- > >-// Intern: Ausf"uhren von Funktionen "uber den Dispatcher >+// Internal: Perform functions through the Dispatcher > BOOL SfxCommonTemplateDialog_Impl::Execute_Impl( > USHORT nId, const String &rStr, const String& rRefStr, USHORT nFamily, > USHORT nMask, USHORT *pIdx, const USHORT* pModifier) >@@ -1704,7 +1684,7 @@ BOOL SfxCommonTemplateDialog_Impl::Execute_Impl( > pItems[ nCount++ ] = &aMask; > if(SID_STYLE_UPDATE_BY_EXAMPLE == nId) > { >- //Sonderloesung fuer Numerierungsupdate im Writer >+ // Special solution for Numbering update in Writer > const String aTemplName(GetSelectedEntry()); > aUpdName.SetValue(aTemplName); > pItems[ nCount++ ] = &aUpdName; >@@ -1728,9 +1708,9 @@ BOOL SfxCommonTemplateDialog_Impl::Execute_Impl( > if ( nId == SID_STYLE_NEW || SID_STYLE_EDIT == nId ) > { > SfxUInt16Item *pFilterItem = PTR_CAST(SfxUInt16Item, pItem); >- DBG_ASSERT(pFilterItem, "SfxUINT16Item erwartet"); >+ DBG_ASSERT(pFilterItem, "SfxUINT16Item expected"); > USHORT nFilterFlags = pFilterItem->GetValue() & ~SFXSTYLEBIT_USERDEF; >- if(!nFilterFlags) // Benutzervorlage? >+ if(!nFilterFlags) // User Template? > nFilterFlags = pFilterItem->GetValue(); > const SfxStyleFamilyItem *pFamilyItem = GetFamilyItem_Impl(); > const size_t nFilterCount = pFamilyItem->GetFilterList().size(); >@@ -1760,7 +1740,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FilterSelectHdl, ListBox *, pBox ) > { > if ( !bHierarchical ) > { >- // TreeView einschalten >+ // Turn on treeView > bHierarchical=TRUE; > const String aSelectEntry( GetSelectedEntry()); > aFmtLb.Hide(); >@@ -1794,7 +1774,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FilterSelectHdl, ListBox *, pBox ) > DELETEZ(pTreeBox); > aFmtLb.Show(); > // aFilterLb.Enable(); >- // Falls bHierarchical, kann sich die Familie geaendert haben >+ // If bHierarchical, then the family can have changed > // minus one since hierarchical is inserted at the start > FilterSelect(pBox->GetSelectEntryPos() - 1, bHierarchical ); > bHierarchical=FALSE; >@@ -1805,7 +1785,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FilterSelectHdl, ListBox *, pBox ) > > //------------------------------------------------------------------------- > >-// Select-Handler der Toolbox >+// Select-Handler for the Toolbox > void SfxCommonTemplateDialog_Impl::FamilySelect(USHORT nEntry) > { > if( nEntry != nActFamily ) >@@ -1833,7 +1813,7 @@ void SfxCommonTemplateDialog_Impl::ActionSelect(USHORT nEntry) > const BOOL bState = IsCheckedItem(nEntry); > BOOL bCheck; > SfxBoolItem aBool; >- // wenn eine Vorlage ausgewaehlt ist. >+ // when a template is chosen. > if(!bState && aFmtLb.GetSelectionCount()) > { > const String aTemplName( >@@ -1974,7 +1954,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, DropHdl, StyleTreeListBox_Impl *, pBox > > //------------------------------------------------------------------------- > >-// Handler des Neu-Buttons >+// Handler for the New-Buttons > void SfxCommonTemplateDialog_Impl::NewHdl(void *) > { > String aEmpty; >@@ -1993,7 +1973,7 @@ void SfxCommonTemplateDialog_Impl::NewHdl(void *) > if( pItem && nActFilter != 0xffff ) > { > nMask = pItem->GetFilterList()[ nActFilter ]->nFlags; >- if(!nMask) // automatisch >+ if(!nMask) // automatic > nMask = nAppFilter; > } > else >@@ -2007,13 +1987,12 @@ void SfxCommonTemplateDialog_Impl::NewHdl(void *) > nMask); > > Application::SetDefDialogParent( pTmp ); >- > } > } > > //------------------------------------------------------------------------- > >-// Handler des Bearbeiten-Buttons >+// Handler for the edit-Buttons > void SfxCommonTemplateDialog_Impl::EditHdl(void *) > { > if(IsInitialized() && HasSelectedStyle()) >@@ -2024,8 +2003,7 @@ void SfxCommonTemplateDialog_Impl::EditHdl(void *) > const SfxStyleFamily eFam = pItem->GetFamily(); > pStyleSheetPool->Find(aTemplName,eFam,SFXSTYLEBIT_ALL); // -Wall required?? > Window* pTmp; >- //DefModalDialogParent setzen fuer >- //Modalitaet der nachfolgenden Dialoge >+ //DefModalDialogParent set for modality of the following dialogs > pTmp = Application::GetDefDialogParent(); > if ( ISA(SfxTemplateDialog_Impl) ) > Application::SetDefDialogParent( pWindow->GetParent() ); >@@ -2041,7 +2019,7 @@ void SfxCommonTemplateDialog_Impl::EditHdl(void *) > > //------------------------------------------------------------------------- > >-// Handler des L"oschen-Buttons >+// Handler for the Delete-Buttons > void SfxCommonTemplateDialog_Impl::DeleteHdl(void *) > { > if ( IsInitialized() && HasSelectedStyle() ) >@@ -2066,7 +2044,8 @@ void SfxCommonTemplateDialog_Impl::DeleteHdl(void *) > { > PrepareDeleteAction(); > >- if ( pTreeBox ) // Damit die Treelistbox beim L"oschen nicht zuklappt >+ if ( pTreeBox ) // To prevent the Treelistbox to shut down while >+ // deleting. > { > bDontUpdate = TRUE; > } >@@ -2089,19 +2068,19 @@ void SfxCommonTemplateDialog_Impl::EnableDelete() > { > if(IsInitialized() && HasSelectedStyle()) > { >- DBG_ASSERT(pStyleSheetPool, "Kein StyleSheetPool"); >+ DBG_ASSERT(pStyleSheetPool, "No StyleSheetPool"); > const String aTemplName(GetSelectedEntry()); > const SfxStyleFamilyItem *pItem = GetFamilyItem_Impl(); > const SfxStyleFamily eFam = pItem->GetFamily(); > USHORT nFilter = 0; > if(pItem->GetFilterList().size() > nActFilter) > nFilter = pItem->GetFilterList()[ nActFilter ]->nFlags; >- if(!nFilter) // automatisch >+ if(!nFilter) // automatic > nFilter = nAppFilter; > const SfxStyleSheetBase *pStyle = > pStyleSheetPool->Find(aTemplName,eFam, pTreeBox? SFXSTYLEBIT_ALL: nFilter); > >- DBG_ASSERT(pStyle, "Style nicht gefunden"); >+ DBG_ASSERT(pStyle, "Style ot found"); > if(pStyle && pStyle->IsUserDefined()) > { > EnableDel(TRUE); >@@ -2118,9 +2097,7 @@ void SfxCommonTemplateDialog_Impl::EnableDelete() > } > > //------------------------------------------------------------------------- >- >-// nach Selektion eines Eintrags den Focus gfs. wieder auf das App-Fenster >-// setzen >+// After selecting a focused item if possible again on the app window > void SfxCommonTemplateDialog_Impl::ResetFocus() > { > if(ISA(SfxTemplateDialog_Impl)) >@@ -2135,11 +2112,11 @@ void SfxCommonTemplateDialog_Impl::ResetFocus() > > //------------------------------------------------------------------------- > >-// Doppelclick auf ein StyleSheet in der ListBox, wird angewendet. >+// Doppelclick on a style sheet in the ListBox is applied. > IMPL_LINK( SfxCommonTemplateDialog_Impl, ApplyHdl, Control *, pControl ) > { > (void)pControl; //unused >- // nur, wenn dieser Bereich erlaubt ist >+ // only if that region is allowed > if ( IsInitialized() && 0 != pFamilyState[nActFamily-1] && > GetSelectedEntry().Len() ) > { >@@ -2157,16 +2134,16 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, ApplyHdl, Control *, pControl ) > > //------------------------------------------------------------------------- > >-// Selektion einer Vorlage w"ahrend des Watercan-Status >+// Selection of a template during the Watercan-Status > IMPL_LINK( SfxCommonTemplateDialog_Impl, FmtSelectHdl, SvTreeListBox *, pListBox ) > { >- // HilfePI antriggern, wenn von Call als Handler und Bereich erlaubt ist >+ // Trigger Help PI, if this is permitted of call handlers and field > if( !pListBox || pListBox->IsSelected( pListBox->GetHdlEntry() ) ) > { >- // nur, wenn Giesskanne an ist >+ // Only when the watercan is on > if ( IsInitialized() && > IsCheckedItem(SID_STYLE_WATERCAN) && >- // nur, wenn dieser Bereich erlaubt ist >+ // only if that region is allowed > 0 != pFamilyState[nActFamily-1] ) > { > String aEmpty; >@@ -2309,7 +2286,7 @@ void SfxTemplateDialog_Impl::InsertFamilyItem(USHORT nId,const SfxStyleFamilyIte > case SFX_STYLE_FAMILY_FRAME:nHelpId = SID_STYLE_FAMILY3; break; > case SFX_STYLE_FAMILY_PAGE: nHelpId = SID_STYLE_FAMILY4; break; > case SFX_STYLE_FAMILY_PSEUDO: nHelpId = SID_STYLE_FAMILY5; break; >- default: DBG_ERROR("unbekannte StyleFamily"); break; >+ default: DBG_ERROR("unknown StyleFamily"); break; > } > m_aActionTbL.InsertItem( nId, pItem->GetImage(), pItem->GetText(), 0, 0); > m_aActionTbL.SetHelpId( nId, nHelpId ); >@@ -2389,8 +2366,8 @@ void SfxTemplateDialog_Impl::LoadedFamilies() > > //------------------------------------------------------------------------- > >-// "Uberladener Resize-Handler ( StarView ) >-// Die Groesse der Listboxen wird angepasst >+// Overloaded Resize-Handler ( StarView ) >+// The size of the Listboxen is adjusted > void SfxTemplateDialog_Impl::Resize() > { > FloatingWindow *pF = m_pFloat->GetFloatingWindow(); >@@ -2412,8 +2389,8 @@ void SfxTemplateDialog_Impl::Resize() > m_aActionTbL.SetPosSizePixel(m_pFloat->LogicToPixel(Point(SFX_TEMPLDLG_HFRAME,SFX_TEMPLDLG_VTOPFRAME)), > m_pFloat->LogicToPixel(aSizeATL)); > >- // Die Position der rechten Toolbox nur ver"andern, wenn das Fenster >- // breit genug ist >+ // only change the position of the right toolbox, when the window is wide >+ // enough > Point aPosATR(aDlgSize.Width()-SFX_TEMPLDLG_HFRAME-aSizeATR.Width(),SFX_TEMPLDLG_VTOPFRAME); > if(aDlgSize.Width() >= aMinSize.Width()) > m_aActionTbR.SetPosPixel(m_pFloat->LogicToPixel(aPosATR)); >@@ -2440,8 +2417,7 @@ void SfxTemplateDialog_Impl::Resize() > SFX_TEMPLDLG_VTOPFRAME - 2*SFX_TEMPLDLG_MIDVSPACE- > nListHeight-aSizeATL.Height())) ); > >- // Die Position der Listboxen nur ver"andern, wenn das Fenster >- // hoch genug ist >+ // only change the position of the listbox, when the window is high enough > if(aDlgSize.Height() >= aMinSize.Height()) > { > aFilterLb.SetPosPixel(aFilterPos); >@@ -2811,9 +2787,8 @@ BOOL SfxTemplateCatalog_Impl::IsCheckedItem(USHORT nMesId) > } > > //------------------------------------------------------------------------- >- >-// Der Katalog muss nur das Disablen beherrschen, da waehrend seiner >-// Lebenszeit keine Selektionsaenderungen vorgenommen werden koennen >+// The list has only to master the disabling, since during his life time no >+// changes in selection can be made, > void SfxTemplateCatalog_Impl::EnableFamilyItem( USHORT nId, BOOL bEnable ) > { > if ( !bEnable ) >@@ -2895,7 +2870,7 @@ void SfxCommonTemplateDialog_Impl::UpdateFamily_Impl() > InvalidateBindings(); > > if ( IsCheckedItem( SID_STYLE_WATERCAN ) && >- // nur, wenn dieser Bereich erlaubt ist >+ // only if that area is allowed > 0 != pFamilyState[ nActFamily - 1 ] ) > Execute_Impl( SID_STYLE_APPLY, GetSelectedEntry(), > String(), (USHORT)GetFamilyItem_Impl()->GetFamily() ); >diff --git a/sfx2/source/dialog/tplcitem.cxx b/sfx2/source/dialog/tplcitem.cxx >index ae4d90d..bec662b 100644 >--- a/sfx2/source/dialog/tplcitem.cxx >+++ b/sfx2/source/dialog/tplcitem.cxx >@@ -45,11 +45,12 @@ > > // STATIC DATA ----------------------------------------------------------- > >-// Konstruktor >+// Constructor > > SfxTemplateControllerItem::SfxTemplateControllerItem( > USHORT nSlotId, // ID >- SfxCommonTemplateDialog_Impl &rDlg, // Controller-Instanz, dem dieses Item zugeordnet ist. >+ SfxCommonTemplateDialog_Impl &rDlg, // Controller-Instance, >+ // which is assigned to this item. > SfxBindings &rBindings): > SfxControllerItem(nSlotId, rBindings), > rTemplateDlg(rDlg), >@@ -65,9 +66,8 @@ SfxTemplateControllerItem::~SfxTemplateControllerItem() > } > > // ----------------------------------------------------------------------- >- >-// Benachrichtigung "uber Status"anderung; wird an den >-// im Konstruktor "ubergebenen Controller propagiert >+// Notice about change of status, is propagated through the Controller >+// passed on by the constructor > > void SfxTemplateControllerItem::StateChanged( USHORT nSID, SfxItemState eState, > const SfxPoolItem* pItem ) >@@ -86,11 +86,11 @@ void SfxTemplateControllerItem::StateChanged( USHORT nSID, SfxItemState eState, > else { > const SfxTemplateItem *pStateItem = PTR_CAST( > SfxTemplateItem, pItem); >- DBG_ASSERT(pStateItem != 0, "SfxTemplateItem erwartet"); >+ DBG_ASSERT(pStateItem != 0, "SfxTemplateItem expected"); > rTemplateDlg.SetFamilyState( GetId(), pStateItem ); > } > BOOL bDisable = eState == SFX_ITEM_DISABLED; >- // Familie Disablen >+ // Disable Familly > USHORT nFamily = 0; > switch( GetId()) > { >@@ -104,7 +104,7 @@ void SfxTemplateControllerItem::StateChanged( USHORT nSID, SfxItemState eState, > nFamily = 4; break; > case SID_STYLE_FAMILY5: > nFamily = 5; break; >- default: DBG_ERROR("unbekannte StyleFamily"); break; >+ default: DBG_ERROR("unknown StyleFamily"); break; > } > rTemplateDlg.EnableFamilyItem( nFamily, !bDisable ); > break; >@@ -116,7 +116,7 @@ void SfxTemplateControllerItem::StateChanged( USHORT nSID, SfxItemState eState, > else if( eState == SFX_ITEM_AVAILABLE ) > { > const SfxBoolItem *pStateItem = PTR_CAST(SfxBoolItem, pItem); >- DBG_ASSERT(pStateItem != 0, "BoolItem erwartet"); >+ DBG_ASSERT(pStateItem != 0, "BoolItem expected"); > nWaterCanState = pStateItem->GetValue() ? 1 : 0; > } > //not necessary if the last event is still on the way >@@ -140,7 +140,7 @@ void SfxTemplateControllerItem::StateChanged( USHORT nSID, SfxItemState eState, > { > rTemplateDlg.EnableExample_Impl( > GetId(), eState != SFX_ITEM_DISABLED ); >- // Das Select Disabled dann, falls enabled und Style Readonly >+ // Disable Select, if enabled and style Read Only. > /* String aStr = rTemplateDlg.GetSelectedEntry(); > if( aStr.Len() ) rTemplateDlg.SelectStyle( aStr ); */ > break; >diff --git a/sfx2/source/dialog/tplpitem.cxx b/sfx2/source/dialog/tplpitem.cxx >index 56c568c..2a1d311 100644 >--- a/sfx2/source/dialog/tplpitem.cxx >+++ b/sfx2/source/dialog/tplpitem.cxx >@@ -49,8 +49,8 @@ SfxTemplateItem::SfxTemplateItem() : > SfxTemplateItem::SfxTemplateItem > ( > USHORT nWhichId, // Slot-ID >- const String& rStyle, // Name des aktuellen Styles >- USHORT nValue // Flags f"ur das Filtern bei automatischer Anzeige >+ const String& rStyle, // Name of the current Styles >+ USHORT nValue // Flags for the filters of the automatic display > ) : SfxFlagItem( nWhichId, nValue ), > aStyle( rStyle ) > { >@@ -58,7 +58,7 @@ SfxTemplateItem::SfxTemplateItem > > //------------------------------------------------------------------------- > >-// copy ctor >+// copy constuctor > SfxTemplateItem::SfxTemplateItem( const SfxTemplateItem& rCopy ) : > > SfxFlagItem( rCopy ), >diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx >index 9a7d487..dbbe7f7 100644 >--- a/sfx2/source/dialog/versdlg.cxx >+++ b/sfx2/source/dialog/versdlg.cxx >@@ -175,7 +175,7 @@ SvStringsDtor* SfxVersionTableDtor::GetVersions() const > return pList; > } > >-// Achtung im Code wird dieses Array direkt (0, 1, ...) indiziert >+// Caution in the code this array si indexed directly (0, 1, ...) > static long nTabs_Impl[] = > { > 3, // Number of Tabs >@@ -241,7 +241,7 @@ SfxVersionDialog::SfxVersionDialog ( SfxViewFrame* pVwFrame, BOOL bIsSaveVersion > aVersionBox.SetWindowBits( WB_HSCROLL | WB_CLIPCHILDREN ); > aVersionBox.SetSelectionMode( SINGLE_SELECTION ); > aVersionBox.SetTabs( &nTabs_Impl[0], MAP_APPFONT ); >- aVersionBox.Resize(); // OS: Hack fuer richtige Selektion >+ aVersionBox.Resize(); // OS: Hack for correct selection > RecalcDateColumn(); > > // set dialog title (filename or docinfo title) >diff --git a/sfx2/source/doc/applet.cxx b/sfx2/source/doc/applet.cxx >index 56b8072..4cde1d2 100644 >--- a/sfx2/source/doc/applet.cxx >+++ b/sfx2/source/doc/applet.cxx >@@ -289,7 +289,7 @@ void SAL_CALL AppletObject::setPropertyValue(const ::rtl::OUString& aPropertyNam > //pImpl->aCodeBase = rURL.GetMainURL( INetURLObject::NO_DECODE ); > //if( rURL.GetProtocol() == INET_PROT_FILE > // && pImpl->aCodeBase.GetChar( 9 ) == INET_ENC_DELIM_TOKEN ) >- // // Laufwerksbuchstabe auf ':' patchen >+ // // Patch drive letter on ':' > // pImpl->aCodeBase.SetChar( 9, INET_DELIM_TOKEN ); > > aAny >>= maCodeBase; >diff --git a/sfx2/source/doc/doc.src b/sfx2/source/doc/doc.src >index 17c87ab..117352d 100644 >--- a/sfx2/source/doc/doc.src >+++ b/sfx2/source/doc/doc.src >@@ -191,8 +191,8 @@ InfoBox MSG_DOCINFO_CANTREAD > }; > String STR_ERROR_NOSTORAGE > { >- /* ### ACHTUNG: Neuer Text in Resource? Die ausgew�hlte Datei besitzt ein falsches Format. : Die ausgew�hlte Datei besitzt ein falsches Format. */ >- /* ### ACHTUNG: Neuer Text in Resource? Die ausgew�hlte Datei besitzt ein falsches Format. : Die ausgew�hlte Datei besitzt ein falsches Format. */ >+ /* ### WARNING: New text in Resource? The selected file has an incorrect format. : The selected file has an incorrect format */ >+ /* ### WARNING: New text in Resource? The selected file has an incorrect format. : The selected file has an incorrect format */ > Text [ en-US ] = "The selected file has an incorrect format." ; > }; > String STR_QUERY_MUSTOWNFORMAT >@@ -221,8 +221,8 @@ String STR_CLOSEDOC > }; > String STR_CLOSEDOC_ANDRETURN > { >- /* ### ACHTUNG: Neuer Text in Resource? S~chlie�en & zur�ck zu : S~chlie�en & zur�ck zu */ >- /* ### ACHTUNG: Neuer Text in Resource? S~chlie�en & zur�ck zu : S~chlie�en & zur�ck zu */ >+ /* ### WARNING: New text in Resource? The selected file has an incorrect format. Close & return to : Close & return to */ >+ /* ### WARNING: New text in Resource? The selected file has an incorrect format. Close & return to : Close & return to */ > Text [ en-US ] = "~Close & Return to " ; > }; > String STR_WIZARD >@@ -300,7 +300,7 @@ String STR_FSET_FILTERNAME0 > }; > String STR_FSET_FILTERNAME1 > { >- // nur 'Dokument' "ubersetzen - only translate 'Document' >+ // only translate 'Document' > Text [ en-US ] = "%PRODUCTNAME Frame Document" ; > }; > String STR_TEMPL_MOVED >diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx >index cd10edb..8aa6238 100644 >--- a/sfx2/source/doc/docfac.cxx >+++ b/sfx2/source/doc/docfac.cxx >@@ -80,8 +80,8 @@ DBG_NAME(SfxObjectFactory) > > struct SfxObjectFactory_Impl > { >- SfxViewFactoryArr_Impl aViewFactoryArr;// Liste von <SfxViewFactory>s >- SfxFilterArr_Impl aFilterArr; // Liste von <SFxFilter>n >+ SfxViewFactoryArr_Impl aViewFactoryArr;// List of <SfxViewFactory>s >+ SfxFilterArr_Impl aFilterArr; // List of <SFxFilter>n > ResId* pNameResId; > ::rtl::OUString aServiceName; > SfxFilterContainer* pFilterContainer; >@@ -356,16 +356,16 @@ const SfxObjectFactory* SfxObjectFactory::GetFactory( const String& rFactoryURL > String aFact( rFactoryURL ); > String aPrefix( DEFINE_CONST_UNICODE( "private:factory/" ) ); > if ( aPrefix.Len() == aFact.Match( aPrefix ) ) >- // Aufruf m"oglich mit z.B. "swriter" oder "private:factory/swriter" >+ // Possible call with for example "swriter" or "private:factory/swriter" > aFact.Erase( 0, aPrefix.Len() ); > sal_uInt16 nPos = aFact.Search( '?' ); > >- // Etwaige Parameter abschneiden >+ // Cut any Parameter > aFact.Erase( nPos, aFact.Len() ); > > SfxApplication *pApp = SFX_APP(); > >- // "swriter4" durch "swriter" ersetzen, zum Vergleichen uppercase verwenden >+ // Replace "swriter4" with "swriter", to be used for comparing uppercase > WildCard aSearchedFac( aFact.EraseAllChars('4').ToUpperAscii() ); > for( sal_uInt16 n = GetObjectFactoryCount_Impl(); !pFactory && n--; ) > { >diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx >index 44469f0..f6bcf37 100644 >--- a/sfx2/source/doc/docfile.cxx >+++ b/sfx2/source/doc/docfile.cxx >@@ -1352,13 +1352,13 @@ uno::Reference < embed::XStorage > SfxMedium::GetStorage( sal_Bool bCreateTempIf > BOOL bResetStorage = FALSE; > if ( pVersion && pVersion->GetValue() ) > { >- // Alle verf"ugbaren Versionen einlesen >+ // Read all available versions > if ( pImp->aVersions.getLength() ) > { >- // Die zum Kommentar passende Version suchen >- // Die Versionen sind von 1 an durchnumeriert, mit negativen >- // Versionsnummern werden die Versionen von der aktuellen aus >- // r"uckw"arts gez"ahlt >+ // Search for the version fits the comment >+ // The versions are numbered startign with 1, versions with >+ // negative versions numbers are counted backwards from the >+ // current version > short nVersion = pVersion ? pVersion->GetValue() : 0; > if ( nVersion<0 ) > nVersion = ( (short) pImp->aVersions.getLength() ) + nVersion; >@@ -1367,18 +1367,18 @@ uno::Reference < embed::XStorage > SfxMedium::GetStorage( sal_Bool bCreateTempIf > > util::RevisionTag& rTag = pImp->aVersions[nVersion]; > { >- // SubStorage f"ur alle Versionen "offnen >+ // Open SubStorage for all versions > uno::Reference < embed::XStorage > xSub = pImp->xStorage->openStorageElement( DEFINE_CONST_UNICODE( "Versions" ), > embed::ElementModes::READ ); > >- DBG_ASSERT( xSub.is(), "Versionsliste, aber keine Versionen!" ); >+ DBG_ASSERT( xSub.is(), "Version list, but no Versions!" ); > >- // Dort ist die Version als gepackter Stream gespeichert >+ // There the version is stored as packed Stream > uno::Reference < io::XStream > xStr = xSub->openStreamElement( rTag.Identifier, embed::ElementModes::READ ); > SvStream* pStream = utl::UcbStreamHelper::CreateStream( xStr ); > if ( pStream && pStream->GetError() == SVSTREAM_OK ) > { >- // Stream ins TempDir auspacken >+ // Unpack Stream in TempDir > ::utl::TempFile aTempFile; > String aTmpName = aTempFile.GetURL(); > SvFileStream aTmpStream( aTmpName, SFX_STREAM_READWRITE ); >@@ -1386,7 +1386,7 @@ uno::Reference < embed::XStorage > SfxMedium::GetStorage( sal_Bool bCreateTempIf > *pStream >> aTmpStream; > aTmpStream.Close(); > >- // Datei als Storage "offnen >+ // Open data as Storage > nStorOpenMode = SFX_STREAM_READONLY; > pImp->xStorage = comphelper::OStorageHelper::GetStorageFromURL( aTmpName, embed::ElementModes::READ ); > pImp->bStorageBasedOnInStream = sal_False; >@@ -2415,10 +2415,10 @@ void SfxMedium::DownLoad( const Link& aLink ) > > //------------------------------------------------------------------ > void SfxMedium::Init_Impl() >-/* [Beschreibung] >- Setzt in den Logischen Namen eine gueltige ::com::sun::star::util::URL (Falls zuvor ein Filename >- drin war) und setzt den physikalschen Namen auf den Filenamen, falls >- vorhanden. >+/* [Description] >+ Includes a valid:: sun:: com:: star:: util:: URL (If a file name was >+ previously in there) in the logical name and if available sets the >+ physical name as the file name. > */ > > { >@@ -2516,7 +2516,7 @@ SfxMedium::SfxMedium( const SfxMedium& rMedium, sal_Bool bTemporary ) > aName = rMedium.aName; > > pImp->bIsTemp = bTemporary; >- DBG_ASSERT( ! rMedium.pImp->bIsTemp, "Temporaeres Medium darf nicht kopiert werden" ); >+ DBG_ASSERT( ! rMedium.pImp->bIsTemp, "Temporary Medium may not be copied" ); > aLogicName = rMedium.aLogicName; > pSet = rMedium.GetItemSet() ? new SfxItemSet(*rMedium.GetItemSet()) : 0; > pFilter = rMedium.pFilter; >@@ -2817,8 +2817,8 @@ void SfxMedium::SetIsRemote_Impl() > break; > } > >- // Da Dateien, die Remote geschrieben werden zur Uebertragung auch >- // gelesen werden koennen muessen >+ // As files that are written to the remote transmission must also be able >+ // to be read. > if( bRemote ) > nStorOpenMode |= STREAM_READ; > } >@@ -3114,7 +3114,7 @@ sal_uInt32 SfxMedium::GetMIMEAndRedirect( String& /*rName*/ ) > { > eError = pImp->xBinding->GetMimeType( rName ); > >- // Wir koennen keine Parameter wie CharSets usw. >+ // We can no use parameters such as character CharSets etc. > rName = rName.GetToken( 0, ';' ); > if( !eError ) > { >@@ -3288,7 +3288,7 @@ sal_uInt16 SfxMedium::AddVersion_Impl( util::RevisionTag& rRevision ) > { > if ( GetStorage().is() ) > { >- // Einen eindeutigen Namen f"ur den Stream ermitteln >+ // To determine a unique name for the stream > SvULongs aLongs; > sal_Int32 nLength = pImp->aVersions.getLength(); > for ( sal_Int32 m=0; m<nLength; m++ ) >diff --git a/sfx2/source/doc/doctdlg.cxx b/sfx2/source/doc/doctdlg.cxx >index 84da3f0..636f7c7 100644 >--- a/sfx2/source/doc/doctdlg.cxx >+++ b/sfx2/source/doc/doctdlg.cxx >@@ -159,7 +159,7 @@ IMPL_LINK( SfxDocumentTemplateDlg, OrganizeHdl, Button *, pButton ) > IMPL_LINK( SfxDocumentTemplateDlg, OkHdl, Control *, pControl ) > { > (void)pControl; //unused >- // pruefen, ob eine Vorlage diesen Namens existiert >+ // Test whether a template with this name existss > if(LISTBOX_ENTRY_NOTFOUND != aTemplateLb.GetEntryPos( > GetTemplateName())) { > QueryBox aQuery(this, SfxResId(MSG_CONFIRM_OVERWRITE_TEMPLATE)); >diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx >index fa915f1..6db21c3 100644 >--- a/sfx2/source/doc/doctempl.cxx >+++ b/sfx2/source/doc/doctempl.cxx >@@ -316,15 +316,14 @@ static sal_Bool getTextProperty_Impl( Content& rContent, > > String SfxDocumentTemplates::GetFullRegionName > ( >- USHORT nIdx // Index des Bereiches >+ USHORT nIdx // Region Index > ) const > >-/* [Beschreibung] >+/* [Description] > >- Liefert den logischen Namen eines Bereiches Plus seinem Pfad >+ Returns the logical name of a region and its path > >- >- [R"uckgabewert] Referenz auf diesen Namen >+ [Return value] Reference to the Region name > > */ > >@@ -353,17 +352,16 @@ String SfxDocumentTemplates::GetFullRegionName > > const String& SfxDocumentTemplates::GetRegionName > ( >- USHORT nIdx // Index des Bereiches >+ USHORT nIdx // Region Index > ) const > >-/* [Beschreibung] >- >- Liefert den logischen Namen eines Bereiches >+/* [Description] > >+ Returns the logical name of a region > >- [R"uckgabewert] >+ [Return value] > >- const String& Referenz auf diesen Namen >+ const String& Reference to the Region name > > */ > { >@@ -391,17 +389,16 @@ const String& SfxDocumentTemplates::GetRegionName > > USHORT SfxDocumentTemplates::GetRegionNo > ( >- const String &rRegion // Name der Region >+ const String &rRegion // Region Name > ) const > >-/* [Beschreibung] >+/* [Description] > >- Liefert den Index f"ur einen logischen Namen eines Bereiches. >+ Returns the Index for a logical Region Name. > >+ [Return value] > >- [R"uckgabewert] >- >- USHORT Index von 'rRegion' oder USHRT_MAX falls unbekannt >+ USHORT Index of 'rRegion' or USHRT_MAX if unknown > > */ > { >@@ -424,15 +421,13 @@ USHORT SfxDocumentTemplates::GetRegionNo > > USHORT SfxDocumentTemplates::GetRegionCount() const > >-/* [Beschreibung] >- >- Liefert die Anzahl der Bereiche >+/* [Description] > >+ Returns the number of Regions > >- [R"uckgabewert] >- >- USHORT Anzahl der Bereiche >+ [Return value] > >+ USHORT Number of Regions > */ > { > DocTemplLocker_Impl aLocker( *pImp ); >@@ -466,20 +461,18 @@ sal_Bool SfxDocumentTemplates::IsRegionLoaded( USHORT nIdx ) const > > USHORT SfxDocumentTemplates::GetCount > ( >- const String& rName /* Name des Bereiches, dessen Eintrags- >- anzahl ermittelt werden soll */ >+ const String& rName /* Region Name, for which the entries >+ should be counted */ > > ) const > >-/* [Beschreibung] >- >- Liefert die Anzahl der Eintr"age eines Bereiches >- >+/* [Description] > >- [R"uckgabewert] >+ Number of entries in Region > >- USHORT Anzahl der Eintr"age >+ [Return value] > >+ USHORT Number of entries > */ > > { >@@ -501,18 +494,16 @@ USHORT SfxDocumentTemplates::GetCount > > USHORT SfxDocumentTemplates::GetCount > ( >- USHORT nRegion /* Index des Bereiches, dessen Eintrags- >- anzahl ermittelt werden soll */ >+ USHORT nRegion /* Region index whose number is >+ to be determined */ > > ) const > >-/* [Beschreibung] >+/* [Description] > >- Liefert die Anzahl der Eintr"age eines Bereiches >- >- >- [R"uckgabewert] Anzahl der Eintr"age >+ Number of entries in Region > >+ [Return value] Number of entries > */ > > { >@@ -534,19 +525,17 @@ USHORT SfxDocumentTemplates::GetCount > > const String& SfxDocumentTemplates::GetName > ( >- USHORT nRegion, // Index des Bereiches, in dem der Eintrag liegt >- USHORT nIdx // Index des Eintrags >+ USHORT nRegion, // Region Index, in which the entry lies >+ USHORT nIdx // Index of the entry > ) const > >-/* [Beschreibung] >- >- Liefert den logischen Namen eines Eintrags eines Bereiches >+/* [Description] > >+ Returns the logical name of an entry in Region > >- [R"uckgabewert] >- >- const String& Name des Eintrags >+ [Return value] > >+ const String& Entry Name > */ > > { >@@ -577,16 +566,15 @@ const String& SfxDocumentTemplates::GetName > > String SfxDocumentTemplates::GetFileName > ( >- USHORT nRegion, // Index des Bereiches, in dem der Eintrag liegt >- USHORT nIdx // Index des Eintrags >+ USHORT nRegion, // Region Index, in which the entry lies >+ USHORT nIdx // Index of the entry > ) const > >-/* [Beschreibung] >- >- Liefert den Dateinamen eines Eintrags eines Bereiches >+/* [Description] > >- [R"uckgabewert] Dateiname des Eintrags >+ Returns the file name of an entry in Region > >+ [Return value] File name of the entry > */ > { > DocTemplLocker_Impl aLocker( *pImp ); >@@ -614,20 +602,17 @@ String SfxDocumentTemplates::GetFileName > > String SfxDocumentTemplates::GetPath > ( >- USHORT nRegion, // Index des Bereiches, in dem der Eintrag liegt >- USHORT nIdx // Index des Eintrags >+ USHORT nRegion, // Region Index, in which the entry lies >+ USHORT nIdx // Index of the entry > ) const > >-/* [Beschreibung] >- >- Liefert den Dateinamen mit vollst"andigem Pfad zu der einem >- Eintrag zugeordneten Datei >+/* [Description] > >+ Returns the file name with full path to the file assigned to an entry > >- [R"uckgabewert] >- >- String Dateiname mit vollst"andigem Pfad >+ [Return value] > >+ String File name with full path > */ > { > DocTemplLocker_Impl aLocker( *pImp ); >@@ -651,20 +636,17 @@ String SfxDocumentTemplates::GetPath > > String SfxDocumentTemplates::GetTemplatePath > ( >- USHORT nRegion, // Index des Bereiches, in dem der Eintrag liegt >- const String& rLongName // logischer Name des Eintrags >+ USHORT nRegion, // Region Index, in which the entry lies >+ const String& rLongName // logical Entry Name > ) const > >-/* [Beschreibung] >- >- Liefert den Dateinamen mit vollst"andigem Pfad zu der einem >- Eintrag zugeordneten Datei >- >+/* [Description] > >- [R"uckgabewert] >+ Returns the file name with full path to the file assigned to an entry > >- String Dateiname mit vollst"andigem Pfad >+ [Return value] > >+ String File name with full path > */ > { > DocTemplLocker_Impl aLocker( *pImp ); >@@ -711,15 +693,13 @@ String SfxDocumentTemplates::GetDefaultTemplatePath > const String& rLongName > ) > >-/* [Beschreibung] >+/* [Description] > >- Liefert den Standardpfad zu Dokumentvorlagen >+ Returns the default location for templates > >+ [Return value] > >- [R"uckgabewert] >- >- String Standardpfad zu Dokumentvorlagen >- >+ String Default location for templates > */ > { > DocTemplLocker_Impl aLocker( *pImp ); >@@ -761,10 +741,10 @@ String SfxDocumentTemplates::GetDefaultTemplatePath > /* dv! missing: create the directory, if it doesn't exists > > >- DBG_ASSERT(aDirs.GetTokenCount(cDelim), "Keine Bereiche"); >+ DBG_ASSERT(aDirs.GetTokenCount(cDelim), "No Region"); > DirEntry aPath(aDirs.GetToken(0, cDelim)); > >- // Verzeichnis anlegen >+ // Create Directory > if(!aPath.MakeDir()) > return String(); > >@@ -814,22 +794,17 @@ String SfxDocumentTemplates::GetDefaultTemplatePath > > sal_Bool SfxDocumentTemplates::SaveDir > ( >-// SfxTemplateDir& rDir // das zu speichernde Directory >+// SfxTemplateDir& rDir // Save Directory > ) > >-/* [Beschreibung] >- >- Speichert das Directory rDir >+/* [Description] > >+ Saves the Directory rDir > >- [R"uckgabewert] >- >- sal_Bool sal_False, >- Schreibfehler >- >- sal_True >- gespeichert >+ [Return value] > >+ sal_Bool sal_False, Write error >+ sal_True, Saved > */ > > { >@@ -840,19 +815,17 @@ sal_Bool SfxDocumentTemplates::SaveDir > > void SfxDocumentTemplates::NewTemplate > ( >- USHORT nRegion, /* Index des Bereiches, in dem die Vorlage >- angelegt werden soll */ >+ USHORT nRegion, /* Region Index, in which the template >+ should be applied */ > >- const String& rLongName, // logischer Name der neuen Vorlage >- const String& rFileName // Dateiname der neuen Vorlage >+ const String& rLongName, // logical name of the new template >+ const String& rFileName // File name of the new template > ) > >-/* [Beschreibung] >- >- Eintragen einer neuen Dokumentvorlage in die Verwaltungsstrukturen >- Das "Uberschreiben einer Vorlage gleichen Namens wird >- verhindert (!! Fehlermeldung) >+/* [Description] > >+ Submit a new template in the administrative structures >+ overwriting a template of the same name is prevented (! Error message) > */ > > { >@@ -884,26 +857,23 @@ void SfxDocumentTemplates::NewTemplate > > sal_Bool SfxDocumentTemplates::CopyOrMove > ( >- USHORT nTargetRegion, // Index des Zielbereiches >- USHORT nTargetIdx, // Index Zielposition >- USHORT nSourceRegion, // Index des Quellbereiches >- USHORT nSourceIdx, /* Index der zu kopierenden / zu verschiebenden >- Dokumentvorlage */ >- sal_Bool bMove // kopieren / verschieben >+ USHORT nTargetRegion, // Target Region Index >+ USHORT nTargetIdx, // Target position Index >+ USHORT nSourceRegion, // Source Region Index >+ USHORT nSourceIdx, /* Index to be copied / to moved template */ >+ sal_Bool bMove // Copy / Move > ) > >-/* [Beschreibung] >+/* [Description] > >- Kopieren oder Verschieben einer Dokumentvorlage >+ Copy or move a document template > >- [R"uckgabewert] >+ [Return value] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_False >- Aktion konnte nicht ausgef2uhrt werden >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::Move(USHORT,USHORT,USHORT,USHORT)> > <SfxDocumentTemplates::Copy(USHORT,USHORT,USHORT,USHORT)> >@@ -986,8 +956,8 @@ sal_Bool SfxDocumentTemplates::CopyOrMove > return sal_True; > } > >- // --**-- wenn aktuell das File geoeffnet ist, >- // muss es hinterher wieder geoeffnet werden >+ // --**-- if the current file is opened, >+ // it must be re-opened afterwards. > > return sal_False; > } >@@ -996,27 +966,22 @@ sal_Bool SfxDocumentTemplates::CopyOrMove > > sal_Bool SfxDocumentTemplates::Move > ( >- USHORT nTargetRegion, // Index des Zielbereiches >- USHORT nTargetIdx, // Index Zielposition >- USHORT nSourceRegion, // Index des Quellbereiches >- USHORT nSourceIdx /* Index der zu kopierenden / zu verschiebenden >- Dokumentvorlage */ >+ USHORT nTargetRegion, // Target Region Index >+ USHORT nTargetIdx, // Target position Index >+ USHORT nSourceRegion, // Source Region Index >+ USHORT nSourceIdx /* Index to be copied / to moved template */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Verschieben einer Dokumentvorlage >+ Moving a template > >+ [Return value] > >- [R"uckgabewert] >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >- >- sal_False >- Aktion konnte nicht ausgef2uhrt werden >- >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::CopyOrMove(USHORT,USHORT,USHORT,USHORT,sal_Bool)> > */ >@@ -1031,27 +996,22 @@ sal_Bool SfxDocumentTemplates::Move > > sal_Bool SfxDocumentTemplates::Copy > ( >- USHORT nTargetRegion, // Index des Zielbereiches >- USHORT nTargetIdx, // Index Zielposition >- USHORT nSourceRegion, // Index des Quellbereiches >- USHORT nSourceIdx /* Index der zu kopierenden / zu verschiebenden >- Dokumentvorlage */ >+ USHORT nTargetRegion, // Target Region Index >+ USHORT nTargetIdx, // Target position Index >+ USHORT nSourceRegion, // Source Region Index >+ USHORT nSourceIdx /* Index to be copied / to moved template */ > ) > >-/* [Beschreibung] >- >- Kopieren einer Dokumentvorlage >+/* [Description] > >+ Copying a template > >- [R"uckgabewert] >+ [Return value] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >- >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::CopyOrMove(USHORT,USHORT,USHORT,USHORT,sal_Bool)> > */ >@@ -1067,29 +1027,22 @@ sal_Bool SfxDocumentTemplates::Copy > > sal_Bool SfxDocumentTemplates::CopyTo > ( >- USHORT nRegion, /* Bereich der Vorlage, die exportiert werden >- soll */ >- USHORT nIdx, /* Index der Vorlage, die exportiert werden >- soll */ >- const String& rName /* Dateiname, unter dem die Vorlage angelegt >- werden soll */ >+ USHORT nRegion, // Region of the template to be exported >+ USHORT nIdx, // Index of the template to be exported >+ const String& rName /* File name under which the template is to >+ be created */ > ) const > >-/* [Beschreibung] >- >- Exportieren einer Dokumentvorlage in das Dateisystem >- >- >- [R"uckgabewert] >+/* [Description] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ Exporting a template into the file system > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >+ [Return value] > >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::CopyFrom(USHORT,USHORT,String&)> > */ >@@ -1146,29 +1099,25 @@ sal_Bool SfxDocumentTemplates::CopyTo > > sal_Bool SfxDocumentTemplates::CopyFrom > ( >- USHORT nRegion, /* Bereich, in den die Vorlage importiert >- werden soll */ >- USHORT nIdx, // Index der neuen Vorlage in diesem Bereich >- String& rName /* Dateiname der Vorlage, die importiert >- werden soll, als out-Parameter der (auto- >- matisch aus dem Dateinamen generierte) >- logische Name der Vorlage */ >+ USHORT nRegion, /* Region in which the template is to be >+ imported */ >+ USHORT nIdx, // Index of the new template in this Region >+ String& rName /* File name of the template to be imported >+ as an out parameter of the (automatically >+ generated from the file name) logical name >+ of the template * / > ) > >-/* [Beschreibung] >+/* [Description] > >- Importieren einer Dokumentvorlage aus dem Dateisystem >+ Import a template from the file system > >+ [Return value] Sucess (sal_True) or serfpTargetDirectory->GetContent()); > >- [R"uckgabewert] Erfolg (sal_True) oder Mi"serfpTargetDirectory->GetContent()); >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >- >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >- >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::CopyTo(USHORT,USHORT,const String&)> > */ >@@ -1297,26 +1246,21 @@ sal_Bool SfxDocumentTemplates::CopyFrom > > sal_Bool SfxDocumentTemplates::Delete > ( >- USHORT nRegion, // Index des Bereiches >- USHORT nIdx /* Index des Eintrags oder USHRT_MAX, >- wenn ein Verzeichnis gemeint ist. */ >+ USHORT nRegion, // Region Index >+ USHORT nIdx /* Index of the entry or USHRT_MAX, >+ if a directory is meant. */ > ) > >-/* [Beschreibung] >- >- "oschen eines Eintrags oder eines Verzeichnisses >+/* [Description] > >+ Deleting an entry or a directory > >- [R"uckgabewert] >+ [Return value] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >- >- >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::InsertDir(const String&,USHORT)> > <SfxDocumentTemplates::KillDir(SfxTemplateDir&)> >@@ -1367,24 +1311,20 @@ sal_Bool SfxDocumentTemplates::Delete > > sal_Bool SfxDocumentTemplates::InsertDir > ( >- const String& rText, // der logische Name des neuen Bereiches >- USHORT nRegion // Index des Bereiches >+ const String& rText, // the logical name of the new Region >+ USHORT nRegion // Region Index > ) > >-/* [Beschreibung] >- >- Einf"ugen eines Verzeichnisses >+/* [Description] > >+ Insert an index > >- [R"uckgabewert] >+ [Return value] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >- >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::KillDir(SfxTemplateDir&)> > <SfxDocumentTemplates::SaveDir(SfxTemplateDir&)> >@@ -1422,23 +1362,19 @@ sal_Bool SfxDocumentTemplates::InsertDir > sal_Bool SfxDocumentTemplates::SetName > ( > const String& rName, // Der zu setzende Name >- USHORT nRegion, // Index des Bereiches >- USHORT nIdx /* Index des Eintrags oder USHRT_MAX, >- wenn ein Verzeichnis gemeint ist. */ >+ USHORT nRegion, // Region Index >+ USHORT nIdx /* Index of the entry oder USHRT_MAX, >+ if a directory is meant. */ > ) > >-/* [Beschreibung] >- >- "Andern des Namens eines Eintrags oder eines Verzeichnisses >- >+/* [Description] > >- [R"uckgabewert] >+ Change the name of an entry or a directory > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ [Return value] > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > > */ > >@@ -1499,24 +1435,18 @@ sal_Bool SfxDocumentTemplates::SetName > > sal_Bool SfxDocumentTemplates::Rescan() > >-/* [Beschreibung] >+/* [Description] > >- Abgleich des Verwaltungsdaten mit dem aktuellen Zustand auf der Platte. >- Die logischen Namen, zu denen keine Datei mit existiert, werden aus >- der Verwaltungsstruktur entfernt; Dateien, zu denen kein Eintrag >- existiert, werden aufgenommen. >+ Comparison of administrative data with the current state on disk. >+ The logical name for which no file exists, will be removed from the >+ administrative structure. Files for which no record exists will be included. > >+ [Return value] > >- [R"uckgabewert] >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >- >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >- >- >- [Querverweise] >+ [Cross-references] > > <SfxTemplateDir::Scan(sal_Bool bDirectory, sal_Bool bSave)> > <SfxTemplateDir::Freshen(const SfxTemplateDir &rNew)> >@@ -1534,21 +1464,19 @@ sal_Bool SfxDocumentTemplates::Rescan() > > SfxObjectShellRef SfxDocumentTemplates::CreateObjectShell > ( >- USHORT nRegion, // Index des Bereiches >- USHORT nIdx // Index des Eintrags >+ USHORT nRegion, // Region Index >+ USHORT nIdx // Index of the entry > ) > >-/* [Beschreibung] >+/* [Description] > >- Zugriff auf die DokumentShell eines Eintrags >+ Access to the document shell of an entry > >+ [Return value] > >- [R"uckgabewert] >+ SfxObjectShellRef Referece to the ObjectShell > >- SfxObjectShellRef Referenz auf die ObjectShell >- >- >- [Querverweise] >+ [Cross-references] > > <SfxTemplateDirEntry::CreateObjectShell()> > <SfxDocumentTemplates::DeleteObjectShell(USHORT, USHORT)> >@@ -1576,24 +1504,20 @@ SfxObjectShellRef SfxDocumentTemplates::CreateObjectShell > > sal_Bool SfxDocumentTemplates::DeleteObjectShell > ( >- USHORT nRegion, // Index des Bereiches >- USHORT nIdx // Index des Eintrags >+ USHORT nRegion, // Region Index >+ USHORT nIdx // Index of the entry > ) > >-/* [Beschreibung] >- >- Freigeben der ObjectShell eines Eintrags >+/* [Description] > >+ Releasing the ObjectShell of an entry > >- [R"uckgabewert] >+ [Return value] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >- >- [Querverweise] >+ [Cross-references] > > <SfxTemplateDirEntry::DeleteObjectShell()> > <SfxDocumentTemplates::CreateObjectShell(USHORT, USHORT)> >@@ -1621,27 +1545,21 @@ sal_Bool SfxDocumentTemplates::DeleteObjectShell > > sal_Bool SfxDocumentTemplates::GetFull > ( >- const String &rRegion, // Der Name des Bereiches >- const String &rName, // Der Name der Vorlage >- String &rPath // Out: Pfad + Dateiname >+ const String &rRegion, // Region Name >+ const String &rName, // Template Name >+ String &rPath // Out: Path + File name > ) > >-/* [Beschreibung] >- >- Liefert Pfad + Dateiname zu der durch rRegion und rName bezeichneten >- Vorlage >- >+/* [Description] > >- [R"uckgabewert] >+ Returns Path + File name of the template specified by rRegion and rName. > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ [Return value] > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::GetLogicNames(const String&,String&,String&)> > */ >@@ -1683,26 +1601,21 @@ sal_Bool SfxDocumentTemplates::GetFull > > sal_Bool SfxDocumentTemplates::GetLogicNames > ( >- const String &rPath, // vollst"andiger Pfad zu der Vorlage >- String &rRegion, // Out: der Bereichsname >- String &rName // Out: der Vorlagenname >+ const String &rPath, // Full Path to the template >+ String &rRegion, // Out: Region name >+ String &rName // Out: Template name > ) const > >-/* [Beschreibung] >- >- Liefert Pfad und logischen Namen zu der durch rPath bezeichneten >- Vorlage >- >- [R"uckgabewert] >+/* [Description] > >- sal_Bool sal_True >- Aktion konnte ausgef"uhrt werden >+ Returns and logical path name to the template specified by rPath > >- sal_False >- Aktion konnte nicht ausgef"uhrt werden >+ [Return value] > >+ sal_Bool sal_True, Action could be performed >+ sal_False, Action could not be performed > >- [Querverweise] >+ [Cross-references] > > <SfxDocumentTemplates::GetFull(const String&,const String&,DirEntry&)> > */ >@@ -1756,9 +1669,9 @@ sal_Bool SfxDocumentTemplates::GetLogicNames > > SfxDocumentTemplates::SfxDocumentTemplates() > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor >+ Constructor > */ > { > if ( !gpTemplateData ) >@@ -1771,7 +1684,7 @@ SfxDocumentTemplates::SfxDocumentTemplates() > > void SfxDocumentTemplates::Construct() > >-// verz"ogerter Aufbau der Verwaltungsdaten >+// Delayed build-up of administrative data > > { > // pImp->Construct(); >@@ -1781,10 +1694,10 @@ void SfxDocumentTemplates::Construct() > > SfxDocumentTemplates::~SfxDocumentTemplates() > >-/* [Beschreibung] >+/* [Description] > >- Destruktor >- Freigeben der Verwaltungsdaten >+ Destructor >+ Release of administrative data > */ > > { >@@ -1946,7 +1859,7 @@ BOOL DocTempl_EntryData_Impl::DeleteObjectShell() > { > if( mxObjShell->IsModified() ) > { >- //Hier speichern wir auch, falls die Vorlage in Bearbeitung ist... >+ // Here we also save, if the Template is being processed ... > bRet = sal_False; > > if ( mbIsOwner ) >diff --git a/sfx2/source/doc/docvor.cxx b/sfx2/source/doc/docvor.cxx >index 918f2fe..4141e99 100644 >--- a/sfx2/source/doc/docvor.cxx >+++ b/sfx2/source/doc/docvor.cxx >@@ -231,8 +231,8 @@ SfxOrganizeDlg_Impl::SfxOrganizeDlg_Impl( SfxTemplateOrganizeDlg* pParent, > const_cast< SfxDocumentTemplates* >( aMgr.GetTemplates() )->Update( sal_True /* be smart */ ); > // this const_cast is a hack - but the alternative would be to > // * have a method which returns the templates non-const >- // * use a new SfxDocumentTemplates instance for the update (knowing that they all share the same >- // implementation class) >+ // * use a new SfxDocumentTemplates instance for the update >+ // (knowing that they all share the same implementation class) > // * always work with an own instance, even if we get only NULL in this ctor > } > >@@ -325,12 +325,12 @@ void SfxOrganizeDlg_Impl::InitBitmaps( void ) > > //========================================================================= > >-BOOL QueryDelete_Impl(Window *pParent, // Parent der QueryBox >+BOOL QueryDelete_Impl(Window *pParent, // Parent to QueryBox > USHORT nId, // Resource Id >- const String &rTemplateName) // Name der zu l"oschenden Vorlage >-/* [Beschreibung] >+ const String &rTemplateName) // Name of template to be deleted >+/* [Description] > >- "oschabfrage >+ Delete Query > > */ > { >@@ -345,10 +345,9 @@ BOOL QueryDelete_Impl(Window *pParent, // Parent der QueryBox > > void ErrorDelete_Impl(Window *pParent, const String &rName, sal_Bool bFolder = sal_False ) > >-/* [Beschreibung] >- >- Benutzerinformation, da"s die Vorlage rName nicht gel"oscht werden konnte >+/* [Description] > >+ User information that the template rName could not be deleted. > */ > { > if ( bFolder ) >@@ -367,10 +366,9 @@ void ErrorDelete_Impl(Window *pParent, const String &rName, sal_Bool bFolder = s > > //========================================================================= > >-/* [Beschreibung] >- >- Implementierungsklasse; Referenzklasse f"ur USHORT-Array >+/* [Description] > >+ Implementation class, the benchmark for USHORT-Array > */ > > struct ImpPath_Impl >@@ -404,12 +402,11 @@ ImpPath_Impl::ImpPath_Impl( const ImpPath_Impl& rCopy ) : > > //========================================================================== > >-/* [Beschreibung] >- >- Implementierungsklasse; Darstellung einer Position in der Outline- >- Listbox als USHORT-Array; dieses beschreibt die Position jeweil >- als relative Postion zum "ubergeordneten Eintrag >+/* [Description] > >+ Implementation class, presentation of a position in the Outline- >+ Listbox ass USHORT-Array, this describes the position of each as >+ Postions relative to the parent entry > */ > class Path > { >@@ -468,25 +465,24 @@ SvLBoxEntry *GetIndices_Impl(SvLBox *pBox, > SvLBoxEntry *pEntry, > USHORT &rRegion, > USHORT &rOffset) >-/* [Beschreibung] >+/* [Description] > >- Bereich und Position innerhalb eines Bereiches f"ur eine >- Dokumentvorlage wird ermittelt. >+ Region and position within a range for a template is determined. > > [Parameter] > >- SvLBox *pBox Listbox, an der das Ereignis auftrat >- SvLBoxEntry *pEntry Eintrag, dessen Position ermittelt werden soll >- USHORT &rRegion der Bereich innerhalb der Bereiche der >- Dokumentvorlagen (Out-Parameter) >- USHORT &rOffset die Position innerhalb des Bereiches >- Dokumentvorlagen (Out-Parameter) >+ SvLBox *pBox Listbox where the event occurred >+ SvLBoxEntry *pEntry Entry whose position is to be determined >+ USHORT &rRegion the region within the region of the >+ document template (Out-Parameter) >+ USHORT &rOffset the position within the region of the >+ document template (Out-Parameter) > >- [Querverweise] > >- <class Path> (unter Umst"anden kann auf diese Funktion zugunsten >- von Path verzichtet werden.) >+ [Cross-references] > >+ <class Path> (in certain circumstances this function can also be >+ dispensed in favor of the Path) > */ > > { >@@ -531,24 +527,24 @@ BOOL SfxOrganizeListBox_Impl::MoveOrCopyTemplates(SvLBox *pSourceBox, > SvLBoxEntry *&pNewParent, > ULONG &rIdx, > BOOL bCopy) >-/* [Beschreibung] >+/* [Description] > >- Verschieben oder Kopieren von Dokumentvorlagen >+ Move or copy a document templates > > [Parameter] > >- SvLBox *pSourceBox Quell-Listbox, an der das Ereignis auftrat >- SvLBoxEntry *pSource Quell-Eintrag, der kopiert / verschoben werden soll >- SvLBoxEntry* pTarget Ziel-Eintrag, auf den verschoben werden soll >- SvLBoxEntry *&pNewParent der Parent der an der Zielposition erzeugten >- Eintrags (Out-Parameter) >- ULONG &rIdx Index des Zieleintrags >- BOOL bCopy Flag f"ur Kopieren / Verschieben >+ SvLBox *pSourceBox Source Listbox, at which the event occurred >+ SvLBoxEntry* pTarget Target entry, to where it will be moved >+ SvLBoxEntry *pSource Source entry, to be copied / moved >+ SvLBoxEntry *&pNewParent the parent of the target position generated >+ at entry (out parameter) >+ ULONG &rIdx Index of the target entry >+ BOOL bCopy Flag for Copy / Move > > >- [Returnwert] BOOL: Erfolg oder Mi"serfolg >+ [Return value] BOOL: Success or failure > >- [Querverweise] >+ [Cross-references] > > <SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox, > SvLBoxEntry *pSource, >@@ -622,24 +618,24 @@ BOOL SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox, > SvLBoxEntry *&pNewParent, > ULONG &rIdx, > BOOL bCopy) >-/* [Beschreibung] >+/* [Description] > >- Verschieben oder Kopieren von Dokumentinhalten >+ Move or copy document contents > > [Parameter] > >- SvLBox *pSourceBox Quell-Listbox, an der das Ereignis auftrat >- SvLBoxEntry *pSource Quell-Eintrag, der kopiert / verschoben werden soll >- SvLBoxEntry* pTarget Ziel-Eintrag, auf den verschoben werden soll >- SvLBoxEntry *&pNewParent der Parent der an der Zielposition erzeugten >- Eintrags (Out-Parameter) >- ULONG &rIdx Index des Zieleintrags >- BOOL bCopy Flag f"ur Kopieren / Verschieben >+ SvLBox *pSourceBox Source Listbox, at which the event occurred >+ SvLBoxEntry* pTarget Target entry, to where it will be moved >+ SvLBoxEntry *pSource Source entry, to be copied / moved >+ SvLBoxEntry *&pNewParent the parent of the target position generated >+ at entry (out parameter) >+ ULONG &rIdx Index of the target entry >+ BOOL bCopy Flag for Copy / Move > > >- [Returnwert] BOOL: Erfolg oder Mi"serfolg >+ [Return value] BOOL: Success or failure > >- [Querverweise] >+ [Cross-references] > > <SfxOrganizeListBox_Impl::MoveOrCopyTemplates(SvLBox *pSourceBox, > SvLBoxEntry *pSource, >@@ -691,16 +687,16 @@ BOOL SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox, > *aSourceDoc, aSource[nSLevel+1], > aSource[nSLevel+2], aSource[nSLevel+3], > p[0], p[1], p[2], nIdxDeleted); >- // Positionskorrektur auswerten >- // a = Dokumentinhalt >- // b = Position Sub-Inhalt 1 >- // c = Position Sub-Inhalt 2 >- // doppelte Eintraege loeschen >+ // Evaluate Position correction >+ // a = Document content >+ // b = Position Sub-content 1 >+ // c = Position Sub-content 2 >+ // Delete duplicate entries > if(bOk) > { > SvLBoxEntry *pParentIter = pTarget; >- // bis auf die DokumentEbene nach oben als >- // allgemeiner Bezugspunkt >+ // Up to the document level as >+ // the general reference point > while(GetModel()->GetDepth(pParentIter) != nTLevel) > pParentIter = GetParent(pParentIter); > if(pParentIter->HasChildsOnDemand() && >@@ -712,10 +708,10 @@ BOOL SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox, > while(i < 2 && p[i+1] != INDEX_IGNORE) > { > pChildIter = FirstChild(pParentIter); >- // bis zum Index der aktuellen Ebene >+ // To the index of the current level > for(USHORT j = 0; j < p[i]; ++j) > pChildIter = NextSibling(pChildIter); >- // gfs Fuellen bei Items onDemand >+ // If possible, fill in Items onDemand > ++i; > if(p[i+1] != INDEX_IGNORE && > pChildIter->HasChildsOnDemand() && >@@ -733,8 +729,8 @@ BOOL SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox, > if(!bCopy) > pSourceBox->GetModel()->Remove(pSource); > } >- // Geloeschte Eintraege entfernen >- // (kann durch Ueberschreiben geschehen) >+ // Remove deleted items >+ // (can be done by overwriting) > if(nIdxDeleted != INDEX_IGNORE) > { > pChildIter = FirstChild(pParentIter); >@@ -771,23 +767,23 @@ BOOL SfxOrganizeListBox_Impl::NotifyMoving(SvLBoxEntry *pTarget, > SvLBoxEntry *&pNewParent, > ULONG &rIdx) > >-/* [Beschreibung] >+/* [Description] > >- Benachrichtigung, da"s ein Eintrag verschoben werden soll >+ Notification that an item will be moved. > (SV-Handler) > > [Parameter] > >- SvLBoxEntry* pTarget Ziel-Eintrag, auf den verschoben werden soll >- SvLBoxEntry *pSource Quell-Eintrag, der verschoben werden soll >- SvLBoxEntry *&pNewParent der Parent der an der Zielposition erzeugten >- Eintrags (Out-Parameter) >- ULONG &rIdx Index des Zieleintrags >+ SvLBoxEntry* pTarget Target entry, to where it will be moved >+ SvLBoxEntry *pSource Source entry, to be moved >+ SvLBoxEntry *&pNewParent the parent of the target position generated >+ at entry (out parameter) >+ ULONG &rIdx Index of the target entry > > >- [Returnwert] BOOL: Erfolg oder Mi"serfolg >+ [Return value] BOOL: Sucess or failure > >- [Querverweise] >+ [Cross-references] > > <SfxOrganizeListBox_Impl::MoveOrCopyTemplates(SvLBox *pSourceBox, > SvLBoxEntry *pSource, >@@ -831,23 +827,22 @@ BOOL SfxOrganizeListBox_Impl::NotifyCopying(SvLBoxEntry *pTarget, > SvLBoxEntry* pSource, > SvLBoxEntry *&pNewParent, > ULONG &rIdx) >-/* [Beschreibung] >+/* [Description] > >- Benachrichtigung, da"s ein Eintrag kopiert werden soll >+ Notification that an item will be moved. > (SV-Handler) > > [Parameter] > >- SvLBoxEntry* pTarget Ziel-Eintrag, auf den kopiert werden soll >- SvLBoxEntry *pSource Quell-Eintrag, der kopiert werden soll >- SvLBoxEntry *&pNewParent der Parent der an der Zielposition erzeugten >- Eintrags (Out-Parameter) >- ULONG &rIdx Index des Zieleintrags >- >+ SvLBoxEntry* pTarget Target entry, to where it will be copied >+ SvLBoxEntry *pSource Source entry, to be copied >+ SvLBoxEntry *&pNewParent the parent of the target position generated >+ at entry (out parameter) >+ ULONG &rIdx Index of the target entry > >- [Returnwert] BOOL: Erfolg oder Mi"serfolg >+ [Return value] BOOL: Sucess or failure > >- [Querverweise] >+ [Cross-references] > > <SfxOrganizeListBox_Impl::MoveOrCopyTemplates(SvLBox *pSourceBox, > SvLBoxEntry *pSource, >@@ -887,12 +882,12 @@ BOOL SfxOrganizeListBox_Impl::NotifyCopying(SvLBoxEntry *pTarget, > > BOOL SfxOrganizeListBox_Impl::EditingEntry( SvLBoxEntry* pEntry, Selection& ) > >-/* [Beschreibung] >+/* [Description] > >- Nachfrage, ob ein Eintrag editierbar ist >+ Check whether an item can be edited > (SV-Handler) > >- [Querverweise] >+ [Cross-references] > <SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const String& rText)> > */ > >@@ -910,23 +905,23 @@ BOOL SfxOrganizeListBox_Impl::EditingEntry( SvLBoxEntry* pEntry, Selection& ) > > BOOL SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const String& rText) > >-/* [Beschreibung] >+/* [Description] > >- Der Name eines Eintrags wurde bearbeitet; ist der eingegebene Name >- ein g"ultiger Name ("ange > 0), wird das Model aktualisiert. >+ The name of an entry has been processed, if the name you entered is a >+ valid name (length> 0) then the model is updated. > (SV-Handler) > >- [Returnwert] >+ [Return value] > >- BOOL TRUE: der Name soll in der Anzeige ge"andert werden >- FALSE:der Name soll nicht ge"andert werden >+ BOOL TRUE: The name in the display should be changed >+ FALSE: The name should not be changed > >- [Querverweise] >+ [Cross-references] > <SfxOrganizeListBox_Impl::EditingEntry(SvLBoxEntry* pEntry, const String& rText)> > */ > > { >- DBG_ASSERT(pEntry, "kein Entry selektiert"); >+ DBG_ASSERT(pEntry, "No Entry selected"); > delete pDlg->pSuspend; > pDlg->pSuspend = NULL; > SvLBoxEntry* pParent = GetParent(pEntry); >@@ -1088,14 +1083,14 @@ void SfxOrganizeListBox_Impl::DragFinished( sal_Int8 nDropAction ) > > inline USHORT SfxOrganizeListBox_Impl::GetDocLevel() const > >-/* [Beschreibung] >+/* [Description] > >- Ermittelt, auf welche Ebene sich Dokumente befinden (unterschiedlich >- in der Dokumentvorlagensicht und der Dokumentensicht) >+ Determines on which level there are documents (in the template view or >+ the document view) > >- [Returnwert] >+ [Return value] > >- USHORT Die Ebene der Dokumente >+ USHORT Document level > > */ > >@@ -1107,20 +1102,19 @@ inline USHORT SfxOrganizeListBox_Impl::GetDocLevel() const > > SfxObjectShellRef SfxOrganizeListBox_Impl::GetObjectShell(const Path &rPath) > >-/* [Beschreibung] >+/* [Description] > >- Zugriff auf die ObjectShell, die dem aktuellen Eintrag zugeordnet >- ist. >+ Access to the ObjectShell to which the current entry is connected. > > [Parameter] > >- const Path &rPath Beschreibung des aktuellen Eintrags >+ const Path &rPath Description of the current entry > >- [Returnwert] >+ [Return value] > >- SfxObjectShellRef Referenz auf die ObjectShell >+ SfxObjectShellRef Reference to the ObjectShell > >- [Querverweise] >+ [Cross-references] > > <class Path> > >@@ -1139,17 +1133,14 @@ SfxObjectShellRef SfxOrganizeListBox_Impl::GetObjectShell(const Path &rPath) > > void SfxOrganizeListBox_Impl::RequestingChilds( SvLBoxEntry* pEntry ) > >-/* [Beschreibung] >+/* [Description] > >- Aufforderung, der Childs eines Eintrags einzuf"ugen >- ist. >+ Sent to the Childs of an entry that is going to be inserted. > (SV-Handler) > > [Parameter] > >- SvLBoxEntry* pEntry der Eintrag, dessen Childs erfragt werden >- >- >+ SvLBoxEntry* pEntry the entry whose Childs is requested > */ > > { >@@ -1157,9 +1148,11 @@ void SfxOrganizeListBox_Impl::RequestingChilds( SvLBoxEntry* pEntry ) > { > WaitObject aWaitCursor( this ); > >+ // Choose the correct mask color dependent from eColorMode. This >+ // must be adopted if we change the mask color for normal images, too! > Color aMaskColor( COL_LIGHTMAGENTA ); > >- // hier sind alle initial eingefuegt >+ // Here are all the initial inserted > SfxErrorContext aEc(ERRCTX_SFX_CREATEOBJSH, pDlg->pDialog); > if(VIEW_TEMPLATES == GetViewType() && 0 == GetModel()->GetDepth(pEntry)) > { >@@ -1206,14 +1199,11 @@ void SfxOrganizeListBox_Impl::RequestingChilds( SvLBoxEntry* pEntry ) > > long SfxOrganizeListBox_Impl::ExpandingHdl() > >-/* [Beschreibung] >- >- SV-Handler, der nach dem und vor dem Aufklappen eines Eintrags >- gerufen wird. >- Wird verwendet, um gfs. die ObjectShell wieder zu schlie"sen; >- die Eintr"age mit den Inhalten dieser Shell werden ebenfalls >- entfernt. >+/* [Description] > >+ SV-handler, before and after the unfolding of an entry is called. >+ Used if possibly to close the ObjectShell again, the entries with the >+ contents of this shell are also removed. > */ > > { >@@ -1225,12 +1215,12 @@ long SfxOrganizeListBox_Impl::ExpandingHdl() > (eViewType == VIEW_TEMPLATES && nLevel == 1)) > { > Path aPath(this, pEntry); >- // Beim Schliessen des Files die ObjectShell freigeben >+ // Release ObjectShell when closing the files > if(eViewType == VIEW_FILES && nLevel == 0) > pMgr->DeleteObjectShell(aPath[0]); > else > pMgr->DeleteObjectShell(aPath[0], aPath[1]); >- // alle SubEntries loeschen >+ // Delete all SubEntries > SvLBoxEntry *pToDel = SvLBox::GetEntry(pEntry, 0); > while(pToDel) > { >@@ -1247,18 +1237,18 @@ long SfxOrganizeListBox_Impl::ExpandingHdl() > BOOL SfxOrganizeListBox_Impl::IsUniqName_Impl(const String &rText, > SvLBoxEntry* pParent, SvLBoxEntry *pEntry) const > >-/* [Beschreibung] >+/* [Description] > >- Pr"uft, ob eine Name auf seiner Ebene eindeutig ist. >+ Checks whether a name is unique at its level. > > [Parameter] > >- const String & Name des zu suchenden Eintrags >- SvLBoxEntry* pSibling Geschwister (bezeichnet die Ebene) >+ const String & Name of the search entry >+ SvLBoxEntry* pSibling Siblings (referred to the level) > >- [Returnwert] >+ [Return value] > >- BOOL TRUE, wenn der Name eindeutig ist, sonst FALSE >+ BOOL TRUE, if the name is unique, otherwise FALSE > */ > > { >@@ -1337,9 +1327,9 @@ SfxOrganizeListBox_Impl::SfxOrganizeListBox_Impl > pDlg ( pArgDlg ), > eViewType ( eType ) > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor SfxOrganizeListBox >+ Constructor SfxOrganizeListBox > > */ > >@@ -1386,15 +1376,14 @@ IMPL_LINK( SfxOrganizeListBox_Impl, OnAsyncExecuteDrop, ExecuteDropEvent*, pEven > > void SfxOrganizeListBox_Impl::Reset() > >-/* [Beschreibung] >- >- Einf"ugen der Elemente in die ListBox >+/* [Description] > >+ Paste the items in the ListBox > */ > > { >- DBG_ASSERT( pMgr != 0, "kein Manager" ); >- // Inhalte l"oschen >+ DBG_ASSERT( pMgr != 0, "No Manager" ); >+ // Delete contents > SetUpdateMode(FALSE); > Clear(); > if ( VIEW_TEMPLATES == eViewType ) >@@ -1420,19 +1409,17 @@ void SfxOrganizeListBox_Impl::Reset() > > const Image &SfxOrganizeListBox_Impl::GetClosedBmp(USHORT nLevel) const > >-/* [Beschreibung] >+/* [Description] > >- Zugriff auf die Bitmap f"ur einen geschlossenen Eintrag >- der jeweiligen Ebene >+ Access to the bitmap for a closed entry at each level > > [Parameter] > >- USHORT nLevel Angabe der Ebene, 2 Ebenen sind erlaubt >- >- [Returnwert] >+ USHORT nLevel Indicator of the level, 2 levels are allowed > >- const Image & das Image auf der Ebenen nLevel >+ [Return value] > >+ const Image & The Image on level nLevel > */ > > { >@@ -1440,7 +1427,7 @@ const Image &SfxOrganizeListBox_Impl::GetClosedBmp(USHORT nLevel) const > > switch( nLevel ) > { >- default: DBG_ERROR( "Bitmaps ueberindiziert" ); >+ default: DBG_ERROR( "Bitmap index overflow" ); > > case 0: pRet = &aClosedFolderBmp; > break; >@@ -1455,18 +1442,17 @@ const Image &SfxOrganizeListBox_Impl::GetClosedBmp(USHORT nLevel) const > > const Image &SfxOrganizeListBox_Impl::GetOpenedBmp(USHORT nLevel) const > >-/* [Beschreibung] >+/* [Description] > >- Zugriff auf die Bitmap f"ur einen ge"offneten Eintrag >- der jeweiligen Ebene >+ Access to the bitmap for an open entry at each level > > [Parameter] > >- USHORT nLevel Angabe der Ebene, 2 Ebenen sind erlaubt >+ USHORT nLevel Indicator of the level, 2 levels are allowed > >- [Returnwert] >+ [Return value] > >- const Image & das Image auf der Ebenen nLevel >+ const Image & the image on the level nLevel > > */ > >@@ -1497,18 +1483,17 @@ PopupMenu* SfxOrganizeListBox_Impl::CreateContextMenu() > > String SfxOrganizeDlg_Impl::GetPath_Impl( BOOL bOpen, const String& rFileName ) > >-/* [Beschreibung] >+/* [Description] > >- Pfad per FileDialog erfragen, f"ur Import / Export von >- Dokumentvorlagen >+ Get path from FileDialog, for Import / Export of Templates > > [Parameter] > >- BOOL bOpen Flag: "Offnen / Speichern >- const String& rFileName aktueller Dateiname als Vorschlag >+ BOOL bOpen Flag: Open / Save >+ const String& rFileName Current file name as default > >- [R"uckgabewert] Dateiname mit Pfad oder Leerstring, wenn >- der Benutzer 'Abbrechen' gedr"uckt hat >+ [Return value] File name with path or empty string if >+ users has pressed 'Cancel' > */ > > { >@@ -1692,12 +1677,12 @@ BOOL SfxOrganizeDlg_Impl::DontDelete_Impl( SvLBoxEntry* pEntry ) > pFocusBox->GetViewType()) > nDepth++; > if( (nDepth > 2 && !pEntry->GetUserData()) || >- //Delete ueber GetContent verboten >- nDepth==2 || //Vorlage / Konfigurtionsrubrik nicht loeshcen >+ //Delete using GetContent forbidden >+ nDepth==2 || // Template / Not deleting config header > (nDepth==1 && SfxOrganizeListBox_Impl::VIEW_FILES == >- pFocusBox->GetViewType()) || //Files nicht loeschen >+ pFocusBox->GetViewType()) || //Not deleting Files > (0 == nDepth && pFocusBox->GetLevelCount_Impl(0) < 2)) >- //Mindestens eine Vorlage behalten >+ //At least keep one template > { > return TRUE; > } >@@ -1764,17 +1749,16 @@ sal_Bool SfxOrganizeDlg_Impl::GetServiceName_Impl( String& rName, String& rFileU > > long SfxOrganizeDlg_Impl::Dispatch_Impl( USHORT nId, Menu* _pMenu ) > >-/* [Beschreibung] >+/* [Description] > >- Verarbeiten der Events aus MenuButton oder Accelerator >+ Processing the events from MenuButton or Accelerator > > [Parameter] > >- USHORT nId ID des Events >- >- [R"uckgabewert] 1: Event wurde verarbeitet, >- 0: Event wurde nicht verarbeitet (SV-Menu) >+ USHORT nId Event ID > >+ [Return value] 1: Event has been processed, >+ 0: Event has not been processed (SV-Menu) > */ > > { >@@ -1840,7 +1824,7 @@ long SfxOrganizeDlg_Impl::Dispatch_Impl( USHORT nId, Menu* _pMenu ) > ( nDeleteInd == USHRT_MAX && pFocusBox->GetChildCount(pEntry) ) ); > } > } >- // Inhaltsformen >+ //Content Format > else if(nDepth + pFocusBox->GetDocLevel() >= 2) > { > if(!QueryDelete_Impl(pDialog, STR_DELETE_TEMPLATE, pFocusBox->GetEntryText(pEntry))) >@@ -1970,17 +1954,16 @@ long SfxOrganizeDlg_Impl::Dispatch_Impl( USHORT nId, Menu* _pMenu ) > > IMPL_LINK_INLINE_START( SfxOrganizeDlg_Impl, MenuSelect_Impl, Menu *, pMenu ) > >-/* [Beschreibung] >+/* [Description] > >- SelectHandler des Men"us des Men"ubuttons (SV) >+ SelectHandler of Menu and Menubuttons (SV) > > [Parameter] > >- MenuButton *pBtn der das Event ausl"osende Button >- >- [R"uckgabewert] 1: Event wurde verarbeitet, >- 0: Event wurde nicht verarbeitet (SV-Menu) >+ MenuButton *pBtn Button triggering the event > >+ [Return value] 1: Event has been processed, >+ 0: Event has not been processed (SV-Menu) > */ > { > return Dispatch_Impl( pMenu->GetCurItemId(), pMenu ); >@@ -1991,17 +1974,16 @@ IMPL_LINK_INLINE_END( SfxOrganizeDlg_Impl, MenuSelect_Impl, Menu *, pMenu ) > > IMPL_LINK( SfxOrganizeDlg_Impl, AccelSelect_Impl, Accelerator *, pAccel ) > >-/* [Beschreibung] >+/* [Description] > >- SelectHandler des Accelerators (SV) >+ SelectHandler of Accelerators (SV) > > [Parameter] > >- Accelerator *pAccel der das Event ausl"osende Accelerator >- >- [R"uckgabewert] 1: Event wurde verarbeitet, >- 0: Event wurde nicht verarbeitet (SV) >+ Accelerator *pAccel Accelerator triggering the event > >+ [Return value] 1: Event has been processed, >+ 0: Event has not been processed (SV) > */ > > { >@@ -2024,17 +2006,16 @@ void SfxOrganizeDlg_Impl::OkHdl(Button *pButton) > > IMPL_LINK( SfxOrganizeDlg_Impl, MenuActivate_Impl, Menu *, pMenu ) > >-/* [Beschreibung] >+/* [Description] > >- ActivateHandler des Men"us des Men"ubuttons (SV) >+ ActivateHandler of Menu and Menubuttons (SV) > > [Parameter] > >- Menu *pMenu das das Event ausl"osende Men"u >- >- [R"uckgabewert] 1: Event wurde verarbeitet, >- 0: Event wurde nicht verarbeitet (SV-Menu) >+ Menu *pMenu Event triggering the Menu > >+ [Return value] 1: Event has been processed, >+ 0: Event has not been processed (SV-Menu) > */ > { > if ( pFocusBox && pFocusBox->IsEditingActive() ) >@@ -2045,11 +2026,11 @@ IMPL_LINK( SfxOrganizeDlg_Impl, MenuActivate_Impl, Menu *, pMenu ) > ( bEnable && pFocusBox->GetSelectionCount() ) ? pFocusBox->GetModel()->GetDepth( pEntry ) : 0; > const USHORT nDocLevel = bEnable ? pFocusBox->GetDocLevel() : 0; > int eVT = pFocusBox ? pFocusBox->GetViewType() : 0; >- // nur Vorlagen anlegen >+ // Create only Template > pMenu->EnableItem( ID_NEW, bEnable && 0 == nDepth && SfxOrganizeListBox_Impl::VIEW_TEMPLATES == eVT ); >- // Vorlagen: Loeschen Ebene 0,1,3ff >- // ein Bereich mu"s mindestens erhalten bleiben >- // Dateien : Loeschen Ebene > 2 >+ // Template: Delete level 0,1,3ff >+ // At least one region must be retained >+ // Files: Delete level> 2 > > pMenu->EnableItem( ID_DELETE, bEnable && !DontDelete_Impl( pEntry ) ); > pMenu->EnableItem( ID_EDIT, >@@ -2117,17 +2098,14 @@ IMPL_LINK( SfxOrganizeDlg_Impl, MenuActivate_Impl, Menu *, pMenu ) > > IMPL_LINK( SfxOrganizeDlg_Impl, GetFocus_Impl, SfxOrganizeListBox_Impl *, pBox ) > >-/* [Beschreibung] >+/* [Description] > >- GetFocus-Handler, wird aus den Select-Handler der Listboxen >- gerufen. >- Wird verwendet, im die Listbox, die den Focus besitzt sowie >- deren Zustand zu ermitteln. >+ GetFocus-Handler, is called from the Select-Handler of ListBox >+ Used in the listBox that has the focus and to determine its condition. > > [Parameter] > >- SfxOrganizeListBox *pBox die rufende Box >- >+ SfxOrganizeListBox *pBox The calling Box > */ > > { >@@ -2143,17 +2121,15 @@ IMPL_LINK( SfxOrganizeDlg_Impl, GetFocus_Impl, SfxOrganizeListBox_Impl *, pBox ) > > IMPL_LINK( SfxOrganizeDlg_Impl, LeftListBoxSelect_Impl, ListBox *, pBox ) > >-/* [Beschreibung] >+/* [Description] > >- Select-Handler, wird aus den Select-Handler der Listboxen >- gerufen. >- Wenn sich der Modus der Boxen (Dokumentsicht, Dokumentvorlagensicht) >- unterscheiden, werden die Models getrennt; andernfalls zusammengefa"st. >+ Select-Handler, is called from the Select-Handler of ListBox. >+ If the mode of the Boxes are different (Document view or Template view) >+ then the models are separated, otherwise joined together. > > [Parameter] > >- ListBox *pBox die rufende Box >- >+ ListBox *pBox The calling Box > */ > { > const SfxOrganizeListBox_Impl::DataEnum >@@ -2177,17 +2153,15 @@ IMPL_LINK( SfxOrganizeDlg_Impl, LeftListBoxSelect_Impl, ListBox *, pBox ) > > IMPL_LINK( SfxOrganizeDlg_Impl, RightListBoxSelect_Impl, ListBox *, pBox ) > >-/* [Beschreibung] >+/* [Description] > >- Select-Handler, wird aus den Select-Handler der Listboxen >- gerufen. >- Wenn sich der Modus der Boxen (Dokumentsicht, Dokumentvorlagensicht) >- unterscheiden, werden die Models getrennt; andernfalls zusammengefa"st. >+ Select-Handler, will be called by Select-Handler of the ListBox. >+ If the mode of the Boxes are different (Document view or Template view) >+ then the models are separated, otherwise joined together. > > [Parameter] > >- ListBox *pBox die rufende Box >- >+ ListBox *pBox The calling Box > */ > { > const SfxOrganizeListBox_Impl::DataEnum eViewType = >@@ -2200,7 +2174,7 @@ IMPL_LINK( SfxOrganizeDlg_Impl, RightListBoxSelect_Impl, ListBox *, pBox ) > aRightLb.SetModel(aLeftLb.GetModel()); > else > { >- // Models trennen >+ // Separate models > aRightLb.DisconnectFromModel(); > aRightLb.Reset(); > } >@@ -2224,13 +2198,13 @@ IMPL_LINK( SfxOrganizeDlg_Impl, OnAddressTemplateClicked, Button *, pButton ) > > IMPL_LINK( SfxOrganizeDlg_Impl, AddFiles_Impl, Button *, pButton ) > >-/* [Beschreibung] >+/* [Description] > >- Handler des Buttons f"ur das Hinzuf"ugen von Dateien per Dialog. >+ Handler of the button for adding files through Dialog. > > [Parameter] > >- Button * der Button, der dieses Events ausgel"ost hat. >+ Button * Button, triggering this Event > > */ > { >@@ -2377,10 +2351,9 @@ IMPL_LINK( SfxOrganizeDlg_Impl, AddFilesHdl, sfx2::FileDialogHelper *, EMPTYARG > > short SfxTemplateOrganizeDlg::Execute() > >-/* [Beschreibung] >+/* [Description] > >- "Uberladene Execute- Methode; speichert gfs. "Anderungen an den >- Dokumentvorlagen >+ Overloaded Execute method; stores changes to the document templates > (SV-Methode) > > */ >@@ -2405,10 +2378,9 @@ SfxTemplateOrganizeDlg::SfxTemplateOrganizeDlg(Window * pParent, > : ModalDialog( pParent, SfxResId(DLG_ORGANIZE)), > pImp( new SfxOrganizeDlg_Impl(this, pTempl) ) > >-/* [Beschreibung] >- >- Konstruktor >+/* [Description] > >+ Constructor > */ > { > FreeResource(); >diff --git a/sfx2/source/doc/docvor.src b/sfx2/source/doc/docvor.src >index 1d72661..4d1d3b4 100644 >--- a/sfx2/source/doc/docvor.src >+++ b/sfx2/source/doc/docvor.src >@@ -53,8 +53,6 @@ ModalDialog DLG_ORGANIZE > { > Pos = MAP_APPFONT ( 205 , 6 ) ; > Size = MAP_APPFONT ( 60 , 14 ) ; >- /* ### ACHTUNG: Neuer Text in Resource? Schließen : Schlie˜en */ >- /* ### ACHTUNG: Neuer Text in Resource? Schließen : Schlie˜en */ > Text [ en-US ] = "Close" ; > TabStop = TRUE ; > DefButton = TRUE ; >@@ -164,8 +162,6 @@ ModalDialog DLG_ORGANIZE > { > Identifier = ID_DELETE ; > HelpId = HID_ORGANIZE_DELETE ; >- /* ### ACHTUNG: Neuer Text in Resource? ~Löschen : ~L÷schen */ >- /* ### ACHTUNG: Neuer Text in Resource? ~Löschen : ~L÷schen */ > Text [ en-US ] = "~Delete" ; > AccelKey = KeyCode > { >diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx >index 6718860..c9c5e98 100644 >--- a/sfx2/source/doc/frmdescr.cxx >+++ b/sfx2/source/doc/frmdescr.cxx >@@ -162,7 +162,7 @@ SfxFrameDescriptor* SfxFrameDescriptor::Clone( BOOL bWithIds ) const > pFrame->pImp->pWallpaper = new Wallpaper( *pImp->pWallpaper ); > if( pImp->pArgs ) > { >- // Aktuell ist im Clone von SfxAllItemSets noch ein Bug... >+ // Currently in the clone of SfxAllItemSets there is still a bug ... > pFrame->pImp->pArgs = new SfxAllItemSet( SFX_APP()->GetPool() ); > pFrame->pImp->pArgs->Put(*pImp->pArgs); > } >diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx >index 52e36d7..aced5ff 100644 >--- a/sfx2/source/doc/new.cxx >+++ b/sfx2/source/doc/new.cxx >@@ -276,8 +276,8 @@ public: > SfxNewFileDialog_Impl( SfxNewFileDialog* pAntiImplP, USHORT nFlags ); > ~SfxNewFileDialog_Impl(); > >- // Liefert FALSE, wenn '- Keine -' als Vorlage eingestellt ist >- // Nur wenn IsTemplate() TRUE liefert, koennen Vorlagennamen >+ // Returns FALSE if '- No -' is set as a template >+ // Template name can only be obtained if IsTemplate() is TRUE > // erfragt werden > BOOL IsTemplate() const; > String GetTemplateRegion() const; >@@ -436,12 +436,12 @@ IMPL_LINK( SfxNewFileDialog_Impl, PreviewClick, CheckBox *, pBox ) > > IMPL_LINK( SfxNewFileDialog_Impl, TemplateSelect, ListBox *, EMPTYARG ) > { >- // noch am Laden >+ // Still loading > if ( xDocShell && xDocShell->GetProgress() ) > return 0; > > if ( !MORE_BTN(GetState()) ) >- // Dialog nicht aufgeklappt >+ // Dialog is not opened > return 0; > > aPrevTimer.Start(); >@@ -453,7 +453,7 @@ IMPL_LINK( SfxNewFileDialog_Impl, TemplateSelect, ListBox *, EMPTYARG ) > IMPL_LINK_INLINE_START( SfxNewFileDialog_Impl, DoubleClick, ListBox *, pListBox ) > { > (void)pListBox; >- // noch am Laden >+ // Still loadning > if ( !xDocShell.Is() || !xDocShell->GetProgress() ) > pAntiImpl->EndDialog(RET_OK); > return 0; >diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx >index 94489c4..570a80f 100644 >--- a/sfx2/source/doc/objcont.cxx >+++ b/sfx2/source/doc/objcont.cxx >@@ -128,8 +128,8 @@ SfxObjectShell::GetPreviewMetaFile( sal_Bool bFullContent ) const > ::boost::shared_ptr<GDIMetaFile> > SfxObjectShell::CreatePreviewMetaFile_Impl( sal_Bool bFullContent ) const > { >- // Nur wenn gerade nicht gedruckt wird, darf DoDraw aufgerufen >- // werden, sonst wird u.U. der Printer abgeschossen ! >+ // DoDraw can only be called when no printing is done, otherwise >+ // the printer may be turned off > SfxViewFrame *pFrame = SfxViewFrame::GetFirst( this ); > if ( pFrame && pFrame->GetViewShell() && > pFrame->GetViewShell()->GetPrinter() && >@@ -235,7 +235,7 @@ lcl_add(util::Duration & rDur, Time const& rTime) > rDur.Seconds += rTime.GetSec(); > } > >-// Bearbeitungszeit aktualisieren >+// Update the processing time > void SfxObjectShell::UpdateTime_Impl( > const uno::Reference<document::XDocumentProperties> & i_xDocProps) > { >@@ -486,8 +486,8 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > if ( pHisPool && pHisPool->Count() > nSourceIdx2 ) > pHisSheet = (*pHisPool)[nSourceIdx2]; > >- // Einfuegen ist nur dann noetig, wenn ein StyleSheet >- // zwischen unterschiedlichen(!) Pools bewegt wird >+ // Pasting is only needed if a style sheet is moved between >+ // different (!) Pools > > if ( pHisSheet && pMyPool != pHisPool ) > { >@@ -496,12 +496,12 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > nIdx2 = pMyPool->Count(); > } > >- // wenn so eine Vorlage schon existiert: loeschen! >+ // if such a template already exists: delete! > String aOldName(pHisSheet->GetName()); > SfxStyleFamily eOldFamily = pHisSheet->GetFamily(); > > SfxStyleSheetBase* pExist = pMyPool->Find(aOldName, eOldFamily); >- // USHORT nOldHelpId = pExist->GetHelpId(??? VB ueberlegt sich was); >+ // USHORT nOldHelpId = pExist->GetHelpId(???); > BOOL bUsedOrUserDefined; > if( pExist ) > { >@@ -524,10 +524,11 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > aOldName, eOldFamily, > pHisSheet->GetMask(), nIdx2); > >- // ItemSet der neuen Vorlage fuellen >+ // Fill the Itemset of the new template > rNewSheet.GetItemSet().Set(pHisSheet->GetItemSet()); > >- // wer bekommt den Neuen als Parent? wer benutzt den Neuen als Follow? >+ // Who gets the new one as a Parent? >+ // Who is using the new one as Follow? > SfxStyleSheetBase* pTestSheet = pMyPool->First(); > while (pTestSheet) > { >@@ -536,7 +537,7 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > pTestSheet->GetParent() == aOldName) > { > pTestSheet->SetParent(aOldName); >- // Verknuepfung neu aufbauen >+ // Rebuild Link > } > > if (pTestSheet->GetFamily() == eOldFamily && >@@ -544,7 +545,7 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > pTestSheet->GetFollow() == aOldName) > { > pTestSheet->SetFollow(aOldName); >- // Verknuepfung neu aufbauen >+ // Rebuild Link > } > > pTestSheet = pMyPool->Next(); >@@ -553,7 +554,7 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > rNewSheet.IsUsed() || rNewSheet.IsUserDefined(); > > >- // hat der Neue einen Parent? wenn ja, mit gleichem Namen bei uns suchen >+ // has a New Parent? if so, start search with the same name > if (pHisSheet->HasParentSupport()) > { > const String& rParentName = pHisSheet->GetParent(); >@@ -566,8 +567,8 @@ BOOL SfxObjectShell::Insert(SfxObjectShell &rSource, > } > } > >- // hat der Neue einen Follow? wenn ja, mit gleichem >- // Namen bei uns suchen >+ // Has the new got a Follow? if so start search >+ // with the same name. > if (pHisSheet->HasFollowSupport()) > { > const String& rFollowName = pHisSheet->GetFollow(); >@@ -645,14 +646,14 @@ BOOL SfxObjectShell::Remove > pTestSheet->HasParentSupport() && > pTestSheet->GetParent() == aName) > { >- pTestSheet->SetParent(aEmpty); // Verknuepfung aufloesen >+ pTestSheet->SetParent(aEmpty); // Remove link > } > > if (pTestSheet->GetFamily() == eFamily && > pTestSheet->HasFollowSupport() && > pTestSheet->GetFollow() == aName) > { >- pTestSheet->SetFollow(aEmpty); // Verknuepfung aufloesen >+ pTestSheet->SetFollow(aEmpty); // Remove link > } > > pTestSheet = pMyPool->Next(); >@@ -688,7 +689,7 @@ BOOL SfxObjectShell::Print > if ( !pStyle ) > return TRUE; > >- // pepare adaptor for old style StartPage/EndPage printing >+ // prepare adaptor for old style StartPage/EndPage printing > boost::shared_ptr< Printer > pPrinter( new Printer( rPrt.GetJobSetup() ) ); > vcl::OldStylePrintAdaptor* pAdaptor = new vcl::OldStylePrintAdaptor( pPrinter ); > boost::shared_ptr< vcl::PrinterController > pController( pAdaptor ); >@@ -804,18 +805,17 @@ BOOL SfxObjectShell::Print > > void SfxObjectShell::LoadStyles > ( >- SfxObjectShell &rSource /* die Dokument-Vorlage, aus der >- die Styles geladen werden sollen */ >+ SfxObjectShell &rSource /* the document template from which >+ the styles are to be loaded * / > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode wird vom SFx gerufen, wenn aus einer Dokument-Vorlage >- Styles nachgeladen werden sollen. Bestehende Styles soll dabei >- "uberschrieben werden. Das Dokument mu"s daher neu formatiert werden. >- Daher werden die Applikationen in der Regel diese Methode "uberladen >- und in ihrer Implementierung die Implementierung der Basisklasse >- rufen. >+ This method is called by the SFx if template styles are to be loaded. >+ Existing styles are in this case overwritten. The document has then to be >+ newly formatted. Therefore, the application of this method is usually >+ overloaded and its implementation is calling the implementation in >+ the base class. > */ > > { >@@ -843,7 +843,7 @@ void SfxObjectShell::LoadStyles > { > pDest = &pMyPool->Make( pSource->GetName(), > pSource->GetFamily(), pSource->GetMask()); >- // Setzen des Parents, der Folgevorlage >+ // Setting of Parents, the next style > } > pFound[nFound].pSource = pSource; > pFound[nFound].pDest = pDest; >@@ -867,13 +867,12 @@ void SfxObjectShell::LoadStyles > > void SfxObjectShell::UpdateFromTemplate_Impl( ) > >-/* [Beschreibung] >+/* [Description] > >- Diese interne Methode pr"uft, ob das Dokument aus einem Template >- erzeugt wurde, und ob dieses neuer ist als das Dokument. Ist dies >- der Fall, wird der Benutzer gefragt, ob die Vorlagen (StyleSheets) >- updated werden sollen. Wird dies positiv beantwortet, werden die >- StyleSheets updated. >+ This internal method checks whether the document was created from a >+ template, and if this is newer than the document. If this is the case, >+ the user is asked if the Templates (StyleSheets) should be updated. >+ If this is answered positively, the StyleSheets are updated. > */ > > { >@@ -903,10 +902,10 @@ void SfxObjectShell::UpdateFromTemplate_Impl( ) > > if ( aTemplName.getLength() || (aTemplURL.getLength() && !IsReadOnly()) ) > { >- // try to locate template, first using filename >- // this must be done because writer global document uses this "great" idea to manage the templates of all parts >- // in the master document >- // but it is NOT an error if the template filename points not to a valid file >+ // try to locate template, first using filename this must be done >+ // because writer global document uses this "great" idea to manage >+ // the templates of all parts in the master document but it is NOT >+ // an error if the template filename points not to a valid file > SfxDocumentTemplates aTempl; > aTempl.Construct(); > if ( aTemplURL.getLength() ) >@@ -917,7 +916,8 @@ void SfxObjectShell::UpdateFromTemplate_Impl( ) > } > > if( !aFoundName.Len() && aTemplName.getLength() ) >- // if the template filename did not lead to success, try to get a file name for the logical template name >+ // if the template filename did not lead to success, >+ // try to get a file name for the logical template name > aTempl.GetFull( String(), aTemplName, aFoundName ); > } > >@@ -1015,16 +1015,18 @@ void SfxObjectShell::UpdateFromTemplate_Impl( ) > SetConfigManager(pTemplCfg); > SetTemplateConfig(TRUE); > >- // Falls der gerade zerst"orte CfgMgr des Dokuments der >+ // Falls der gerade zerstörte CfgMgr des Dokuments der > // aktive war, pCfgMgr lieber neu holen >+ // If the just destroyed CfgMgr of the document was active >+ // get pCfgMgr again > pCfgMgr = SFX_CFGMANAGER(); > >- // ggf. den neuen ConfigManager aktivieren >+ // If possible, activate the new ConfigManager > if ( this == SfxObjectShell::Current() ) > pTemplCfg->Activate(pCfgMgr); > } > */ >- // Template und Template-DocInfo werden nicht mehr gebraucht >+ // Template and Template-DocInfo are not needed anymore > // delete pTemplInfo; > } > } >diff --git a/sfx2/source/doc/objembed.cxx b/sfx2/source/doc/objembed.cxx >index 89a223b..701a943 100644 >--- a/sfx2/source/doc/objembed.cxx >+++ b/sfx2/source/doc/objembed.cxx >@@ -143,9 +143,9 @@ void SfxObjectShell::SetVisArea( const Rectangle & rVisArea ) > */ > > >- // OutPlace die Gr"o\se des MDI-Fensters anpassen >- // Unbedingt den Gr"o\senvergleich machen, spart nicht nur Zeit, sondern >- // vermeidet auch Rundungsfehler ! >+ // OutPlace adjust the size of the MDI-window >+ // Be sure to make the size comparison, not only saves time, but >+ // also avoids rounding error! /* > /* > // in case of ole outplace editing the frame should be found > SfxViewFrame* pFrameToResize = pFrame ? pFrame : SfxViewFrame::GetFirst( GetObjectShell() ); >@@ -154,22 +154,22 @@ void SfxObjectShell::SetVisArea( const Rectangle & rVisArea ) > !pFrameToResize->IsAdjustPosSizePixelLocked_Impl() ) > > { >- // Zuerst die logischen Koordinaten von IP-Objekt und EditWindow >- // ber"ucksichtigen >+ // First take the logical coordinates of IP-Object and >+ // EditWindow into account > SfxViewShell *pShell = pFrameToResize->GetViewShell(); > Window *pWindow = pShell->GetWindow(); > >- // Da in den Applikationen bei der R"ucktransformation immer die >- // Eckpunkte tranformiert werden und nicht die Size (um die Ecken >- // alignen zu k"onnen), transformieren wir hier auch die Punkte, um >- // m"oglichst wenig Rundungsfehler zu erhalten. >+ // When transforming back the applications: Since always >+ // the corners are transformed and not the size >+ // (to be able to align them), we also transform the >+ // points minimize the rounding error > Rectangle aRect = pWindow->LogicToPixel( rRect ); > Size aSize = aRect.GetSize(); > pShell->GetWindow()->SetSizePixel( aSize ); > pFrameToResize->DoAdjustPosSizePixel( pShell, Point(), aSize ); > } > >- // bei InPlace die View skalieren >+ // Scale the View by InPlace > if ( GetIPEnv() && GetIPEnv()->GetEditWin() && !bDisableViewScaling && pIPF ) > pIPF->GetEnv_Impl()->MakeScale( rRect.GetSize(), GetMapUnit(), > pIPF->GetViewShell()->GetWindow()->GetOutputSizePixel() ); >@@ -232,10 +232,6 @@ void SfxObjectShell::DoDraw( OutputDevice* pDev, > { > Fraction aXF( rSize.Width(), aSize.Width() ); > Fraction aYF( rSize.Height(), aSize.Height() ); >- >-//REMOVE Point aOrg = rObjPos; >-//REMOVE aMod.SetMapUnit( MAP_100TH_MM ); >-//REMOVE aSize = pDev->LogicToLogic( GetVisArea( nAspect ).GetSize(), &aMod, &aWilliMode ); > DoDraw_Impl( pDev, rObjPos, aXF, aYF, rSetup, nAspect ); > } > } >@@ -254,15 +250,15 @@ void SfxObjectShell::DoDraw_Impl( OutputDevice* pDev, > aMapMode.SetScaleX( rScaleX ); > aMapMode.SetScaleY( rScaleY ); > >- // Ziel in Pixel >+ // Target in Pixels > Point aOrg = pDev->LogicToLogic( rViewPos, NULL, &aMapMode ); > Point aDelta = aOrg - aVisArea.TopLeft(); > >- // Origin entsprechend zum sichtbaren Bereich verschieben >- // Origin mit Scale setzen >+ // Origin moved according to the viewable area >+ // Origin set with Scale > aMapMode.SetOrigin( aDelta ); > >- // Deviceeinstellungen sichern >+ // Secure the Device settings > pDev->Push(); > > Region aRegion; >@@ -290,15 +286,9 @@ void SfxObjectShell::DoDraw_Impl( OutputDevice* pDev, > } > if( pMtf ) > pMtf->Record( pDev ); >- >-//REMOVE SvOutPlaceObjectRef xOutRef( this ); >-//REMOVE if ( xOutRef.Is() ) >-//REMOVE xOutRef->DrawObject( pDev, rSetup, rSize, nAspect ); >-//REMOVE else > Draw( pDev, rSetup, nAspect ); >-//REMOVE DrawHatch( pDev, aVisArea.TopLeft(), aVisArea.GetSize() ); > >- // Deviceeinstellungen wieder herstellen >+ // Restore Device settings > pDev->Pop(); > > } >diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx >index 95afd8a..500aad0 100644 >--- a/sfx2/source/doc/objmisc.cxx >+++ b/sfx2/source/doc/objmisc.cxx >@@ -229,11 +229,11 @@ void SfxObjectShell::FlushDocInfo() > SetAutoLoad( INetURLObject(url), delay * 1000, > (delay > 0) || url.getLength() ); > /* >- // bitte beachten: >- // 1. Titel in DocInfo aber nicht am Doc (nach HTML-Import) >- // => auch am Doc setzen >- // 2. Titel in DocInfo leer (Briefumschlagsdruck) >- // => nicht am Doc setzen, da sonst "unbenanntX" daraus wird >+ // Pleae note: >+ // 1. Titel in DocInfo but not in Doc (after HTML import) >+ // => also set it in Doc >+ // 2. Title in DocInfo empty (envelope printing) >+ // => do not set in Doc, ince the result will be "no-name > String aDocInfoTitle = GetDocInfo().GetTitle(); > if ( aDocInfoTitle.Len() ) > SetTitle( aDocInfoTitle ); >@@ -316,7 +316,7 @@ void SfxObjectShell::EnableSetModified( sal_Bool bEnable ) > { > #ifdef DBG_UTIL > if ( bEnable == pImp->m_bEnableSetModified ) >- DBG_WARNING( "SFX_PERSIST: EnableSetModified 2x mit dem gleichen Wert gerufen" ); >+ DBG_WARNING( "SFX_PERSIST: EnableSetModified 2x called with the same value" ); > #endif > pImp->m_bEnableSetModified = bEnable; > } >@@ -374,7 +374,7 @@ void SfxObjectShell::SetModified( sal_Bool bModifiedP ) > { > #ifdef DBG_UTIL > if ( !bModifiedP && !IsEnableSetModified() ) >- DBG_WARNING( "SFX_PERSIST: SetModified( sal_False ), obwohl IsEnableSetModified() == sal_False" ); >+ DBG_WARNING( "SFX_PERSIST: SetModified( sal_False ), although IsEnableSetModified() == sal_False" ); > #endif > > if( !IsEnableSetModified() ) >@@ -392,7 +392,7 @@ void SfxObjectShell::SetModified( sal_Bool bModifiedP ) > void SfxObjectShell::ModifyChanged() > { > if ( pImp->bClosing ) >- // SetModified aus dem dispose des Models! >+ // SetModified dispose of the models! > return; > > {DBG_CHKTHIS(SfxObjectShell, 0);} >@@ -412,11 +412,10 @@ void SfxObjectShell::ModifyChanged() > > sal_Bool SfxObjectShell::IsReadOnlyUI() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert sal_True, wenn das Dokument fuer die UI wie r/o behandelt werden >- soll. Dieses ist unabhaengig vom tatsaechlichen r/o, welches per >- <IsReadOnly()> erfragbar ist. >+ Returns sal_True if the document for the UI is treated as r/o. This is >+ regardless of the actual r/o, which can be checked with <IsReadOnly()>. > */ > > { >@@ -427,9 +426,9 @@ sal_Bool SfxObjectShell::IsReadOnlyUI() const > > sal_Bool SfxObjectShell::IsReadOnlyMedium() const > >-/* [Beschreibung] >+/* [Description] > >- Liefert sal_True, wenn das Medium r/o ist bzw. r/o geoeffnet wurde. >+ Returns sal_True when the medium is r/o, for instance when opened as r/o. > */ > > { >@@ -442,10 +441,10 @@ sal_Bool SfxObjectShell::IsReadOnlyMedium() const > > void SfxObjectShell::SetReadOnlyUI( sal_Bool bReadOnly ) > >-/* [Beschreibung] >+/* [Description] > >- Schaltet das Dokument in einen r/o bzw. r/w Zustand ohne es neu >- zu laden und ohne die Open-Modi des Mediums zu aendern. >+ Turns the document in an r/o and r/w state respectively without reloading >+ it and without changing the open mode of the medium. > */ > > { >@@ -499,12 +498,10 @@ sal_Bool SfxObjectShell::IsInModalMode() const > return pImp->bModalMode || pImp->bRunningMacro; > } > >-//<!--Added by PengYunQuan for Validity Cell Range Picker > sal_Bool SfxObjectShell::AcceptStateUpdate() const > { > return !IsInModalMode(); > } >-//-->Added by PengYunQuan for Validity Cell Range Picker > > //------------------------------------------------------------------------- > >@@ -537,17 +534,18 @@ void SfxObjectShell::SetMacroMode_Impl( sal_Bool bModal ) > > void SfxObjectShell::SetModalMode_Impl( sal_Bool bModal ) > { >- // nur Broadcasten wenn modifiziert, sonst ggf. Endlosrekursion >+ // Broadcast only if modified, or otherwise it will possibly go into >+ // an endless loop > if ( !pImp->bModalMode != !bModal ) > { >- // zentral mitz"ahlen >+ // Central count > sal_uInt16 &rDocModalCount = SFX_APP()->Get_Impl()->nDocModalMode; > if ( bModal ) > ++rDocModalCount; > else > --rDocModalCount; > >- // umschalten >+ // Switch > pImp->bModalMode = bModal; > Broadcast( SfxSimpleHint( SFX_HINT_MODECHANGED ) ); > } >@@ -799,41 +797,41 @@ IndexBitSet& SfxObjectShell::GetNoSet_Impl() > > void SfxObjectShell::SetTitle > ( >- const String& rTitle // der neue Titel des Dokuments >+ const String& rTitle // the new Document Titel > ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode kann der Titel des Dokuments gesetzt werden. >- Dieser entspricht initial dem kompletten Dateinamen. Ein Setzen >- des Titels wirkt jedoch nicht zu"uck auf den Dateinamen; er wird >- jedoch in den Caption-Bars der MDI-Fenster angezeigt. >+ With this method, the title of the document can be set. >+ This corresponds initially to the full file name. A setting of the >+ title does not affect the file name, but it will be shown in the >+ Caption-Bars of the MDI-window. > */ > > { > DBG_CHKTHIS(SfxObjectShell, 0); > >- // nix zu tun? >+ // Nothing to do? > if ( ( ( HasName() && pImp->aTitle == rTitle ) > || ( !HasName() && GetTitle() == rTitle ) ) > && !IsDocShared() ) > return; > > SfxApplication *pSfxApp = SFX_APP(); >- // ggf. die unbenannt-Nummer freigeben >+ >+ // If possible relase the unnamed number. > if ( pImp->bIsNamedVisible && USHRT_MAX != pImp->nVisualDocumentNumber ) > { > pSfxApp->ReleaseIndex(pImp->nVisualDocumentNumber); > pImp->bIsNamedVisible = 0; > } > >- // Title setzen >+ // Set Title > pImp->aTitle = rTitle; >-// Wieso denn in der DocInfo? > // GetDocInfo().SetTitle( rTitle ); > // FlushDocInfo(); > >- // Benachrichtigungen >+ // Notification > if ( GetMedium() ) > { > SfxShell::SetName( GetTitle(SFX_TITLE_APINAME) ); >@@ -859,52 +857,53 @@ String X(const String &rRet) > String SfxObjectShell::GetTitle > ( > sal_uInt16 nMaxLength /* 0 (default) >- der Titel selbst, so wie er ist >+ the title itself, as it is > > 1 (==SFX_TITLE_FILENAME) >- liefert den logischen Dateinamen ohne Pfad >- (unter WNT je nach Systemeinstellung ohne >- Extension) >+ provides the logical file name without path >+ (under WNT depending on the system settings >+ without extension) > > 2 (==SFX_TITLE_FULLNAME) >- liefert den mit komplettem logischen Dateinamen >- mit Pfad (remote => ::com::sun::star::util::URL) >+ provides the logical file names with full path >+ (remote =>:: com:: sun:: star:: util:: URL) > > 3 (==SFX_TITLE_APINAME) >- liefert den logischen Dateinamen ohne Pfad >- und Extension >+ provides the logical filname without path >+ and extension > > 4 (==SFX_TITLE_DETECT) >- liefert den kompletten Titel, falls noch >- nicht gesetzt wird aber aus DocInfo oder >- dem Namen des Medium erzeugt >+ provides the complete title, if not set yet >+ it will be created from DocInfo or the name of >+ the medium. > > 5 (==SFX_TITLE_CAPTION) >- liefert den Titel so, wie MB ihn heute in >- der CaptionBar anzeigen m"ochte >+ provides the Title just like MB now in the >+ CaptionBar view > > 6 (==SFX_TITLE_PICKLIST) >- liefert den Titel so, wie MB ihn heute in >- der PickList anzeigen m"ochte >+ returns the Titel, just like MB now would >+ display it in the in the PickList > > 7 (==SFX_TITLE_HISTORY) >- liefert den Titel so, wie MB ihn heute in >- der History anzeigen m"ochte >+ returns the Title just like MB now would >+ display it in the in the History > > 10 bis USHRT_MAX >- liefert maximal 'nMaxLength' Zeichen vom logischen >- Dateinamen inkl. Pfad (remote => ::com::sun::star::util::URL) >+ provides the 'nMaxLength' of the logical >+ file name including the path >+ (remote => ::com::sun::star::util::URL) > */ > ) const > >-/* [Beschreibung] >+/* [Description] > >- Liefert den Titel bzw. logischen Dateinamen des Dokuments, je nach >+ Returns the title or logical file name of the document, depending on the > 'nMaxLength'. > >- Falls der Dateiname mit Pfad verwendet wird, wird die Namensk"urzung durch >- Ersetzung eines oder mehrerer Directory-Namen durch "..." durchgef"uhrt, >- URLs werden z.Zt. immer komplett geliefert. >+ If the file name with path is used, the Name shortened by replacing one or >+ more directory names with "...", URLs are currently always returned >+ in complete form. > */ > > { >@@ -921,7 +920,7 @@ String SfxObjectShell::GetTitle > return aTitle; > } */ > >- // Titel erzeugen? >+ // Create Title? > if ( SFX_TITLE_DETECT == nMaxLength && !pImp->aTitle.Len() ) > { > static sal_Bool bRecur = sal_False; >@@ -950,38 +949,37 @@ String SfxObjectShell::GetTitle > else if (SFX_TITLE_APINAME == nMaxLength ) > return X(GetAPIName()); > >- // Sonderfall Vorlagen: >+ // Special case templates: > if( IsTemplate() && pImp->aTitle.Len() && > ( nMaxLength == SFX_TITLE_CAPTION || nMaxLength == SFX_TITLE_PICKLIST ) ) > return X(pImp->aTitle); > >- // Picklist/Caption wird gemappt >+ // Picklist/Caption is mapped > if ( pMed && ( nMaxLength == SFX_TITLE_CAPTION || nMaxLength == SFX_TITLE_PICKLIST ) ) > { >- // Wenn ein spezieller Titel beim "Offnen mitgegeben wurde; >- // wichtig bei URLs, die INET_PROT_FILE verwenden, denn bei denen >- // wird der gesetzte Titel nicht beachtet. >- // (s.u., Auswertung von aTitleMap_Impl) >+ // If a specific title was given at open: >+ // important for URLs: use INET_PROT_FILE for which the set title is not >+ // considered. (See below, analysis of aTitleMap_Impl) > SFX_ITEMSET_ARG( pMed->GetItemSet(), pNameItem, SfxStringItem, SID_DOCINFO_TITLE, sal_False ); > if ( pNameItem ) > return X( pNameItem->GetValue() ); > } > >- // noch unbenannt? >- DBG_ASSERT( !HasName() || pMed, "HasName() aber kein Medium?!?" ); >+ // Still unnamed? >+ DBG_ASSERT( !HasName() || pMed, "HasName() but no Medium?!?" ); > if ( !HasName() || !pMed ) > { >- // schon Titel gesezt? >+ // Titel already set? > if ( pImp->aTitle.Len() ) > return X(pImp->aTitle); > >- // mu\s es durchnumeriert werden? >+ // must it be numbered? > String aNoName( SfxResId( STR_NONAME ) ); > if ( pImp->bIsNamedVisible ) >- // Nummer hintenanh"angen >+ // Append number > aNoName += String::CreateFromInt32( pImp->nVisualDocumentNumber ); > >- // Dokument hei\st vorerst 'unbenannt#' >+ // Document called "noname" for the time being > return X(aNoName); > } > >@@ -996,7 +994,7 @@ String SfxObjectShell::GetTitle > nMaxLength = aTitleMap_Impl[nMaxLength-SFX_TITLE_CAPTION][nRemote]; > } > >- // lokale Datei? >+ // Local file? > if ( aURL.GetProtocol() == INET_PROT_FILE ) > { > String aName( aURL.HasMark() ? INetURLObject( aURL.GetURLNoMark() ).PathToFileName() : aURL.PathToFileName() ); >@@ -1011,7 +1009,7 @@ String SfxObjectShell::GetTitle > } > else > { >- // ::com::sun::star::util::URL-Versionen >+ // ::com::sun::star::util::URL-Versions > if ( nMaxLength >= SFX_TITLE_MAXLEN ) > { > String aComplete( aURL.GetMainURL( INetURLObject::NO_DECODE ) ); >@@ -1035,7 +1033,7 @@ String SfxObjectShell::GetTitle > else if ( nMaxLength == SFX_TITLE_FULLNAME ) > return X(aURL.GetMainURL( INetURLObject::DECODE_TO_IURI )); > >- // ggf. Titel aus Dateiname generieren >+ // Generate Title from file name if possible > if ( !pImp->aTitle.Len() ) > pImp->aTitle = aURL.GetBase(); > >@@ -1044,7 +1042,7 @@ String SfxObjectShell::GetTitle > pImp->aTitle = aURL.GetMainURL( INetURLObject::DECODE_WITH_CHARSET ); > } > >- // ganzer Titel >+ // Complete Title > return X(pImp->aTitle); > } > >@@ -1052,20 +1050,18 @@ String SfxObjectShell::GetTitle > > void SfxObjectShell::InvalidateName() > >-/* [Beschreibung] >+/* [Description] > >- Ermittelt den Titel des Dokuments neu aus 'unbenannt', DocInfo-Titel >- bzw. Dateinamen. Wird nach Laden aus Template oder SaveAs ben"otigt. >+ Returns the title of the new document, DocInfo-Title or >+ File name. Is required for loading from template or SaveAs. > */ > > { >- // Title neu erzeugen > pImp->aTitle.Erase(); > // pImp->nVisualDocumentNumber = USHRT_MAX; > //GetTitle( SFX_TITLE_DETECT ); > SetName( GetTitle( SFX_TITLE_APINAME ) ); > >- // Benachrichtigungen > Broadcast( SfxSimpleHint(SFX_HINT_TITLECHANGED) ); > } > >@@ -1075,9 +1071,7 @@ void SfxObjectShell::SetNamedVisibility_Impl() > { > if ( !pImp->bIsNamedVisible ) > { >- // Nummer verpassen > pImp->bIsNamedVisible = sal_True; >- // ggf. neue Nummer verpassen > if ( !HasName() && USHRT_MAX == pImp->nVisualDocumentNumber && !pImp->aTitle.Len() ) > { > pImp->nVisualDocumentNumber = SFX_APP()->GetFreeIndex(); >@@ -1112,14 +1106,14 @@ SfxProgress* SfxObjectShell::GetProgress() const > > void SfxObjectShell::SetProgress_Impl > ( >- SfxProgress *pProgress /* zu startender <SfxProgress> oder 0, falls >- der Progress zur"uckgesetzt werden soll */ >+ SfxProgress *pProgress /* to started <SfxProgress> or 0, >+ if the progress is to be reset */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Interne Methode zum setzen oder zur"ucksetzen des Progress-Modes >- f"ur diese SfxObjectShell. >+ Internal method to set or reset the Progress modes for >+ SfxObjectShell. > */ > > { >@@ -1160,10 +1154,11 @@ void SfxObjectShell::SetActivateEvent_Impl(sal_uInt16 nId ) > //-------------------------------------------------------------------- > > void SfxObjectShell::RegisterTransfer( SfxMedium& rMedium ) >-/* [Beschreibung ] >- Alle Medien, die aufgesetzt werden, um Teile eines Dokumentes zu >- laden, muessen an der zugehoerigen SfxObjectShell angemeldet >- werden. So kann dokumentweise abgebrochen werden. */ >+/* [Description] >+ >+ All media, which are placed in order to load parts of a document must be >+ registered by a related SfxObjectShell. Thus documents can be canceled. >+*/ > { > rMedium.SetReferer( GetMedium()->GetName() ); > } >@@ -1171,9 +1166,10 @@ void SfxObjectShell::RegisterTransfer( SfxMedium& rMedium ) > //------------------------------------------------------------------------- > > void SfxObjectShell::PrepareReload( ) >-/* [Beschreibung ] >- Wird vor dem Reload gerufen und gibt die Moeglichkeit, >- etwaige Caches zu leeren. */ >+/* [Description] >+ >+ Is called before the Reload and gives the opportunity to clear any caches. >+*/ > { > } > >@@ -1181,8 +1177,10 @@ void SfxObjectShell::PrepareReload( ) > > void SfxObjectShell::LockAutoLoad( sal_Bool bLock ) > >-/* Verhindert ein evtl. eintreffendes AutoLoad. Wird auch vor AutoLoad >- eines umgebenden FrameSet beruecksichtigt. >+/* [Description] >+ >+ Prevents an possible occuring autoload. Takes also FrameSet into account. >+ before the autoload. > */ > > { >@@ -1194,21 +1192,21 @@ void SfxObjectShell::LockAutoLoad( sal_Bool bLock ) > > //------------------------------------------------------------------------- > >-// kann nach frame.cxx gemoved werden, wenn 358+36x-Stand gemerged sind >+// Can be moved to frame.cxx, when 358+36x-State have been merged > > sal_Bool SfxFrame::IsAutoLoadLocked_Impl() const > { >- // sein einges Doc gelockt? >+ // Its own Docucument is locked? > const SfxObjectShell* pObjSh = GetCurrentDocument(); > if ( !pObjSh || !pObjSh->IsAutoLoadLocked() ) > return sal_False; > >- // seine Childs gelockt? >+ // Its Childs are locked? > for ( sal_uInt16 n = GetChildFrameCount(); n--; ) > if ( !GetChildFrame(n)->IsAutoLoadLocked_Impl() ) > return sal_False; > >- // sonst ist AutoLoad erlaubt >+ // otherwise allow AutoLoad > return sal_True; > } > >@@ -1216,8 +1214,8 @@ sal_Bool SfxFrame::IsAutoLoadLocked_Impl() const > > sal_Bool SfxObjectShell::IsAutoLoadLocked() const > >-/* Liefert, ob ein eintreffendes AutoLoad ausgefuehrt werden darf. Wird auch >- vor AutoLoad eines umgebenden FrameSet beruecksichtigt. >+/* Returns whether an Autoload is allowed to be executed. Before the >+ surrounding FrameSet of the AutoLoad is also taken into account as well. > */ > > { >@@ -1467,7 +1465,7 @@ void SfxObjectShell::TemplateDisconnectionAfterLoad() > else > { > // !TODO/LATER: what's this?! >- // Interaktiv ( DClick, Contextmenu ) kommt kein Langname mit >+ // Interactiv ( DClick, Contextmenu ) no long name is included > aTemplateName = getDocProperties()->getTitle(); > if ( !aTemplateName.Len() ) > { >@@ -1557,8 +1555,10 @@ void SfxObjectShell::PositionView_Impl() > //------------------------------------------------------------------------- > > sal_Bool SfxObjectShell::IsLoading() const >-/* [Beschreibung ] >- Has FinishedLoading been called? */ >+/* [Description] >+ >+ Has FinishedLoading been called? >+*/ > { > return !( pImp->nLoadedFlags & SFX_LOADED_MAINDOCUMENT ); > } >@@ -1566,9 +1566,11 @@ sal_Bool SfxObjectShell::IsLoading() const > //------------------------------------------------------------------------- > > void SfxObjectShell::CancelTransfers() >-/* [Beschreibung ] >- Hier koennen Transfers gecanceled werden, die nicht mit >- RegisterTransfer registiert wurden */ >+/* [Description] >+ >+ Here can Transfers get canceled, which were not regestered >+ by RegisterTransfer. >+*/ > { > if( ( pImp->nLoadedFlags & SFX_LOADED_ALL ) != SFX_LOADED_ALL ) > { >@@ -1603,10 +1605,10 @@ void AutoReloadTimer_Impl::Timeout() > > if ( pFrame ) > { >- // momentan nicht m"oglich/sinnvoll? >+ // Not possible/meanigfull at the moment? > if ( !pObjSh->CanReload_Impl() || pObjSh->IsAutoLoadLocked() || Application::IsUICaptured() ) > { >- // erneuten Versuch erlauben >+ // Allow a retry > Start(); > return; > } >@@ -1989,7 +1991,7 @@ void SfxHeaderAttributes_Impl::SetAttribute( const SvKeyValue& rKV ) > } > else > { >-// DBG_ERROR( "Schlechtes ::com::sun::star::util::DateTime fuer Expired" ); >+// DBG_ERROR( "Bad ::com::sun::star::util::DateTime has Expired" ); > pDoc->GetMedium()->SetExpired_Impl( Date( 1, 1, 1970 ) ); > } > } >@@ -2018,7 +2020,7 @@ SvKeyValueIterator* SfxObjectShell::GetHeaderAttributes() > { > if( !pImp->xHeaderAttributes.Is() ) > { >- DBG_ASSERT( pMedium, "Kein Medium" ); >+ DBG_ASSERT( pMedium, "No Medium" ); > pImp->xHeaderAttributes = new SfxHeaderAttributes_Impl( this ); > } > return ( SvKeyValueIterator*) &pImp->xHeaderAttributes; >@@ -2046,7 +2048,7 @@ sal_Bool SfxObjectShell::IsPreview() const > SFX_ITEMSET_ARG( pMedium->GetItemSet(), pFlags, SfxStringItem, SID_OPTIONS, sal_False); > if ( pFlags ) > { >- // Werte auf einzelne Items verteilen >+ // Distributed values among individual items > String aFileFlags = pFlags->GetValue(); > aFileFlags.ToUpperAscii(); > if ( STRING_NOTFOUND != aFileFlags.Search( 'B' ) ) >@@ -2065,11 +2067,11 @@ sal_Bool SfxObjectShell::IsPreview() const > > sal_Bool SfxObjectShell::IsSecure() > { >- // Wenn globale Warnung an ist, nach Secure-Referer-Liste gehen >+ // When global warning is on, go to Secure-Referer-Liste > String aReferer = GetMedium()->GetName(); > if ( !aReferer.Len() ) > { >- // bei neuen Dokumenten das Template als Referer nehmen >+ // for new documents use the template as reference > ::rtl::OUString aTempl( getDocProperties()->getTemplateURL() ); > if ( aTempl.getLength() ) > aReferer = INetURLObject( aTempl ).GetMainURL( INetURLObject::NO_DECODE ); >@@ -2198,7 +2200,7 @@ Window* SfxObjectShell::GetDialogParent( SfxMedium* pLoadingMedium ) > > String SfxObjectShell::UpdateTitle( SfxMedium* pMed, USHORT nDocViewNumber ) > { >- // Titel des Fensters >+ // Titel of the windows > String aTitle; > if ( pMed ) > { >diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx >index c7c98ff..c3c6708 100644 >--- a/sfx2/source/doc/objserv.cxx >+++ b/sfx2/source/doc/objserv.cxx >@@ -453,7 +453,8 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > aSet.Put( SfxStringItem( SID_EXPLORER_PROPS_START, aTitle ) ); > aSet.Put( SfxStringItem( SID_BASEURL, GetMedium()->GetBaseURL() ) ); > >- // creating dialog is done via virtual method; application will add its own statistics page >+ // creating dialog is done via virtual method; application will >+ // add its own statistics page > SfxDocumentInfoDialog *pDlg = CreateDocumentInfoDialog(0, aSet); > if ( RET_OK == pDlg->Execute() ) > { >@@ -497,7 +498,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > return; > } > >- //!! detaillierte Auswertung eines Fehlercodes >+ //!! detailed analysis of an error code > SfxObjectShellRef xLock( this ); > > // the model can not be closed till the end of this method >@@ -722,9 +723,9 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > SfxViewFrame *pFrame = GetFrame(); > if ( pFrame && pFrame->GetFrame().GetParentFrame() ) > { >- // Wenn SID_CLOSEDOC "uber Menue etc. ausgef"uhrt wird, das >- // aktuelle Dokument aber in einem Frame liegt, soll eigentlich >- // das FrameSetDocument geclosed werden >+ // If SID_CLOSEDOC is excecuted through menu and so on, but >+ // the current document is in a frame, then the >+ // FrameSetDocument should actually be closed. > pFrame->GetTopViewFrame()->GetObjectShell()->ExecuteSlot( rReq ); > rReq.Done(); > return; >@@ -737,9 +738,8 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > { > if ( pFrame->GetFrame().GetParentFrame() ) > { >- // Auf dieses Dokument existiert noch eine Sicht, die >- // in einem FrameSet liegt; diese darf nat"urlich nicht >- // geclosed werden >+ // In this document there still exists a view that is >+ // in a FrameSet , which of course may not be closed > bInFrameSet = TRUE; > } > else >@@ -750,7 +750,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > > if ( bInFrameSet ) > { >- // Alle Sichten, die nicht in einem FrameSet liegen, closen >+ // Close all views that are not in a FrameSet. > pFrame = SfxViewFrame::GetFirst( this ); > while ( pFrame ) > { >@@ -760,7 +760,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > } > } > >- // Parameter auswerten >+ // Evaluate Parameter > SFX_REQUEST_ARG(rReq, pSaveItem, SfxBoolItem, SID_CLOSEDOC_SAVE, FALSE); > SFX_REQUEST_ARG(rReq, pNameItem, SfxStringItem, SID_CLOSEDOC_FILENAME, FALSE); > if ( pSaveItem ) >@@ -788,7 +788,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > SetModified(FALSE); > } > >- // Benutzer bricht ab? >+ // Cancelled by the user? > if ( !PrepareClose( 2 ) ) > { > rReq.SetReturnValue( SfxBoolItem(0, FALSE) ); >@@ -802,7 +802,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > > rReq.SetReturnValue( SfxBoolItem(0, TRUE) ); > rReq.Done(); >- rReq.ReleaseArgs(); // da der Pool in Close zerst"ort wird >+ rReq.ReleaseArgs(); // because the pool is destroyed in Close > DoClose(); > return; > } >@@ -810,7 +810,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > case SID_DOCTEMPLATE: > { >- // speichern als Dokumentvorlagen >+ // save as document templates > SfxDocumentTemplateDlg *pDlg = 0; > SfxErrorContext aEc(ERRCTX_SFX_DOCTEMPLATE,GetTitle()); > SfxDocumentTemplates *pTemplates = new SfxDocumentTemplates; >@@ -874,7 +874,8 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > rReq.SetReturnValue( SfxBoolItem( 0, bOk ) ); > if ( bOk ) > { >- // update the Organizer runtime cache from the template component if the cache has already been created >+ // update the Organizer runtime cache from the template >+ // component if the cache has already been created > // TODO/LATER: get rid of this cache duplication > SfxDocumentTemplates aTemplates; > aTemplates.ReInitFromComponent(); >@@ -889,7 +890,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > } > } > >- // Picklisten-Eintrag verhindern >+ // Prevent entry in the Pick-lists > if ( rReq.IsAPI() ) > GetMedium()->SetUpdatePickList( FALSE ); > else if ( rReq.GetArgs() ) >@@ -899,7 +900,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) > GetMedium()->SetUpdatePickList( pPicklistItem->GetValue() ); > } > >- // Ignore()-Zweige haben schon returnt >+ // Ignore()-branches have already returned > rReq.Done(); > } > >@@ -967,9 +968,10 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) > SfxViewFrame *pFrame = GetFrame(); > if ( pFrame && pFrame->GetFrame().GetParentFrame() ) > { >- // Wenn SID_CLOSEDOC "uber Menue etc. ausgef"uhrt wird, das >- // aktuelle Dokument aber in einem Frame liegt, soll eigentlich >- // das FrameSetDocument geclosed werden >+ >+ // If SID_CLOSEDOC is excecuted through menu and so on, but >+ // the current document is in a frame, then the >+ // FrameSetDocument should actually be closed. > pDoc = pFrame->GetTopViewFrame()->GetObjectShell(); > } > >@@ -1414,8 +1416,9 @@ void SfxObjectShell::ImplSign( sal_Bool bScriptingContent ) > } > else > { >- //When the document is modified then we must not show the digital signatures dialog >- //If we have come here then the user denied to save. >+ // When the document is modified then we must not show the >+ // digital signatures dialog >+ // If we have come here then the user denied to save. > if (!bHasSign) > bNoSig = true; > } >diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx >index 86c46f3..cab5cdd 100644 >--- a/sfx2/source/doc/objstor.cxx >+++ b/sfx2/source/doc/objstor.cxx >@@ -426,25 +426,24 @@ sal_Bool SfxObjectShell::Load( SfxMedium& rMedium ) > } > > sal_Bool SfxObjectShell::DoInitNew( SfxMedium* pMed ) >-/* [Beschreibung] >+/* [Description] > >- Diese von SvPersist geerbte virtuelle Methode wird gerufen, um >- die SfxObjectShell-Instanz aus einem Storage (pStor != 0) bzw. >- (pStor == 0) ganz neu zu initialisieren. >+ This from SvPersist inherited virtual method is called to initialize >+ the SfxObjectShell instance from a storage (PStore! = 0) or (PStore == 0) > >- Wie alle Do...-Methoden liegt hier eine Steuerung vor, die eigentliche >- Implementierung erfolgt, indem die ebenfalls virtuellen Methode >- InitNew(SvStorate*) von der SfxObjectShell-Subclass implementiert wird. >+ Like with all Do...-methods there is a from a control, the actual >+ implementation is done by the virtual method in which also the >+ InitNew(SvStorate *) from the SfxObjectShell-Subclass is implemented. > >- F"ur pStor == 0 wird ein die SfxObjectShell-Instanz mit einem leeren >- SfxMedium verbunden, sonst mit einem SfxMedium, welches auf den >- als Parameter "ubergeben SvStorage verweist. >+ For pStore == 0 the SfxObjectShell-instance is connected to an empty >+ SfxMedium, otherwise a SfxMedium, which refers to the SvStorage >+ passed as a parameter. > >- Erst nach InitNew() oder Load() ist das Objekt korrekt initialisiert. >+ The object is only initialized correctly after InitNew() or Load(). > >- [R"uckgabewert] >- sal_True Das Objekt wurde initialisiert. >- sal_False Das Objekt konnte nicht initialisiert werden >+ [Return value] >+ sal_True The object has been initialized. >+ sal_False The object could not be initialized > */ > > { >@@ -761,7 +760,7 @@ sal_Bool SfxObjectShell::DoLoad( SfxMedium *pMed ) > { > } > >- // Falls nicht asynchron geladen wird selbst FinishedLoading aufrufen >+ // If not loaded asynchronously call FinishedLoading > if ( !( pImp->nLoadedFlags & SFX_LOADED_MAINDOCUMENT ) && > ( !pMedium->GetFilter() || pMedium->GetFilter()->UsesStorage() ) > ) >@@ -944,9 +943,9 @@ sal_Bool SfxObjectShell::IsPackageStorageFormat_Impl(const SfxMedium &rMedium) c > //------------------------------------------------------------------------- > > sal_Bool SfxObjectShell::DoSave() >-// DoSave wird nur noch ueber OLE aufgerufen. Sichern eigener Dokumente im SFX >-// laeuft uber DoSave_Impl, um das Anlegen von Backups zu ermoeglichen. >-// Save in eigenes Format jetzt auch wieder Hierueber >+// DoSave is only invoked for OLE. Save your own documents in the SFX through >+// DoSave_Impl order to allow for the creation of backups. >+// Save in your own format again. > { > sal_Bool bOk = sal_False ; > { >@@ -1041,18 +1040,17 @@ void Lock_Impl( SfxObjectShell* pDoc, BOOL bLock ) > > sal_Bool SfxObjectShell::SaveTo_Impl > ( >- SfxMedium &rMedium, // Medium, in das gespeichert werden soll >+ SfxMedium &rMedium, // Medium, in which it will be stored > const SfxItemSet* pSet > ) > >-/* [Beschreibung] >+/* [Description] > >- Schreibt den aktuellen Inhalt in das Medium rMedium. >- Ist das Zielmedium kein Storage, so wird ueber ein temporaeres >- Medium gespeichert, sonst direkt, da das Medium transacted >- geschaltet ist, wenn wir es selbst geoeffnet haben und falls wir >- Server sind entweder der Container einen transacted Storage zur >- Verfuegung stellt oder selbst einen temporaeren Storage erzeugt hat. >+ Writes the current contents to the medium rMedium. If the target medium is >+ no storage, then saving to a temporary storage, or directly if the medium >+ is transacted, if we ourselves have opened it, and if we are a server >+ either the container a transacted storage provides or created a >+ temporary storage by one self. > */ > > { >@@ -1157,7 +1155,7 @@ sal_Bool SfxObjectShell::SaveTo_Impl > > if ( bCopyTo && GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) > { >- // export to the same location is vorbidden >+ // export to the same location is forbidden > SetError( ERRCODE_IO_CANTWRITE, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); > } > else >@@ -1827,14 +1825,12 @@ sal_Bool SfxObjectShell::ConnectTmpStorage_Impl( > const uno::Reference< embed::XStorage >& xStorage, > SfxMedium* pMediumArg ) > >-/* [Beschreibung] >+/* [Description] > >- Arbeitet die Applikation auf einem temporaeren Storage, >- so darf der temporaere Storage nicht aus dem SaveCompleted >- genommen werden. Daher wird in diesem Fall schon hier an >- den neuen Storage connected. SaveCompleted tut dann nichts. >- >- */ >+ If the application operates on a temporary storage, then it may not take >+ the temporary storage from the SaveCompleted. Therefore the new storage >+ is connected already here in this case and SaveCompleted then does nothing. >+*/ > > { > RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mv76033) SfxObjectShell::ConnectTmpStorage_Impl" ); >@@ -1955,7 +1951,7 @@ sal_Bool SfxObjectShell::DoSaveObjectAs( SfxMedium& rMedium, BOOL bCommit ) > // TODO/LATER: may be the call must be removed completelly > sal_Bool SfxObjectShell::DoSaveAs( SfxMedium& rMedium ) > { >- // hier kommen nur Root-Storages rein, die via Temp-File gespeichert werden >+ // here only root storages are included, which are stored via temp file > rMedium.CreateTempFileNoCopy(); > SetError(rMedium.GetErrorCode(), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); > if ( GetError() ) >@@ -2024,7 +2020,8 @@ sal_Bool SfxObjectShell::DoSaveCompleted( SfxMedium* pNewMed ) > } catch( uno::Exception& ) > { > // the storage is disposed already >- // can happen during reload scenario when the medium has disposed it during the closing >+ // can happen during reload scenario when the medium has >+ // disposed it during the closing > // will be fixed in one of the next milestones > } > } >@@ -2068,7 +2065,7 @@ sal_Bool SfxObjectShell::DoSaveCompleted( SfxMedium* pNewMed ) > else > bOk = SaveCompleted( NULL ); > } >- // entweder Save oder ConvertTo >+ // either Save or ConvertTo > else > bOk = SaveCompleted( NULL ); > } >@@ -2102,14 +2099,15 @@ sal_Bool SfxObjectShell::DoSaveCompleted( SfxMedium* pNewMed ) > // TODO/LATER: in future the medium must control own signature state, not the document > pNewMed->SetCachedSignatureState_Impl( SIGNATURESTATE_NOSIGNATURES ); // set the default value back > >- // Titel neu setzen >+ // Set new titel > if ( pNewMed->GetName().Len() && SFX_CREATE_MODE_EMBEDDED != eCreateMode ) > InvalidateName(); >- SetModified(sal_False); // nur bei gesetztem Medium zur"ucksetzen >+ SetModified(sal_False); // reset only by set medium > Broadcast( SfxSimpleHint(SFX_HINT_MODECHANGED) ); > >- // this is the end of the saving process, it is possible that the file was changed >- // between medium commit and this step ( attributes change and so on ) >+ // this is the end of the saving process, it is possible that >+ // the file was changed >+ // between medium commit and this step (attributes change and so on) > // so get the file date again > if ( pNewMed->DocNeedsFileDateCheck() ) > pNewMed->GetInitFileDate( sal_True ); >@@ -2126,35 +2124,33 @@ sal_Bool SfxObjectShell::DoSaveCompleted( SfxMedium* pNewMed ) > > sal_Bool SfxObjectShell::ConvertFrom > ( >- SfxMedium& /*rMedium*/ /* <SfxMedium>, welches die Quell-Datei beschreibt >- (z.B. Dateiname, <SfxFilter>, Open-Modi etc.) */ >+ SfxMedium& /*rMedium*/ /* <SfxMedium>, which describes the source file >+ (for example file name, <SfxFilter>, >+ Open-Modi and so on) */ > ) > >-/* [Beschreibung] >- >- Diese Methode wird zum Laden von Dokumenten "uber alle Filter gerufen, >- die nicht SFX_FILTER_OWN sind oder f"ur die kein Clipboard-Format >- registriert wurde (also kein Storage-Format benutzen). Mit anderen Worten: >- mit dieser Methode wird importiert. >+/* [Description] > >- Das hier zu "offende File sollte "uber 'rMedium' ge"offnet werden, >- um die richtigen Open-Modi zu gew"ahrleisten. Insbesondere wenn das >- Format beibehalten wird (nur m"oglich bei SFX_FILTER_SIMULATE oder >- SFX_FILTER_ONW) mu\s die Datei STREAM_SHARE_DENYWRITE ge"offnet werden. >+ This method is called for loading of documents over all filters which are >+ not SFX_FILTER_OWN or for which no clipboard format has been registered >+ (thus no storage format that is used). In other words, whith this method >+ it is imported. > >+ Files which are to be opened here should be opened through 'rMedium' >+ to guarantee the right open modes. Especially if the format is retained >+ (only possible with SFX_FILTER_SIMULATE or SFX_FILTER_ONW) file which must >+ be opened STREAM_SHARE_DENYWRITE. > >- [R"uckgabewert] >+ [Return value] > > sal_Bool sal_True >- Das Dokument konnte geladen werden. >+ The document could be loaded. > > sal_False >- Das Dokument konnte nicht geladen werden, ein >- Fehlercode ist mit <SvMedium::GetError()const> zu >- erhalten. >+ The document could not be loaded, an error code >+ received through <SvMedium::GetError()const> > >- >- [Beispiel] >+ [Example] > > sal_Bool DocSh::ConvertFrom( SfxMedium &rMedium ) > { >@@ -2164,15 +2160,14 @@ sal_Bool SfxObjectShell::ConvertFrom > xStream->SetBufferSize(4096); > *xStream >> ...; > >- // NICHT 'rMedium.CloseInStream()' rufen! File gelockt halten! >+ // Do not call 'rMedium.CloseInStream()'! Keep File locked! > return SVSTREAM_OK == rMedium.GetError(); > } > > return sal_False; > } > >- >- [Querverweise] >+ [Cross-references] > > <SfxObjectShell::ConvertTo(SfxMedium&)> > <SFX_FILTER_REGISTRATION> >@@ -2188,7 +2183,7 @@ sal_Bool SfxObjectShell::InsertFrom( SfxMedium& rMedium ) > > uno::Reference< lang::XMultiServiceFactory > xMan = ::comphelper::getProcessServiceFactory(); > uno::Reference < lang::XMultiServiceFactory > xFilterFact ( >- xMan->createInstance( DEFINE_CONST_UNICODE( "com.sun.star.document.FilterFactory" ) ), uno::UNO_QUERY ); >+ xMan->createInstance( DEFINE_CONST_UNICODE( "com.sun.star.document.FilterFactory" ) ), uno::UNO_QUERY );s > > uno::Sequence < beans::PropertyValue > aProps; > uno::Reference < container::XNameAccess > xFilters ( xFilterFact, uno::UNO_QUERY ); >@@ -2476,36 +2471,34 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium& rMedium ) > > sal_Bool SfxObjectShell::ConvertTo > ( >- SfxMedium& /*rMedium*/ /* <SfxMedium>, welches die Ziel-Datei beschreibt >- (z.B. Dateiname, <SfxFilter>, Open-Modi etc.) */ >+ SfxMedium& /*rMedium*/ /* <SfxMedium>, which describes the target file >+ (for example file name, <SfxFilter>, >+ Open-Modi and so on) */ > ) > >-/* [Beschreibung] >- >- Diese Methode wird zum Speichern von Dokumenten "uber alle Filter gerufen, >- die nicht SFX_FILTER_OWN sind oder f"ur die kein Clipboard-Format >- registriert wurde (also kein Storage-Format benutzen). Mit anderen Worten: >- mit dieser Methode wird exportiert. >+/* [Description] > >- Das hier zu "offende File sollte "uber 'rMedium' ge"offnet werden, >- um die richtigen Open-Modi zu gew"ahrleisten. Insbesondere wenn das >- Format beibehalten wird (nur m"oglich bei SFX_FILTER_SIMULATE oder >- SFX_FILTER_ONW) mu\s die Datei auch nach dem Speichern im Modus >- STREAM_SHARE_DENYWRITE ge"offnet bleiben. >+ This method is called for saving of documents over all filters which are >+ not SFX_FILTER_OWN or for which no clipboard format has been registered >+ (thus no storage format that is used). In other words, with this method >+ it is exported. > >+ Files which are to be opened here should be opened through 'rMedium' >+ to guarantee the right open modes. Especially if the format is retained >+ (only possible with SFX_FILTER_SIMULATE or SFX_FILTER_ONW) file which must >+ be opened STREAM_SHARE_DENYWRITE. > >- [R"uckgabewert] >+ [Return value] > > sal_Bool sal_True >- Das Dokument konnte gespeichert werden. >+ The document could be saved. > > sal_False >- Das Dokument konnte nicht gespeichert werden, ein >- Fehlercode ist mit <SvMedium::GetError()const> zu >- erhalten. >+ The document could not be saved, an error code is >+ received by <SvMedium::GetError()const> > > >- [Beispiel] >+ [Example] > > sal_Bool DocSh::ConvertTo( SfxMedium &rMedium ) > { >@@ -2515,14 +2508,13 @@ sal_Bool SfxObjectShell::ConvertTo > xStream->SetBufferSize(4096); > *xStream << ...; > >- rMedium.CloseOutStream(); // "offnet automatisch wieder den InStream >+ rMedium.CloseOutStream(); // opens the InStream automatically > return SVSTREAM_OK == rMedium.GetError(); > } > return sal_False ; > } > >- >- [Querverweise] >+ [Cross-references] > > <SfxObjectShell::ConvertFrom(SfxMedium&)> > <SFX_FILTER_REGISTRATION> >@@ -2545,8 +2537,9 @@ sal_Bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs ) > pSet->ClearItem( SID_VERSION ); > pSet->ClearItem( SID_DOC_BASEURL ); > >- // create a medium as a copy; this medium is only for writingm, because it uses the same name as the original one >- // writing is done through a copy, that will be transferred to the target ( of course after calling HandsOff ) >+ // create a medium as a copy; this medium is only for writingm, because it >+ // uses the same name as the original one writing is done through a copy, >+ // that will be transferred to the target (of course after calling HandsOff) > SfxMedium* pMediumTmp = new SfxMedium( pRetrMedium->GetName(), pRetrMedium->GetOpenMode(), pRetrMedium->IsDirect(), pFilter, pSet ); > pMediumTmp->SetLongName( pRetrMedium->GetLongName() ); > // pMediumTmp->CreateTempFileNoCopy(); >@@ -2586,7 +2579,7 @@ sal_Bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs ) > > sal_Bool bOpen( sal_False ); > bOpen = DoSaveCompleted( pMediumTmp ); >- DBG_ASSERT(bOpen,"Fehlerbehandlung fuer DoSaveCompleted nicht implementiert"); >+ DBG_ASSERT(bOpen,"Error handling for DoSaveCompleted not implemented"); > } > else > { >@@ -2667,7 +2660,7 @@ sal_Bool SfxObjectShell::CommonSaveAs_Impl > > if ( aURL != INetURLObject( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:stream" ) ) ) ) > { >- // gibt es schon ein Doc mit dem Namen? >+ // Is there already a Document with this name? > SfxObjectShell* pDoc = 0; > for ( SfxObjectShell* pTmp = SfxObjectShell::GetFirst(); > pTmp && !pDoc; >@@ -2682,14 +2675,14 @@ sal_Bool SfxObjectShell::CommonSaveAs_Impl > } > if ( pDoc ) > { >- // dann Fehlermeldeung: "schon offen" >+ // Then error message: "alredy opened" > SetError(ERRCODE_SFX_ALREADYOPEN, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) )); > return sal_False; > } > } > > DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "Illegal URL!" ); >- DBG_ASSERT( aParams->Count() != 0, "fehlerhafte Parameter"); >+ DBG_ASSERT( aParams->Count() != 0, "Incorrect Parameter"); > > SFX_ITEMSET_ARG( aParams, pSaveToItem, SfxBoolItem, SID_SAVETO, sal_False ); > sal_Bool bSaveTo = pSaveToItem ? pSaveToItem->GetValue() : sal_False; >@@ -2739,7 +2732,7 @@ sal_Bool SfxObjectShell::CommonSaveAs_Impl > { > pImp->bWaitingForPicklist = sal_True; > >- // Daten am Medium updaten >+ // Update Data on media > SfxItemSet *pSet = GetMedium()->GetItemSet(); > pSet->ClearItem( SID_INTERACTIONHANDLER ); > pSet->ClearItem( SID_PROGRESS_STATUSBAR_CONTROL ); >@@ -2978,11 +2971,10 @@ sal_Bool SfxObjectShell::IsInformationLost() > //------------------------------------------------------------------------- > sal_Bool SfxObjectShell::CanReload_Impl() > >-/* [Beschreibung] >+/* [Description] > >- Interne Methode zum Feststellen, ob eine erneutes Laden des >- Dokuments (auch als RevertToSaved oder LastVersion bekannt) >- m"oglich ist. >+ Internal method for determining whether a reload of the document >+ (as RevertToSaved or last known version) is possible. > */ > > { >@@ -3312,7 +3304,8 @@ sal_Bool SfxObjectShell::SaveCompleted( const uno::Reference< embed::XStorage >& > { > if ( xStorage.is() && pImp->m_xDocStorage != xStorage ) > { >- // make sure that until the storage is assigned the object container is not created by accident! >+ // make sure that until the storage is assigned the object >+ // container is not created by accident! > DBG_ASSERT( bHasContainer == (pImp->mpObjectContainer != 0), "Wrong storage in object container!" ); > xOldStorageHolder = pImp->m_xDocStorage; > pImp->m_xDocStorage = xStorage; >diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx >index a5fe210..389a57d 100644 >--- a/sfx2/source/doc/objxtor.cxx >+++ b/sfx2/source/doc/objxtor.cxx >@@ -204,7 +204,7 @@ void SAL_CALL SfxModelListener_Impl::disposing( const com::sun::star::lang::Even > mpDoc->OwnerLock(FALSE); > } > else if ( !mpDoc->Get_Impl()->bClosing ) >- // GCC stuerzt ab, wenn schon im dtor, also vorher Flag abfragen >+ // GCC crashes when already in the destructor, so first query the Flag > mpDoc->DoClose(); > } > >@@ -316,30 +316,28 @@ SfxObjectShell::SfxObjectShell( const sal_uInt64 i_nCreationFlags ) > > SfxObjectShell::SfxObjectShell > ( >- SfxObjectCreateMode eMode /* Zweck, zu dem die SfxObjectShell >- erzeugt wird: >+ SfxObjectCreateMode eMode /* Purpose, io which the SfxObjectShell >+ is created: > > SFX_CREATE_MODE_EMBEDDED (default) >- als SO-Server aus einem anderen >- Dokument heraus >+ as SO-Server from within another >+ Document > > SFX_CREATE_MODE_STANDARD, >- als normales, selbst"aendig ge"offnetes >- Dokument >+ as a normal Document open stand-alone > > SFX_CREATE_MODE_PREVIEW >- um ein Preview durchzuf"uhren, >- ggf. werden weniger Daten ben"otigt >+ to enable a Preview, if possible are >+ only little information is needed > > SFX_CREATE_MODE_ORGANIZER >- um im Organizer dargestellt zu >- werden, hier werden keine Inhalte >- ben"otigt */ >+ to be displayed in the Organizer, here >+ notning of the contents is used */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Konstruktor der Klasse SfxObjectShell. >+ Constructor of the class SfxObjectShell. > */ > > : pImp( new SfxObjectShell_Impl( *this ) ), >@@ -353,7 +351,7 @@ SfxObjectShell::SfxObjectShell > > //-------------------------------------------------------------------- > >-// virtual dtor of typical base-class SfxObjectShell >+// virtual destructor of typical base-class SfxObjectShell > > SfxObjectShell::~SfxObjectShell() > { >@@ -362,9 +360,8 @@ SfxObjectShell::~SfxObjectShell() > if ( IsEnableSetModified() ) > EnableSetModified( sal_False ); > >- // Niemals GetInPlaceObject() aufrufen, der Zugriff auf den >- // Ableitungszweig SfxInternObject ist wegen eines Compiler Bugs nicht >- // erlaubt >+ // Never call GetInPlaceObject(), the access to the derivative branch >+ // SfxInternObject is not allowed because of a compiler bug > SfxObjectShell::Close(); > pImp->pBaseModel.set( NULL ); > >@@ -374,7 +371,7 @@ SfxObjectShell::~SfxObjectShell() > if ( USHRT_MAX != pImp->nVisualDocumentNumber ) > pSfxApp->ReleaseIndex(pImp->nVisualDocumentNumber); > >- // Basic-Manager zerst"oren >+ // Destroy Basic-Manager > pImp->pBasicManager->reset( NULL ); > > if ( pSfxApp->GetDdeService() ) >@@ -434,9 +431,9 @@ sal_Bool SfxObjectShell::Stamp_GetPrintCancelState() const > > void SfxObjectShell::ViewAssigned() > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode wird gerufen, wenn eine View zugewiesen wird. >+ This method is called when a view is assigned. > */ > > { >@@ -451,7 +448,7 @@ sal_Bool SfxObjectShell::Close() > SfxObjectShellRef aRef(this); > if ( !pImp->bClosing ) > { >- // falls noch ein Progress l"auft, nicht schlie\sen >+ // Do not close if a progress is still running > if ( !pImp->bDisposing && GetProgress() ) > return sal_False; > >@@ -472,7 +469,7 @@ sal_Bool SfxObjectShell::Close() > > if ( pImp->bClosing ) > { >- // aus Document-Liste austragen >+ // remove from Document list > SfxApplication *pSfxApp = SFX_APP(); > SfxObjectShellArr_Impl &rDocs = pSfxApp->GetObjectShells_Impl(); > const SfxObjectShell *pThis = this; >@@ -573,7 +570,8 @@ struct BoolEnv_Impl > > sal_uInt16 SfxObjectShell::PrepareClose > ( >- sal_Bool bUI, // sal_True: Dialoge etc. erlaubt, sal_False: silent-mode >+ sal_Bool bUI, // sal_True: Dialog and so on is allowed >+ // sal_False: silent-mode > sal_Bool bForBrowsing > ) > { >@@ -593,7 +591,7 @@ sal_uInt16 SfxObjectShell::PrepareClose > for ( SfxViewFrame* pFrm = SfxViewFrame::GetFirst( this ); > pFrm; pFrm = SfxViewFrame::GetNext( *pFrm, this ) ) > { >- DBG_ASSERT(pFrm->GetViewShell(),"KeineShell"); >+ DBG_ASSERT(pFrm->GetViewShell(),"No Shell"); > if ( pFrm->GetViewShell() ) > { > sal_uInt16 nRet = pFrm->GetViewShell()->PrepareClose( bUI, bForBrowsing ); >@@ -611,23 +609,23 @@ sal_uInt16 SfxObjectShell::PrepareClose > return sal_True; > } > >- // ggf. nachfragen, ob gespeichert werden soll >- // nur fuer in sichtbaren Fenstern dargestellte Dokumente fragen >+ // Ask if possible if it should be saved >+ // only ask for the Document in the visable window > SfxViewFrame *pFrame = SfxObjectShell::Current() == this > ? SfxViewFrame::Current() : SfxViewFrame::GetFirst( this ); > > sal_Bool bClose = sal_False; > if ( bUI && IsModified() && pFrame ) > { >- // minimierte restoren >+ // restore minimized > SfxFrame& rTop = pFrame->GetTopFrame(); > SfxViewFrame::SetViewFrame( rTop.GetCurrentViewFrame() ); > pFrame->GetFrame().Appear(); > >- // fragen, ob gespeichert werden soll >+ // Ask if to save > short nRet = RET_YES; > //TODO/CLEANUP >- //brauchen wir UI=2 noch? >+ //do we still need UI=2? > //if( SfxApplication::IsPlugin() == sal_False || bUI == 2 ) > { > //initiate help agent to inform about "print modifies the document" >@@ -645,7 +643,7 @@ sal_uInt16 SfxObjectShell::PrepareClose > > if ( RET_YES == nRet ) > { >- // per Dispatcher speichern >+ // Save by each Dispatcher > const SfxPoolItem *pPoolItem; > if ( IsSaveVersionOnClose() ) > { >@@ -667,7 +665,7 @@ sal_uInt16 SfxObjectShell::PrepareClose > bClose = sal_True; > } > else if ( RET_CANCEL == nRet ) >- // abgebrochen >+ // Cancelled > return sal_False; > else if ( RET_NEWTASK == nRet ) > { >@@ -675,7 +673,7 @@ sal_uInt16 SfxObjectShell::PrepareClose > } > else > { >- // Bei Nein nicht noch Informationlost >+ // when no, no information lost yet > bClose = sal_True; > } > } >@@ -819,20 +817,20 @@ StarBASIC* SfxObjectShell::GetBasic() const > //-------------------------------------------------------------------- > > void SfxObjectShell::InitBasicManager_Impl() >-/* [Beschreibung] >+/* [Description] > >- creates a document's BasicManager and loads it, if we are already based on >+ Creates a document's BasicManager and loads it, if we are already based on > a storage. > >- [Anmerkung] >+ [Note] > >- Diese Methode mu"s aus den "Uberladungen von <SvPersist::Load()> (mit >- dem pStor aus dem Parameter von Load()) sowie aus der "Uberladung >- von <SvPersist::InitNew()> (mit pStor = 0) gerufen werden. >+ This method has to be called through the overloading of >+ <SvPersist::Load()> (With the PStore from the parameters of load ()) >+ and from the overloading of <SvPersist::InitNew()> (with PStore = 0). > */ > > { >- DBG_ASSERT( !pImp->bBasicInitialized && !pImp->pBasicManager->isValid(), "Lokaler BasicManager bereits vorhanden"); >+ DBG_ASSERT( !pImp->bBasicInitialized && !pImp->pBasicManager->isValid(), "Local BasicManager already exists"); > pImp->bBasicInitialized = TRUE; > > pImp->pBasicManager->reset( BasicManagerRepository::getDocumentBasicManager( GetModel() ) ); >diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx >index ee0c050..d9ac354 100644 >--- a/sfx2/source/doc/printhelper.cxx >+++ b/sfx2/source/doc/printhelper.cxx >@@ -324,7 +324,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SfxPrintHelper::getPrinter() thro > void SfxPrintHelper::impl_setPrinter(const uno::Sequence< beans::PropertyValue >& rPrinter,SfxPrinter*& pPrinter,sal_uInt16& nChangeFlags,SfxViewShell*& pViewSh) > > { >- // alten Printer beschaffen >+ // Get old Printer > SfxViewFrame *pViewFrm = m_pData->m_pObjectShell.Is() ? > SfxViewFrame::GetFirst( m_pData->m_pObjectShell, sal_False ) : 0; > if ( !pViewFrm ) >@@ -437,13 +437,12 @@ void SfxPrintHelper::impl_setPrinter(const uno::Sequence< beans::PropertyValue > > } > } > >- //os 12.11.98: die PaperSize darf nur gesetzt werden, wenn tatsaechlich >- //PAPER_USER gilt, sonst koennte vom Treiber ein falsches Format gewaehlt werden >+ // The PaperSize may be set only when actually PAPER_USER >+ // applies, otherwise the driver could choose a invalid format. > if(nPaperFormat == view::PaperFormat_USER && aSetPaperSize.Width()) > { >- //JP 23.09.98 - Bug 56929 - MapMode von 100mm in die am >- // Device gesetzten umrechnen. Zusaetzlich nur dann >- // setzen, wenn sie wirklich veraendert wurden. >+ // Bug 56929 - MapMode of 100mm which recalculated when >+ // the device is set. Additionally only set if they were really changed. > aSetPaperSize = pPrinter->LogicToPixel( aSetPaperSize, MAP_100TH_MM ); > if( aSetPaperSize != pPrinter->GetPaperSizePixel() ) > { >diff --git a/sfx2/source/inc/appdata.hxx b/sfx2/source/inc/appdata.hxx >index 143045a..6ff1aec 100644 >--- a/sfx2/source/inc/appdata.hxx >+++ b/sfx2/source/inc/appdata.hxx >@@ -152,14 +152,14 @@ public: > SfxViewFrame* pViewFrame; > SfxSlotPool* pSlotPool; > SfxResourceManager* pResMgr; >- SfxDispatcher* pAppDispat; // Dispatcher falls kein Doc >+ SfxDispatcher* pAppDispat; // Dispatcher if no document > SfxInterface** pInterfaces; > >- USHORT nDocNo; // Laufende Doc-Nummer (AutoName) >+ USHORT nDocNo; // current Doc-Number (AutoName) > USHORT nInterfaces; > >- BOOL bDispatcherLocked:1; // nichts ausf"uhren >- BOOL bDowning:1; // TRUE ab Exit und danach >+ BOOL bDispatcherLocked:1; // do nothing >+ BOOL bDowning:1; // TRUE on Exit and afterwards > BOOL bInQuit : 1; > BOOL bInvalidateOnUnlock : 1; > BOOL bODFVersionWarningLater : 1; >diff --git a/sfx2/source/inc/helpid.hrc b/sfx2/source/inc/helpid.hrc >old mode 100755 >new mode 100644 >index b1c39a2..28e23ee >--- a/sfx2/source/inc/helpid.hrc >+++ b/sfx2/source/inc/helpid.hrc >@@ -357,10 +357,10 @@ > > #define ACT_SFX_HID_END HID_SECURITYTAB_PROTECTION > >-// "Uberlaufpr"ufung -------------------------------------------------------- >+// Overflow test -------------------------------------------------------- > > #if ACT_SFX_HID_END > HID_SFX_END >-#error Resource-Ueberlauf in #line, #file >+#error Resource overflow in #line, #file > #endif > > #define HID_HELP_ONHELP 68245 >diff --git a/sfx2/source/inc/mnucfga.hxx b/sfx2/source/inc/mnucfga.hxx >index 5d80683..263b8a2 100644 >--- a/sfx2/source/inc/mnucfga.hxx >+++ b/sfx2/source/inc/mnucfga.hxx >@@ -39,7 +39,7 @@ struct SfxMenuCfgItem > { > USHORT nId; // id of the binding or 0 if none > String aTitle; // title of the item >- String aHelpText; // Hilfetext >+ String aHelpText; > String aCommand; > SfxMenuCfgItemArr* pPopup; // pointer to a popup menu (if any) > }; >diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx >index c7c1bc9..1b31171 100644 >--- a/sfx2/source/inc/objshimp.hxx >+++ b/sfx2/source/inc/objshimp.hxx >@@ -78,18 +78,18 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess > sal_uInt16 nVisualDocumentNumber; > sal_Int16 nDocumentSignatureState; > sal_Int16 nScriptingSignatureState; >- sal_Bool bInList:1, // ob per First/Next erreichbar >- bClosing:1, // sal_True w"aehrend Close(), um Benachrichtigungs-Rekursionen zu verhindern >+ sal_Bool bInList:1, // if reachable by First/Next >+ bClosing:1, // sal_True while Close(), to prevent recurrences Notification > bIsSaving:1, > bPasswd:1, > bIsTmp:1, > bIsNamedVisible:1, > bIsTemplate:1, >- bIsAbortingImport:1, // Importvorgang soll abgebrochen werden. >- bImportDone : 1, //Import schon fertig? Fuer AutoReload von Docs. >+ bIsAbortingImport:1, // Import operation should be canceled. >+ bImportDone : 1, // Import finished already? For auto reload of Docs. > bInPrepareClose : 1, > bPreparedForClose : 1, >- bWaitingForPicklist : 1,// Muss noch in die Pickliste >+ bWaitingForPicklist : 1, // Must go into pick list > bForbidReload : 1, > bBasicInitialized :1, > bIsPrintJobCancelable :1, // Stampit disable/enable cancel button for print jobs ... default = true = enable! >@@ -112,8 +112,8 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess > > IndexBitSet aBitSet; > sal_uInt32 lErr; >- sal_uInt16 nEventId; // falls vor Activate noch ein >- // Open/Create gesendet werden mu/s >+ sal_uInt16 nEventId; // If Open/Create as to be sent >+ // before Activate > AutoReloadTimer_Impl *pReloadTimer; > MarkData_Impl* pMarkData; > sal_uInt16 nLoadedFlags; >diff --git a/sfx2/source/inc/openflag.hxx b/sfx2/source/inc/openflag.hxx >index 70a5d7c..3ec2b28 100644 >--- a/sfx2/source/inc/openflag.hxx >+++ b/sfx2/source/inc/openflag.hxx >@@ -28,14 +28,13 @@ > #ifndef _SFX_OPENFLAG_HXX > #define _SFX_OPENFLAG_HXX > >-// Datei zum Bearbeiten "offnen, anschliessend funktioniert nur noch >-// die dritte Variante (Lesen einer Kopie) >+// Open file for editing, then only the third option (reading a copy) works > #define SFX_STREAM_READWRITE (STREAM_READWRITE | STREAM_SHARE_DENYWRITE) >-// Ich arbeite roh auf dem Original, keine Kopie >-// -> Datei kann anschliessend nicht zum Bearbeiten ge"offnet werden >+// I work on the original, not a copy >+// -> file then can not be opened for editing > #define SFX_STREAM_READONLY (STREAM_READ | STREAM_SHARE_DENYWRITE) // + !bDirect >-// Jemand anders bearbeitet das File, es wird eine Kopie erstellt >-// -> Datei kann anschliessend zum Bearbeiten ge"offnet werden >+// Someone else is editing the file, a copy it created >+// -> the file can then be opened for editing > #define SFX_STREAM_READONLY_MAKECOPY (STREAM_READ | STREAM_SHARE_DENYNONE) > > >diff --git a/sfx2/source/inc/sfxlocal.hrc b/sfx2/source/inc/sfxlocal.hrc >index a6a7d85..c231527 100644 >--- a/sfx2/source/inc/sfxlocal.hrc >+++ b/sfx2/source/inc/sfxlocal.hrc >@@ -25,7 +25,7 @@ > * > ************************************************************************/ > //============================================================================ >-// Lokale Resourcen >+// Local Resources > // > // (C) 1996 - 2000 Star Division GmbH, Hamburg, Germany > // $Author: rt $ $Date: 2008-07-30 09:24:39 $ $Revision: 1.8 $ >diff --git a/sfx2/source/inc/sfxtypes.hxx b/sfx2/source/inc/sfxtypes.hxx >index b139653..7e39362 100644 >--- a/sfx2/source/inc/sfxtypes.hxx >+++ b/sfx2/source/inc/sfxtypes.hxx >@@ -61,8 +61,8 @@ class Timer; > > //------------------------------------------------------------------------ > >-// Macro fuer den Call-Profiler unter WinNT >-// mit S_CAP kann eine Messung gestarted, mit E_CAP wieder gestoppt werden >+// Macro for the Call-Profiler under WinNT >+// with S_CAP a measurement can be started, and stopped with E_CAP > #if defined( WNT ) && defined( PROFILE ) > > extern "C" { >diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx >index 955c805..d39b0b3 100644 >--- a/sfx2/source/inc/statcach.hxx >+++ b/sfx2/source/inc/statcach.hxx >@@ -81,17 +81,17 @@ friend class BindDispatch_Impl; > sal_uInt16 nId; // Slot-Id > SfxControllerItem* pInternalController; > com::sun::star::uno::Reference < com::sun::star::frame::XDispatch > xMyDispatch; >- SfxControllerItem* pController; // Ptr auf 1. gebundenen Controller (untereinander verkettet) >- SfxSlotServer aSlotServ; // SlotServer, SlotPtr = 0 -> Nicht auf Stack >- SfxPoolItem* pLastItem; // zuletzt verschicktes Item, nie -1 >- SfxItemState eLastState; // zuletzt verschickter State >- sal_Bool bCtrlDirty:1; // Controller aktualisiert? >- sal_Bool bSlotDirty:1; // Funktion gfs. vorhanden, muss aktualisiert werden >- sal_Bool bItemVisible:1;// item visibility >- sal_Bool bItemDirty; // G"ultigkeit von pLastItem >+ SfxControllerItem* pController; // Pointer to first bound Controller (interlinked with each other) >+ SfxSlotServer aSlotServ; // SlotServer, SlotPtr = 0 -> not on Stack >+ SfxPoolItem* pLastItem; // Last sent Item, never -1 >+ SfxItemState eLastState; // Last sent State >+ sal_Bool bCtrlDirty:1; // Update Controller? >+ sal_Bool bSlotDirty:1; // Present Funktion, must be updated >+ sal_Bool bItemVisible:1; // item visibility >+ sal_Bool bItemDirty; // Validity of pLastItem > > private: >- SfxStateCache( const SfxStateCache& rOrig ); // n.i. >+ SfxStateCache( const SfxStateCache& rOrig ); // inward > void SetState_Impl( SfxItemState, const SfxPoolItem*, BOOL bMaybeDirty=FALSE ); > > public: >diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx >index 295dd2d..f0c987b 100644 >--- a/sfx2/source/inc/templdgi.hxx >+++ b/sfx2/source/inc/templdgi.hxx >@@ -161,9 +161,9 @@ protected: > ListBox aFilterLb; > Size aSize; > >- USHORT nActFamily; // Id in der ToolBox = Position - 1 >+ USHORT nActFamily; // Id in the ToolBox = Position - 1 > USHORT nActFilter; // FilterIdx >- USHORT nAppFilter; // Filter, den die Applikation gesetzt hat (fuer automatisch) >+ USHORT nAppFilter; // Filter, which has set the application (for automatic) > > BOOL bDontUpdate :1, > bIsWater :1, >@@ -174,7 +174,7 @@ protected: > bCanDel :1, > bCanNew :1, > bWaterDisabled :1, >- bNewByExampleDisabled :1, >+ bNewByExampleDisab§led :1, > bUpdateByExampleDisabled:1, > bTreeDrag :1, > bHierarchical :1, >@@ -223,8 +223,8 @@ protected: > void Update_Impl(); > void UpdateFamily_Impl(); > >- // In welchem FamilyState muss ich nachsehen, um die Info der i-ten >- // Family in der pStyleFamilies zu bekommen. >+ // In which FamilyState do I have to look , in order to get the >+ // information of the ith Family in the pStyleFamilies. > USHORT StyleNrToInfoOffset( USHORT i ); > USHORT InfoOffsetToStyleNr( USHORT i ); > >@@ -269,7 +269,7 @@ public: > // normaly for derivates from SvTreeListBoxes, but in this case the dialog handles context menus > virtual PopupMenu* CreateContextMenu( void ); > >- // Rechnet von den SFX_STYLE_FAMILY Ids auf 1-5 um >+ // converts from SFX_STYLE_FAMILY Ids to 1-5 > static USHORT SfxFamilyIdToNId( SfxStyleFamily nFamily ); > > void SetAutomaticFilter(); >diff --git a/sfx2/source/inc/virtmenu.hxx b/sfx2/source/inc/virtmenu.hxx >index 6fedf28..5694461 100644 >--- a/sfx2/source/inc/virtmenu.hxx >+++ b/sfx2/source/inc/virtmenu.hxx >@@ -54,7 +54,7 @@ private: > PopupMenu* pWindowMenu; > PopupMenu* pPickMenu; > PopupMenu* pAddonsMenu; >- Timer* pAutoDeactivate; // Hack fuer QAP-Bug >+ Timer* pAutoDeactivate; // Hack for QAP-Bug > USHORT nVisibleItems; > USHORT nId; > USHORT nCount; >diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx >index 88e2ca8..a72e17c 100644 >--- a/sfx2/source/inc/workwin.hxx >+++ b/sfx2/source/inc/workwin.hxx >@@ -55,12 +55,12 @@ class SfxSplitWindow; > class SfxWorkWindow; > > //==================================================================== >-// Dieser struct h"alt alle relevanten Informationen "uber Toolboxen bereit. >+// This struct makes all relevant Informationen available of Toolboxes > > struct SfxObjectBar_Impl > { >- USHORT nId; // Resource - und ConfigId der Toolbox >- USHORT nMode; // spezielle Sichtbarkeitsflags >+ USHORT nId; // Resource - and ConfigId of Toolbox >+ USHORT nMode; // special visibility flags > USHORT nPos; > USHORT nIndex; > sal_Bool bDestroy; >@@ -76,7 +76,8 @@ struct SfxObjectBar_Impl > }; > > //------------------------------------------------------------------------------ >-// Dieser struct h"alt alle relevanten Informationen "uber die Statuszeile bereit. >+// This struct makes all relevant Informationen available of the status bar >+ > struct SfxStatBar_Impl > { > USHORT nId; >@@ -93,9 +94,9 @@ struct SfxStatBar_Impl > //------------------------------------------------------------------------------ > > #define CHILD_NOT_VISIBLE 0 >-#define CHILD_ACTIVE 1 // nicht durch HidePopups ausgeschaltet >-#define CHILD_NOT_HIDDEN 2 // nicht durch HideChildWindow ausgeschaltet >-#define CHILD_FITS_IN 4 // nicht zu gro\s f"ur OutputSize des parent >+#define CHILD_ACTIVE 1 // not disabled through HidePopups >+#define CHILD_NOT_HIDDEN 2 // not disabled through HideChildWindow >+#define CHILD_FITS_IN 4 // not too large for output size of the parent > #define CHILD_VISIBLE (CHILD_NOT_HIDDEN | CHILD_ACTIVE | CHILD_FITS_IN) > #define CHILD_ISVISIBLE (CHILD_NOT_HIDDEN | CHILD_ACTIVE) > >@@ -131,13 +132,13 @@ class SfxChildWinController_Impl : public SfxControllerItem > > struct SfxChildWin_Impl > { >- USHORT nSaveId; // die ChildWindow-Id >- USHORT nInterfaceId; // der aktuelle Context >- USHORT nId; // aktuelle Id >+ USHORT nSaveId; // the ChildWindow-Id >+ USHORT nInterfaceId; // the current context >+ USHORT nId; // current Id > SfxChildWindow* pWin; > BOOL bCreate; > SfxChildWinInfo aInfo; >- SfxChild_Impl* pCli; // != 0 bei direkten Children >+ SfxChild_Impl* pCli; // != 0 at direct Children > USHORT nVisibility; > BOOL bEnable; > BOOL bDisabled; >@@ -307,7 +308,7 @@ public: > { return pParent; } > ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > CreateDispatch( const String& ); > >- // Methoden f"ur alle Child-Fenster >+ // Methods for all Child windows > void DataChanged_Impl( const DataChangedEvent& rDCEvt ); > void ReleaseChild_Impl( Window& rWindow ); > SfxChild_Impl* RegisterChild_Impl( Window& rWindow, SfxChildAlignment eAlign, BOOL bCanGetFocus=FALSE ); >@@ -328,7 +329,7 @@ public: > void SetFullScreen_Impl( BOOL bSet ) { bIsFullScreen = bSet; } > BOOL IsFullScreen_Impl() const { return bIsFullScreen; } > >- // Methoden f"ur Objectbars >+ // Methods for Objectbars > virtual void UpdateObjectBars_Impl(); > void ResetObjectBars_Impl(); > void SetObjectBar_Impl( USHORT nPos, sal_uInt32 nResId, >@@ -344,7 +345,7 @@ public: > USHORT HasNextObjectBar_Impl( USHORT nPos, String* pStr=0 ); > void SetObjectBarCustomizeMode_Impl( BOOL ); > >- // Methoden f"ur ChildWindows >+ // Methods for ChildWindows > void UpdateChildWindows_Impl(); > void ResetChildWindows_Impl(); > void SetChildWindowVisible_Impl( sal_uInt32, BOOL, USHORT ); >@@ -366,7 +367,7 @@ public: > virtual BOOL ActivateNextChild_Impl( BOOL bForward = TRUE ); > bool AllowChildWindowCreation_Impl( const SfxChildWin_Impl& i_rCW ) const; > >- // Methoden f"ur StatusBar >+ // Methods for StatusBar > void SetTempStatusBar_Impl( BOOL bSet ); > void ResetStatusBar_Impl(); > void SetStatusBar_Impl(sal_uInt32 nResId, SfxShell *pShell, SfxBindings& ); >diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx >index 842f7d8..f6c88f4 100644 >--- a/sfx2/source/menu/mnuitem.cxx >+++ b/sfx2/source/menu/mnuitem.cxx >@@ -177,7 +177,7 @@ void SfxMenuControl::Bind( > > //-------------------------------------------------------------------- > >-// ctor for explicit registration >+// Constructor for explicit registration > > SfxMenuControl::SfxMenuControl( BOOL bShowStrings ) > : pOwnMenu(0), >@@ -189,6 +189,7 @@ SfxMenuControl::SfxMenuControl( BOOL bShowStrings ) > > //-------------------------------------------------------------------- > >+// Constructor for array > SfxMenuControl::SfxMenuControl(): > pOwnMenu(0), > pSubMenu(0), >@@ -207,10 +208,10 @@ SfxMenuControl::SfxMenuControl(USHORT nSlotId, SfxBindings& rBindings): > { > DBG_MEMTEST(); > >- // Dieser Ctor soll es erm"oglichen, w"ahrend der Konstruktion schon >- // auf die Bindings zur"uckgreifen zu k"onnen, aber gebunden wird >- // wie immer erst sp"ater. Anwendung z.B. wenn im ctor der abgeleiteten >- // Klasse z.B. ein StatusForwarder erzeugt werden soll. >+ // This constructor should make it possible already during the design >+ // to fall back to the bindings, but can as always be bound later. >+ // The usefullness of this is for example if a StatusForwarder should >+ // be created in the constructor of a derived class. > UnBind(); > } > >@@ -248,7 +249,7 @@ void SfxMenuControl::StateChanged > bool bIsObjMenu = > GetId() >= SID_OBJECTMENU0 && GetId() < SID_OBJECTMENU_LAST; > >- // enabled/disabled-Flag pauschal korrigieren >+ // Fix inclusion of enabled/disabled-Flag > > #ifdef UNIX > if (nSID == SID_PASTE) >@@ -261,7 +262,7 @@ void SfxMenuControl::StateChanged > > if ( eState != SFX_ITEM_AVAILABLE ) > { >- // checken nur bei nicht-Object-Menus >+ // check only for non-Object Menus > if ( !bIsObjMenu ) > pOwnMenu->CheckItem( GetId(), FALSE ); > >@@ -275,7 +276,7 @@ void SfxMenuControl::StateChanged > bool bCheck = false; > if ( pState->ISA(SfxBoolItem) ) > { >- // BoolItem fuer checken >+ // BoolItem for check > DBG_ASSERT( GetId() < SID_OBJECTMENU0 || GetId() > SID_OBJECTMENU_LAST, > "SfxBoolItem not allowed for SID_OBJECTMENUx" ); > bCheck = ((const SfxBoolItem*)pState)->GetValue(); >@@ -283,14 +284,14 @@ void SfxMenuControl::StateChanged > else if ( pState->ISA(SfxEnumItemInterface) && > ((SfxEnumItemInterface *)pState)->HasBoolValue() ) > { >- // EnumItem wie Bool behandeln >+ // Treat EnumItem as Bool > DBG_ASSERT( GetId() < SID_OBJECTMENU0 || GetId() > SID_OBJECTMENU_LAST, > "SfxEnumItem not allowed for SID_OBJECTMENUx" ); > bCheck = ((SfxEnumItemInterface *)pState)->GetBoolValue(); > } > else if ( ( b_ShowStrings || bIsObjMenu ) && pState->ISA(SfxStringItem) ) > { >- // MenuText aus SfxStringItem holen >+ // Get MenuText from SfxStringItem > String aStr( ((const SfxStringItem*)pState)->GetValue() ); > if ( aStr.CompareToAscii("($1)",4) == COMPARE_EQUAL ) > { >diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx >index 6a46996..89bc852 100644 >--- a/sfx2/source/menu/mnumgr.cxx >+++ b/sfx2/source/menu/mnumgr.cxx >@@ -161,13 +161,11 @@ void InsertVerbs_Impl( SfxBindings* pBindings, const com::sun::star::uno::Sequen > if ( !(aVerbs[n].VerbAttributes & embed::VerbAttributes::MS_VERBATTR_ONCONTAINERMENU) ) > continue; > >- // neue Id vergeben > USHORT nId = SID_VERB_START + nr++; >- DBG_ASSERT(nId <= SID_VERB_END, "Zuviele Verben!"); >+ DBG_ASSERT(nId <= SID_VERB_END, "Too many verbs!"); > if ( nId > SID_VERB_END ) > break; > >- // einf"ugen > pMenu->InsertItem( nId, aVerbs[n].VerbName ); > pMenu->SetHelpId( nId, (ULONG) nId ); > } >@@ -365,7 +363,7 @@ void SfxMenuManager::Construct_Impl( Menu* pSVMenu, BOOL bWithHelp ) > SfxVirtualMenu *pOldVirtMenu=0; > if ( pMenu ) > { >- // Es wird umkonfiguriert >+ // It is reconfigured > pOldVirtMenu = pMenu; > pBindings->ENTERREGISTRATIONS(); > } >diff --git a/sfx2/source/menu/objmnctl.cxx b/sfx2/source/menu/objmnctl.cxx >index 6c1e109..83c41fe 100644 >--- a/sfx2/source/menu/objmnctl.cxx >+++ b/sfx2/source/menu/objmnctl.cxx >@@ -50,8 +50,8 @@ using namespace com::sun::star; > //-------------------------------------------------------------------- > > /* >- Ctor; setzt Select-Handler am Menu und traegt Menu >- in seinen Parent ein. >+ Constructor; sets the Select-Handler for the Menu and inserts it into >+ its Parent. > */ > > SfxObjectVerbsControl::SfxObjectVerbsControl(USHORT nSlotId, Menu &rMenu, SfxBindings &rBindings) >@@ -67,7 +67,7 @@ SfxObjectVerbsControl::SfxObjectVerbsControl(USHORT nSlotId, Menu &rMenu, SfxBin > //-------------------------------------------------------------------- > > /* >- Fuellt das Menu mit den aktuellen Verben aus der ViewShell. >+ Make up a menu with the current view of the verbs from ViewShell. > */ > > void SfxObjectVerbsControl::FillMenu() >@@ -91,7 +91,7 @@ void SfxObjectVerbsControl::FillMenu() > if ( !(aVerbs[n].VerbAttributes & embed::VerbAttributes::MS_VERBATTR_ONCONTAINERMENU) ) > continue; > >- DBG_ASSERT(nSlotId <= SID_VERB_END, "Zuviele Verben!"); >+ DBG_ASSERT(nSlotId <= SID_VERB_END, "Too many Verbs!"); > if (nSlotId > SID_VERB_END) > break; > >@@ -106,11 +106,10 @@ void SfxObjectVerbsControl::FillMenu() > //-------------------------------------------------------------------- > > /* >- Statusbenachrichtigung; >- fuellt gfs. das Menu mit den aktuellen Verben aus der ViewShell. >- der DocumentShell. >- Ist die Funktionalit"at disabled, wird der entsprechende >- Menueeintrag im Parentmenu disabled, andernfalls wird er enabled. >+ Status notification: >+ Fill the menu with the current verbs from the ViewShell of the >+ the DocumentShell. If the functionality is disabled, the corresponding >+ menu entry in Parent menu is disabled, otherwise it is enabled. > */ > > void SfxObjectVerbsControl::StateChanged( >@@ -126,8 +125,8 @@ void SfxObjectVerbsControl::StateChanged( > //-------------------------------------------------------------------- > > /* >- Select-Handler des Menus; >- das selektierte Verb mit ausgef"uhrt, >+ Select-Handler for Menus; >+ run the selected Verb, > */ > > IMPL_LINK_INLINE_START( SfxObjectVerbsControl, MenuSelect, Menu *, pSelMenu ) >@@ -142,7 +141,7 @@ IMPL_LINK_INLINE_END( SfxObjectVerbsControl, MenuSelect, Menu *, pSelMenu ) > //-------------------------------------------------------------------- > > /* >- Dtor; gibt das Menu frei. >+ Destructor; releases the Menu. > */ > > SfxObjectVerbsControl::~SfxObjectVerbsControl() >diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx >index a62f642..35261bb 100644 >--- a/sfx2/source/menu/thessubmenu.cxx >+++ b/sfx2/source/menu/thessubmenu.cxx >@@ -97,8 +97,8 @@ String GetThesaurusReplaceText_Impl( const ::rtl::OUString &rText ) > > > /* >- Ctor; setzt Select-Handler am Menu und traegt Menu >- in seinen Parent ein. >+ Constructor; sets the Select-Handler for the Menu and inserts it into >+ its Parent. > */ > SfxThesSubMenuControl::SfxThesSubMenuControl( USHORT nSlotId, Menu &rMenu, SfxBindings &rBindings ) > : SfxMenuControl( nSlotId, rBindings ), >@@ -119,9 +119,9 @@ SfxThesSubMenuControl::~SfxThesSubMenuControl() > > > /* >- Statusbenachrichtigung; >- Ist die Funktionalit"at disabled, wird der entsprechende >- Menueeintrag im Parentmenu disabled, andernfalls wird er enabled. >+ Status notification: >+ If the functionality is disabled, the corresponding >+ menu entry in Parentmenu is disabled, otherwise it is enabled. > */ > void SfxThesSubMenuControl::StateChanged( > USHORT /*nSID*/, >@@ -133,8 +133,8 @@ void SfxThesSubMenuControl::StateChanged( > > > /* >- Select-Handler des Menus; >- das selektierte Verb mit ausgef"uhrt, >+ Select-Handler for Menus; >+ run the selected Verb, > */ > IMPL_LINK_INLINE_START( SfxThesSubMenuControl, MenuSelect, Menu *, pSelMenu ) > { >diff --git a/sfx2/source/menu/thessubmenu.hxx b/sfx2/source/menu/thessubmenu.hxx >index 7e27895..2e84c62 100644 >--- a/sfx2/source/menu/thessubmenu.hxx >+++ b/sfx2/source/menu/thessubmenu.hxx >@@ -78,7 +78,7 @@ class SfxThesSubMenuHelper > > private: > >- // don't use copy c-tor and assignment operator >+ // don't use copy constructor and assignment operator > SfxThesSubMenuHelper( const SfxThesSubMenuHelper & ); > SfxThesSubMenuHelper & operator = ( const SfxThesSubMenuHelper & ); > >diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx >index 4d19626..e8754d1 100644 >--- a/sfx2/source/menu/virtmenu.cxx >+++ b/sfx2/source/menu/virtmenu.cxx >@@ -155,9 +155,9 @@ static Image RetrieveAddOnImage( Reference< com::sun::star::frame::XFrame >& rFr > > //========================================================================= > >-/* Diese Hilfsfunktion pr"uft, ob eine Slot-Id im aktuellen Applikations- >- Status sichtbar ist oder nicht. Dabei bezieht sich der Applikations-Status >- darauf, ob die Applikation OLE-Server ist oder nicht. >+/* This helper function checks whether a Slot-id in the current application >+ status is visible or not. This relates to the application status to see >+ if the OLE server application exist or not. > */ > > BOOL IsItemHidden_Impl( USHORT nItemId, int bOleServer, int bMac ) >@@ -261,10 +261,9 @@ SfxVirtualMenu::SfxVirtualMenu( Menu *pStarViewMenu, BOOL bWithHelp, > > //-------------------------------------------------------------------- > >-/* Der Destruktor der Klasse SfxVirtualMenu gib die gebundenen Items frei >- und klinkt das zugeh"orige StarView-PopupMenu aus seinem Parent aus. >- Falls es sich um das Pickmenu oder das MDI-Menu handelt, wird es >- dort abgemeldet. >+/* The destructor of the class SfxVirtualMenu releases bounded items and >+ the associated StarView-PopupMenu is released from its parent. >+ If it is related to the Pickmenu or the MDI-menu, it is unregistered here. > */ > > SfxVirtualMenu::~SfxVirtualMenu() >@@ -296,10 +295,10 @@ SfxVirtualMenu::~SfxVirtualMenu() > delete pAppCtrl; > pBindings = 0; > >- // Alle Menues, die von SV erzeugt wurden, werden auch dort wieder >- // gel"oscht (also die beim Laden aus der Resource erzeugten). >- // Das Top-Level-Menu wird nie von SV gel"oscht, da die Allocierung >- // im SFX erfolgt >+ // All the menus, which were created by SV, will also be there deleted >+ // again (i.e. created by loading them from the resource) >+ // The top-level menu is never deleted by SV, since the allocation >+ // in done in the SFX > if ( !bResCtor || !pParent) > { > if ( pParent ) >@@ -366,9 +365,9 @@ void SfxVirtualMenu::CreateFromSVMenu() > // get and store the number of items > nCount = pSVMenu->GetItemCount(); > >- // Achtung: nur zu diesem Zeitpunkt ist garantiert, da\s nCount und >- // der ItemCount des SV-Menues "ubereinstimmen; sp"ater kann das SvMenue >- // auch mehr Eintr"age haben (Pickliste!) >+ // Note: only this time it is guaranteed that nCount and the ItemCount >+ // the SV-menus match; later on the SvMenu can have more entries >+ // (Pick list!) > if (nCount) > pItems = new SfxMenuControl[nCount]; > >@@ -405,9 +404,8 @@ void SfxVirtualMenu::CreateFromSVMenu() > > if ( pMnuCtrl ) > { >- // Das Popup war offensichtlich kein "echtes"; solche werden >- // niemals aus der Resource geladen und m"ussen daher explizit >- // gel"oscht werden >+ // The pop was obviously not "real" and such are never loaded >+ //from the resource and need thus to be explicitly deleted. > if ( pSVMenu->GetPopupMenu( nSlotId ) == pPopup ) > pSVMenu->SetPopupMenu( nSlotId, NULL ); > delete pPopup; >@@ -431,8 +429,8 @@ void SfxVirtualMenu::CreateFromSVMenu() > /* > if ( nSlotId >= SID_SFX_START && !SfxMenuManager::IsPopupFunction(nSlotId) ) > { >- // Echte Popups sollen keine SlotIds haben; leider sind >- // da noch Altlasten mit herumzuschleppen ... >+ // Real Popups should not have SlotIds; sadly there >+ // are still inherited problem to drag along... > String aTitle = pSVMenu->GetItemText( nSlotId ); > pSVMenu->SetPopupMenu( nSlotId, NULL ); > USHORT nPos = pSVMenu->GetItemPos( nSlotId ); >@@ -447,7 +445,7 @@ void SfxVirtualMenu::CreateFromSVMenu() > pSVMenu->SetHelpId( nSlotId, 0L ); > pMnuCtrl = pItems+nPos; > >- // normalerweise jetzt erst im Activate-Handler >+ // Normally only now in Activate-Handler > if ( bOLE ) > { > pMnuCtrl->Bind( this, nSlotId, >@@ -571,10 +569,10 @@ IMPL_LINK( SfxVirtualMenu, Highlight, Menu *, pMenu ) > DBG_MEMTEST(); > DBG_CHKTHIS(SfxVirtualMenu, 0); > >- // eigenes StarView-Menu >+ // own StarView-Menu > if ( pMenu == pSVMenu ) > { >- // AutoDeactivate ist jetzt nicht mehr n"otig >+ // AutoDeactivate is not necessary anymore > //USHORT nSlotId = pMenu->GetCurItemId(); > if ( pAutoDeactivate ) > pAutoDeactivate->Stop(); >@@ -758,14 +756,14 @@ void SfxVirtualMenu::RemoveMenuImages( Menu* pMenu ) > > bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) > { >- // Selber suchen, da SV mit 'USHORT nSID = pSVMenu->GetCurItemId();' immer >- // 0 liefert. Das ist so, weil die Event-Weiterleitung lt. TH nichts mit >- // CurItem des Parent-Menus zu tun hat. >+ // Search , as SV with 'USHORT nSID = pSVMenu->GetCurItemId();' always >+ // returns 0. It is like this, since the Event-Forwarding has nothing to do >+ // with the Parent-Menus CurItem. > sal_uInt32 nAddonsPopupPrefixLen = ADDONSPOPUPMENU_URL_PREFIX.getLength(); > > for ( USHORT nPos = 0; nPos < nCount; ++nPos ) > { >- // angesprochenes Sub-Menu gefunden? >+ // found the Sub-Menu in question? > bool bFound = false; > USHORT nSID = pSVMenu->GetItemId(nPos); > SfxMenuControl &rCtrl = pItems[nPos]; >@@ -774,11 +772,11 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) > > if ( bFound ) > { >- // Nur ein gebundener Menu-Controller hat schon seine Id! >+ // Only a binded Menu-Controller as already an Id! > if ( !rCtrl.GetId() ) > { > bIsAddonPopupMenu = FALSE; >- DBG_ASSERT( !pSubMenu, "Popup schon vorhanden!"); >+ DBG_ASSERT( !pSubMenu, "Popup already exists!"); > > // Check if the popup is an Add-On popup menu > // Either the popup menu has a special ID or a special command URL prefix! >@@ -789,31 +787,32 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) > ( aCommand.indexOf( ADDONSPOPUPMENU_URL_PREFIX ) == 0 )) ) > bIsAddonPopupMenu = TRUE; > >- // VirtualMenu f"ur Sub-Menu erzeugen >+ // Create VirtualMenu for Sub-Menu > BOOL bRes = bResCtor; > pSubMenu = new SfxVirtualMenu( nSID, this, > *pMenu, FALSE, *pBindings, bOLE, bRes, bIsAddonPopupMenu ); > >- DBG_OUTF( ("Neues VirtualMenu %lx erzeugt", pSubMenu) ); >+ DBG_OUTF( ("New VirtualMenu %lx created", pSubMenu) ); > > rCtrl.Bind( this, nSID, *pSubMenu, pSVMenu->GetItemText(nSID), *pBindings ); > >- // Activate weiterleiten >+ // Forward Activate > pSubMenu->Bind_Impl( pMenu ); > pSubMenu->Activate( pMenu ); > } > } > >- // rekursiv weitersuchen (SV Activate nur am Menu selbst und Top-Menu) >+ // continue searching recursively (SV Activate only the menu itself >+ // and Top-Menu) > if ( !bFound && pSubMenu ) > bFound = pSubMenu->Bind_Impl( pMenu ); > >- // gefunden, dann abbrechen >+ // If found, break > if ( bFound ) > return TRUE; > } > >- // nicht in diesem Untermenu gefunden >+ // Not found in this submenu > return FALSE; > } > >@@ -859,7 +858,7 @@ void SfxVirtualMenu::UnbindControllers() > { > SfxMenuControl* pCtrl = rCtrlArr[nPos]; > if ( pCtrl->IsBound() ) >- // UnoController sind nicht gebunden! >+ // UnoController is not binded! > pCtrl->UnBind(); > } > >@@ -916,10 +915,10 @@ IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) > DBG_CHKTHIS(SfxVirtualMenu, 0); > DBG_OUTF( ("SfxVirtualMenu %lx activated %lx, own %lx", this, pMenu, pSVMenu)); > >- // MI: wozu war der noch gut? >- // MBA: scheint ein alter QAP-Hack gewesen zu sein ( in rev.1.41 eingecheckt ! ) >+ // MI: for what was it still good for? >+ // MBA: seemes to be an old QAP-Hack( checked-in in rev.1.41 ! ) > // if ( Application::IsInModalMode() ) >-// return TRUE; // abw"urgen >+// return TRUE; // kill > > if ( pMenu ) > { >@@ -932,10 +931,10 @@ IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) > pMenu->SetMenuFlags( nFlag ); > } > >- // eigenes StarView-Menu >+ // Own StarView-Menu > if ( pMenu == pSVMenu ) > { >- // doppelt-Activate verhindern >+ // Prevent Double Activate > if ( bIsActive ) > return TRUE; > >@@ -1018,7 +1017,7 @@ IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) > pAddonsMenu = pSVMenu->GetPopupMenu( SID_ADDONLIST ); > } > >- // f"ur konstistenten Status sorgen >+ // Provides consistency to the Status > if ( bControllersUnBound ) > BindControllers(); > >@@ -1040,22 +1039,22 @@ IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) > // old way with SlotInfo doesn't work anymore > } > >- // bis zum Deactivate die Statusupdates unterdr"ucken >+ // Supress the Status updates until Deactivate > pBindings->ENTERREGISTRATIONS(); ++nLocks; bIsActive = TRUE; > > if ( pAutoDeactivate ) // QAP-Hack > pAutoDeactivate->Start(); > >- // erledigt > return TRUE; > } > else > { >- // VirtualMenu fuer SubMenu finden und ggf. an VirtualMenu binden >+ // Find the VirtualMenu for the SubMenu and if possible, bind a >+ // VirtualMenu > bool bRet = Bind_Impl( pMenu ); > #ifdef DBG_UTIL > if ( !bRet) >- DBG_WARNING( "W1: Virtual menu konnte nicht erzeugt werden!" ); >+ DBG_WARNING( "W1: Virtual menu could not be created!" ); > #endif > return bRet; > } >@@ -1072,8 +1071,8 @@ IMPL_LINK( SfxVirtualMenu, Deactivate, Menu *, pMenu ) > if ( pAutoDeactivate ) > pAutoDeactivate->Stop(); > >- // Bis auf die Menubar k"onnen alle Controller unbinded werden, wenn >- // das Menue deaktiviert ( = zugeklappt ) wird >+ // All controllers can be unbinded all the way up to the Menubar, >+ // when the menu is disabled (= closed) > if ( pParent ) > UnbindControllers(); > pBindings->LEAVEREGISTRATIONS(); --nLocks; bIsActive = FALSE; >@@ -1263,7 +1262,7 @@ void SfxVirtualMenu::SetPopupMenu( USHORT nItemId, PopupMenu *pMenu ) > > //-------------------------------------------------------------------- > >-// Erzwingt die Initialisierung, die sonst nur im Activate kommt >+// Forces the initialization, which is otherwise only happens in Activate > > void SfxVirtualMenu::InitPopup( USHORT nPos, BOOL /*bOLE*/ ) > { >@@ -1273,17 +1272,17 @@ void SfxVirtualMenu::InitPopup( USHORT nPos, BOOL /*bOLE*/ ) > USHORT nSID = pSVMenu->GetItemId(nPos); > PopupMenu *pMenu = pSVMenu->GetPopupMenu( nSID ); > >- DBG_ASSERT( pMenu, "Hier gibt es kein Popup!"); >+ DBG_ASSERT( pMenu, "No popup exist here!"); > > SfxMenuControl &rCtrl = pItems[nPos]; > if ( !rCtrl.GetId() ) > { >- // VirtualMenu f"ur Sub-Menu erzeugen >+ // Generate VirtualMenu for Sub-Menu > BOOL bRes = bResCtor; > SfxVirtualMenu *pSubMenu = > new SfxVirtualMenu(nSID, this, *pMenu, FALSE, *pBindings, bOLE, bRes); > >- DBG_OUTF( ("Neues VirtualMenu %lx erzeugt", pSubMenu) ); >+ DBG_OUTF( ("New VirtualMenu %lx created", pSubMenu) ); > > rCtrl.Bind( this, nSID, *pSubMenu, pSVMenu->GetItemText(nSID), *pBindings ); > } >diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx >index 1a5dbd9..38b10f7 100644 >--- a/sfx2/source/statbar/stbitem.cxx >+++ b/sfx2/source/statbar/stbitem.cxx >@@ -139,24 +139,26 @@ svt::StatusbarController* SAL_CALL SfxStatusBarControllerFactory( > > SfxStatusBarControl::SfxStatusBarControl > ( >- USHORT nSlotID, /* Slot-Id, mit der diese Instanz >- verbunden wird. Wurde bei der >- Registrierung eine Slot-Id != 0 >- angegeben, ist dies immer die dort >- angegebene. */ >+ USHORT nSlotID, /* Slot-Id which is connected to this >+ instance. If a Slot-Id is set to != 0 at >+ registration it will always be set there. >+ */ >+ >+ > USHORT nCtrlID, /* ID of this controller in the status bar */ > >- StatusBar& rBar /* Referenz auf die StatusBar, f"ur die >- dieses Control erzeugt wurde. */ >+ StatusBar& rBar /* Reference to the StatusBar,for which >+ this Control was created. */ > ) > >-/* [Beschreibung] > >- Konstruktor der Klasse SfxStatusBarControl. Die Subclasses werden >- bei Bedarf per Factory vom SFx erzeugt. >+/* [Description] >+ >+ Constructor of the SfxStatusBarControl Class. The Subclasses are >+ created at the Factory if necessary. > >- Instanzen dieser Basisklasse werden f"ur alle StatusBar-Felder >- erzeugt, f"ur die keine speziellen registriert wurden. >+ Instances of this base class are created for all StatusBar-fields >+ for which no specific ones have been registered. > */ > > : svt::StatusbarController(), >@@ -170,10 +172,10 @@ SfxStatusBarControl::SfxStatusBarControl > > SfxStatusBarControl::~SfxStatusBarControl() > >-/* [Beschreibung] >+/* [Description] > >- Destruktor der Klasse SfxStatusBarControl. Die Instanzen dieser >- Klasse und deren Subklassen werden vom SFx zerst"ort. >+ Destructor of the SfxStatusBarControl Class. The Class and its Subclasses >+ are destroyed by SFx. > */ > > {} >@@ -433,20 +435,20 @@ void SfxStatusBarControl::StateChanged > ( > USHORT nSID, > SfxItemState eState, >- const SfxPoolItem* pState /* Zeiger auf ein SfxPoolItem, welches nur >- innerhalb dieses Methodenaufrufs g"ultig >- ist. Es kann ein 0-Pointer, ein Pointer >- auf ein SfxVoidItem oder auf den Typ, f"ur >- den die Subclass von SfxStatusBarControl >- registriert ist vorkommen. */ >+ const SfxPoolItem* pState /* Pointer to SfxPoolItem, is only valid >+ withih this Method call. This can be a >+ Null-Pointer, a Pointer to SfxVoidItem >+ or of this Type found registered by the >+ Subclass of SfxStatusBarControl. >+ */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Die Basisimplementation versteht Items vom Type SfxStringItem, bei >- denen der Text in das Status-Zeilen-Feld eingetragen wird und >- SfxVoidItem, bei denen das Feld geleert wird. Die Basisimplementierng >- sollte in "uberladenen Methoden nicht gerufen werden. >+ The base implementation includes items of type SfxStringItem >+ where the text is entered in the status row field and >+ SfxVoidItem, where the field is emptied. The base implementation >+ should not be called in overloaded methods. > */ > > { >@@ -468,25 +470,23 @@ void SfxStatusBarControl::StateChanged > > BOOL SfxStatusBarControl::MouseButtonDown( const MouseEvent & ) > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode ist eine Weiterleitung des Events >- MouseButtonDown() der StatusBar, falls die Maus-Position innerhalb >- des Bereichs des betreffenden Items ist, oder die Maus von diesem >- Control mit <SfxStatusBarControl::CaptureMouse()> gecaptured wurde. >+ This virtual method forwards the Event MouseButtonDown() of the >+ StatusBar if the mouse position is within the range of the items, >+ or if the mouse was captured by <SfxStatusBarControl::CaptureMouse()> > >- Die Defaultimplementierung ist leer und gibt FALSE zur"uck. >+ The default implementation is empty and returns FALSE. > >- >- [Rueckgabewert] >+ [Return value] > > BOOL TRUE >- das Event wurde bearbeitet und soll nicht an >- die StatusBar weitergeleitet werden >+ The event has been processed and is not intended to >+ be forwarded to StatusBar > > FALSE >- das Event wurde nicht bearbeitet und soll an >- die StatusBar weitergeleitet werden >+ The event was not processed and is to be >+ be forwarded to StatusBar > */ > > { >@@ -497,25 +497,23 @@ BOOL SfxStatusBarControl::MouseButtonDown( const MouseEvent & ) > > BOOL SfxStatusBarControl::MouseMove( const MouseEvent & ) > >-/* [Beschreibung] >- >- Diese virtuelle Methode ist eine Weiterleitung des Events >- MouseMove() der StatusBar, falls die Maus-Position innerhalb >- des Bereichs des betreffenden Items ist, oder die Maus von diesem >- Control mit <SfxStatusBarControl::CaptureMouse()> gecaptured wurde. >+/* [Description] > >- Die Defaultimplementierung ist leer und gibt FALSE zur"uck. >+ This virtual method forwards the Event MouseMove() of the >+ StatusBar if the mouse position is within the range of the items, >+ or if the mouse was captured by <SfxStatusBarControl::CaptureMouse()> > >+ The default implementation is empty and returns FALSE. > >- [Rueckgabewert] >+ [Return value] > > BOOL TRUE >- das Event wurde bearbeitet und soll nicht an >- die StatusBar weitergeleitet werden >+ The event has been processed and is not intended to >+ be forwarded to StatusBar > > FALSE >- das Event wurde nicht bearbeitet und soll an >- die StatusBar weitergeleitet werden >+ The event was not processed and is to be >+ be forwarded to StatusBar > */ > > { >@@ -526,25 +524,23 @@ BOOL SfxStatusBarControl::MouseMove( const MouseEvent & ) > > BOOL SfxStatusBarControl::MouseButtonUp( const MouseEvent & ) > >-/* [Beschreibung] >- >- Diese virtuelle Methode ist eine Weiterleitung des Events >- MouseButtonUp() der StatusBar, falls die Maus-Position innerhalb >- des Bereichs des betreffenden Items ist, oder die Maus von diesem >- Control mit <SfxStatusBarControl::CaptureMouse()> gecaptured wurde. >+/* [Description] > >- Die Defaultimplementierung ist leer und gibt FALSE zur"uck. >+ This virtual method forwards the Event MouseButtonUp() of the >+ StatusBar if the mouse position is within the range of the items, >+ or if the mouse was captured by <SfxStatusBarControl::CaptureMouse()> > >+ The default implementation is empty and returns FALSE. > >- [Rueckgabewert] >+ [Return value] > > BOOL TRUE >- das Event wurde bearbeitet und soll nicht an >- die StatusBar weitergeleitet werden >+ The event has been processed and is not intended to >+ be forwarded to StatusBar > > FALSE >- das Event wurde nicht bearbeitet und soll an >- die StatusBar weitergeleitet werden >+ The event was not processed and is to be >+ be forwarded to StatusBar > */ > > { >@@ -555,12 +551,12 @@ BOOL SfxStatusBarControl::MouseButtonUp( const MouseEvent & ) > > void SfxStatusBarControl::Command( const CommandEvent& ) > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode wird gerufen, wenn f"ur dieses SfxStatusBarControl >- ein CommandEvent f"ur erkannt wurde. >+ This virtual method is called when a CommandEvent is recived by >+ SfxStatusBarControl. > >- Die Defaultimplementierung ist leer. >+ The default implementation is empty. > */ > > { >@@ -570,12 +566,12 @@ void SfxStatusBarControl::Command( const CommandEvent& ) > > void SfxStatusBarControl::Click() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode wird gerufen, wenn der Anwender mit der Maus >- in das zu diesem Control geh"orige Feld der Statuszeile klickt. >+ This virtual method is called when the user clicks on the >+ field in the status row that belongs to this control. > >- Die Defaultimplementierung ist leer. >+ The default implementation is empty. > */ > > { >@@ -585,10 +581,10 @@ void SfxStatusBarControl::Click() > > void SfxStatusBarControl::DoubleClick() > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode wird gerufen, wenn der Anwender mit der Maus >- in das zu diesem Control geh"orige Feld der Statuszeile doppel-klickt. >+ This virtual method is called when the user double-clicks on the >+ field in the status row that belongs to this control. > */ > > { >@@ -600,18 +596,17 @@ void SfxStatusBarControl::DoubleClick() > > void SfxStatusBarControl::Paint > ( >- const UserDrawEvent& /* Referenz auf einen UserDrawEvent */ >+ const UserDrawEvent& /* Reference to an UserDrawEvent */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode wird gerufen, falls das betreffende Feld >- mit SIB_USERDRAW gekennzeichnet ist, um den Inhalt zu zeichnen. >- Die Ausgabe mu"s auf dem in durch rUDEvt.GetDevice() erh"altlichen >- OutputDevice innerhalb des durch rUDEvt.GetRect() angegebenenen >- Rechtecks erfolgen. >+ This virtual method is called to paint the contents if the field >+ at hand is marked with SIB_USERDRAW. The output must be obtained >+ within the Rectangle of rUDEvt.GetRect() by the OutputDevice >+ given by rUDEvt.GetDevice(). > >- Die Defaultimplementierung ist leer. >+ The default implementation is empty. > */ > > { >diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx >index f43cf8e..4f3a638 100644 >--- a/sfx2/source/toolbox/tbxitem.cxx >+++ b/sfx2/source/toolbox/tbxitem.cxx >@@ -401,33 +401,31 @@ SfxToolBoxControl* SfxToolBoxControl::CreateControl( USHORT nSlotId, USHORT nTbx > > SfxItemState SfxToolBoxControl::GetItemState( > const SfxPoolItem* pState ) >-/* [Beschreibung] >+/* [Description] > >- Statische Methode zum Ermitteln des Status des SfxPoolItem-Pointers, >- in der Methode <SfxControllerItem::StateChanged(const SfxPoolItem*)> >- zu verwenden. >+ Static method for determining the status of the SfxPoolItem-pointer, >+ used in the method <SfxControllerItem::StateChanged(const SfxPoolItem*)>. > >- [R"uckgabewert] >+ [Return value] > > SfxItemState SFX_ITEM_UNKNOWN >- Enabled, aber keine weitere Statusinformation >- verf"ugbar. Typisch f"ur <Slot>s, die allenfalls >- zeitweise disabled sind, aber ihre Darstellung sonst >- nicht "andern. >+ Enabled, however no further status information is available. >+ Typical for <Slot>s, which are temporarily disabled a >+ anyway but other than that do not change their appearance. > > SFX_ITEM_DISABLED >- Disabled und keine weiter Statusinformation >- verf"ugbar. Alle anderen ggf. angezeigten Werte sollten >- auf den Default zur"uckgesetzt werden. >+ Disabled, no further status information is available. >+ All other displayed values should be reset to the default >+ if possible. > > SFX_ITEM_DONTCARE >- Enabled aber es waren nur uneindeutige Werte >- verf"ugbar (also keine, die abgefragt werden k"onnen). >+ Enabled but there were only ambiguous values available >+ (i.e. none that could be queried). > > SFX_ITEM_AVAILABLE >- Enabled und mit verf"ugbarem Wert, der von 'pState' >- erfragbar ist. Der Typ ist dabei im gesamten >- Programm eindeutig und durch den Slot festgelegt. >+ Enabled and with available values which can be queried >+ through'pState'. The type is thus by the Slot clearly >+ defined in the entire Program. > */ > > { >@@ -966,7 +964,7 @@ void SfxToolBoxControl::StateChanged > if ( GetId() >= SID_OBJECTMENU0 && GetId() <= SID_OBJECTMENU_LAST ) > return; > >- // enabled/disabled-Flag pauschal korrigieren >+ // enabled/disabled-Flag correcting the lump sum > pImpl->pBox->EnableItem( GetId(), eState != SFX_ITEM_DISABLED ); > > USHORT nItemBits = pImpl->pBox->GetItemBits( GetId() ); >@@ -978,7 +976,7 @@ void SfxToolBoxControl::StateChanged > { > if ( pState->ISA(SfxBoolItem) ) > { >- // BoolItem fuer checken >+ // BoolItem for checking > if ( ((const SfxBoolItem*)pState)->GetValue() ) > eTri = STATE_CHECK; > nItemBits |= TIB_CHECKABLE; >@@ -986,7 +984,7 @@ void SfxToolBoxControl::StateChanged > else if ( pState->ISA(SfxEnumItemInterface) && > ((SfxEnumItemInterface *)pState)->HasBoolValue()) > { >- // EnumItem wie Bool behandeln >+ // EnumItem is handled as Bool > if ( ((const SfxEnumItemInterface *)pState)->GetBoolValue() ) > eTri = STATE_CHECK; > nItemBits |= TIB_CHECKABLE; >@@ -1392,7 +1390,7 @@ void SfxPopupWindow::PopupModeEnd() > > if ( IsVisible() ) > { >- // wurde abgerissen >+ // was teared-off > DeleteFloatingWindow(); > m_bFloating = TRUE; > } >@@ -1419,7 +1417,7 @@ void SfxPopupWindow::MouseMove( const ::MouseEvent& rMEvt ) > FloatingWindow::MouseMove( rMEvt ); > else > { >- // MouseMove-Event an die Children forwarden >+ // Forward MouseMove-Event to Children > ::Point aPos = rMEvt.GetPosPixel(); > ::Point aScrPos = OutputToScreenPixel( aPos ); > USHORT i = 0; >@@ -1453,14 +1451,14 @@ void SfxPopupWindow::EndCascading() > > SfxPopupWindow* SfxPopupWindow::Clone() const > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode mu\s "uberladen werden, um dieses Popup auch im >- Presentations-Modus anzuzeigen. Sie wird gerufen, wenn ein Show() >- sinnlos w"are, da der Parent nicht das Presentations-Window ist. >- Beim neu erzeugen wird automatisch das neue Top-Window verwendet, so >- da\s der Parent das Presentations-Window ist und das neue Popup somit >- sichtbar ist. >+ This method must be overloaded to show this Popup also in the >+ Presentation-mode. It is called when a Show() would be meaningless >+ since the parent is no presentation window. >+ When create a new window the bew Top-Window will be used automatically, >+ so that the Parent becomes the presentation window and and that the new >+ Popup therefore becomes visible. > */ > > { >@@ -1473,16 +1471,14 @@ void SfxPopupWindow::StateChanged( > USHORT /*nSID*/, > SfxItemState eState, > const SfxPoolItem* /*pState*/ ) >-/* [Bescheibung] >+/* [Description] > >- Siehe auch <SfxControllerItem::StateChanged()>. Au\serdem wird >- bei eState==SFX_ITEM_DISABLED das Popup gehided und in allen anderen >- F"allen, falls es floating ist, wieder angezeigt. Daher mu\s die >- Basisklasse i.d.R. gerufen werden. >- >- Es findet wegen des Parents eine Sonderbehandlung f"ur den >- Presentationsmodus statt. >+ See also <SfxControllerItem::StateChanged()>. In addition the Popup >+ will become hidden when eState==SFX_ITEM_DISABLED and in all other >+ cases it will be shown again if it is floating. In general this requires >+ to call the Base class. > >+ Due to the parent the presentation mode is handled in a special way. > */ > > { >diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx >index 41452da..2baed9f 100644 >--- a/sfx2/source/view/frame.cxx >+++ b/sfx2/source/view/frame.cxx >@@ -125,7 +125,7 @@ SfxFrame::~SfxFrame() > > if ( pChildArr ) > { >- DBG_ASSERT( !pChildArr->Count(), "Childs nicht entfernt!" ); >+ DBG_ASSERT( !pChildArr->Count(), "Children are not removed!" ); > delete pChildArr; > } > >@@ -134,7 +134,7 @@ SfxFrame::~SfxFrame() > > sal_Bool SfxFrame::DoClose() > { >- // Eigentlich wird noch ein PrepareClose gebraucht !!! >+ // Actually, one more PrepareClose is still needed! > BOOL bRet = FALSE; > if ( !pImp->bClosing ) > { >@@ -177,7 +177,7 @@ sal_Bool SfxFrame::DoClose_Impl() > if ( pImp->pCurrentViewFrame ) > pBindings = &pImp->pCurrentViewFrame->GetBindings(); > >- // Bei internen Tasks m"ussen Controller und Tools abger"aumt werden >+ // For internal tasks Controllers and Tools must be cleared > if ( pImp->pWorkWin ) > pImp->pWorkWin->DeleteControllers_Impl(); > >@@ -257,7 +257,7 @@ SfxFrame* SfxFrame::GetChildFrame( sal_uInt16 nPos ) const > { > if ( pChildArr && pChildArr->Count() > nPos ) > { >- DBG_ASSERT( nPos < pChildArr->Count(), "Falscher Index!"); >+ DBG_ASSERT( nPos < pChildArr->Count(), "Wrong Index!"); > return (*pChildArr)[nPos]; > } > >@@ -266,7 +266,7 @@ SfxFrame* SfxFrame::GetChildFrame( sal_uInt16 nPos ) const > > void SfxFrame::RemoveChildFrame_Impl( SfxFrame* pFrame ) > { >- DBG_ASSERT( pChildArr, "Unbekannter Frame!"); >+ DBG_ASSERT( pChildArr, "Unknown Frame!"); > sal_uInt16 nPos = pChildArr->GetPos(pFrame); > pChildArr->Remove( nPos ); > }; >@@ -306,7 +306,7 @@ void SfxFrame::CancelTransfers( sal_Bool /*bCancelLoadEnv*/ ) > for( pFrm = SfxViewFrame::GetFirst( pObj ); > pFrm && &pFrm->GetFrame() == this; > pFrm = SfxViewFrame::GetNext( *pFrm, pObj ) ) ; >- // Keine anderer Frame mehr auf Doc -> Cancel >+ // No more Frame in Document -> Cancel > if( !pFrm ) > { > pObj->CancelTransfers(); >@@ -314,12 +314,12 @@ void SfxFrame::CancelTransfers( sal_Bool /*bCancelLoadEnv*/ ) > } > } > >- // zuerst Nachladende Frames stoppen >+ // First stop multiload Frames > sal_uInt16 nCount = GetChildFrameCount(); > for( sal_uInt16 n = 0; n<nCount; n++ ) > GetChildFrame( n )->CancelTransfers(); > >- // ggf. StarOne-Loader canceln >+ // Check if StarOne-Loader should be canceled > SfxFrameWeak wFrame( this ); > if (wFrame.Is()) > pImp->bInCancelTransfers = sal_False; >@@ -362,9 +362,10 @@ void SfxFrame::SetFrameType_Impl( sal_uInt32 n ) > > void SfxFrame::GetViewData_Impl() > { >- // Alle zwischen Laden und Entfernen "anderbaren Daten aktualisieren; die >- // festen Daten werden nur einmal ( nach PrepareForDoc_Impl in UpdateDescriptor ) >- // geholt, um Zeit zu sparen. >+ // Update all modifiable data between load and unload, the >+ // fixed data is only processed once (after PrepareForDoc_Impl in >+ // updateDescriptor) to save time. >+ > SfxViewFrame* pViewFrame = GetCurrentViewFrame(); > if( pViewFrame && pViewFrame->GetViewShell() ) > { >@@ -385,7 +386,7 @@ void SfxFrame::GetViewData_Impl() > pSet->Put( SfxUInt16Item( SID_VIEW_ID, pViewFrame->GetCurViewId() ) ); > if ( pChildArr ) > { >- // Bei Framesets m"ussen auch die Daten der ChildViews geholt werden >+ // For Framesets also the data from the ChildViews hace to be processed > sal_uInt16 nCount = pChildArr->Count(); > for ( sal_uInt16 n=nCount; n>0; n--) > { >@@ -400,15 +401,15 @@ void SfxFrame::GetViewData_Impl() > > void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc ) > { >- // Beim PrepareForDoc_Impl wird der Descriptor des Frames aktualisiert >- // und sein ItemSet neu initialisiert. Alle Daten, die f"ur ein sp"ateres >- // Restaurieren der View n"otig sind, sind damit festgehalten. >- // Soll das Dokument ersetzt werden, wird durch GetViewData_Impl (s.o.) >- // die neueste Information hinzugef"ugt. Alles zusammen wird dann in der >- // Browse-History gesichert. Beim Aktivieren eines solchen FramePickEntry >- // wird das komplette ItemSet und der Descriptor im OpenDoc mitgeschickt. >- // Hier werden nur die festen Eigenschaften gesichert; die "anderbaren werden >- // durch GetViewData geholt ( spart Zeit ). >+ // For PrepareForDoc_Impl frames, the descriptor of the updated >+ // and new itemset to be initialized. All data fir restoring the view >+ // are thus saved. If the document be replaced, GetViewData_Impl (so) >+ // the latest information hinzugef by "added. All together then the >+ // browser-history saved in. When you activate such frame pick entry >+ // is complete itemsets and the descriptor in the OpenDoc sent;. >+ // Here only the fixed properties identified "other adjustable, the >+ // retrieved by GetViewData (saves time). >+ > DBG_ASSERT( pDoc, "NULL-Document inserted ?!" ); > > GetParentFrame(); >@@ -420,7 +421,7 @@ void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc ) > > GetDescriptor()->SetEditable( bEditable ); > >- // FileOpen-Parameter merken >+ // Mark FileOpen parameter > SfxItemSet* pItemSet = pMed->GetItemSet(); > String aMedName( pMed->GetName() ); > >@@ -435,7 +436,7 @@ void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc ) > > SfxItemSet *pSet = GetDescriptor()->GetArgs(); > >- // Alle alten Items l"oschen >+ // Delete all old Items > pSet->ClearItem(); > > if ( pRefererItem ) >@@ -456,13 +457,13 @@ void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc ) > > void SfxFrame::SetDescriptor( SfxFrameDescriptor *pD ) > { >- DBG_ASSERT( pD, "Kein Descriptor!" ); >- DBG_ASSERT( pD != pImp->pDescr, "Descriptor ist schon gesetzt!" ); >+ DBG_ASSERT( pD, "No Descriptor!" ); >+ DBG_ASSERT( pD != pImp->pDescr, "Descriptor is already set!" ); > > if ( pImp->pDescr ) > { >- // Nur TopLevel-Frames verwalten ihren Descriptor selbst, bei den >- // anderen tut es das Frameset >+ // Only TopLevel-Frames handels their Descriptor, for the others >+ // this is done by the Frameset > if ( !pParentFrame ) > delete pImp->pDescr; > } >@@ -473,12 +474,12 @@ void SfxFrame::SetDescriptor( SfxFrameDescriptor *pD ) > > SfxFrameDescriptor* SfxFrame::GetDescriptor() const > { >- // On Demand einen FrameDescriptor anlegen; wenn es kein TopLevel-Frame >- // ist, f"uhrt es zu Fehlern, da keine g"ulige Verkettung hergestellt wird >+ // Create a FrameDescriptor On Demand; if there is no TopLevel-Frame >+ // will result in an error, as no valid link is created. > > if ( !pImp->pDescr ) > { >- DBG_ASSERT( !GetParentFrame(), "Kein TopLevel-Frame, aber kein Descriptor!" ); >+ DBG_ASSERT( !GetParentFrame(), "No TopLevel-Frame, but no Descriptor!" ); > pImp->pDescr = new SfxFrameDescriptor; > if ( GetCurrentDocument() ) > pImp->pDescr->SetURL( GetCurrentDocument()->GetMedium()->GetOrigURL() ); >@@ -492,7 +493,7 @@ void SfxFrame::GetTargetList( TargetList& rList ) const > { > if ( !GetParentFrame() ) > { >- // Einen Leerstring f"ur 'Kein Target' >+ // An empty string for 'No Target' > rList.push_back( new String() ); > rList.push_back( new String( DEFINE_CONST_UNICODE( "_top" ) ) ); > rList.push_back( new String( DEFINE_CONST_UNICODE( "_parent" ) ) ); >@@ -685,19 +686,19 @@ SfxFrameIterator::SfxFrameIterator( const SfxFrame& rFrame, sal_Bool bRecur ) > > SfxFrame* SfxFrameIterator::FirstFrame() > { >- // GetFirst beginnt die Iteration beim ersten ChildFrame >+ // GetFirst starts the iteration at the first child frame > return pFrame->GetChildFrame( 0 ); > } > > SfxFrame* SfxFrameIterator::NextFrame( SfxFrame& rPrev ) > { >- // Zuerst auf Kinder testen, wenn Rekursion erw"unscht >+ // If recursion is requested testing is done first on Children. > SfxFrame *pRet = NULL; > if ( bRecursive ) > pRet = rPrev.GetChildFrame( 0 ); > if ( !pRet ) > { >- // Anderenfalls mit den Geschwistern von rPrev weitermachen >+ // In other case continue with the siblings of rPrev > pRet = NextSibling_Impl( rPrev ); > } > >diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx >index 8778427..9a75ec1 100644 >--- a/sfx2/source/view/frame2.cxx >+++ b/sfx2/source/view/frame2.cxx >@@ -438,7 +438,6 @@ void SfxFrame::PositionWindow_Impl( const Rectangle& rWinArea ) const > { > Window *pWin = pImp->pExternalContainerWindow; > >- // Groesse setzen > const Size aAppWindow( pImp->pExternalContainerWindow->GetDesktopRectPixel().GetSize() ); > Point aPos( rWinArea.TopLeft() ); > Size aSz( rWinArea.GetSize() ); >diff --git a/sfx2/source/view/orgmgr.cxx b/sfx2/source/view/orgmgr.cxx >index c10d000..1e85aae 100644 >--- a/sfx2/source/view/orgmgr.cxx >+++ b/sfx2/source/view/orgmgr.cxx >@@ -57,26 +57,25 @@ using namespace ::com::sun::star; > > //========================================================================= > >-/* [Beschreibung] >- >- Implementierungsklasse; einzelner Eintrag in der Dateiansicht >+/* [Description] > >+ Implementation class, single entry in the file view. > */ > > struct _FileListEntry > { >- String aFileName; // Dateiname mit komplettem Pfad >- String aBaseName; // Dateiname >+ String aFileName; // File Name with complete path >+ String aBaseName; // File Name > const CollatorWrapper* pCollator; >- SfxObjectShellLock aDocShell; // ObjectShell als Ref-Klasse >+ SfxObjectShellLock aDocShell; // ObjectShell as reference class > >-//REMOVE SvStorageRef aStor; // Referenz auf Storage, wenn wir diesen geoeffnet haben >+//REMOVE SvStorageRef aStor; // Reference on Storage, if we have opened this > //uno::Reference< embed::XStorage > xStorage; > >- BOOL bFile; // als Datei auf Platte >- // (!= unbenannt1, nicht als Dok. geladen; >- // diese werden nicht gespeichert!) >- BOOL bOwner; // selbst erzeugt >+ BOOL bFile; // As File on disk >+ // (!= not processed, not loaded as document >+ // these are not saved!) >+ BOOL bOwner; // self-generated > BOOL bNoName; > BOOL bOwnFormat; > >@@ -142,22 +141,21 @@ SV_IMPL_OP_PTRARR_SORT(_SfxObjectList, _FileListEntry*) > > BOOL _FileListEntry::DeleteObjectShell() > >-/* [Beschreibung] >- >- Freigabe der DokumentShell >+/* [Description] > >- [Returnwert] TRUE: alles Ok >- FALSE: es ist ein Fehler aufgetreten (das >- Dokument konnte nicht gesichert werden) >+ Release of ther DocumentShell > >+ [Return value] TRUE: Everything is ok >+ FALSE: An error occured >+ (the document could not be saved) > */ > > { > BOOL bRet = TRUE; >- //Falls wir die Shell angelegt haben und sie veraendert wurde >+ > if(bOwner && aDocShell.Is() && aDocShell->IsModified()) > { >- //Mussten wir konvertieren? >+ // Converted? > if( bOwnFormat ) > { > if(!aDocShell->Save() ) >@@ -181,7 +179,7 @@ BOOL _FileListEntry::DeleteObjectShell() > } > else > { >- // Falls konvertiert im eigenen Format speichern >+ // If converted save in native format > INetURLObject aObj( aFileName ); > String aTitle = aObj.getName( INetURLObject::LAST_SEGMENT, true, > INetURLObject::DECODE_WITH_CHARSET ); >@@ -237,13 +235,9 @@ SfxOrganizeMgr::SfxOrganizeMgr( SfxOrganizeListBox_Impl *pLeft, > bDeleteTemplates(pTempl == 0), > bModified(0) > >-/* [Beschreibung] >- >- Konstruktor >- >- Das aktuelle Dokument wird in die Liste der Dokumente >- aufgenommen. >+/* [Description] > >+ Constructor. The current document is added to the list of documents. > */ > { > pImpl->pDocList = new SfxObjectList; >@@ -278,17 +272,17 @@ SfxOrganizeMgr::~SfxOrganizeMgr() > > SfxObjectShellRef SfxOrganizeMgr::CreateObjectShell( USHORT nIdx ) > >-/* [Beschreibung] >+/* [Description] > >- Zugriff auf die DokumentShell an der Position nIdx >+ Access to the DocumentShell at the position nIdx. > >- [Returnwert] Referenz auf die DokumentShell >+ [Return value] Reference to the DocumentShell > > */ > > { > _FileListEntry* pEntry = (*pImpl->pDocList)[nIdx]; >- // andernfalls Doc-Shell anlegen >+ // otherwise create Doc-Shell > if ( !pEntry->aDocShell.Is() ) > { > //(mba)/task SfxWaitCursor aWaitCursor; >@@ -340,14 +334,13 @@ SfxObjectShellRef SfxOrganizeMgr::CreateObjectShell( USHORT nIdx ) > > BOOL SfxOrganizeMgr::DeleteObjectShell(USHORT nIdx) > >-/* [Beschreibung] >+/* [Description] > >- Freigabe der DokumentShell an der Position nIdx >- >- [Returnwert] TRUE: alles Ok >- FALSE: es ist ein Fehler aufgetreten (das >- Dokument konnte nicht gesichert werden) >+ Release DocumentShell at position nIdx > >+ [Return value] TRUE: Everything is ok >+ FALSE: An error occured >+ (the document could not be saved) > */ > { > return (*pImpl->pDocList)[nIdx]->DeleteObjectShell(); >@@ -357,12 +350,12 @@ BOOL SfxOrganizeMgr::DeleteObjectShell(USHORT nIdx) > > SfxObjectShellRef SfxOrganizeMgr::CreateObjectShell(USHORT nRegion, > USHORT nIdx) >-/* [Beschreibung] >+/* [Description] > >- Zugriff auf die DokumentShell an der Position nIdx im Bereich >- nRegion (Dokumentvorlage) >+ Access to the DocumentShell at Position nIdx in Region >+ nRegion (Document template) > >- [Returnwert] Referenz auf die DokumentShell >+ [Return value] Reference to the DocumentShell > > */ > { >@@ -374,15 +367,14 @@ SfxObjectShellRef SfxOrganizeMgr::CreateObjectShell(USHORT nRegion, > > BOOL SfxOrganizeMgr::DeleteObjectShell(USHORT nRegion, USHORT nIdx) > >-/* [Beschreibung] >- >- Freigabe der DokumentShell an der Position nIdx im Bereich >- nRegion (Dokumentvorlage) >+/* [Description] > >- [Returnwert] TRUE: alles Ok >- FALSE: es ist ein Fehler aufgetreten (das >- Dokument konnte nicht gesichert werden) >+ Release of the DocumentShell at Position nIdx in Region >+ nRegion (Document template) > >+ [Return value] TRUE: Everything is ok >+ FALSE: An error occured >+ (the document could not be saved) > */ > > { >@@ -396,22 +388,22 @@ BOOL SfxOrganizeMgr::Copy(USHORT nTargetRegion, > USHORT nSourceRegion, > USHORT nSourceIdx) > >-/* [Beschreibung] >+/* [Description] > >- Kopieren einer Dokumentvorlage >+ Copy of a Document Template > > [Parameter] > >- USHORT nTargetRegion Index des Zielbereiches >- USHORT nTargetIdx Index Zielposition >- USHORT nSourceRegion Index des Quellbereiches >- USHORT nSourceIdx Index der zu kopierenden / z uverschiebenden >- Dokumentvorlage >+ USHORT nTargetRegion Index of the Target Region >+ USHORT nTargetIdx Index of the Target Position >+ USHORT nSourceRegion Index of the Source Region >+ USHORT nSourceIdx Index of the template to be >+ copied/moved. > >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ [Return value] Success (TRUE) or Failure (FALSE) > > >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::Copy(USHORT nTargetRegion, > USHORT nTargetIdx, >@@ -421,7 +413,7 @@ BOOL SfxOrganizeMgr::Copy(USHORT nTargetRegion, > */ > > { >- if(nSourceIdx == USHRT_MAX) // keine Verzeichnisse kopieren >+ if(nSourceIdx == USHRT_MAX) // No directories copied > return FALSE ; > const BOOL bOk = pTemplates->Copy(nTargetRegion, nTargetIdx, > nSourceRegion, nSourceIdx); >@@ -437,32 +429,30 @@ BOOL SfxOrganizeMgr::Move(USHORT nTargetRegion, > USHORT nSourceRegion, > USHORT nSourceIdx) > >-/* [Beschreibung] >+/* [Description] > >- Verschieben einer Dokumentvorlage >+ Moving a template > > [Parameter] > >- USHORT nTargetRegion Index des Zielbereiches >- USHORT nTargetIdx Index Zielposition >- USHORT nSourceRegion Index des Quellbereiches >- USHORT nSourceIdx Index der zu kopierenden / z uverschiebenden >- Dokumentvorlage >- >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ USHORT nTargetRegion Index of the Target Region >+ USHORT nTargetIdx Index of the Target Position >+ USHORT nSourceRegion Index of the Source Region >+ USHORT nSourceIdx Index of the template to be >+ copied/moved. > >+ [Return value] Success (TRUE) or Failure (FALSE) > >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::Move(USHORT nTargetRegion, > USHORT nTargetIdx, > USHORT nSourceRegion, > USHORT nSourceIdx)> >- > */ > > { >- if(nSourceIdx == USHRT_MAX) // keine Verzeichnisse verschieben >+ if(nSourceIdx == USHRT_MAX) // No directory moved > return FALSE ; > const BOOL bOk = pTemplates->Move(nTargetRegion, nTargetIdx, > nSourceRegion, nSourceIdx); >@@ -476,24 +466,21 @@ BOOL SfxOrganizeMgr::Move(USHORT nTargetRegion, > BOOL SfxOrganizeMgr::Delete(SfxOrganizeListBox_Impl *pCaller, > USHORT nRegion, USHORT nIdx) > >-/* [Beschreibung] >+/* [Description] > >- "oschen einer Dokumentvorlage >+ Delete a Document Template > > [Parameter] > >- SfxOrganizeListBox *pCaller rufende ListBox; da dieses >- Event durch das Men"u oder >- durch das Keyboard angetriggert wird, >- mu"s das Model der ListBox anschlie"send >- aktualisiert werden. >- USHORT nRegion Index des Bereiches >- USHORT nIdx Index der Dokumentvorlage >- >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ SfxOrganizeListBox *pCaller calling ListBox, since this event >+ is triggered by the menu or the >+ keyboard, the ListBox must be updated. >+ USHORT nRegion Index for Region >+ USHORT nIdx Index of Document template > >+ [Return value] Success (TRUE) or Failure (FALSE) > >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::Delete(USHORT nRegion, USHORT nIdx)> > >@@ -546,7 +533,7 @@ BOOL SfxOrganizeMgr::Delete(SfxOrganizeListBox_Impl *pCaller, > if(bOk) > { > bModified = 1; >- // zu loeschender Eintrag >+ // Entry to be deleted. > SvLBoxEntry *pEntryToDelete = pCaller->SvLBox::GetEntry(pCaller->SvLBox::GetEntry(nRegion), nIdx); > > pCaller->GetModel()->Remove(pEntryToDelete); >@@ -560,26 +547,20 @@ BOOL SfxOrganizeMgr::Delete(SfxOrganizeListBox_Impl *pCaller, > > BOOL SfxOrganizeMgr::InsertDir > ( >- SfxOrganizeListBox_Impl* pCaller,/* rufende ListBox; da dieses Event >- durch das Men"u oder durch das >- Keyboard angetriggert wird, >- mu\s das Model der ListBox >- anschlie\send aktualisiert werden */ >- const String& rText, // logischer Name des Bereiches >- USHORT nRegion // Index des Bereiches >+ SfxOrganizeListBox_Impl* pCaller, /* calling ListBox, since this event >+ is triggered by the menu or the >+ keyboard, the ListBox must be updated. */ >+ const String& rText, // logical Name of Region >+ USHORT nRegion // Index of Region > ) > >-/* [Beschreibung] >+/* [Description] > >- Einf"ugen eines Bereiches >+ Insert Region. > >+ [Return value] Success (TRUE) or Failure (FALSE) > >- [R"uckgabewert] >- >- Erfolg (TRUE) oder Mi\serfolg (FALSE) >- >- >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::InsertDir(const String &, USHORT nRegion)> > */ >@@ -604,23 +585,21 @@ BOOL SfxOrganizeMgr::InsertDir > BOOL SfxOrganizeMgr::SetName(const String &rName, > USHORT nRegion, USHORT nIdx) > >-/* [Beschreibung] >+/* [Description] > >- "Andern eines (logischen) Namens >+ Set (logical) Name > > [Parameter] > >- const String &rName der neue Name >- USHORT nRegion Index des Bereiches >- USHORT nIdx Index der Dokumentvorlage >+ const String &rName The new Name >+ USHORT nRegion Index of Region >+ USHORT nIdx Index of Document template > >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ [Return value] Success (TRUE) or Failure (FALSE) > >- >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::SetName(const String &, USHORT nRegion, USHORT nIdx)> >- > */ > > { >@@ -634,23 +613,21 @@ BOOL SfxOrganizeMgr::SetName(const String &rName, > > BOOL SfxOrganizeMgr::CopyTo(USHORT nRegion, USHORT nIdx, const String &rName) const > >-/* [Beschreibung] >+/* [Description] > >- Export einer Vorlage >+ Export of a Template > > [Parameter] > >- USHORT nRegion Index des Bereiches >- USHORT nIdx Index der Dokumentvorlage >- const String &rName Dateiname >+ USHORT nRegion Index of Region >+ USHORT nIdx Index of Document Template >+ const String &rName File name > >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ [Return value] Success (TRUE) or Failure (FALSE) > >- >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::CopyTo( USHORT nRegion, USHORT nIdx, const String &)> >- > */ > > { >@@ -662,27 +639,25 @@ BOOL SfxOrganizeMgr::CopyTo(USHORT nRegion, USHORT nIdx, const String &rName) co > BOOL SfxOrganizeMgr::CopyFrom(SfxOrganizeListBox_Impl *pCaller, > USHORT nRegion, USHORT nIdx, String &rName) > >-/* [Beschreibung] >+/* [Description] > >- Import einer Vorlage >+ Import of Document Template > > [Parameter] > >- SfxOrganizeListBox *pCaller rufende ListBox; da dieses >- Event durch das Men"u angetriggert wird, >- mu"s das Model der ListBox anschlie"send >- aktualisiert werden. >- USHORT nRegion Index des Bereiches >- USHORT nIdx Index der Dokumentvorlage >- String &rName Dateiname >+ SfxOrganizeListBox *pCaller calling ListBox, since this event >+ is triggered by the menu or the >+ keyboard, the ListBox must be updated. > >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ USHORT nRegion Index of Region >+ USHORT nIdx Index of Document Template >+ String &rName File name > >+ [Return value] Success (TRUE) or Failure (FALSE) > >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::CopyFrom( USHORT nRegion, USHORT nIdx, const String &)> >- > */ > > { >@@ -691,7 +666,7 @@ BOOL SfxOrganizeMgr::CopyFrom(SfxOrganizeListBox_Impl *pCaller, > pParent = pCaller->GetParent(pParent); > if( pTemplates->CopyFrom( nRegion, nIdx, rName ) ) > { >- // pCaller aktualisieren >+ // Update pCaller > if( nIdx == USHRT_MAX ) > nIdx = 0; > else nIdx++; >@@ -715,20 +690,19 @@ BOOL SfxOrganizeMgr::CopyFrom(SfxOrganizeListBox_Impl *pCaller, > > BOOL SfxOrganizeMgr::InsertFile( SfxOrganizeListBox_Impl* pCaller, const String& rFileName ) > >-/* [Beschreibung] >+/* [Description] > >- Eine Datei in der Dateiansicht hinzuf"ugen >+ Insert a file in the file view. > > [Parameter] > >- SfxOrganizeListBox *pCaller rufende ListBox; da dieses >- Event durch das Men"u angetriggert wird, >- mu"s das Model der ListBox anschlie"send >- aktualisiert werden. >- const String &rFileName Name der hinzuf"ugenden Datei >+ SfxOrganizeListBox *pCaller calling ListBox, since this event >+ is triggered by the menu or the >+ keyboard, the ListBox must be updated. > >- [R"uckgabewert] Erfolg (TRUE) oder Mi"serfolg (FALSE) >+ const String &rFileName Name of inserted File. > >+ [Return value] Success (TRUE) or Failure (FALSE) > */ > > { >@@ -749,16 +723,16 @@ BOOL SfxOrganizeMgr::InsertFile( SfxOrganizeListBox_Impl* pCaller, const String& > > BOOL SfxOrganizeMgr::Rescan() > >-/* [Beschreibung] >+/* [Description] > >- Aktualisieren der Datenbasis >+ Updating the database. > >- [R"uckgabewert] >+ [Return value] > >- TRUE es bestanden Unterschiede >- FALSE keine "Anderung >+ TRUE Changes were made >+ FALSE No changes > >- [Querverweise] >+ [Cross-reference] > > <SfxDocumentTemplates::Rescan()> > */ >@@ -776,14 +750,13 @@ BOOL SfxOrganizeMgr::Rescan() > > void SfxOrganizeMgr::SaveAll(Window *pParent) > >-/* [Beschreibung] >+/* [Description] > >- Schreiben aller ge"anderten Dokumente >+ Save all Documents that have been modified > > [Parameter] > >- Window *pParent Parent der Boxen f"ur Fehlermeldungen >- >+ Window *pParent Parent of the Error message Box > */ > > { >diff --git a/sfx2/source/view/printer.cxx b/sfx2/source/view/printer.cxx >index d3c56d5..0aa7452 100644 >--- a/sfx2/source/view/printer.cxx >+++ b/sfx2/source/view/printer.cxx >@@ -46,7 +46,7 @@ > #include "view.hrc" > > #ifdef MSC >-// der ist buggy >+// this one is buggy > #define NEW_OBJECTS(Class, nCount) ((Class*) new char[ sizeof(Class) * (nCount) ]) > #else > #define NEW_OBJECTS(Class, nCount) (new Class[nCount]) >@@ -121,7 +121,7 @@ SfxFontSizeInfo::SfxFontSizeInfo( const SfxFont &rFont, > aFont.SetPitch(rFont.GetPitch()); > aFont.SetCharSet(rFont.GetCharSet()); > >- // verfuegbare Groessen in die Liste eintragen, Groesse in 10tel Punkt >+ // Add available sizes to the list, size in tenths of a point > int nSizeCount = rDev.GetDevFontSizeCount(aFont); > pSizes = NEW_OBJECTS(Size, nSizeCount); > const MapMode aOldMapMode = rDev.GetMapMode(); >@@ -132,8 +132,8 @@ SfxFontSizeInfo::SfxFontSizeInfo( const SfxFont &rFont, > aMap.SetScaleY(aTen); > rDev.SetMapMode(aMap); > >- // Es gibt Fonts mit Bitmaps und skalierbaren Groessen >- // In diesem Fall wird der Fonts als skalierbar behandelt. >+ // There are fonts with bitmaps and scalable sizes >+ // In this case the fonts arehandled as scalable > BOOL bFoundScalable = FALSE; > for ( int i = 0; i < nSizeCount; ++i ) > { >@@ -147,7 +147,7 @@ SfxFontSizeInfo::SfxFontSizeInfo( const SfxFont &rFont, > bScalable = FALSE; > else > { >- // statische Font-Sizes verwenden >+ // Static Font-Sizes are used > delete [] pSizes; > nSizes = 0; > } >@@ -197,23 +197,23 @@ SfxFont::SfxFont( const FontFamily eFontFamily, const String& aFontName, > > SfxPrinter* SfxPrinter::Create( SvStream& rStream, SfxItemSet* pOptions ) > >-/* [Beschreibung] >+/* [Description] > >- Erzeugt einen <SfxPrinter> aus dem Stream. Geladen wird genaugenommen >- nur ein JobSetup. Falls ein solcher Drucker auf dem System nicht >- verf"augbar ist, wird das Original als Orig-JobSetup gemerkt und >- ein "anhlicher exisitierender Drucker genommen. >+ Creates a <SfxPrinter> from the stream. Loading is really only a jobsetup. >+ If such a printer is not available on the system, then the original is >+ marked as the original Job-setup and a comparable printer is selected from >+ existing ones. > >- Die 'pOptions' werden in den erzeugten SfxPrinter "ubernommen, >- der Returnwert geh"ort dem Caller. >+ The 'pOptions' are taken over in the generated SfxPrinter, the return >+ value belongs to the caller. > */ > > { >- // JobSetup laden >+ // Load JobSetup > JobSetup aFileJobSetup; > rStream >> aFileJobSetup; > >- // Drucker erzeugen >+ // Get printers > SfxPrinter *pPrinter = new SfxPrinter( pOptions, aFileJobSetup ); > return pPrinter; > } >@@ -222,9 +222,9 @@ SfxPrinter* SfxPrinter::Create( SvStream& rStream, SfxItemSet* pOptions ) > > SvStream& SfxPrinter::Store( SvStream& rStream ) const > >-/* [Beschreibung] >+/* [Description] > >- Speichert das verwendete JobSetup des <SfxPrinter>s. >+ Saves the used JobSetup of <SfxPrinter>s. > */ > > { >@@ -235,9 +235,9 @@ SvStream& SfxPrinter::Store( SvStream& rStream ) const > > SfxPrinter::SfxPrinter( SfxItemSet* pTheOptions ) : > >-/* [Beschreibung] >+/* [Description] > >- Dieser Ctor erzeugt einen Standard-Drucker. >+ This constructor creates a default printer. > */ > > pOptions( pTheOptions ), >@@ -408,8 +408,8 @@ void SfxPrinter::UpdateFonts_Impl() > VirtualDevice *pVirDev = 0; > const OutputDevice *pOut = this; > >- // falls kein Drucker gefunden werden konnte, ein >- // temp. Device erzeugen fuer das Erfragen der Fonts >+ // If no printer was found, a temporay device is created >+ // for queries about fonts > if( !IsValid() ) > pOut = pVirDev = new VirtualDevice; > >@@ -430,7 +430,7 @@ void SfxPrinter::UpdateFonts_Impl() > else if ( FONTS()->Count() == 0 || > (*FONTS())[FONTS()->Count()-1]->GetName() != aFont.GetName() ) > { >- DBG_ASSERT(0 == SfxFindFont_Impl(*FONTS(), aFont.GetName()), "Doppelte Fonts vom SV-Device!"); >+ DBG_ASSERT(0 == SfxFindFont_Impl(*FONTS(), aFont.GetName()), "Double Fonts from SV-Device!"); > SfxFont* pTmp = new SfxFont( aFont.GetFamily(), aFont.GetName(), > aFont.GetPitch(), aFont.GetCharSet() ); > FONTS()->C40_INSERT(SfxFont, pTmp, FONTS()->Count()); >@@ -465,7 +465,7 @@ USHORT SfxPrinter::GetFontCount() > > const SfxFont* SfxPrinter::GetFont( USHORT nNo ) const > { >- DBG_ASSERT( FONTS(), "bitte erst GetFontCount() abfragen!" ); >+ DBG_ASSERT( FONTS(), "First, please check GetFontCount()!" ); > return (*FONTS())[ nNo ]; > } > >@@ -538,7 +538,7 @@ SfxPrintOptionsDialog::SfxPrintOptionsDialog( Window *pParent, > { > SetText( SfxResId( STR_PRINT_OPTIONS_TITLE ) ); > >- // TabPage einh"angen >+ // Insert TabPage > pPage = pViewSh->CreatePrintOptionsPage( this, *pOptions ); > DBG_ASSERT( pPage, "CreatePrintOptions != SFX_VIEW_HAS_PRINTOPTIONS" ); > if( pPage ) >@@ -548,7 +548,7 @@ SfxPrintOptionsDialog::SfxPrintOptionsDialog( Window *pParent, > pPage->Show(); > } > >- // Dialoggr"o\se bestimmen >+ // Set dialog size > Size a6Sz = LogicToPixel( Size( 6, 6 ), MAP_APPFONT ); > Size aBtnSz = LogicToPixel( Size( 50, 14 ), MAP_APPFONT ); > Size aOutSz( pPage ? pPage->GetSizePixel() : Size() ); >@@ -557,7 +557,7 @@ SfxPrintOptionsDialog::SfxPrintOptionsDialog( Window *pParent, > nWidth += a6Sz.Width(); > aOutSz.Width() += nWidth; > if ( aOutSz.Height() < 90 ) >- // mindestens die H"ohe der 3 Buttons >+ // at least the height of the 3 buttons > aOutSz.Height() = 90; > SetOutputSizePixel( aOutSz ); > >diff --git a/sfx2/source/view/prnmon.cxx b/sfx2/source/view/prnmon.cxx >index 6bab763..7c91261 100644 >--- a/sfx2/source/view/prnmon.cxx >+++ b/sfx2/source/view/prnmon.cxx >@@ -213,7 +213,7 @@ SfxPrintProgress_Impl::~SfxPrintProgress_Impl() > > BOOL SfxPrintProgress_Impl::SetPage( USHORT nPage, const String &rPage ) > { >- // wurde der Druckauftrag abgebrochen? >+ // Was the print job canceled? > if ( bCancel || !pMonitor ) > return FALSE; > >@@ -291,10 +291,10 @@ SfxPrintProgress::SfxPrintProgress( SfxViewShell* pViewSh, bool bShow ) > > SfxPrintProgress::~SfxPrintProgress() > { >- // k"onnte auch schon weg sein (in EndPrintNotify) >+ // Can already have been deleted (in EndPrintNotify) > DELETEZ(pImp->pMonitor); > >- // ggf. Callbacks entfermen >+ // If possible remove Callbacks > if ( pImp->bCallbacks ) > { > // pImp->pPrinter->SetEndPrintHdl( Link() ); >@@ -302,11 +302,11 @@ SfxPrintProgress::~SfxPrintProgress() > pImp->bCallbacks = FALSE; > } > >- // ggf. vorherigen Drucker wieder einsetzen >+ // If possible use the previously used printer > if ( pImp->pOldPrinter ) > pImp->pViewShell->SetPrinter( pImp->pOldPrinter, SFX_PRINTER_PRINTER ); > else >- // ggf. vorherigen Print-To-File-Status zuruecksetzen >+ // If possible reset Print-To-File-Status > pImp->pViewShell->GetPrinter()->EnablePrintFile( pImp->bOldEnablePrintFile ); > > // EndPrint-Notification an Frame >@@ -395,21 +395,21 @@ IMPL_LINK( SfxPrintProgress, EndPrintNotify, void *, EMPTYARG ) > pViewShell->Invalidate( SID_PRINTDOCDIRECT ); > pViewShell->Invalidate( SID_SETUPPRINTER ); > >- // . . . falls der Printer im System umgestellt wurde, hier Aenderung >- // nachziehen. >+ // . . . if the printer has been changed in the system, >+ // follow up on the change here. > //! if( pMDI->IsPrinterChanged() ) pMDI->Changed( 0L ); > >- // Callbacks rausnehmen >+ // Check out Callbacks > // pImp->pPrinter->SetEndPrintHdl( Link() ); > pImp->pPrinter->SetErrorHdl( Link() ); > pImp->bCallbacks = FALSE; > >- // ggf. alten Printer wieder einsetzen >+ // If possible insert the old Printer again. > if ( pImp->pOldPrinter ) > { >- // Fix #59613#: niemals den aktuellen Printer synchron abschiessen ! >- // Da sowieso immer bDeleteOnEndPrint gesetzt wird, wird der der Drucker im >- // dtor vom Printprogress ( dann aber asynchron !! ) zur"uckgesetzt. >+ // Fix #59613#: never shutdown the printer synchronous! >+ // Since the bDeleteOnEndPrint is set anyway, the printer is reset >+ // by Printprogress (however asynchronously !!) in the destructor. > /* > pImp->pViewShell->SetPrinter( pImp->pOldPrinter, SFX_PRINTER_PRINTER ); > pImp->pOldPrinter = 0; >@@ -417,7 +417,7 @@ IMPL_LINK( SfxPrintProgress, EndPrintNotify, void *, EMPTYARG ) > */ > } > else >- // ggf. vorherigen Print-To-File-Status zuruecksetzen >+ // If possible reset previous Print-To-File-Status. > pViewShell->GetPrinter()->EnablePrintFile( pImp->bOldEnablePrintFile ); > > // it is possible that after printing the document or view is deleted (because the VieShell got the ownership) >@@ -444,11 +444,11 @@ IMPL_LINK( SfxPrintProgress, EndPrintNotify, void *, EMPTYARG ) > > void SfxPrintProgress::DeleteOnEndPrint() > { >- UnLock(); // jetzt schon, wg. Drucken im Thread >+ UnLock(); // Already now because printer in Thread. > #ifndef WNT >- // da das Drucken im 'Thread' unter Windows zu undefiniert ist bleibt der >- // Print-Monitor dort stehen, auf den anderen Plattformen kann man dann >- // weiterarbeiten, also kommt das Teil weg >+ // As the print in the 'Thread' is undefined on Windows, the Print-Monitor >+ // will get stuck here, on the other platforms the work can continue, >+ // thus this part is removed. > DELETEZ( pImp->pMonitor ); > #endif > >diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx >index 8f8d6c6..c9dc48a 100644 >--- a/sfx2/source/view/sfxbasecontroller.cxx >+++ b/sfx2/source/view/sfxbasecontroller.cxx >@@ -692,7 +692,7 @@ sal_Bool SAL_CALL SfxBaseController::suspend( sal_Bool bSuspend ) throw( ::com:: > getFrame()->removeFrameActionListener( m_pData->m_xListener ) ; > SfxViewFrame* pActFrame = m_pData->m_pViewShell->GetFrame() ; > >- // weitere View auf dasselbe Doc? >+ // More Views on the same document? > SfxObjectShell* pDocShell = m_pData->m_pViewShell->GetObjectShell() ; > sal_Bool bOther = sal_False ; > >@@ -1209,7 +1209,7 @@ throw (::com::sun::star::uno::RuntimeException) > SfxSlotPool* pSlotPool = pPool ? pPool : &SFX_SLOTPOOL(); > const ULONG nMode( SFX_SLOT_TOOLBOXCONFIG|SFX_SLOT_ACCELCONFIG|SFX_SLOT_MENUCONFIG ); > >- // Gruppe anw"ahlen ( Gruppe 0 ist intern ) >+ // Select Group ( Group 0 is internal ) > for ( USHORT i=0; i<pSlotPool->GetGroupCount(); i++ ) > { > String aName = pSlotPool->SeekGroup( i ); >@@ -1400,7 +1400,7 @@ void SfxBaseController::ConnectSfxFrame_Impl( const ConnectSfxFrame i_eConnect ) > rFrame.GetWindow().Show(); > } > >- // Jetzt UpdateTitle, hidden TopFrames haben sonst keinen Namen! >+ // UpdateTitle now, hidden TopFrames have otherwise no Name! > pViewFrame->UpdateTitle(); > > if ( !rFrame.IsInPlace() ) >diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx >index 820b8d6..d5162ed 100644 >--- a/sfx2/source/view/viewfrm.cxx >+++ b/sfx2/source/view/viewfrm.cxx >@@ -109,7 +109,7 @@ using ::com::sun::star::document::XViewDataSupplier; > using ::com::sun::star::container::XIndexContainer; > namespace css = ::com::sun::star; > >-// wg. ViewFrame::Current >+// Due to ViewFrame::Current > #include "appdata.hxx" > #include <sfx2/taskpane.hxx> > #include <sfx2/app.hxx> >@@ -307,7 +307,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > SfxFrame *pParent = GetFrame().GetParentFrame(); > if ( rReq.GetSlot() == SID_RELOAD ) > { >- // Bei CTRL-Reload den aktiven Frame reloaden >+ // When CTRL-Reload, reload the active Frame > SfxViewFrame* pActFrame = this; > while ( pActFrame ) > pActFrame = pActFrame->GetActiveChildFrame_Impl(); >@@ -322,8 +322,8 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > } > } > >- // Wenn nur ein Reload der Graphiken eines oder mehrerer ChildFrames >- // gemacht werden soll >+ // If only a reload of the graphics for one or more child frames >+ // should be made > SfxFrame& rFrame = GetFrame(); > if ( pParent == &rFrame && rFrame.GetChildFrameCount() ) > { >@@ -342,14 +342,14 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > pChild = pNext; > } > >- // Der TopLevel-Frame selbst het keine Graphiken! >+ // The top level frame itself has no graphics! > if ( bReloadAvailable ) > return; > } > } > else > { >- // Bei CTRL-Edit den TopFrame bearbeiten >+ // When CTRL-Edit, edit the TopFrame. > sal_uInt16 nModifier = rReq.GetModifier(); > > if ( ( nModifier & KEY_MOD1 ) && pParent ) >@@ -368,9 +368,9 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > if ( GetFrame().HasComponent() ) > break; > >- // Wg. Doppeltbelegung in Toolboxen (mit/ohne Ctrl) ist es auch >- // m"oglich, da\s der Slot zwar enabled ist, aber Ctrl-Click >- // trotzdem nicht geht! >+ // Due to Double occupancy in toolboxes (with or without Ctrl), >+ // it is also possible that the slot is enabled, but Ctrl-click >+ // despite this is not! > if( !pSh || !pSh->HasName() || !(pSh->Get_Impl()->nLoadedFlags & SFX_LOADED_MAINDOCUMENT )) > break; > >@@ -407,7 +407,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > sal_Bool bNeedsReload = sal_False; > if ( !pSh->IsReadOnly() ) > { >- // Speichern und Readonly Reloaden >+ // Save and reload Readonly > if( pSh->IsModified() ) > { > if ( pSh->PrepareClose() ) >@@ -450,11 +450,11 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > return; > } > >- // Parameter auswerten >+ // Evaluate Parameter > // sal_Bool bReload = sal_True; > if ( rReq.IsAPI() ) > { >- // per API steuern ob r/w oder r/o >+ // Control through API if r/w or r/o > SFX_REQUEST_ARG(rReq, pEditItem, SfxBoolItem, SID_EDITDOC, sal_False); > if ( pEditItem ) > nOpenMode = pEditItem->GetValue() ? SFX_STREAM_READWRITE : SFX_STREAM_READONLY; >@@ -518,12 +518,12 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > pSh->DoSaveCompleted( pMed ); > } > >- // r/o-Doc kann nicht in Editmode geschaltet werden? >+ // Readonly document can not be switched to edit mode? > rReq.Done( sal_False ); > > if ( nOpenMode == SFX_STREAM_READWRITE && !rReq.IsAPI() ) > { >- // dem ::com::sun::star::sdbcx::User anbieten, als Vorlage zu oeffnen >+ // ::com::sun::star::sdbcx::User offering to open it as a template > QueryBox aBox( &GetWindow(), SfxResId(MSG_QUERY_OPENASTEMPLATE) ); > if ( RET_YES == aBox.Execute() ) > { >@@ -576,9 +576,9 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > > case SID_RELOAD: > { >- // Wg. Doppeltbelegung in Toolboxen (mit/ohne Ctrl) ist es auch >- // m"oglich, da\s der Slot zwar enabled ist, aber Ctrl-Click >- // trotzdem nicht geht! >+ // Due to Double occupancy in toolboxes (with or without Ctrl), >+ // it is also possible that the slot is enabled, but Ctrl-click >+ // despite this is not! > if ( !pSh || !pSh->CanReload_Impl() ) > break; > SfxApplication* pApp = SFX_APP(); >@@ -590,7 +590,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > if( pImp->bReloading || pSh->IsInModalMode() ) > return; > >- // AutoLoad ist ggf. verboten >+ // AutoLoad is prohibited if possible > SFX_REQUEST_ARG(rReq, pAutoLoadItem, SfxBoolItem, SID_AUTOLOAD, sal_False); > if ( pAutoLoadItem && pAutoLoadItem->GetValue() && > GetFrame().IsAutoLoadLocked_Impl() ) >@@ -600,12 +600,12 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > pImp->bReloading = sal_True; > SFX_REQUEST_ARG(rReq, pURLItem, SfxStringItem, > SID_FILE_NAME, sal_False); >- // editierbar "offnen? >+ // Open as editable? > sal_Bool bForEdit = !pSh->IsReadOnly(); > if ( rReq.GetSlot() == SID_EDITDOC ) > bForEdit = !bForEdit; > >- // ggf. beim User nachfragen >+ // If possible ask the User > sal_Bool bDo = ( GetViewShell()->PrepareClose() != FALSE ); > SFX_REQUEST_ARG(rReq, pSilentItem, SfxBoolItem, SID_SILENT, sal_False); > if ( bDo && GetFrame().DocIsModified_Impl() && >@@ -619,15 +619,15 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > { > SfxMedium *pMedium = xOldObj->GetMedium(); > >- // Frameset abziehen, bevor FramesetView evtl. verschwindet >+ // Remove Frameset before the FramesetView may disappear > String aURL = pURLItem ? pURLItem->GetValue() : > pMedium->GetName(); > > sal_Bool bHandsOff = > ( pMedium->GetURLObject().GetProtocol() == INET_PROT_FILE && !xOldObj->IsDocShared() ); > >- // bestehende SfxMDIFrames f"ur dieses Doc leeren >- // eigenes Format oder R/O jetzt editierbar "offnen? >+ // Emty existing SfxMDIFrames for this Document >+ // in native format or R/O, open it now for editing? > SfxObjectShellLock xNewObj; > > // collect the views of the document >@@ -680,9 +680,8 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > pNewSet->ClearItem( SID_DOC_READONLY ); > } > >- // Falls eine salvagede Datei vorliegt, nicht nochmals die >- // OrigURL mitschicken, denn die Tempdate ist nach Reload >- // ungueltig >+ // If a salvaged file is present, do not enclose the OrigURL >+ // again, since the Tempdate is iinvalid after reload. > SFX_ITEMSET_ARG( pNewSet, pSalvageItem, SfxStringItem, SID_DOC_SALVAGE, sal_False); > if( pSalvageItem ) > { >@@ -691,7 +690,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > } > > // TODO/LATER: Temporary solution, the SfxMedium must know the original URL as aLogicName >- // SfxMedium::Transfer_Impl() will be vorbidden then. >+ // SfxMedium::Transfer_Impl() will be forbidden then. > if ( xOldObj->IsDocShared() ) > pNewSet->Put( SfxStringItem( SID_FILE_NAME, xOldObj->GetSharedFileURL() ) ); > >@@ -704,7 +703,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > > xOldObj->CancelTransfers(); > >- // eigentliches Reload >+ // Real Reload > //pNewSet->Put( SfxFrameItem ( SID_DOCFRAME, GetFrame() ) ); > > if ( pSilentItem && pSilentItem->GetValue() ) >@@ -727,8 +726,8 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > pNewSet->Put( SfxUInt16Item(SID_UPDATEDOCMODE,::com::sun::star::document::UpdateDocMode::ACCORDING_TO_CONFIG) ); > > xOldObj->SetModified( sal_False ); >- // Altes Dok nicht cachen! Gilt nicht, wenn anderes >- // Doc geladen wird. >+ // Do not chache the old Document! Is invalid when loading >+ // another document. > > SFX_ITEMSET_ARG( pMedium->GetItemSet(), pSavedOptions, SfxStringItem, SID_FILE_FILTEROPTIONS, sal_False); > SFX_ITEMSET_ARG( pMedium->GetItemSet(), pSavedReferer, SfxStringItem, SID_REFERER, sal_False); >@@ -857,14 +856,14 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) > SFX_APP()->NotifyEvent( SfxEventHint( SFX_EVENT_CLOSEDOC, GlobalEventConfig::GetEventName( STR_EVENT_CLOSEDOC ), xOldObj ) ); > } > >- // als erledigt recorden >+ // Record as done > rReq.Done( sal_True ); > rReq.SetReturnValue(SfxBoolItem(rReq.GetSlot(), sal_True)); > return; > } > else > { >- // als nicht erledigt recorden >+ // Record as not done > rReq.Done(); > rReq.SetReturnValue(SfxBoolItem(rReq.GetSlot(), sal_False)); > pImp->bReloading = sal_False; >@@ -879,7 +878,7 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) > { > SfxObjectShell* pSh = GetObjectShell(); > if ( !pSh ) >- // Ich bin gerade am Reloaden und Yielde so vor mich hin ... >+ // I'm just on reload and am yielding myself ... > return; > > GetFrame().GetParentFrame(); >@@ -888,8 +887,8 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) > { > if ( GetFrame().HasComponent() ) > { >- // Wenn die Komponente es nicht selbst dispatched, dann >- // macht es auch keinen Sinn! >+ // If the component is not self-dispatched, then >+ // it makes no sense! > rSet.DisableItem( nWhich ); > continue; > } >@@ -920,8 +919,8 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) > rSet.DisableItem(nWhich); > else > { >- // Wenn irgendein ChildFrame reloadable ist, wird der Slot >- // enabled, damit man CTRL-Reload machen kann >+ // If any ChildFrame is reloadable, the slot is enabled, >+ // so you can perfom CTRL-Reload > sal_Bool bReloadAvailable = sal_False; > SfxFrameIterator aFrameIter( *pFrame, sal_True ); > for( SfxFrame* pNextFrame = aFrameIter.FirstFrame(); >@@ -951,7 +950,7 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) > //-------------------------------------------------------------------- > void SfxViewFrame::ExecHistory_Impl( SfxRequest &rReq ) > { >- // gibt es an der obersten Shell einen Undo-Manager? >+ // Is there an Undo-Manager on the top Shell? > SfxShell *pSh = GetDispatcher()->GetShell(0); > SfxUndoManager* pShUndoMgr = pSh->GetUndoManager(); > sal_Bool bOK = sal_False; >@@ -985,7 +984,7 @@ void SfxViewFrame::ExecHistory_Impl( SfxRequest &rReq ) > } > else if ( GetViewShell() ) > { >- // der SW hat eigenes Undo an der View >+ // The SW has its own undo in the View > const SfxPoolItem *pRet = GetViewShell()->ExecuteSlot( rReq ); > if ( pRet ) > bOK = ((SfxBoolItem*)pRet)->GetValue(); >@@ -998,16 +997,16 @@ void SfxViewFrame::ExecHistory_Impl( SfxRequest &rReq ) > //-------------------------------------------------------------------- > void SfxViewFrame::StateHistory_Impl( SfxItemSet &rSet ) > { >- // Undo-Manager suchen >+ // Search for Undo-Manager > SfxShell *pSh = GetDispatcher()->GetShell(0); > if ( !pSh ) >- // Ich bin gerade am Reloaden und Yielde so vor mich hin ... >+ // I'm just on reload and am yielding myself ... > return; > > SfxUndoManager *pShUndoMgr = pSh->GetUndoManager(); > if ( !pShUndoMgr ) > { >- // der SW hat eigenes Undo an der View >+ // The SW has its own undo in the View > SfxWhichIter aIter( rSet ); > SfxViewShell *pViewSh = GetViewShell(); > if( !pViewSh ) return; >@@ -1076,20 +1075,19 @@ void SfxViewFrame::PopShellAndSubShells_Impl( SfxViewShell& i_rViewShell ) > //-------------------------------------------------------------------- > void SfxViewFrame::ReleaseObjectShell_Impl() > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode entleert den SfxViewFrame, d.h. nimmt die <SfxObjectShell> >- vom Dispatcher und beendet seine <SfxListener>-Beziehung zu dieser >- SfxObjectShell (wodurch sie sich ggf. selbst zerst"ort). >+ This method empties the SfxViewFrame, i.e. takes the <SfxObjectShell> >+ from the dispatcher and ends its <SfxListener> Relationship to this >+ SfxObjectShell (by which they may even destroy themselves). > >- Somit kann durch Aufruf von ReleaseObjectShell() und SetObjectShell() >- die SfxObjectShell ausgetauscht werden. >+ Thus, by invoking ReleaseObjectShell() and SetObjectShell() the >+ SfxObjectShell can be replaced. > >- Zwischen RealeaseObjectShell() und SetObjectShell() darf die Kontrolle >- nicht an das System abgegeben werden. >+ Between RealeaseObjectShell() and SetObjectShell() can the control not >+ be handed over to the system. > >- >- [Querverweise] >+ [Cross-reference] > > <SfxViewFrame::SetObjectShell(SfxObjectShell&)> > */ >@@ -1114,7 +1112,7 @@ void SfxViewFrame::ReleaseObjectShell_Impl() > } > #ifdef DBG_UTIL > else >- DBG_ERROR("Keine Shell"); >+ DBG_ERROR("No Shell"); > #endif > > if ( xObjSh.Is() ) >@@ -1153,8 +1151,8 @@ sal_Bool SfxViewFrame::Close() > > DBG_ASSERT( GetFrame().IsClosing_Impl() || !GetFrame().GetFrameInterface().is(), "ViewFrame closed too early!" ); > >- // Wenn bis jetzt noch nicht gespeichert wurde, sollen eingebettete Objekte >- // auch nicht mehr automatisch gespeichert werden! >+ // If no saving have been made up until now, then embedded Objects should >+ // not be saved automatically anymore. > if ( GetViewShell() ) > GetViewShell()->DiscardClients_Impl(); > Broadcast( SfxSimpleHint( SFX_HINT_DYING ) ); >@@ -1162,8 +1160,8 @@ sal_Bool SfxViewFrame::Close() > if (SfxViewFrame::Current() == this) > SfxViewFrame::SetViewFrame( NULL ); > >- // Da der Dispatcher leer ger"aumt wird, kann man ihn auch nicht mehr >- // vern"unftig verwenden - also besser still legen >+ // Since the Dispatcher is emptied, it can not be used in any reasnable >+ // manner, thus it is better to let the dispatcher be. > GetDispatcher()->Lock(sal_True); > delete this; > >@@ -1183,8 +1181,8 @@ void SfxViewFrame::DoActivate( sal_Bool bUI, SfxViewFrame* pOldFrame ) > > pDispatcher->DoActivate_Impl( bUI, pOldFrame ); > >- // Wenn ich einen parent habe und dieser ist kein parent des alten >- // ViewFrames, erh"alt er ein ParentActivate >+ // If this ViewFrame has got a parent and this is not a parent of the >+ // old ViewFrames, it gets a ParentActivate. > if ( bUI ) > { > /* >@@ -1220,8 +1218,8 @@ void SfxViewFrame::DoDeactivate(sal_Bool bUI, SfxViewFrame* pNewFrame ) > SFX_APP(); > pDispatcher->DoDeactivate_Impl( bUI, pNewFrame ); > >- // Wenn ich einen parent habe und dieser ist kein parent des neuen >- // ViewFrames, erh"alt er ein ParentDeactivate >+ // If this ViewFrame has got a parent and this is not a parent of the >+ // new ViewFrames, it gets a ParentDeactivate. > if ( bUI ) > { > // if ( GetFrame().GetWorkWindow_Impl() ) >@@ -1348,7 +1346,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) > if ( !xObjSh.Is() ) > break; > >- // r/o Umschaltung? >+ // Switch r/o? > SfxBindings& rBind = GetBindings(); > rBind.Invalidate( SID_RELOAD ); > SfxDispatcher *pDispat = GetDispatcher(); >@@ -1356,7 +1354,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) > sal_Bool bIsReadOnly = xObjSh->IsReadOnly(); > if ( !bWasReadOnly != !bIsReadOnly ) > { >- // Dann auch TITLE_CHANGED >+ // Then also TITLE_CHANGED > UpdateTitle(); > rBind.Invalidate( SID_FILE_NAME ); > rBind.Invalidate( SID_DOCINFO_TITLE ); >@@ -1365,11 +1363,12 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) > pDispat->GetBindings()->InvalidateAll(sal_True); > pDispat->SetReadOnly_Impl( bIsReadOnly ); > >- // Dispatcher-Update nur erzwingen, wenn es nicht sowieso >- // demn"achst kommt, anderenfalls ist Zappelei oder gar >- // GPF m"oglich, da Writer z.B. gerne mal im Resize irgendwelche >- // Aktionen t"atigt, die ein SetReadOnlyUI am Dispatcher zur >- // Folge haben! >+ // Only force and Dispatcher-Update, if it is done next >+ // anyway, otherwise flickering or GPF is possibel since >+ // the Writer for example prefers in Resize preform some >+ // actions which has a SetReadOnlyUI in Dispatcher as a >+ // result! >+ > if ( pDispat->IsUpdated_Impl() ) > pDispat->Update_Impl(sal_True); > } >@@ -1404,9 +1403,9 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) > } > else if ( rHint.IsA(TYPE(SfxEventHint)) ) > { >- // Wenn das Document asynchron geladen wurde, wurde der Dispatcher >- // auf ReadOnly gesetzt, was zur"?ckgenommen werden mu\s, wenn >- // das Document selbst nicht ReadOnly ist und das Laden fertig ist. >+ // When the Document is loaded asynchronously, was the Dispatcher >+ // set as ReadOnly, to what must be returned when the document itself >+ // is not read only, and the loading is finished. > switch ( ((SfxEventHint&)rHint).GetEventId() ) > { > case SFX_EVENT_MODIFYCHANGED: >@@ -1430,8 +1429,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) > rBind.Invalidate( SID_EDITDOC ); > if ( !xObjSh->IsReadOnly() ) > { >- // Im Gegensatz zu oben (TITLE_CHANGED) mu\s das UI nicht >- // upgedated werden, da es nicht gehidet war! >+ // In contrast to above (TITLE_CHANGED) does the UI not >+ // have to be updated because it was not obstructed > > // #i21560# InvalidateAll() causes the assertion > // 'SfxBindings::Invalidate while in update" when >@@ -1504,7 +1503,7 @@ void SfxViewFrame::Construct_Impl( SfxObjectShell *pObjSh ) > pDispatcher->Flush(); > } > >- SfxViewFrame *pThis = this; // wegen der kranken Array-Syntax >+ SfxViewFrame *pThis = this; // this due to the sick Array syntax > SfxViewFrameArr_Impl &rViewArr = SFX_APP()->GetViewFrames_Impl(); > rViewArr.C40_INSERT(SfxViewFrame, pThis, rViewArr.Count() ); > } >@@ -1515,11 +1514,11 @@ SfxViewFrame::SfxViewFrame > SfxObjectShell* pObjShell > ) > >-/* [Beschreibung] >+/* [Description] > >- Ctor des SfxViewFrame f"ur eine <SfxObjectShell> aus der Ressource. >- Die 'nViewId' der zu erzeugenden <SfxViewShell> kann angegeben werden >- (default ist die zuerst registrierte SfxViewShell-Subklasse). >+ Constructor of SfxViewFrame for a <SfxObjectShell> from the Resource. >+ The 'nViewId' to the created <SfxViewShell> can be returned. >+ (default is the SfxViewShell-Subclass that was registered first). > */ > > : pImp( new SfxViewFrame_Impl( rFrame ) ) >@@ -1552,7 +1551,7 @@ SfxViewFrame::~SfxViewFrame() > ReleaseObjectShell_Impl(); > > if ( GetFrame().OwnsBindings_Impl() ) >- // Die Bindings l"oscht der Frame! >+ // The Bindings delete the Frame! > KillDispatcher_Impl(); > > delete pImp->pWindow; >@@ -1560,13 +1559,13 @@ SfxViewFrame::~SfxViewFrame() > if ( GetFrame().GetCurrentViewFrame() == this ) > GetFrame().SetCurrentViewFrame_Impl( NULL ); > >- // von Frame-Liste abmelden >+ // Unregister from the Frame List. > SfxApplication *pSfxApp = SFX_APP(); > SfxViewFrameArr_Impl &rFrames = pSfxApp->GetViewFrames_Impl(); > const SfxViewFrame *pThis = this; > rFrames.Remove( rFrames.GetPos(pThis) ); > >- // Member l"oschen >+ // Delete Member > KillDispatcher_Impl(); > > delete pImp; >@@ -1575,7 +1574,7 @@ SfxViewFrame::~SfxViewFrame() > //------------------------------------------------------------------------ > void SfxViewFrame::KillDispatcher_Impl() > >-// Dispatcher abr"aumen und l"oschen >+// Remove and delete the Dispatcher. > > { > DBG_CHKTHIS(SfxViewFrame, 0); >@@ -1602,9 +1601,9 @@ SfxViewFrame* SfxViewFrame::Current() > //-------------------------------------------------------------------- > sal_uInt16 SfxViewFrame::Count() > >-/* [Beschreibung] >+/* [Description] > >- Liefert die Anzahl der sichtbaren <SfxViewFrame>-Instanzen. >+ Returns the number of visable <SfxViewFrame> instances. > */ > > { >@@ -1740,7 +1739,7 @@ SfxIniManager* SfxViewFrame::GetIniManager() const > #endif > > //-------------------------------------------------------------------- >-void SfxViewFrame::DoAdjustPosSizePixel //! teilen in Inner.../Outer... >+void SfxViewFrame::DoAdjustPosSizePixel //! divide on Inner.../Outer... > ( > SfxViewShell* pSh, > const Point& rPos, >@@ -1749,7 +1748,7 @@ void SfxViewFrame::DoAdjustPosSizePixel //! teilen in Inner.../Outer... > { > DBG_CHKTHIS(SfxViewFrame, 0); > >- // Components benutzen diese Methode nicht! >+ // Components do not use this Method! > if( pSh && pSh->GetWindow() && !nAdjustPosPixelLock ) > { > nAdjustPosPixelLock++; >@@ -1783,10 +1782,10 @@ SfxPoolItem* SfxViewFrameItem::Clone( SfxItemPool *) const > //-------------------------------------------------------------------- > void SfxViewFrame::SetViewShell_Impl( SfxViewShell *pVSh ) > >-/* [Beschreibung] >+/* [Description] > >- Interne Methode zum setzen der jeweils aktuellen <SfxViewShell>-Instanz, >- die in diesem SfxViewFrame aktiv ist. >+ Internal Method to set the current <SfxViewShell> Instance, >+ that is active int this SfxViewFrame at the moment. > */ > > { >@@ -1798,9 +1797,9 @@ void SfxViewFrame::SetViewShell_Impl( SfxViewShell *pVSh ) > } > > //-------------------------------------------------------------------- >-/* >- Beschreibung: >- Der ParentViewFrame ist der ViewFrame des Containers bei internem InPlace >+/* [Description] >+ >+ The ParentViewFrame of the Containers ViewFrame in the internal InPlace > */ > > //TODO/LATER: is it still necessary? is there a replacement for GetParentViewFrame_Impl? >@@ -1843,7 +1842,7 @@ void SfxViewFrame::DoAdjustPosSize( SfxViewShell *pSh, > //-------------------------------------------------------------------- > void SfxViewFrame::GetDocNumber_Impl() > { >- DBG_ASSERT( GetObjectShell(), "Kein Dokument!" ); >+ DBG_ASSERT( GetObjectShell(), "No Document!" ); > GetObjectShell()->SetNamedVisibility_Impl(); > pImp->nDocViewNo = GetObjectShell()->GetNoSet_Impl().GetFreeIndex()+1; > } >@@ -1898,22 +1897,23 @@ void SfxViewFrame::Enable( sal_Bool bEnable ) > //-------------------------------------------------------------------- > void SfxViewFrame::Show() > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode macht das Frame-Window sichtbar und ermittelt vorher >- den Fenstername. Au\serdem wird das Dokument festgehalten. Man darf >- i.d.R. nie das Window direkt showen! >+ This method makes the Frame-Window visible and before transmitts the >+ window name. In addition, the document is held. In general one can never >+ show the window directly! > */ > > { >- // zuerst locken damit in UpdateTitle() gilt: IsVisible() == sal_True (:#) >+ // First lock the objectShell so that UpdateTitle() is valid: >+ // IsVisible() == sal_True (:#) > if ( xObjSh.Is() ) > { > xObjSh->GetMedium()->GetItemSet()->ClearItem( SID_HIDDEN ); > if ( !pImp->bObjLocked ) > LockObjectShell_Impl( sal_True ); > >- // Doc-Shell Titel-Nummer anpassen, get unique view-no >+ // Adjust Doc-Shell titel nummer, get unique view-no > if ( 0 == pImp->nDocViewNo ) > { > GetDocNumber_Impl(); >@@ -1923,8 +1923,8 @@ void SfxViewFrame::Show() > else > UpdateTitle(); > >- // Frame-Window anzeigen, aber nur wenn der ViewFrame kein eigenes Window >- // hat oder wenn er keine Component enth"alt >+ // Display Frame-window, but only if the ViewFrame has no window of its >+ // own or if it does not contain a Component > if ( &GetWindow() == &GetFrame().GetWindow() || !GetFrame().HasComponent() ) > GetWindow().Show(); > GetFrame().GetWindow().Show(); >@@ -1959,9 +1959,9 @@ void SfxViewFrame::Hide() > //-------------------------------------------------------------------- > void SfxViewFrame::LockObjectShell_Impl( sal_Bool bLock ) > { >- DBG_ASSERT( pImp->bObjLocked != bLock, "Falscher Locked-Status!" ); >+ DBG_ASSERT( pImp->bObjLocked != bLock, "Wrong Locked status!" ); > >- DBG_ASSERT( GetObjectShell(), "Kein Dokument!" ); >+ DBG_ASSERT( GetObjectShell(), "No Document!" ); > GetObjectShell()->OwnerLock(bLock); > pImp->bObjLocked = bLock; > } >@@ -2051,7 +2051,7 @@ void SfxViewFrame::SetActiveChildFrame_Impl( SfxViewFrame *pViewFrame ) > if ( pViewFrame ) > xActive = pViewFrame->GetFrame().GetFrameInterface(); > >- if ( xFrame.is() ) // PB: #74432# xFrame cann be NULL >+ if ( xFrame.is() ) // PB: #74432# xFrame can be NULL > xFrame->setActiveFrame( xActive ); > } > } >@@ -2062,7 +2062,7 @@ SfxViewFrame* SfxViewFrame::GetActiveChildFrame_Impl() const > /* > if ( !pViewFrame ) > { >- // Wenn es keinen aktiven ChildFrame gibt, irgendeinen nehmen >+ // If no active ChildFrame exist, just take someone. > for ( sal_uInt16 n=0; n<GetChildFrameCount(); n++ ) > { > pViewFrame = >@@ -2327,38 +2327,35 @@ void SfxViewFrame::SaveCurrentViewData_Impl( const USHORT i_nNewViewId ) > sal_Bool SfxViewFrame::SwitchToViewShell_Impl > ( > sal_uInt16 nViewIdOrNo, /* > 0 >- Registrierungs-Id der View, auf die umge- >- schaltet werden soll, bzw. die erstmalig >- erzeugt werden soll. >+ Registration-Id of the View, to which the >+ the method should switch, for example the one >+ that will be created. > > == 0 >- Es soll die Default-View verwendet werden. */ >+ First use the Default view. */ > > sal_Bool bIsIndex /* sal_True >- 'nViewIdOrNo' ist keine Registrations-Id sondern >- ein Index in die f"ur die in diesem >- <SfxViewFrame> dargestellte <SfxObjectShell>. >+ 'nViewIdOrNo' is no Registration-Id instead >+ an Index of <SfxViewFrame> in <SfxObjectShell>. > */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Interne Methode zum Umschalten auf eine andere <SfxViewShell>-Subklasse, >- die in diesem SfxMDIFrame erzeugt werden soll. Existiert noch >- keine SfxViewShell in diesem SfxMDIFrame, so wird erstmalig eine >- erzeugt. >+ Internal Method for switching to another <SfxViewShell> subclass, >+ which should be created in this SfxMDIFrame. If no SfxViewShell exist >+ in this SfxMDIFrame, then one will first be created. > > >- [R"uckgabewert] >+ [Return Value] > > sal_Bool sal_True >- die angeforderte SfxViewShell wurde erzeugt >- und eine ggf. bestehende gel"oscht >+ requested SfxViewShell was created and a >+ possibly existing one deleted > > sal_False >- die angeforderte SfxViewShell konnte nicht >- erzeugt werden, die bestehende SfxViewShell >- existiert daher weiterhin >+ SfxViewShell requested could not be created, >+ the existing SfxViewShell thus continue to exist > */ > > { >@@ -2434,19 +2431,19 @@ sal_uInt16 SfxViewFrame::GetCurViewId() const > //------------------------------------------------------------------------- > void SfxViewFrame::ExecView_Impl > ( >- SfxRequest& rReq // der auszuf"uhrende <SfxRequest> >+ SfxRequest& rReq // The executable <SfxRequest> > ) > >-/* [Beschreibung] >+/* [Description] > >- Interne Methode zum Ausf"uhren der f"ur die <SfxShell> Subklasse >- SfxViewFrame in der <SVIDL> beschriebenen Slots. >+ Internal method to run the slot for the <SfxShell> Subclass in the >+ SfxViewFrame <SVIDL> described slots. > */ > > { > DBG_CHKTHIS(SfxViewFrame, 0); > >- // Wenn gerade die Shells ausgetauscht werden... >+ // If the Shells are just being replaced... > if ( !GetObjectShell() || !GetViewShell() ) > return; > >@@ -2488,14 +2485,14 @@ void SfxViewFrame::ExecView_Impl > > case SID_NEWWINDOW: > { >- // Hack. demnaechst virtuelle Funktion >+ // Hack. at the moment a virtual Function > if ( !GetViewShell()->NewWindowAllowed() ) > { > OSL_ENSURE( false, "You should have disabled the 'Window/New Window' slot!" ); > return; > } > >- // ViewData bei FrameSets rekursiv holen >+ // Get ViewData of FrameSets recursivly. > GetFrame().GetViewData_Impl(); > SfxMedium* pMed = GetObjectShell()->GetMedium(); > >@@ -2586,8 +2583,9 @@ sal_Bool impl_maxOpenDocCountReached() > ++nOpenDocs; > } > catch(const css::uno::Exception&) >- // A IndexOutOfBoundException can happen in multithreaded environments, >- // where any other thread can change this container ! >+ // A IndexOutOfBoundException can happen in multithreaded >+ // environments, where any other thread can change this >+ // container ! > { continue; } > } > >@@ -2605,22 +2603,20 @@ sal_Bool impl_maxOpenDocCountReached() > //------------------------------------------------------------------------- > void SfxViewFrame::StateView_Impl > ( >- SfxItemSet& rSet /* leeres <SfxItemSet> mit <Which-Ranges>, >- welche die Ids der zu erfragenden >- Slots beschreiben. */ >+ SfxItemSet& rSet /* empty <SfxItemSet> with <Which-Ranges>, >+ which describes the Slot Ids */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese interne Methode liefert in 'rSet' die Status der f"ur die >- <SfxShell> Subklasse SfxViewFrame in der <SVIDL> beschriebenen <Slots>. >+ This internal methode returns in 'rSet' the Status for the <SfxShell> >+ Subclass SfxViewFrame in the <SVIDL> described <Slots>. > >- In 'rSet' sind dabei genau die vom SFx als ung"ultig erkannten >- Slot-Ids als Which-ranges enthalten. Falls der an dieser Shell gesetzte >- <SfxItemPool> f"ur einzelne Slot-Ids ein Mapping hat, werden die >- entsprechenden Which-Ids verwendet, so da\s Items ggf. direkt mit >- einer mit Which-Ids arbeitenden Core-::com::sun::star::script::Engine ausgetauscht werden >- k"onnen. >+ Thus exactly those Slots-IDs that are recognized as beeing invalid by Sfx >+ are included as Which-ranges in 'rSet'. If there exists a mapping for >+ single slot-IDs of the <SfxItemPool> set in the shell, then the respective >+ Which-IDs are used so that items can be replaced directly with a working >+ Core::sun::com::star::script::Engine of the Which-IDs if possible. . > */ > > { >@@ -2629,11 +2625,11 @@ void SfxViewFrame::StateView_Impl > SfxObjectShell *pDocSh = GetObjectShell(); > > if ( !pDocSh ) >- // Ich bin gerade am Reloaden und Yielde so vor mich hin ... >+ // I'm just on reload and am yielding myself ... > return; > > const sal_uInt16 *pRanges = rSet.GetRanges(); >- DBG_ASSERT(pRanges, "Set ohne Bereich"); >+ DBG_ASSERT(pRanges, "Set whith no Range"); > while ( *pRanges ) > { > for ( sal_uInt16 nWhich = *pRanges++; nWhich <= *pRanges; ++nWhich ) >@@ -2696,9 +2692,9 @@ void SfxViewFrame::ToTop() > > //------------------------------------------------------------------------- > SfxViewFrame* SfxViewFrame::GetParentViewFrame() const >-/* >- Beschreibung: >- Der ParentViewFrame ist der ViewFrame des ParentFrames >+/* [Description] >+ >+ The ParentViewFrame is the ViewFrame of the ParentFrames. > */ > { > SfxFrame *pFrame = GetFrame().GetParentFrame(); >@@ -2707,9 +2703,9 @@ SfxViewFrame* SfxViewFrame::GetParentViewFrame() const > > //------------------------------------------------------------------------- > SfxFrame& SfxViewFrame::GetFrame() const >-/* >- Beschreibung: >- GetFrame liefert den Frame, in dem sich der ViewFrame befindet >+/* [Description] >+ >+ GetFrame returns the Frame, in which the ViewFrame is located. > */ > { > return pImp->rFrame; >@@ -2788,11 +2784,11 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, BO > nStartPos = rStr.indexOf( LINE_SEP, nStartPos ); > if( nStartPos == -1 ) > break; >- nStartPos++; // nicht das \n. >+ nStartPos++; // not the \n. > nLine++; > } > >- DBG_ASSERTWARNING( nStartPos != STRING_NOTFOUND, "CutLines: Startzeile nicht gefunden!" ); >+ DBG_ASSERTWARNING( nStartPos != STRING_NOTFOUND, "CutLines: Start row not found!" ); > > if ( nStartPos != -1 ) > { >@@ -2800,7 +2796,7 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, BO > for ( sal_Int32 i = 0; i < nLines; i++ ) > nEndPos = rStr.indexOf( LINE_SEP, nEndPos+1 ); > >- if ( nEndPos == -1 ) // kann bei letzter Zeile passieren >+ if ( nEndPos == -1 ) // Can happen at the last row. > nEndPos = rStr.getLength(); > else > nEndPos++; >@@ -2826,9 +2822,9 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, BO > } > > /* >- add new recorded dispatch macro script into the application global basic lib container >- It generates a new unique id for it and insert the macro by using this number as name for >- the modul >+ add new recorded dispatch macro script into the application global basic >+ lib container. It generates a new unique id for it and insert the macro >+ by using this number as name for the modul > */ > void SfxViewFrame::AddDispatchMacroToBasic_Impl( const ::rtl::OUString& sMacro ) > { >@@ -3128,7 +3124,7 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq ) > if ( xLayoutManager.is() ) > { > rtl::OUString aStatusbarResString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/statusbar/statusbar" )); >- // Parameter auswerten >+ // Evaluate parameter. > SFX_REQUEST_ARG(rReq, pShowItem, SfxBoolItem, rReq.GetSlot(), FALSE); > BOOL bShow( TRUE ); > if ( !pShowItem ) >@@ -3223,7 +3219,7 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet) > DBG_MEMTEST(); > > const USHORT *pRanges = rSet.GetRanges(); >- DBG_ASSERT(pRanges && *pRanges, "Set ohne Bereich"); >+ DBG_ASSERT(pRanges && *pRanges, "Set without range"); > while ( *pRanges ) > { > for(USHORT nWhich = *pRanges++; nWhich <= *pRanges; ++nWhich) >@@ -3232,7 +3228,7 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet) > { > case SID_CURRENT_URL: > { >- // Bei internem InPlace den ContainerFrame nehmen >+ // Get the ContainerFrame, when internal InPlace. > SfxViewFrame *pFrame = this; > if ( pFrame->GetParentViewFrame_Impl() ) > pFrame = pFrame->GetParentViewFrame_Impl(); >@@ -3333,7 +3329,6 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet) > } > > default: >- //! DBG_ASSERT(FALSE, "Falscher Server fuer GetState"); > break; > } > } >@@ -3344,17 +3339,16 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet) > > void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode kann in der Execute-Methode f"ur das ein- und ausschalten >- von Child-Windows eingesetzt werden, um dieses inkl. API-Anbindung zu >- implementieren. >+ This method can be included in the Execute method for the on- and off- >+ switching of ChildWindows, to implement this and API-bindings. > >- Einfach in der IDL als 'ExecuteMethod' eintragen. >+ Simply include as 'ExecuteMethod' in the IDL. > */ > > { >- // Parameter auswerten >+ // Evaluate Parameter > USHORT nSID = rReq.GetSlot(); > > SFX_REQUEST_ARG(rReq, pShowItem, SfxBoolItem, nSID, FALSE); >@@ -3408,14 +3402,14 @@ void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq ) > BOOL bHasChild = HasChildWindow(nSID); > bShow = pShowItem ? pShowItem->GetValue() : !bHasChild; > >- // ausf"uhren >+ // Perform action. > if ( !pShowItem || bShow != bHasChild ) > ToggleChildWindow( nSID ); > > GetBindings().Invalidate( nSID ); > GetDispatcher()->Update_Impl( TRUE ); > >- // ggf. recorden >+ // Record if possible. > if ( nSID == SID_HYPERLINK_DIALOG || nSID == SID_SEARCH_DLG ) > { > rReq.Ignore(); >@@ -3431,12 +3425,12 @@ void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq ) > > void SfxViewFrame::ChildWindowState( SfxItemSet& rState ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode kann in der Status-Methode f"ur das Ein- und Ausschalt- >- Zustand von Child-Windows eingesetzt werden, um dieses zu implementieren. >+ This method can be used in the state method for the on and off-state >+ of child-windows, in order to implement this. > >- Einfach in der IDL als 'StateMethod' eintragen. >+ Just register the IDL as 'StateMethod'. > */ > > { >diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx >index a85c3fc..6c72793 100644 >--- a/sfx2/source/view/viewfrm2.cxx >+++ b/sfx2/source/view/viewfrm2.cxx >@@ -146,21 +146,20 @@ static String _getTabString() > //-------------------------------------------------------------------- > String SfxViewFrame::UpdateTitle() > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode kann der SfxViewFrame gezwungen werden, sich sofort >- den neuen Titel vom der <SfxObjectShell> zu besorgen. >+ With this method, can the SfxViewFrame be forced to immediately provide >+ the new title from the <SfxObjectShell>. > >- [Anmerkung] >+ [Note] > >- Dies ist z.B. dann notwendig, wenn man der SfxObjectShell als SfxListener >- zuh"ort und dort auf den <SfxSimpleHint> SFX_HINT_TITLECHANGED reagieren >- m"ochte, um dann die Titel seiner Views abzufragen. Diese Views (SfxTopViewFrames) >- jedoch sind ebenfalls SfxListener und da die Reihenfolge der Benachrichtigung >- nicht feststeht, mu\s deren Titel-Update vorab erzwungen werden. >+ This is for example necessary if one listens to the SfxObjectShell as >+ SfxListener and then react on the <SfxSimpleHint> SFX_HINT_TITLECHANGED, >+ then query the title of his views. However these views (SfxTopViewFrames) >+ are also SfxListener and because the order of notifications might not be >+ fixed, the title update will be enforced in advance. > >- >- [Beispiel] >+ [Example] > > void SwDocShell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) > { >@@ -194,7 +193,7 @@ String SfxViewFrame::UpdateTitle() > return String(); > > // if ( pObjSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ) >-// // kein UpdateTitle mit Embedded-ObjectShell >+// // No UpdateTitle with Embedded-ObjectShell > // return String(); > > const SfxMedium *pMedium = pObjSh->GetMedium(); >@@ -207,10 +206,10 @@ String SfxViewFrame::UpdateTitle() > } > > if ( aURL != pImp->aActualURL ) >- // URL hat sich ge"andert >+ // URL has changed > pImp->aActualURL = aURL; > >- // gibt es noch eine weitere View? >+ // Is there another view? > sal_uInt16 nViews=0; > for ( SfxViewFrame *pView= GetFirst(pObjSh); > pView && nViews<2; >@@ -219,15 +218,15 @@ String SfxViewFrame::UpdateTitle() > !IsDowning_Impl()) > nViews++; > >- // Titel des Fensters >+ // Window Titel > String aTitle; > if ( nViews == 2 || pImp->nDocViewNo > 1 ) >- // dann die Nummer dranh"angen >+ // Then attach the number > aTitle = pObjSh->UpdateTitle( NULL, pImp->nDocViewNo ); > else > aTitle = pObjSh->UpdateTitle(); > >- // Name des SbxObjects >+ // SbxObjects name > String aSbxName = pObjSh->SfxShell::GetName(); > if ( IsVisible() ) > { >@@ -271,7 +270,7 @@ String SfxViewFrame::UpdateTitle() > > void SfxViewFrame::Exec_Impl(SfxRequest &rReq ) > { >- // Wenn gerade die Shells ausgetauscht werden... >+ // If presently the shells are replaced... > if ( !GetObjectShell() || !GetViewShell() ) > return; > >@@ -284,20 +283,19 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq ) > SFX_REQUEST_ARG(rReq, pIdItem, SfxUInt16Item, SID_CONFIGITEMID, FALSE); > USHORT nId = pIdItem ? pIdItem->GetValue() : 0; > >- // ausfuehren > SfxWorkWindow *pWorkWin = GetFrame().GetWorkWindow_Impl(); > if ( bShow ) > { >- // Zuerst die Floats auch anzeigbar machen >+ // First, make the floats viewable > pWorkWin->MakeChildsVisible_Impl( bShow ); > GetDispatcher()->Update_Impl( TRUE ); > >- // Dann anzeigen >+ // Then view it > GetBindings().HidePopups( !bShow ); > } > else > { >- // Alles hiden >+ // Hide all > SfxBindings *pBind = &GetBindings(); > while ( pBind ) > { >@@ -357,7 +355,7 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq ) > > if ( GetViewShell()->PrepareClose() ) > { >- // weitere Views auf dasselbe Doc? >+ // More Views on the same Document? > SfxObjectShell *pDocSh = GetObjectShell(); > int bOther = sal_False; > for ( const SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocSh ); >@@ -365,14 +363,14 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq ) > pFrame = SfxViewFrame::GetNext( *pFrame, pDocSh ) ) > bOther = (pFrame != this); > >- // Doc braucht nur gefragt zu werden, wenn keine weitere View >+ // Document only needs to be queried, if no other View present. > sal_Bool bClosed = sal_False; > sal_Bool bUI = TRUE; > if ( ( bOther || pDocSh->PrepareClose( bUI ) ) ) > { > if ( !bOther ) > pDocSh->SetModified( FALSE ); >- rReq.Done(); // unbedingt vor Close() rufen! >+ rReq.Done(); // Must call this before Close()! > bClosed = sal_False; > try > { >@@ -402,7 +400,7 @@ void SfxViewFrame::GetState_Impl( SfxItemSet &rSet ) > return; > > const sal_uInt16 *pRanges = rSet.GetRanges(); >- DBG_ASSERT(pRanges, "Set ohne Bereich"); >+ DBG_ASSERT(pRanges, "Set without Range"); > while ( *pRanges ) > { > for ( sal_uInt16 nWhich = *pRanges++; nWhich <= *pRanges; ++nWhich ) >@@ -494,7 +492,7 @@ void SfxViewFrame::INetState_Impl( SfxItemSet &rItemSet ) > rItemSet.DisableItem( SID_BROWSE_FORWARD ); > rItemSet.DisableItem( SID_BROWSE_BACKWARD ); > >- // Add/SaveToBookmark bei BASIC-IDE, QUERY-EDITOR etc. disablen >+ // Add/SaveToBookmark at BASIC-IDE, QUERY-EDITOR etc. disable > SfxObjectShell *pDocSh = GetObjectShell(); > sal_Bool bPseudo = pDocSh && !( pDocSh->GetFactory().GetFlags() & SFXOBJECTSHELL_HASOPENDOC ); > sal_Bool bEmbedded = pDocSh && pDocSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED; >@@ -509,18 +507,18 @@ void SfxViewFrame::SetZoomFactor( const Fraction &rZoomX, const Fraction &rZoomY > > void SfxViewFrame::Activate( sal_Bool bMDI ) > { >- DBG_ASSERT(GetViewShell(), "Keine Shell"); >+ DBG_ASSERT(GetViewShell(), "No Shell"); > if ( bMDI ) > pImp->bActive = sal_True; >-//(mba): hier evtl. wie in Beanframe NotifyEvent ?! >+//(mba): here maybe as in Beanframe NotifyEvent ?! > } > > void SfxViewFrame::Deactivate( sal_Bool bMDI ) > { >- DBG_ASSERT(GetViewShell(), "Keine Shell"); >+ DBG_ASSERT(GetViewShell(), "No Shell"); > if ( bMDI ) > pImp->bActive = sal_False; >-//(mba): hier evtl. wie in Beanframe NotifyEvent ?! >+//(mba): here maybe as in Beanframe NotifyEvent ?! > } > > /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ >diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx >index abca884..274af9a 100644 >--- a/sfx2/source/view/viewprn.cxx >+++ b/sfx2/source/view/viewprn.cxx >@@ -357,10 +357,10 @@ void SfxPrinterController::jobFinished( com::sun::star::view::PrintableState nSt > > void DisableRanges( PrintDialog& rDlg, SfxPrinter* pPrinter ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Funktion werden die nicht verf"ugbaren Ranges >- vom Printer zum PrintDialog geforwarded. >+ This function forwards the non-available ranges from the printer >+ to the print dialog. > */ > > { >@@ -381,13 +381,12 @@ void DisableRanges( PrintDialog& rDlg, SfxPrinter* pPrinter ) > > class SfxDialogExecutor_Impl > >-/* [Beschreibung] >+/* [Description] > >- Eine Instanz dieser Klasse wird f"ur die Laufzeit des Printer-Dialogs >- erzeugt, um im dessen Click-Handler f"ur die Zus"atze den per >- virtueller Methode von der abgeleiteten SfxViewShell erzeugten >- Print-Options-Dialog zu erzeugen und die dort eingestellten Optionen >- als SfxItemSet zu zwischenzuspeichern. >+ An instance of this class is created for the life span of the >+ printer dialogue, to create in its click handler for the additions by the >+ virtual method of the derived SfxViewShell generated print options dialogue >+ and to cache the options set there as SfxItemSet. > */ > > { >@@ -441,7 +440,7 @@ SfxDialogExecutor_Impl::SfxDialogExecutor_Impl( SfxViewShell* pViewSh, PrinterSe > > IMPL_LINK( SfxDialogExecutor_Impl, Execute, void *, EMPTYARG ) > { >- // Options lokal merken >+ // Options noted locally > if ( !_pOptions ) > { > DBG_ASSERT( _pPrintParent || _pSetupParent, "no dialog parent" ); >@@ -462,7 +461,7 @@ IMPL_LINK( SfxDialogExecutor_Impl, Execute, void *, EMPTYARG ) > } > } > >- // Dialog ausf"uhren >+ // Create Dialog > SfxPrintOptionsDialog* pDlg = new SfxPrintOptionsDialog( _pPrintParent ? static_cast<Window*>(_pPrintParent) > : static_cast<Window*>(_pSetupParent), > _pViewSh, _pOptions ); >@@ -492,7 +491,7 @@ IMPL_LINK( SfxDialogExecutor_Impl, Execute, void *, EMPTYARG ) > > BOOL UseStandardPrinter_Impl( Window* /*pParent*/, SfxPrinter* pDocPrinter ) > { >- // Optionen abfragen, ob gewarnt werden soll (Doc uebersteuert App) >+ // Query options, whether to be warned (Doc overturns App) > BOOL bWarn = FALSE; > const SfxItemSet *pDocOptions = &pDocPrinter->GetOptions(); > if ( pDocOptions ) >@@ -504,31 +503,32 @@ BOOL UseStandardPrinter_Impl( Window* /*pParent*/, SfxPrinter* pDocPrinter ) > bWarn = pBoolItem->GetValue(); > } > /* >- // ggf. den User fragen >+ // If possible ask the User > if ( bWarn ) > { >- // Geht nicht mehr ohne OrigJobSetup! >+ // Does not work anymore without OrigJobSetup! > String aTmp( SfxResId( STR_PRINTER_NOTAVAIL ) ); > QueryBox aBox( pParent, WB_OK_CANCEL | WB_DEF_OK, aTmp ); > return RET_OK == aBox.Execute(); > } > */ >- // nicht gewarnt => einfach so den StandardDrucker nehmen >+ // No warning => simply use the default printer > return TRUE; > } > //------------------------------------------------------------------------- > > SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) > >-/* Interne Methode zum Setzen der Unterschiede von 'pNewPrinter' zum >- aktuellen Printer. pNewPrinter wird entweder "ubernommen oder gel"oscht. >+ >+/* Internal method for setting the differences between 'pNewPrinter' to the >+ current printer. pNewPrinter is either taken over or deleted. > */ > > { >- // aktuellen Printer holen >+ // get current Printer > SfxPrinter *pDocPrinter = GetPrinter(); > >- // Printer-Options auswerten >+ // Evaluate Printer Options > bool bOriToDoc = false; > bool bSizeToDoc = false; > if ( &pDocPrinter->GetOptions() ) >@@ -540,15 +540,15 @@ SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) > bSizeToDoc = pFlagItem ? (pFlagItem->GetValue() & SFX_PRINTER_CHG_SIZE) : FALSE; > } > >- // vorheriges Format und Size feststellen >+ // Determine the previous format and size > Orientation eOldOri = pDocPrinter->GetOrientation(); > Size aOldPgSz = pDocPrinter->GetPaperSizePixel(); > >- // neues Format und Size feststellen >+ // Determine the new format and size > Orientation eNewOri = pNewPrinter->GetOrientation(); > Size aNewPgSz = pNewPrinter->GetPaperSizePixel(); > >- // "Anderungen am Seitenformat feststellen >+ // Determine the changes in page format > BOOL bOriChg = (eOldOri != eNewOri) && bOriToDoc; > BOOL bPgSzChg = ( aOldPgSz.Height() != > ( bOriChg ? aNewPgSz.Width() : aNewPgSz.Height() ) || >@@ -556,7 +556,7 @@ SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) > ( bOriChg ? aNewPgSz.Height() : aNewPgSz.Width() ) ) && > bSizeToDoc; > >- // Message und Flags f"ur Seitenformat-"Anderung zusammenstellen >+ // Message and Flags for page format, summaries changes > String aMsg; > USHORT nNewOpt=0; > if( bOriChg && bPgSzChg ) >@@ -575,49 +575,49 @@ SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) > nNewOpt = SFX_PRINTER_CHG_SIZE; > } > >- // in dieser Variable sammeln, was sich so ge"aendert hat >+ // Summaries in this variable what has been changed. > USHORT nChangedFlags = 0; > >- // ggf. Nachfrage, ob Seitenformat vom Drucker "ubernommen werden soll >+ // Ask if possible, if page format should be taken over from printer. > if ( ( bOriChg || bPgSzChg ) && > RET_YES == QueryBox(0, WB_YES_NO | WB_DEF_OK, aMsg).Execute() ) >- // Flags mit "Anderungen f"ur <SetPrinter(SfxPrinter*)> mitpflegen >+ // Flags wich changes for <SetPrinter(SfxPrinter*)> are maintained > nChangedFlags |= nNewOpt; > >- // fuer den MAC sein "temporary of class String" im naechsten if() >+ // For the MAC to have its "temporary of class String" in next if() > String aTempPrtName = pNewPrinter->GetName(); > String aDocPrtName = pDocPrinter->GetName(); > >- // Wurde der Drucker gewechselt oder von Default auf Specific >- // oder umgekehrt geaendert? >+ // Was the printer selection changed from Default to Specific >+ // or the other way around? > if ( (aTempPrtName != aDocPrtName) || (pDocPrinter->IsDefPrinter() != pNewPrinter->IsDefPrinter()) ) > { >- // neuen Printer "ubernehmen >+ // Get the new printer > // pNewPrinter->SetOrigJobSetup( pNewPrinter->GetJobSetup() ); > nChangedFlags |= SFX_PRINTER_PRINTER|SFX_PRINTER_JOBSETUP; > pDocPrinter = pNewPrinter; > } > else > { >- // Extra-Optionen vergleichen >+ // Compare extra options > if ( ! (pNewPrinter->GetOptions() == pDocPrinter->GetOptions()) ) > { >- // Options haben sich geaendert >+ // Option have changed > pDocPrinter->SetOptions( pNewPrinter->GetOptions() ); > nChangedFlags |= SFX_PRINTER_OPTIONS; > } > >- // JobSetups vergleichen >+ // Compare JobSetups > JobSetup aNewJobSetup = pNewPrinter->GetJobSetup(); > JobSetup aOldJobSetup = pDocPrinter->GetJobSetup(); > if ( aNewJobSetup != aOldJobSetup ) > { >- // JobSetup hat sich geaendert (=> App mu\s neu formatieren) >+ // JobSetup has chaged => App must be formatted again) > // pDocPrinter->SetOrigJobSetup( aNewJobSetup ); >- nChangedFlags |= SFX_PRINTER_JOBSETUP; >+c nChangedFlags |= SFX_PRINTER_JOBSETUP; > } > >- // alten, ver"anderten Printer behalten >+ // Keep old changed Printer. > pDocPrinter->SetPrinterProps( pNewPrinter ); > delete pNewPrinter; > } >@@ -629,10 +629,9 @@ SfxPrinter* SfxViewShell::SetPrinter_Impl( SfxPrinter *pNewPrinter ) > } > > //------------------------------------------------------------------------- >-// Unter WIN32 tritt leider das Problem auf, dass nichts gedruckt >-// wird, wenn SID_PRINTDOCDIRECT auflaueft; bisher bekannte, >-// einzige Abhilfe ist in diesem Fall das Abschalten der Optimierungen >-// (KA 17.12.95) >+// Sadly enough the problem arises with WIN32 that nothing is printed when >+// SID_PRINTDOCDIRECT auflaueft. At the moment the only known solution in this >+// case is to turn off the optimazation. > #ifdef _MSC_VER > #pragma optimize ( "", off ) > #endif >@@ -701,7 +700,8 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) > //FIXME: how to transport "bPrintOnHelp"? > > // no help button in dialogs if called from the help window >- // (pressing help button would exchange the current page inside the help document that is going to be printed!) >+ // (pressing help button would exchange the current page inside the help >+ // document that is going to be printed!) > String aHelpFilterName( DEFINE_CONST_UNICODE("writer_web_HTML_help") ); > SfxMedium* pMedium = GetViewFrame()->GetObjectShell()->GetMedium(); > const SfxFilter* pFilter = pMedium ? pMedium->GetFilter() : NULL; >@@ -925,7 +925,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) > } > } > >-// Optimierungen wieder einschalten >+// Turn on optimazation again. > #ifdef _MSC_VER > #pragma optimize ( "", on ) > #endif >@@ -934,11 +934,11 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq ) > > PrintDialog* SfxViewShell::CreatePrintDialog( Window* /*pParent*/ ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode kann "uberladen werden, um einen speziellen PrintDialog >- zu erzeugen. Dies ist z.B. notwendig wenn spezielle <StarView> Features >- wie drucken von Seitenbereichen. >+ This Method can be overloaded to create a tailored PrintDialog. >+ This is for example necessary when using special <StarView> Features >+ as printing of page breaks. > */ > > { >diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx >index c47a546..bd15851 100644 >--- a/sfx2/source/view/viewsh.cxx >+++ b/sfx2/source/view/viewsh.cxx >@@ -692,15 +692,15 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) > { > SFX_REQUEST_ARG(rReq, pShowItem, SfxBoolItem, nId, FALSE); > BOOL bActive = pShowItem ? pShowItem->GetValue() : !pImp->bPlugInsActive; >- // ggf. recorden >+ // Record if possible > if ( !rReq.IsAPI() ) > rReq.AppendItem( SfxBoolItem( nId, bActive ) ); > >- // Jetzt schon DONE aufrufen, da die Argumente evtl. einen Pool >- // benutzen, der demn"achst weg ist >+ // Call DONE here already since there might be arguments that >+ // are using Pool, which can be gone. > rReq.Done(TRUE); > >- // ausfuehren >+ // Execute > if ( !pShowItem || bActive != pImp->bPlugInsActive ) > { > SfxFrame* pTopFrame = &GetFrame()->GetTopFrame(); >@@ -769,7 +769,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet ) > break; > } > >- // Printer-Funktionen >+ // Printer functions > case SID_PRINTDOC: > case SID_PRINTDOCDIRECT: > case SID_SETUPPRINTER: >@@ -815,7 +815,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet ) > break; > } > >- // Mail-Funktionen >+ // Mail functions > case SID_MAIL_SENDDOCASPDF: > case SID_MAIL_SENDDOC: > case SID_MAIL_SENDDOCASFORMAT: >@@ -871,12 +871,11 @@ void SfxViewShell::SetZoomFactor( const Fraction &rZoomX, > //-------------------------------------------------------------------- > ErrCode SfxViewShell::DoVerb(long /*nVerb*/) > >-/* [Beschreibung] >- >- Virtuelle Methode, um am selektierten Objekt ein Verb auszuf"uhren. >- Da dieses Objekt nur den abgeleiteten Klassen bekannt ist, muss DoVerb >- dort "uberschrieben werden. >+/* [Description] > >+ Virtual Method used to perform a Verb on a selected Object. >+ Since this Object is just known by the derived classes, DoVerb >+ must be overloaded. > */ > > { >@@ -933,7 +932,7 @@ void SfxViewShell::UIDeactivated( SfxInPlaceClient* /*pClient*/ ) > // if ( xParentFrame.is() ) > // xParentFrame->setActiveFrame( uno::Reference < frame::XFrame >() ); > } >- >+d > //-------------------------------------------------------------------- > > SfxInPlaceClient* SfxViewShell::FindIPClient >@@ -1026,8 +1025,8 @@ void SfxViewShell::Deactivate(BOOL /*bMDI*/) > > void SfxViewShell::AdjustPosSizePixel > ( >- const Point& /*rToolOffset*/,// linke obere Ecke der Tools im Frame-Window >- const Size& /*rSize*/ // gesamte zur Verf"ugung stehende Gr"o\se >+ const Point& /*rToolOffset*/,// Upper left corner Tools in Frame-Window >+ const Size& /*rSize*/ // All available sizes. > ) > > { >@@ -1038,20 +1037,19 @@ void SfxViewShell::AdjustPosSizePixel > > void SfxViewShell::Move() > >-/* [Beschreibung] >- >- Diese virtuelle Methode wird gerufen, wenn das Fenster, in dem die >- SfxViewShell dargestellt wird eine StarView-Move() Nachricht erh"alt. >+/* [Description] > >- Die Basisimplementierung braucht nicht gerufen zu werden. >+ This virtual Method is called when the window displayed in the >+ SfxViewShell gets a StarView-Move() notification. > >+ This base implementation does not have to be called. . > >- [Anmerkung] >+ [Note] > >- Diese Methode kann dazu verwendet werden, eine Selektion abzubrechen, >- um durch das Moven des Fensters erzeugte Maus-Bewegungen anzufangen. >+ This Method can be used to cancel a selection, in order to catch the >+ mouse movement which is due to moving a window. > >- Zur Zeit funktioniert die Benachrichtigung nicht In-Place. >+ For now the notification does not work In-Place. > */ > > { >@@ -1061,48 +1059,45 @@ void SfxViewShell::Move() > > void SfxViewShell::OuterResizePixel > ( >- const Point& /*rToolOffset*/,// linke obere Ecke der Tools im Frame-Window >- const Size& /*rSize*/ // gesamte zur Verf"ugung stehende Gr"o\se >+ const Point& /*rToolOffset*/,// Upper left corner Tools in Frame-Window >+ const Size& /*rSize*/ // All available sizes. > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode muss ueberladen werden, um auf "Anderungen der Groesse >- der View zu reagieren. Dabei definieren wir die View als das Edit-Window >- zuz"uglich der um das Edit-Window angeordnenten Tools (z.B. Lineale). >+ This Method has to be overloaded to be able to react to the size-change of >+ the View. Thus the View is defined as the Edit window and also the >+ attached Tools are defined (for example the ruler). > >- Das Edit-Window darf weder in Gr"o\se noch Position ver"andert werden. >+ The Edit window must not be changed either in size or position. > >- Die Vis-Area der SfxObjectShell, dessen Skalierung und Position >- d"urfen hier ver"andert werden. Der Hauptanwendungsfall ist dabei, >- das Ver"andern der Gr"o\se der Vis-Area. >+ The Vis-Area of SfxObjectShell, its scale and position can be changed >+ here. The mainuse is to change the size of the Vis-Area. > >- "Andert sich durch die neue Berechnung der Border, so mu\s dieser >- mit <SfxViewShell::SetBorderPixel(const SvBorder&)> gesetzt werden. >- Erst nach Aufruf von 'SetBorderPixel' ist das Positionieren von >- Tools erlaubt. >+ If the Border is changed due to the new calculation then this has to be set >+ by <SfxViewShell::SetBorderPixel(const SvBorder&)>. The Postioning of Tools >+ is only allowed after the calling of 'SetBorderPixel'. > >- >- [Beispiel] >+ [Example] > > void AppViewSh::OuterViewResizePixel( const Point &rOfs, const Size &rSz ) >- { >- // Tool-Positionen und Gr"o\sen von au\sen berechnen, NICHT setzen! >- // (wegen folgender Border-Berechnung) >+ >+{ >+ // Calculate Tool position and size externally, do not set! >+ // (due to the following Border calculation) > Point aHLinPos...; Size aHLinSz...; > ... > >- // Border f"ur Tools passend zu rSize berechnen und setzen >+ // Calculate and Set a Border of Tools which matches rSize. > SvBorder aBorder... >- SetBorderPixel( aBorder ); // ab jetzt sind Positionierungen erlaubt >+ SetBorderPixel( aBorder ); // Allow Positioning from here on. > >- // Tools anordnen >+ // Arrange Tools > pHLin->SetPosSizePixel( aHLinPos, aHLinSz ); > ... > } > >- >- [Querverweise] >+ [Cross-reference] > > <SfxViewShell::InnerResizePixel(const Point&,const Size& rSize)> > */ >@@ -1116,45 +1111,44 @@ void SfxViewShell::OuterResizePixel > > void SfxViewShell::InnerResizePixel > ( >- const Point& /*rToolOffset*/,// linke obere Ecke der Tools im Frame-Window >- const Size& /*rSize*/ // dem Edit-Win zur Verf"ugung stehende Gr"o\se >+ const Point& /*rToolOffset*/,// Upper left corner Tools in Frame-Window >+ const Size& /*rSize*/ // All available sizes. > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode muss ueberladen werden, um auf "Anderungen der Groesse >- des Edit-Windows zu reagieren. >+ This Method has to be overloaded to be able to react to the size-change of >+ the Edit window. > >- Das Edit-Window darf weder in Gr"o\se noch Position ver"andert werden. >- Weder die Vis-Area der SfxObjectShell noch dessen Skalierung oder >- Position d"urfen ver"andert werden. >+ The Edit window must not be changed either in size or position. >+ Neither the Vis-Area of SfxObjectShell nor its scale or position are >+ allowed to be changed > >- "Andert sich durch die neue Berechnung der Border, so mu\s dieser >- mit <SfxViewShell::SetBorderPixel(const SvBorder&)> gesetzt werden. >- Erst nach Aufruf von 'SetBorderPixel' ist das Positionieren von >- Tools erlaubt. >+ If the Border is changed due to the new calculation then is has to be set >+ by <SfxViewShell::SetBorderPixel(const SvBorder&)>. >+ The Postioning of Tools is only allowed after the calling of >+ 'SetBorderPixel'. > > >- [Beispiel] >+ [Note] > > void AppViewSh::InnerViewResizePixel( const Point &rOfs, const Size &rSz ) > { >- // Tool-Positionen und Gr"o\sen von innen berechnen, NICHT setzen! >- // (wegen folgender Border-Berechnung) >+ // Calculate Tool position and size internally, do not set! >+ // (due to the following Border calculation) > Point aHLinPos...; Size aHLinSz...; > ... > >- // Border f"ur Tools passend zu rSz berechnen und setzen >+ // Calculate and Set a Border of Tools which matches rSize. > SvBorder aBorder... >- SetBorderPixel( aBorder ); // ab jetzt sind Positionierungen erlaubt >+ SetBorderPixel( aBorder ); // Allow Positioning from here on. > >- // Tools anordnen >+ // Arrange Tools > pHLin->SetPosSizePixel( aHLinPos, aHLinSz ); > ... > } > >- >- [Querverweise] >+ [Cross-reference] > > <SfxViewShell::OuterResizePixel(const Point&,const Size& rSize)> > */ >@@ -1207,29 +1201,28 @@ const SvBorder& SfxViewShell::GetBorderPixel() const > > void SfxViewShell::SetWindow > ( >- Window* pViewPort // Pointer auf das Datenfenster bzw. 0 im Destruktor >+ Window* pViewPort // For example Null pointer in the Destructor. > ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode wird der SfxViewShell das Datenfenster mitgeteilt. >- Dieses wird f"ur den In-Place-Container und f"ur das korrekte >- Wiederherstellen des Focus ben"otigt. >+ With this method the SfxViewShell is set in the data window. This is >+ needed for the in-place container and for restoring the proper focus. > >- Selbst In-Place-aktiv ist das Umsetzen des ViewPort-Windows verboten. >+ Even in-place-active the conversion of the ViewPort Windows is forbidden. > */ > > { > if( pWindow == pViewPort ) > return; > >- // ggf. vorhandene IP-Clients disconnecten >+ // Disconnect existing IP-Clients if possible > DisconnectAllClients(); > > //TODO: should we have a "ReconnectAllClients" method? > DiscardClients_Impl(); > >- // View-Port austauschen >+ // Switch View-Port > BOOL bHadFocus = pWindow ? pWindow->HasChildPathFocus( TRUE ) : FALSE; > pWindow = pViewPort; > >@@ -1242,7 +1235,7 @@ void SfxViewShell::SetWindow > if ( bHadFocus && pWindow ) > pWindow->GrabFocus(); > //TODO/CLEANUP >- //brauchen wir die Methode doch noch?! >+ //Do we still need this Method?! > //SFX_APP()->GrabFocus( pWindow ); > } > >@@ -1258,9 +1251,9 @@ Size SfxViewShell::GetOptimalSizePixel() const > > SfxViewShell::SfxViewShell > ( >- SfxViewFrame* pViewFrame, /* <SfxViewFrame>, in dem diese View >- dargestellt wird */ >- USHORT nFlags /* siehe <SfxViewShell-Flags> */ >+ SfxViewFrame* pViewFrame, /* <SfxViewFrame>, which will be >+ displayed in this View */ >+ USHORT nFlags /* See <SfxViewShell-Flags> */ > ) > > : SfxShell(this) >@@ -1295,8 +1288,8 @@ SfxViewShell::SfxViewShell > SetPool( &pViewFrame->GetObjectShell()->GetPool() ); > StartListening(*pViewFrame->GetObjectShell()); > >- // in Liste eintragen >- const SfxViewShell *pThis = this; // wegen der kranken Array-Syntax >+ // Insert into list >+ const SfxViewShell *pThis = this; // due to the sick Array syntax > SfxViewShellArr_Impl &rViewArr = SFX_APP()->GetViewShells_Impl(); > rViewArr.Insert(pThis, rViewArr.Count() ); > } >@@ -1307,7 +1300,7 @@ SfxViewShell::~SfxViewShell() > { > DBG_DTOR(SfxViewShell, 0); > >- // aus Liste austragen >+ // Remove from list > const SfxViewShell *pThis = this; > SfxViewShellArr_Impl &rViewArr = SFX_APP()->GetViewShells_Impl(); > rViewArr.Remove( rViewArr.GetPos(pThis) ); >@@ -1325,7 +1318,7 @@ SfxViewShell::~SfxViewShell() > pImp->pController = NULL; > } > >- if (pImp->pAccExec) >+a if (pImp->pAccExec) > { > DELETEZ( pImp->pAccExec ); > } >@@ -1339,7 +1332,7 @@ SfxViewShell::~SfxViewShell() > > USHORT SfxViewShell::PrepareClose > ( >- BOOL bUI, // TRUE: Dialoge etc. erlaubt, FALSE: silent-mode >+ BOOL bUI, // TRUE: Allow Dialog and so on, FALSE: silent-mode > BOOL /*bForBrowsing*/ > ) > { >@@ -1394,12 +1387,12 @@ SfxViewShell* SfxViewShell::Get( const Reference< XController>& i_rController ) > > SdrView* SfxViewShell::GetDrawView() const > >-/* [Beschreibung] >+/* [Description] > >- Diese virtuelle Methode mu\s von den Subklassen "uberladen werden, wenn >- der Property-Editor zur Verf"ugung stehen soll. >+ This virtual Method has to be overloded by the sub classes, to be able >+ make the Property-Editor available. > >- Die Default-Implementierung liefert immer 0. >+ The default implementation does always return zero. > */ > > { >@@ -1411,26 +1404,25 @@ SdrView* SfxViewShell::GetDrawView() const > String SfxViewShell::GetSelectionText > ( > BOOL /*bCompleteWords*/ /* FALSE (default) >- Nur der tats"achlich selektierte Text wird >- zur"uckgegeben. >+ Only the actual selected text is returned. > > TRUE >- Der selektierte Text wird soweit erweitert, >- da\s nur ganze W"orter zur"uckgegeben werden. >- Als Worttrenner gelten White-Spaces und die >- Satzzeichen ".,;" sowie einfache und doppelte >- Anf"uhrungszeichen. >+ The selected text is expanded so that only >+ whole words are returned. As word separators >+ these are used: white spaces and punctuation >+ ".,;" and single and double quotes. > */ > ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode kann von Anwendungsprogrammierer "uberladen werden, >- um einen Text zur"uckzuliefern, der in der aktuellen Selektion >- steht. Dieser wird z.B. beim Versenden (email) verwendet. >+ This Method can be overloaded by the programmers to return a text that >+ is included in the current selection. This is for example used when >+ sending emails. > >- Mit "CompleteWords == TRUE" ger"ufen, reicht z.B. auch der Cursor, >- der in einer URL steht, um die gesamte URL zu liefern. >+ When called with "CompleteWords == TRUE", it is for example sufficent >+ with having the Cursor positioned somewhere within an URL in-order >+ to have the entire URL returned. > */ > > { >@@ -1441,11 +1433,11 @@ String SfxViewShell::GetSelectionText > > BOOL SfxViewShell::HasSelection( BOOL ) const > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser virtuellen Methode kann z.B. ein Dialog abfragen, ob in der >- aktuellen View etwas selektiert ist. Wenn der Parameter <BOOL> TRUE ist, >- wird abgefragt, ob Text selektiert ist. >+ With this virtual Method can a for example a Dialog be queried, to >+ check if something is selected in the current view. If the Parameter >+ is <BOOL> TRUE then it is checked wether some text is selected. > */ > > { >@@ -1456,26 +1448,25 @@ BOOL SfxViewShell::HasSelection( BOOL ) const > > void SfxViewShell::SetSubShell( SfxShell *pShell ) > >-/* [Beschreibung] >+/* [Description] > >- Mit dieser Methode kann eine Selektions- oder Cursor-Shell angemeldet >- werden, die automatisch unmittelbar nach der SfxViewShell auf den >- SfxDispatcher gepusht wird, und automatisch umittelbar vor ihr >- gepoppt wird. >+ With this method a selection or cursor Shell can be registered, which are >+ automatically pushed to SfxDispatcher immediately after SfxViewShell, and >+ and automatically popped immediately before SfxViewShell. > >- Ist die SfxViewShell-Instanz bereits gepusht, dann wird pShell >- sofort ebenfalls gepusht. Wird mit SetSubShell eine andere SfxShell >- Instanz angemeldet, als vorher angemeldet war, wird die zuvor angemeldete >- ggf. automatisch gepoppt. Mit pShell==0 kann daher die aktuelle >- Sub-Shell abgemeldet werden. >+ If the SfxViewShell instance is already pushed, then pShell will be >+ immediately pushed as well. Is another SfxShell instance registered by >+ using SetSubShell, which was previously registered, the previously >+ registered shell is popped automatically if possible. With pShell==0 >+ the current sub-shell be can thus be unregistered. > */ > > { >- // ist diese ViewShell "uberhaupt aktiv? >+ // Is this ViewShell even active? > SfxDispatcher *pDisp = pFrame->GetDispatcher(); > if ( pDisp->IsActive(*this) ) > { >- // Dispatcher updaten >+ // Update Dispatcher > if ( pSubShell ) > pDisp->Pop(*pSubShell); > if ( pShell ) >@@ -1709,25 +1700,24 @@ BOOL SfxViewShell::ExecKey_Impl(const KeyEvent& aKey) > > bool SfxViewShell::KeyInput( const KeyEvent &rKeyEvent ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode f"uhrt das KeyEvent 'rKeyEvent' "uber die an dieser >- SfxViewShell direkt oder indirekt (z.B. via Applikation) konfigurierten >- Tasten (Accelerator) aus. >+ This Method executes the KeyEvent 'rKeyEvent' of the Keys (Accelerator) >+ configured either direct or indirect (for example by the Application) >+ in the SfxViewShell. > >- >- [R"uckgabewert] >+ [Return value] > > bool TRUE >- die Taste ist konfiguriert, der betreffende >- Handler wurde gerufen >+ The Key (Accelerator) is configured and the >+ the associated Handler was called > > FALSE >- die Taste ist nicht konfiguriert, es konnte >- also kein Handler gerufen werden >+ The Key (Accelerator) is not configured and >+ subsequently no Handler was called > >+ [Cross-reference] > >- [Querverweise] > <SfxApplication::KeyInput(const KeyEvent&)> > */ > { >@@ -1743,11 +1733,11 @@ bool SfxViewShell::GlobalKeyInput_Impl( const KeyEvent &rKeyEvent ) > > void SfxViewShell::ShowCursor( bool /*bOn*/ ) > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode mu\s von Subklassen "uberladen werden, damit vom SFx >- aus der Cursor ein- und ausgeschaltet werden kann. Dies geschieht >- z.B. bei laufendem <SfxProgress>. >+ This Method has to be overloaded by the subclasses so that SFx from >+ the Cursor can be switched on and off. This happes for example with >+ with the running <SfxProgress>. > */ > > { >@@ -1757,17 +1747,16 @@ void SfxViewShell::ShowCursor( bool /*bOn*/ ) > > void SfxViewShell::GotFocus() const > >-/* [Beschreibung] >- >- Diese Methode mu\s vom Applikationsentwickler gerufen werden, wenn >- das Edit-Window den Focus erhalten hat. Der SFx hat so z.B. die >- M"oglichkeit, den Accelerator einzuschalten. >+/* [Description] > >+ This Method has to be called by the programmer, when the >+ Edit window has received the focus. This gives for example the SFx >+ the power to turn on the accelerator. > >- [Anmerkung] >+ [Note] > >- <StarView> liefert leider keine M"oglichkeit, solche Events >- 'von der Seite' einzuh"angen. >+ <StarView> does sadly enough not provide the possibillity to attach >+ such "side-way" events. > */ > > { >@@ -1812,7 +1801,7 @@ void SfxViewShell::QueryObjAreaPixel( Rectangle& ) const > > void SfxViewShell::AdjustVisArea(const Rectangle& rRect) > { >- DBG_ASSERT (pFrame, "Kein Frame?"); >+ DBG_ASSERT (pFrame, "No Frame?"); > GetObjectShell()->SetVisArea( rRect ); > } > >@@ -1881,11 +1870,10 @@ BOOL SfxViewShell::PlugInsActive() const > //-------------------------------------------------------------------- > void SfxViewShell::DiscardClients_Impl() > >-/* [Beschreibung] >+/* [Description] > >- Diese Methode dient dazu, vor dem Schlie\sen eines Dokuments das >- Speichern der Objekte zu verhindern, wenn der Benutzer Schlie\en ohne >- Speichern gew"ahlt hatte. >+ The purpose of this Method is to prevent the saving of Objects when closing >+ the Document, if the user has chosen to close without saving. > */ > > { >@@ -1951,7 +1939,7 @@ const Size& SfxViewShell::GetMargin() const > > void SfxViewShell::SetMargin( const Size& rSize ) > { >- // Der default-Margin wurde "geeicht" mit www.apple.com !! >+ // the default margin was verified using www.apple.com !! > Size aMargin = rSize; > if ( aMargin.Width() == -1 ) > aMargin.Width() = DEFAULT_MARGIN_WIDTH; >diff --git a/sfx2/util/makefile.mk b/sfx2/util/makefile.mk >index b9b4d7a..92fdd41 100644 >--- a/sfx2/util/makefile.mk >+++ b/sfx2/util/makefile.mk >@@ -30,7 +30,7 @@ PRJ=.. > ENABLE_EXCEPTIONS=TRUE > PRJNAME=sfx2 > TARGET=sfx >-#sfx.hid generieren >+#generate sfx.hid > GEN_HID=TRUE > GEN_HID_OTHER=TRUE > USE_DEFFILE=TRUE >@@ -40,7 +40,7 @@ USE_DEFFILE=TRUE > .INCLUDE : settings.mk > .INCLUDE : $(PRJ)$/util$/makefile.pmk > >-# --- Allgemein ---------------------------------------------------- >+# --- General ------------------------------------------------------ > > LIB1TARGET= $(SLB)$/$(TARGET).lib > LIB1FILES= $(SLB)$/appl.lib \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 33424
:
42396
| 42397