Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi there,

translated the German comments in writer/startmath/inc. Diffs in the
attachment.

Changes under LGPLv3+ / MPL

Tobias Kranz
diff --git a/libreoffice/writer/starmath/inc/document.hxx 
b/libreoffice/writer/starmath/inc/document.hxx
index 6705cf5..1333011 100644
--- a/libreoffice/writer/starmath/inc/document.hxx
+++ b/libreoffice/writer/starmath/inc/document.hxx
@@ -56,8 +56,8 @@ class SmCursor;
 #define SM30IDENT       ((ULONG)0x30334d53L)
 #define SM304AIDENT  ((ULONG)0x34303330L)
 #define SM30VERSION  ((ULONG)0x00010000L)
-#define SM50VERSION     ((ULONG)0x00010001L)   //Unterschied zur SM30VERSION ist
-                                            //der neue Border im Format.
+#define SM50VERSION     ((ULONG)0x00010001L)   //Diffrent to SM30VERSION is
+                                            //the new border in the format.
 
 #define FRMIDENT       ((ULONG)0x03031963L)
 #define FRMVERSION     ((ULONG)0x00010001L)
@@ -65,19 +65,18 @@ class SmCursor;
 #define STAROFFICE_XML "StarOffice XML (Math)"
 #define MATHML_XML             "MathML XML (Math)"
 
-/* Zugriff auf den Drucker sollte ausschliesslich ueber diese Klasse erfolgen
+/* Access to printer should happen through this class only
  * ==========================================================================
  *
- * Der Drucker kann dem Dokument oder auch dem OLE-Container gehoeren. Wenn
- * das Dokument also eine OLE-Dokument ist, so gehoert der Drucker auch
- * grundsaetzlich dem Container. Der Container arbeitet aber eventuell mit
- * einer anderen MapUnit als der Server. Der Drucker wird bezueglich des MapMode
- * im Konstruktor entsprechend eingestellt und im Destruktor wieder restauriert.
- * Das bedingt natuerlich, das diese Klasse immer nur kurze Zeit existieren darf
- * (etwa waehrend des Paints).
- * Die Kontrolle darueber ob der Drucker selbst angelegt, vom Server besorgt
- * oder dann auch NULL ist, uebernimmt die DocShell in der Methode GetPrt(),
- * fuer die der Access auch Friend der DocShell ist.
+ * The printer can belong to the document or the OLE-Container. If the document
+ * is an OLE-Document the printer generally belongs to the container too.
+ * But the container mayby works with a diffrent MapUnit than the server.
+ * Refering to the MapMode the printer will be accordingly adjusted in the
+ * constructor and restored in the destructor. This brings that this class         
+ * is always allowed to exists only a short time (e.g. while painting).
+ * The controll whether the printer is self-generated, gotten from the server
+ * or is NULL then, is taken by the DocShell in the method GetPrt(), for
+ * which the access is friend of the DocShell too.  
 */
 
 class SmDocShell;
@@ -119,8 +118,8 @@ class SmDocShell : public SfxObjectShell, public SfxListener
     SfxMenuBarManager  *pMenuMgr;
     SfxItemPool                   *pEditEngineItemPool;
     EditEngine            *pEditEngine;
-    SfxPrinter            *pPrinter;           //Siehe Kommentar zum SmPrinter Access!
-    Printer                       *pTmpPrinter;        //ebenfalls
+    SfxPrinter            *pPrinter;           //q.v. comment to SmPrinter Access!
+    Printer                       *pTmpPrinter;        //ditto
     long                               nLeftBorder,
                         nRightBorder,
                         nTopBorder,
@@ -186,10 +185,9 @@ public:
 
     void        ArrangeFormula();
 
-    //Zugriff fuer die View. Diese Zugriffe sind nur fuer den nicht OLE-Fall!
-    //und fuer die Kommunikation mit dem SFX!
-    //Alle internen Verwendungen des Printers sollten ausschlieslich uber
-    //den SmPrinterAccess funktionieren.
+    //Access for the View. Those access is not for the OLE-case!
+    //and for the communication with the SFX!
+    //All internal printer uses should work with the SmPrinterAccess only
     bool               HasPrinter()    { return 0 != pPrinter; }
     SfxPrinter *GetPrinter()   { GetPrt(); return pPrinter; }
     void           SetPrinter( SfxPrinter * );
diff --git a/libreoffice/writer/starmath/inc/smmod.hxx b/libreoffice/writer/starmath/inc/smmod.hxx
index 242b575..2187045 100644
--- a/libreoffice/writer/starmath/inc/smmod.hxx
+++ b/libreoffice/writer/starmath/inc/smmod.hxx
@@ -166,7 +166,7 @@ public:
         return *pVirtualDev;
     }
 
-    //virtuelle Methoden fuer den Optionendialog
+    //virtual methods for optionsdialog
     virtual SfxItemSet*         CreateItemSet( USHORT nId );
     virtual void                ApplyItemSet( USHORT nId, const SfxItemSet& rSet );
     virtual    SfxTabPage*      CreateTabPage( USHORT nId, Window* pParent, const SfxItemSet& rSet 
);
diff --git a/libreoffice/writer/starmath/inc/starmath.hrc 
b/libreoffice/writer/starmath/inc/starmath.hrc
index 5c15da7..c894ad8 100644
--- a/libreoffice/writer/starmath/inc/starmath.hrc
+++ b/libreoffice/writer/starmath/inc/starmath.hrc
@@ -52,7 +52,7 @@
 #define SID_ALIGN                               (SID_SMA_START + 53)
 
 #define SID_AUTO_REDRAW                        (SID_SMA_START + 55)
-#define SID_SYMBOLS                            (SID_SMA_START + 56) // Muss erstmal wieder 
aufgenommen werden !
+#define SID_SYMBOLS                            (SID_SMA_START + 56) // Has to be picked up again 
for now!
 #define SID_TEXTMODE                           (SID_SMA_START + 57)
 #define SID_INSERT_FORMULA                     (SID_SMA_START + 58)
 #define SID_TEXT                                (SID_SMA_START + 100)
@@ -750,8 +750,8 @@
 #define MN_SUB_SPELLING 34
 #define MN_SUB_TEMPLATES 35
 
-// 342 == SCH_IF_SMAVIEWSHELL, da SFX_INTERFACE_LIB kein
-// Define sondern neuerdings ein Enum ist
+// 342 == SCH_IF_SMAVIEWSHELL, because SFX_INTERFACE_LIB is no
+// Define but latterly a Enum
 #define HID_SMA_VIEWSHELL_DOCUMENT             (342)
 
 #endif

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.