[Libreoffice-commits] .: starmath/inc

Christina Rossmanith crossmanith at kemper.freedesktop.org
Thu Feb 17 06:52:36 PST 2011


 starmath/inc/document.hxx |   38 ++++++++++++++++++--------------------
 starmath/inc/smmod.hxx    |    2 +-
 starmath/inc/starmath.hrc |    6 +++---
 3 files changed, 22 insertions(+), 24 deletions(-)

New commits:
commit fa0f168a034cecb63135d59cc77fdc94316f39fb
Author: Tobias Kranz <tkranz at zedat.fu-berlin.de>
Date:   Thu Feb 17 15:52:17 2011 +0100

    German comments translated (writer-startmath-inc)

diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 6705cf5..847da63 100644
--- a/starmath/inc/document.hxx
+++ b/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)	//Difference to SM30VERSION is
+                                            //the new border in the format.
 
 #define FRMIDENT	((ULONG)0x03031963L)
 #define FRMVERSION	((ULONG)0x00010001L)
@@ -65,20 +65,19 @@ 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 different MapUnit than the server.
+ * Referring 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 control 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;
 class EditEngine;
@@ -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. This 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/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx
index 242b575..64f8bfa 100644
--- a/starmath/inc/smmod.hxx
+++ b/starmath/inc/smmod.hxx
@@ -166,7 +166,7 @@ public:
         return *pVirtualDev;
     }
 
-    //virtuelle Methoden fuer den Optionendialog
+    //virtual methods for options dialog
     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/starmath/inc/starmath.hrc b/starmath/inc/starmath.hrc
index 5c15da7..c0e3294 100644
--- a/starmath/inc/starmath.hrc
+++ b/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 an Enum
 #define HID_SMA_VIEWSHELL_DOCUMENT		(342)
 
 #endif


More information about the Libreoffice-commits mailing list