[Libreoffice-commits] core.git: svx/source

Johnny_M klasse at partyheld.de
Tue Apr 18 09:17:30 UTC 2017


 svx/source/inc/fmexch.hxx         |   12 +++----
 svx/source/inc/fmexpl.hxx         |   58 +++++++++++++++++-----------------
 svx/source/inc/fmobj.hxx          |    4 +-
 svx/source/inc/fmpgeimp.hxx       |    6 +--
 svx/source/inc/fmshimp.hxx        |   64 +++++++++++++++++++-------------------
 svx/source/inc/fmundo.hxx         |    6 +--
 svx/source/inc/fmvwimp.hxx        |    4 +-
 svx/source/inc/formcontroller.hxx |   10 ++---
 svx/source/inc/gridcell.hxx       |   42 +++++++++++-------------
 9 files changed, 102 insertions(+), 104 deletions(-)

New commits:
commit 324adfcc2c3aa5d3590a38fadca2af7cd9125b47
Author: Johnny_M <klasse at partyheld.de>
Date:   Mon Apr 17 14:05:42 2017 +0200

    Translate German comments in svx/source/inc/
    
    Change-Id: I7eef0061245460fa0b570eea36d4e415c4c6d716

diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx
index 1215c3c307e4..0b09eadf0839 100644
--- a/svx/source/inc/fmexch.hxx
+++ b/svx/source/inc/fmexch.hxx
@@ -169,17 +169,17 @@ namespace svxform
             ) { m_xFormsRoot = _rxFormsRoot; }
 
         void buildPathFormat(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot);
-            // baut aus m_aSelectedEntries m_aControlPaths auf
-            // (es wird davon ausgegangen, dass die Eintraege in m_aSelectedEntries sortiert sind in Bezug auf die Nachbar-Beziehung)
+            // assembles m_aControlPaths from m_aSelectedEntries
+            // (it is assumed that the entries are sorted in m_aSelectedEntries with respect to the neighbor relationship)
 
 
         void buildListFromPath(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot);
-            // der umgekehrte Weg : wirft alles aus m_aSelectedEntries weg und baut es mittels m_aControlPaths neu auf
+            // The reverse way: throws everything out of m_aSelectedEntries and rebuilds it using m_aControlPaths
 
         void addHiddenControlsFormat(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& seqInterfaces);
-            // fuegt ein SVX_FML_HIDDEN_CONTROLS-Format hinzu und merk sich dafuer die uebergebenen Interfaces
-            // (es erfolgt KEINE Ueberpruefung, ob dadurch auch tatsaechlich nur hidden Controls bezeichnet werden, dass muss der
-            // Aufrufer sicherstellen)
+            // adds an SVX_FML_HIDDEN_CONTROLS format and remembers the passed interfaces for it
+            // (it is NOT checked whether actually only hidden controls are denominated
+            // by this - the caller must ensure that)
 
         const ListBoxEntrySet&      selected() const { return m_aSelectedEntries; }
         const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >&
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx
index bf4c601eea86..c7a8fee7cfff 100644
--- a/svx/source/inc/fmexpl.hxx
+++ b/svx/source/inc/fmexpl.hxx
@@ -78,7 +78,7 @@ public:
 
 class FmNavModelReplacedHint : public SfxHint
 {
-    FmEntryData* pEntryData;    // die Daten des Eintrages, der ein neues Model bekommen hat
+    FmEntryData* pEntryData;    // the data of the entry that has got a new model
 
 public:
     FmNavModelReplacedHint( FmEntryData* pAffectedEntryData );
@@ -208,7 +208,7 @@ public:
 };
 
 
-// FmNavRequestSelectHint - jemand teilt dem NavigatorTree mit, dass er bestimmte Eintraege selektieren soll
+// FmNavRequestSelectHint - someone tells the NavigatorTree to select certain entries
 
 typedef std::set<FmEntryData*> FmEntryDataArray;
 
@@ -336,10 +336,10 @@ namespace svxform
         void ReplaceFormComponent(const css::uno::Reference< css::form::XFormComponent >& xOld, const css::uno::Reference< css::form::XFormComponent >& xNew);
 
         void BroadcastMarkedObjects(const SdrMarkList& mlMarked);
-            // einen RequestSelectHint mit den aktuell markierten Objekten broadcasten
+            // send a RequestSelectHint with the currently selected objects
         bool InsertFormComponent(FmNavRequestSelectHint& rHint, SdrObject* pObject);
-            // ist ein Helper fuer vorherige, managet das Abteigen in SdrObjGroups
-            // Rueckgabe sal_True, wenn das Objekt eine FormComponent ist (oder rekursiv nur aus solchen besteht)
+            // is a helper for previous, manages the ... in SdrObjGroups;
+            // returns sal_True if the object is a FormComponent (or recursively consists only of such)
 
     public:
         NavigatorTreeModel();
@@ -378,10 +378,10 @@ namespace svxform
         enum DROP_ACTION        { DA_SCROLLUP, DA_SCROLLDOWN, DA_EXPANDNODE };
         enum SELDATA_ITEMS      { SDI_DIRTY, SDI_ALL, SDI_NORMALIZED, SDI_NORMALIZED_FORMARK };
 
-        // beim Droppen will ich scrollen und Folder aufklappen koennen, dafuer :
+        // when dropping I want to be able to scroll and to exand folders, for this:
         AutoTimer           m_aDropActionTimer;
         Timer               m_aSynchronizeTimer;
-        // die Meta-Daten ueber meine aktuelle Selektion
+        // the meta-data about my current selection
         SvLBoxEntrySortedArray  m_arrCurrentSelection;
         // the entries which, in the view, are currently marked as "cut" (painted semi-transparent)
         ListBoxEntrySet         m_aCutEntries;
@@ -395,21 +395,21 @@ namespace svxform
         ImplSVEvent *       nEditEvent;
 
         SELDATA_ITEMS       m_sdiState;
-        Point               m_aTimerTriggered;      // die Position, an der der DropTimer angeschaltet wurde
+        Point               m_aTimerTriggered;      // the position at which the DropTimer was switched on
         DROP_ACTION         m_aDropActionType;
 
         sal_uInt16          m_nSelectLock;
         sal_uInt16          m_nFormsSelected;
         sal_uInt16          m_nControlsSelected;
-        sal_uInt16          m_nHiddenControls;      // (die Zahl geht in m_nControlsSelected mit ein)
+        sal_uInt16          m_nHiddenControls;      // (the number is included in m_nControlsSelected)
 
         unsigned short      m_aTimerCounter;
 
-        bool            m_bDragDataDirty        : 1;    // dito
+        bool            m_bDragDataDirty        : 1;    // ditto
         bool            m_bPrevSelectionMixed   : 1;
-        bool            m_bMarkingObjects       : 1;    // wenn das sal_True ist, brauche ich auf die RequestSelectHints nicht reagieren
+        bool            m_bMarkingObjects       : 1;    // if this is sal_True, I do not need to react to the RequestSelectHints
         bool            m_bRootSelected         : 1;
-        bool            m_bInitialUpdate        : 1;   // bin ich das erste Mal im UpdateContent ?
+        bool            m_bInitialUpdate        : 1;    // am I the first time in the UpdateContent?
         bool            m_bKeyboardCut          : 1;
 
         FmControlData*  NewControl( const OUString& rServiceName, SvTreeListEntry* pParentEntry, bool bEditName );
@@ -419,32 +419,32 @@ namespace svxform
 
 
         void CollectSelectionData(SELDATA_ITEMS sdiHow);
-            // sammelt in m_arrCurrentSelection die aktuell selektierten Eintraege, normalisiert die Liste wenn verlangt
-            // SDI_NORMALIZED bedeutet einfach, dass alle Eintraege, die schon einen selektierten Vorfahren haben, nicht mit gesammelt
-            // werden.
-            // SDI_NORMALIZED_FORMARK bedeutet, dass wie bei SDI_NORMALIZED verfahren wird, aber Eintraege, deren direktes Elter nicht
-            // selektiert ist, aufgenommen werden (unabhaengig vom Status weiterer Vorfahren), desgleichen Formulare, die selektiert sind,
-            // unabhaengig vom Status irgendwelcher Vorfahren
-            // Bei beiden Normalized-Modi enthalten die m_nFormsSelected, ... die richtige Anzahl, auch wenn nicht alle dieser Eintraege
-            // in m_arrCurrentSelection landen.
-            // SDI_DIRTY ist natuerlich nicht erlaubt als Parameter
-
-        // ein einziges Interface fuer alle selektierten Eintraege zusammensetzen
+            // Collects the currently selected entries in m_arrCurrentSelection, normalizes the list if requested.
+            // - SDI_NORMALIZED simply means that all entries that already have a selected ancestor are not collected.
+            // - SDI_NORMALIZED_FORMARK means that the procedure is the same as for SDI_NORMALIZED,
+            //   but entries whose direct parent is not selected are collected (independent of the
+            //   status of further ancestors). The same applies for forms that are selected,
+            //   regardless of the status of any ancestors.
+            // For both normalized modes, the m_nFormsSelected, ... contain the correct number,
+            // even if not all of these entries end up in m_arrCurrentSelection.
+            // SDI_DIRTY is of course not allowed as a parameter.
+
+        // a single interface for all selected entries
         void    ShowSelectionProperties(bool bForce = false);
-        // alle selektierten Elemnte loeschen
+        // delete all selected elements
         void    DeleteSelection();
 
         void SynchronizeSelection(FmEntryDataArray& arredToSelect);
-            // nach dem Aufruf dieser Methode sind genau die Eintraege selektiert, die in dem Array bezeichnet sind
+            // after calling this method, exactly the entries marked in the array are selected
         void SynchronizeSelection();
-            // macht das selbe, nimmt die MarkList der View
+            // makes the same, takes the MarkList of the View
         void SynchronizeMarkList();
-            // umgekehrte Richtung von SynchronizeMarkList : markiert in der View alle der aktuellen Selektion entsprechenden Controls
+            // reverse direction of SynchronizeMarkList: selects in the view all controls corresponding to the current selection
 
         void CollectObjects(FmFormData* pFormData, bool bDeep, ::std::set< css::uno::Reference< css::form::XFormComponent > >& _rObjects);
 
-        // im Select aktualisiere ich normalerweise die Marklist der zugehoerigen View, mit folgenden Funktionen
-        // kann ich das Locking dieses Verhaltens steuern
+        // in the Select I usually update the Marklist of the corresponding view,
+        // with the following functions I can control the locking of this behavior
         void LockSelectionHandling() { ++m_nSelectLock; }
         void UnlockSelectionHandling() { --m_nSelectLock; }
         bool IsSelectionHandlingLocked() const { return m_nSelectLock>0; }
diff --git a/svx/source/inc/fmobj.hxx b/svx/source/inc/fmobj.hxx
index 7bd6b552b82b..75774cdfc4b0 100644
--- a/svx/source/inc/fmobj.hxx
+++ b/svx/source/inc/fmobj.hxx
@@ -36,8 +36,8 @@ class SVX_DLLPUBLIC FmFormObj: public SdrUnoObj
                 // valid if and only if m_pEnvironmentHistory != NULL, this are the events which we're set when
                 // m_pEnvironmentHistory was created
 
-    // Informationen fuer die Controlumgebung
-    // werden nur vorgehalten, wenn ein Object sich nicht in einer Objectliste befindet
+    // information for the control environment is only maintained if an object is not in an
+    // object list
     css::uno::Reference< css::container::XIndexContainer>     m_xParent;
     css::uno::Reference< css::form::XForms >                  m_xEnvironmentHistory;
     sal_Int32           m_nPos;
diff --git a/svx/source/inc/fmpgeimp.hxx b/svx/source/inc/fmpgeimp.hxx
index 811086cbc556..3b5ad1aa0f56 100644
--- a/svx/source/inc/fmpgeimp.hxx
+++ b/svx/source/inc/fmpgeimp.hxx
@@ -42,8 +42,8 @@ class SdrObject;
 
 
 // FmFormPageImpl
-// lauscht an allen Containern, um festzustellen, wann Objecte
-// eingefuegt worden sind und wann diese entfernt wurden
+// Listens to all containers to determine when objects have been inserted
+// and when they have been removed
 
 
 class FmFormPageImpl
@@ -64,7 +64,7 @@ public:
 
     void initFrom( FmFormPageImpl& i_foreignImpl );
 
-    //  nur wichtig fuer den DesignMode
+    //  only important for the DesignMode
     void setCurForm(const css::uno::Reference< css::form::XForm>& xForm);
     css::uno::Reference< css::form::XForm> getDefaultForm();
 
diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx
index c8ed5a1d72cb..da68ae054257 100644
--- a/svx/source/inc/fmshimp.hxx
+++ b/svx/source/inc/fmshimp.hxx
@@ -184,9 +184,9 @@ class SVX_DLLPUBLIC FmXFormShell   : public FmXFormShell_BASE
 
     css::form::NavigationBarMode   m_eNavigate;                // Art der Navigation
 
-        // da ich beim Suchen fuer die Behandlung des "gefunden" ein SdrObject markieren will, besorge ich mir vor dem
-        // Hochreissen des Suchen-Dialoges alle relevanten Objekte
-        // (das Array ist damit auch nur waehrend des Suchvorganges gueltig)
+        // since I want to mark an SdrObject when searching for the treatment of the "found",
+        // I get all relevant objects before yanking up of the search dialog
+        // (the array is thus only valid during the search process)
     std::vector<long> m_arrRelativeGridColumn;
 
     ::osl::Mutex    m_aMutex;
@@ -201,14 +201,14 @@ class SVX_DLLPUBLIC FmXFormShell   : public FmXFormShell_BASE
     svx::ControllerFeatures   m_aActiveControllerFeatures;
     svx::ControllerFeatures   m_aNavControllerFeatures;
 
-    // aktuelle Form, Controller
-    // nur im alive mode verfuegbar
+    // current form, controller
+    // only available in the alive mode
     css::uno::Reference< css::form::runtime::XFormController >    m_xActiveController;
     css::uno::Reference< css::form::runtime::XFormController >    m_xNavigationController;
     css::uno::Reference< css::form::XForm >                       m_xActiveForm;
 
-    // Aktueller container einer Page
-    // nur im designmode verfuegbar
+    // current container of a page
+    // only available in the design mode
     css::uno::Reference< css::container::XIndexAccess>            m_xForms;
 
     // the currently selected objects, as to be displayed in the property browser
@@ -219,9 +219,10 @@ class SVX_DLLPUBLIC FmXFormShell   : public FmXFormShell_BASE
     InterfaceBag                                                  m_aLastKnownMarkedControls;
 
 
-        // und das ist ebenfalls fuer's 'gefunden' : Beim Finden in GridControls brauche ich die Spalte, bekomme aber
-        // nur die Nummer des Feldes, die entspricht der Nummer der Spalte + <offset>, wobei der Offset von der Position
-        // des GridControls im Formular abhaengt. Also hier eine Umrechnung.
+        // And this is also for the 'found': When I find in GridControls, I need the column,
+        // but only get the number of the field corresponding to the number of the
+        // column + <offset>, where the offset depends on the position of the GridControl
+        // in the form. So here is a conversion.
     css::uno::Reference< css::awt::XControlModel>                 m_xLastGridFound;
      // the frame we live in
     css::uno::Reference< css::frame::XFrame>                      m_xAttachedFrame;
@@ -236,14 +237,14 @@ class SVX_DLLPUBLIC FmXFormShell   : public FmXFormShell_BASE
     bool        m_bHadPropertyBrowserInDesignMode : 1;
 
     bool        m_bTrackProperties  : 1;
-        // soll ich (bzw. der Owner diese Impl-Klasse) mich um die Aktualisierung des css::beans::Property-Browsers kuemmern ?
+        // should I (or the owner of this impl class) take car of the update of the css::beans::Property-Browser?
 
     bool        m_bUseWizards : 1;
 
-    bool        m_bDatabaseBar      : 1;    // Gibt es eine Datenbankleiste
-    bool        m_bInActivate       : 1;    // Wird ein Controller aktiviert
-    bool        m_bSetFocus         : 1;    // Darf der Focus umgesetzt werden
-    bool        m_bFilterMode       : 1;    // Wird gerade ein Filter auf die Controls angesetzt
+    bool        m_bDatabaseBar      : 1;    // is there a database bar
+    bool        m_bInActivate       : 1;    // is a controller activated
+    bool        m_bSetFocus         : 1;    // may the focus be changed over
+    bool        m_bFilterMode       : 1;    // is a filter currently set to the controls
     bool        m_bChangingDesignMode:1;    // sal_True within SetDesignMode
     bool        m_bPreparedClose    : 1;    // for the current modification state of the current form
                                                 //  PrepareClose had been called and the user denied to save changes
@@ -411,13 +412,13 @@ public:
     SAL_DLLPRIVATE bool    GetWizardUsing() const { return m_bUseWizards; }
     SAL_DLLPRIVATE void    SetWizardUsing(bool _bUseThem);
 
-        // Setzen des Filtermodus
+        // setting the filter mode
     SAL_DLLPRIVATE bool isInFilterMode() const {return m_bFilterMode;}
     SAL_DLLPRIVATE void startFiltering();
     SAL_DLLPRIVATE void stopFiltering(bool bSave);
 
+        // a menu that contains all ControlConversion entries
     SAL_DLLPRIVATE static VclBuilder* GetConversionMenu();
-        // ein Menue, das alle ControlConversion-Eintraege enthaelt
 
     /// checks whether a given control conversion slot can be applied to the current selection
     SAL_DLLPRIVATE        bool canConvertCurrentSelectionToControl(const OString& rIdent);
@@ -446,8 +447,8 @@ public:
     /// determines whether our host document is currently read-only
     SAL_DLLPRIVATE bool    IsReadonlyDoc() const;
 
-    // das Setzen des curObject/selObject/curForm erfolgt verzoegert (SetSelectionDelayed), mit den folgenden
-    // Funktionen laesst sich das abfragen/erzwingen
+    // Setting the curObject/selObject/curForm is delayed (SetSelectionDelayed). With the
+    // following functions this can be inquired/enforced.
     SAL_DLLPRIVATE inline bool IsSelectionUpdatePending();
     SAL_DLLPRIVATE void        ForceUpdateSelection();
 
@@ -470,11 +471,11 @@ private:
 
     SAL_DLLPRIVATE void LoopGrids(LoopGridsSync nSync, LoopGridsFlags nWhat = LoopGridsFlags::NONE);
 
-    // Invalidierung von Slots
+    // invalidation of slots
     SAL_DLLPRIVATE void    InvalidateSlot( sal_Int16 nId, bool bWithId );
     SAL_DLLPRIVATE void    UpdateSlot( sal_Int16 nId );
-    // Locking der Invalidierung - wenn der interne Locking-Counter auf 0 geht, werden alle aufgelaufenen Slots
-    // (asynchron) invalidiert
+    // locking the invalidation - if the internal locking counter goes to 0, all accumulated slots
+    // are invalidated (asynchronously)
     SAL_DLLPRIVATE void    LockSlotInvalidation(bool bLock);
 
     DECL_DLLPRIVATE_LINK(OnInvalidateSlots, void*, void);
@@ -539,21 +540,20 @@ inline bool FmXFormShell::IsSelectionUpdatePending()
 }
 
 
-// = ein Iterator, der ausgehend von einem Interface ein Objekt sucht, dessen
-// = css::beans::Property-Set eine ControlSource- sowie eine BoundField-Eigenschaft hat,
-// = wobei letztere einen Wert ungleich NULL haben muss.
-// = Wenn das Interface selber diese Bedingung nicht erfuellt, wird getestet,
-// = ob es ein Container ist (also ueber eine css::container::XIndexAccess verfuegt), dann
-// = wird dort abgestiegen und fuer jedes Element des Containers das selbe
-// = versucht (wiederum eventuell mit Abstieg).
-// = Wenn irgendein Objekt dabei die geforderte Eigenschaft hat, entfaellt
-// = der Teil mit dem Container-Test fuer dieses Objekt.
+// = An iterator that, emanating from an interface, looks for an object whose
+// = css::beans::Property-Set has a ControlSource and a BoundField property, the
+// = latter having a non-NULL value. If the interface itself does not meet this
+// = condition, it is tested whether it is a container (that is, has a
+// = css::container::XIndexAccess), then it is descended there and the same tried
+// = for each element of the container (again possibly with descent). If any
+// = object thereby has the required property, the part with the container test
+// = for that object is omitted.
 // =
 
 class SearchableControlIterator : public ::comphelper::IndexAccessIterator
 {
     OUString         m_sCurrentValue;
-        // der aktuelle Wert der ControlSource-css::beans::Property
+        // the current value of the ControlSource css::beans::Property
 
 public:
     const OUString& getCurrentValue() const { return m_sCurrentValue; }
diff --git a/svx/source/inc/fmundo.hxx b/svx/source/inc/fmundo.hxx
index 40ed363cb2ff..d26e857d4214 100644
--- a/svx/source/inc/fmundo.hxx
+++ b/svx/source/inc/fmundo.hxx
@@ -141,7 +141,7 @@ public:
     FmXUndoEnvironment(FmFormModel& _rModel);
     virtual ~FmXUndoEnvironment() override;
 
-    // UNO Anbindung
+    // UNO connection
     //  SMART_UNO_DECLARATION(FmXUndoEnvironment, ::cppu::OWeakObject);
     //  virtual sal_Bool queryInterface(UsrUik, css::uno::Reference< css::uno::XInterface>&);
     //  virtual css::uno::Sequence< css::uno::Reference< css::reflection::XIdlClass>>    getIdlClasses();
@@ -192,8 +192,8 @@ private:
     void    switchListening( const css::uno::Reference< css::uno::XInterface >& _rxObject, bool _bStartListening );
     css::uno::Reference< css::script::XScriptListener > m_vbaListener;
 public:
-    // Methoden zur Zuordnung von Controls zu Forms,
-    // werden von der Seite und der UndoUmgebung genutzt
+    // Methods for assigning controls to forms,
+    // used by the page and the undo environment
     void Inserted(SdrObject* pObj);
     void Removed(SdrObject* pObj);
 
diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx
index 4bef73e801d5..98f5e2555197 100644
--- a/svx/source/inc/fmvwimp.hxx
+++ b/svx/source/inc/fmvwimp.hxx
@@ -169,7 +169,7 @@ class FmXFormView : public ::cppu::WeakImplHelper<
     MapControlContainerToSetOfForms
                     m_aNeedTabOrderUpdate;
 
-    // Liste der markierten Object, dient zur Restauration beim Umschalten von Alive in DesignMode
+    // list of selected objects, used for restoration when switching from Alive to DesignMode
     SdrMarkList             m_aMark;
     ObjectRemoveListener*   m_pWatchStoredList;
 
@@ -191,7 +191,7 @@ protected:
         // notifies this impl class that the anti-impl instance (m_pView) is going to die
 
 public:
-    // UNO Anbindung
+    // UNO connection
 
 // css::lang::XEventListener
     virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
diff --git a/svx/source/inc/formcontroller.hxx b/svx/source/inc/formcontroller.hxx
index 7fe54a170052..399cd80fbe85 100644
--- a/svx/source/inc/formcontroller.hxx
+++ b/svx/source/inc/formcontroller.hxx
@@ -189,12 +189,12 @@ namespace svxform
         bool                        m_bCurrentRecordModified    : 1;
         bool                        m_bCurrentRecordNew         : 1;
         bool                        m_bLocked                   : 1;
-        bool                        m_bDBConnection             : 1;    // Focuslistener nur fuer Datenbankformulare
+        bool                        m_bDBConnection             : 1;    // focus listener only for database forms
         bool                        m_bCycle                    : 1;
         bool                        m_bCanInsert                : 1;
         bool                        m_bCanUpdate                : 1;
         bool                        m_bCommitLock               : 1;    // lock the committing of controls see focusGained
-        bool                        m_bModified                 : 1;    // ist der Inhalt eines Controls modifiziert ?
+        bool                        m_bModified                 : 1;    // is the content of a control modified?
         bool                        m_bControlsSorted           : 1;
         bool                        m_bFiltering                : 1;
         bool                        m_bAttachEvents             : 1;
@@ -316,13 +316,13 @@ namespace svxform
     // css::beans::XPropertyChangeListener -> change of states
         virtual void SAL_CALL propertyChange(const  css::beans::PropertyChangeEvent& evt) override;
 
-    // XTextListener           -> modify setzen
+    // XTextListener           -> set modify
         virtual void SAL_CALL textChanged(const  css::awt::TextEvent& rEvent) override;
 
-    // XItemListener            -> modify setzen
+    // XItemListener            -> set modify
         virtual void SAL_CALL itemStateChanged(const  css::awt::ItemEvent& rEvent) override;
 
-    // XModifyListener   -> modify setzen
+    // XModifyListener   -> set modify
         virtual void SAL_CALL modified(const css::lang::EventObject& rEvent) override;
 
     // XFormController
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx
index 69993985f1da..eaef62eaf09d 100644
--- a/svx/source/inc/gridcell.hxx
+++ b/svx/source/inc/gridcell.hxx
@@ -59,35 +59,35 @@ protected:
 };
 
 
-// DbGridColumn, Spaltenbeschreibung
+// DbGridColumn, column description
 
 class DbGridColumn
 {
     friend class DbGridControl;
 
     css::uno::Reference< css::beans::XPropertySet >       m_xModel;
-    css::uno::Reference< css::beans::XPropertySet >       m_xField;       // Verbindung zum Datenbankfeld
-    ::svt::CellControllerRef m_xController; // Struktur zum Verwalten der Controls fuer eine Spalte
-                                        // diese wird von der DbBrowseBox auf die jeweiligen Zellen
-                                        // einer Spalte positioniert
+    css::uno::Reference< css::beans::XPropertySet >       m_xField;       // connection to the database field
+    ::svt::CellControllerRef m_xController; // structure for managing the controls for a column
+                                        // this is positioned by the DbBrowseBox on the respective
+                                        // cells of a column
     rtl::Reference<FmXGridCell>                           m_pCell;
 
 protected:
     DbGridControl&      m_rParent;
 
 private:
-    sal_Int32               m_nLastVisibleWidth;    // nur gueltig, wenn m_bHidden == sal_True
+    sal_Int32               m_nLastVisibleWidth;    // only valid if m_bHidden == sal_True
     sal_Int32               m_nFormatKey;
     sal_Int16               m_nFieldType;
     sal_Int16               m_nTypeId;
     sal_uInt16              m_nId;
     sal_Int16               m_nFieldPos;
-    sal_Int16               m_nAlign;                       // wird mit TXT_ALIGN_LEFT .... angegeben
+    sal_Int16               m_nAlign;                       // specified with TXT_ALIGN_LEFT ....
     bool                m_bReadOnly : 1;
     bool                m_bAutoValue : 1;
     bool                m_bInSave : 1;
     bool                m_bNumeric : 1;
-    bool                m_bObject : 1;  // Verweist die Column auf ein Object Datentyp?
+    bool                m_bObject : 1;  // does the column reference an object datatype?
     bool                m_bHidden : 1;
     bool                m_bLocked : 1;
     bool                m_bDateTime : 1;
@@ -137,17 +137,16 @@ public:
 
     css::uno::Reference< css::sdb::XColumn >  GetCurrentFieldValue() const;
 
-    //      Zeichnen eines Feldes an einer Position, ist ein View gesetzt
-    //      uebernimmt dieser das Zeichnen, z.B. fuer CheckBoxen
+    //      Drawing a field at a position. If a view is set, it takes over the drawing,
+    //      e.g., for checkboxes.
     void    Paint(OutputDevice& rDev,
                   const tools::Rectangle& rRect,
                   const DbGridRow* pRow,
                   const css::uno::Reference< css::util::XNumberFormatter >& xFormatter);
 
 
-    //      Inititialierung im alive mode
-    //      Ist kein ColumnController gesetzt, wird eine DefaultInitialisierung
-    //      vorgenommen
+    //      Initializing in the alive mode.
+    //      If no ColumnController is set, a default initialization is performed.
     void    CreateControl(sal_Int32 _nFieldPos, const css::uno::Reference< css::beans::XPropertySet >& xField, sal_Int32 nTypeId);
     void    UpdateControl()
             {
@@ -155,11 +154,11 @@ public:
                 CreateControl(m_nFieldPos, xField, m_nTypeId);
             }
 
-    //      Editieren einer Zelle
+    //      Editing a Zelle
     void    UpdateFromField(const DbGridRow* pRow, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter);
     bool    Commit();
 
-    //      freigeben aller Daten, die fuer den AliveMode noetig sind
+    //      releasing all the data required for the AliveMode
     void    Clear();
 
     OUString  GetCellText(const DbGridRow* pRow, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) const;
@@ -170,7 +169,7 @@ public:
 
     void    ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat );
 
-    // Properties, die auf den css::frame::Controller durchschlagen koennen
+    // properties that can bleed through onto the css::frame::Controller
     sal_Int16   SetAlignment(sal_Int16 _nAlign);
         // if _nAlign is -1, the alignment is calculated from the type of the field we are bound to
         // the value really set is returned
@@ -190,9 +189,8 @@ private:
 };
 
 
-// DbCellControl, liefert die Daten fuer einen CellController
-// wird in der Regel nur f\FCr komplexe Controls wie z.B ComboBoxen
-// benoetigt
+// DbCellControl, provides the data for a CellController.
+// Is usually only required for complex controls such as combo boxes.
 
 class DbCellControl
         :public FmMutexHelper           // _before_ the listener, so the listener is to be destroyed first!
@@ -277,11 +275,11 @@ public:
     void SetTextLineColor();
     void SetTextLineColor(const Color& _rColor);
 
-    // Initialisieren bevor ein Control angezeigt wird
+    // initializing before a control is displayed
     virtual void Init( vcl::Window& rParent, const css::uno::Reference< css::sdbc::XRowSet >& xCursor );
     virtual ::svt::CellControllerRef CreateController() const = 0;
 
-    // Schreiben des Wertes in das Model
+    // writing the value into the model
     bool Commit();
 
     // Formatting the field data to output text
@@ -291,7 +289,7 @@ public:
     // Refresh the control by the field data
     virtual void UpdateFromField(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) = 0;
 
-    // Painten eines Zellinhalts im vorgegeben Rechteck
+    // painting a cell content in the specified rectangle
     virtual void PaintFieldToCell( OutputDevice& rDev, const tools::Rectangle& rRect, const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter);
     virtual void PaintCell( OutputDevice& _rDev, const tools::Rectangle& _rRect );
 


More information about the Libreoffice-commits mailing list