diff options
Diffstat (limited to 'starmath/inc/document.hxx')
-rw-r--r-- | starmath/inc/document.hxx | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index f0661013db95..21b47a1f318c 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 * ); |