summaryrefslogtreecommitdiff
path: root/tools/inc/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools/inc/tools')
-rw-r--r--tools/inc/tools/b3dtrans.hxx72
-rw-r--r--tools/inc/tools/bigint.hxx2
-rw-r--r--tools/inc/tools/cachestr.hxx4
-rw-r--r--tools/inc/tools/contnr.hxx1
-rw-r--r--tools/inc/tools/debug.hxx16
-rw-r--r--tools/inc/tools/errcode.hxx4
-rw-r--r--tools/inc/tools/fontenum.hxx2
-rw-r--r--tools/inc/tools/fsys.hxx20
-rw-r--r--tools/inc/tools/postsys.h7
-rw-r--r--tools/inc/tools/presys.h4
-rw-r--r--tools/inc/tools/pstm.hxx74
-rw-r--r--tools/inc/tools/rc.h44
-rw-r--r--tools/inc/tools/rc.hxx1
-rw-r--r--tools/inc/tools/rcid.h24
-rw-r--r--tools/inc/tools/ref.hxx2
-rw-r--r--tools/inc/tools/resmgr.hxx45
-rw-r--r--tools/inc/tools/rtti.hxx23
-rw-r--r--tools/inc/tools/simplerm.hxx2
-rw-r--r--tools/inc/tools/stream.hxx71
-rw-r--r--tools/inc/tools/string.hxx8
-rw-r--r--tools/inc/tools/wintypes.hxx6
21 files changed, 196 insertions, 236 deletions
diff --git a/tools/inc/tools/b3dtrans.hxx b/tools/inc/tools/b3dtrans.hxx
index aa4204b4343a..a44916d70019 100644
--- a/tools/inc/tools/b3dtrans.hxx
+++ b/tools/inc/tools/b3dtrans.hxx
@@ -20,7 +20,6 @@
#ifndef _B3D_B3DTRANS_HXX
#define _B3D_B3DTRANS_HXX
-// Zu verwendender DephRange des Z-Buffers
#define ZBUFFER_DEPTH_RANGE ((double)(256L * 256L * 256L))
#include <basegfx/matrix/b3dhommatrix.hxx>
@@ -30,13 +29,8 @@
#include <basegfx/point/b2dpoint.hxx>
#include <tools/toolsdllapi.h>
-// Vorausdeklarationen
-/*************************************************************************
-|*
-|* Unterstuetzte Methoden, um das Seitenverhaeltnis einzuhalten
-|*
-\************************************************************************/
+// Supported methods for setting/keeping the aspect ratio
enum Base3DRatio
{
@@ -45,11 +39,7 @@ enum Base3DRatio
Base3DRatioMiddle
};
-/*************************************************************************
-|*
-|* Typ der Projektion
-|*
-\************************************************************************/
+// Supported projection types
enum Base3DProjectionType
{
@@ -57,11 +47,7 @@ enum Base3DProjectionType
Base3DProjectionTypePerspective
};
-/*************************************************************************
-|*
-|* Transformationen fuer alle 3D Ausgaben
-|*
-\************************************************************************/
+// Transformation sets for 3D output
class TOOLS_DLLPUBLIC B3dTransformationSet
{
@@ -81,13 +67,13 @@ private:
// Texture Matrices
basegfx::B2DHomMatrix maTexture;
- // Speziell zum Umwandeln von Punkten Objekt -> Device
+ // Special transformation set for converting Object -> Device
basegfx::B3DHomMatrix maObjectToDevice;
- // Transponierte Inverse fuer Vectortransformationen
+ // Transposed and inversed matrix for vector transformations
basegfx::B3DHomMatrix maInvTransObjectToEye;
- // Transformation World->View
+ // Transformation for World->View
basegfx::B3DHomMatrix maMatFromWorldToView;
basegfx::B3DHomMatrix maInvMatFromWorldToView;
@@ -95,7 +81,7 @@ private:
basegfx::B3DVector maScale;
basegfx::B3DVector maTranslate;
- // ViewPlane DeviceRectangle (vom Benutzer gesetzt)
+ // ViewPlane DeviceRectangle (user-defined)
double mfLeftBound;
double mfRightBound;
double mfBottomBound;
@@ -105,22 +91,22 @@ private:
double mfNearBound;
double mfFarBound;
- // Seitenverhaeltnis der 3D Abbildung (Y / X)
- // default ist 1:1 -> 1.0
- // Deaktivieren mit 0.0 als Wert
+ // Aspect ratio of 3D transformation (Y / X)
+ // default: 1:1 -> 1.0
+ // Disable with value 0.0
double mfRatio;
- // Der gesetzte Ausgabebereich (in logischen Koordinaten)
- // und der dazugehoerige sichtbare Bereich
+ // Viewport area in logical coordinates
Rectangle maViewportRectangle;
+ // Visible area within viewport
Rectangle maVisibleRectangle;
- // Die tatsaechlich von CalcViewport gesetzten Abmessungen
- // des sichtbaren Bereichs (in logischen Koordinaten)
+ // Actual coordinates as set by CalcViewport
+ // of visible viewport area (logical coordinates)
Rectangle maSetBound;
- // Methode zur Aufrechterhaltung des Seitenverhaeltnisses
- // default ist Base3DRatioGrow
+ // Method of keeping defined aspect ratio
+ // default: Base3DRatioGrow
Base3DRatio meRatio;
// Flags
@@ -134,7 +120,6 @@ public:
B3dTransformationSet();
virtual ~B3dTransformationSet();
- // Zurueck auf Standard
void Reset();
// ObjectTrans
@@ -156,12 +141,12 @@ public:
// Texture
const basegfx::B2DHomMatrix& GetTexture() { return maTexture; }
- // Seitenverhaeltnis und Modus zu dessen Aufrechterhaltung
+ // aspect ratio accessors and the defined method of keeping defined aspect ratio
double GetRatio() { return mfRatio; }
void SetRatio(double fNew=1.0);
Base3DRatio GetRatioMode() { return meRatio; }
- // Parameter der ViewportTransformation
+ // Parameters of ViewportTransformation
void SetDeviceRectangle(double fL=-1.0, double fR=1.0, double fB=-1.0, double fT=1.0, sal_Bool bBroadCastChange=sal_True);
double GetDeviceRectangleWidth() const { return mfRightBound - mfLeftBound; }
double GetDeviceRectangleHeight() const { return mfTopBound - mfBottomBound; }
@@ -174,7 +159,7 @@ public:
const Rectangle& GetViewportRectangle() { return maViewportRectangle; }
void CalcViewport();
- // Direkter Zugriff auf verschiedene Transformationen
+ // Direct accessors for miscellaneous transformations
const basegfx::B3DPoint WorldToEyeCoor(const basegfx::B3DPoint& rVec);
const basegfx::B3DPoint EyeToWorldCoor(const basegfx::B3DPoint& rVec);
@@ -204,12 +189,10 @@ protected:
};
/*************************************************************************
+|* Viewport for B3D
|*
-|* Viewport fuer B3D
-|*
-|* Verwendet wird hier ein vereinfachtes System, bei dem der abzubildende
-|* Punkt durch VRP repraesentiert wird
-|*
+|* Uses a simplified model, in which a point
+|* is described using a View Reference Point (VRP)
\************************************************************************/
class TOOLS_DLLPUBLIC B3dViewport : public B3dTransformationSet
@@ -237,11 +220,7 @@ protected:
void CalcOrientation();
};
-/*************************************************************************
-|*
-|* Kamera fuer B3D
-|*
-\************************************************************************/
+// B3D camera
class TOOLS_DLLPUBLIC B3dCamera : public B3dViewport
{
@@ -262,17 +241,14 @@ public:
sal_Bool bUseFocLen = sal_False);
virtual ~B3dCamera();
- // Positionen
const basegfx::B3DPoint& GetPosition() const { return aPosition; }
const basegfx::B3DVector& GetLookAt() const { return aLookAt; }
- // Brennweite in mm
+ // Focal length in mm
double GetFocalLength() const { return fFocalLength; }
- // Neigung links/rechts
double GetBankAngle() const { return fBankAngle; }
- // FocalLength Flag
sal_Bool GetUseFocalLength() const { return (sal_Bool)bUseFocalLength; }
protected:
diff --git a/tools/inc/tools/bigint.hxx b/tools/inc/tools/bigint.hxx
index e7abaf066ab7..bc8859642789 100644
--- a/tools/inc/tools/bigint.hxx
+++ b/tools/inc/tools/bigint.hxx
@@ -48,7 +48,7 @@ class TOOLS_DLLPUBLIC BigInt
private:
long nVal;
unsigned short nNum[MAX_DIGITS];
- sal_uInt8 nLen : 5; // Aktuelle Laenge
+ sal_uInt8 nLen : 5; // current length
sal_Bool bIsNeg : 1, // Is Sign negative
bIsBig : 1, // sal_True == BigInt
bIsSet : 1; // Not "Null" (not not 0)
diff --git a/tools/inc/tools/cachestr.hxx b/tools/inc/tools/cachestr.hxx
index dcad62c63bc2..babe4d07b98f 100644
--- a/tools/inc/tools/cachestr.hxx
+++ b/tools/inc/tools/cachestr.hxx
@@ -51,7 +51,7 @@ public:
~SvCacheStream();
void SetFilename( const String& rFN )
- { aFileName = rFN; } // darf nur vom FilenameHdl gerufen werden!
+ { aFileName = rFN; } // call only from FilenameHdl
const String& GetFilename() const { return aFileName; }
void SwapOut();
@@ -61,7 +61,7 @@ public:
sal_Bool IsPersistent() { return bPersistent != 0; }
void SetPersistence( sal_Bool b = sal_True ) { bPersistent = b; }
void SetSwapStream( SvStream *p )
- { pSwapStream = p; } // darf nur vom FilenameHdl gerufen werden!
+ { pSwapStream = p; } // call only from FilenameHdl
};
#endif
diff --git a/tools/inc/tools/contnr.hxx b/tools/inc/tools/contnr.hxx
index bf505f0ea85d..72b98fd56593 100644
--- a/tools/inc/tools/contnr.hxx
+++ b/tools/inc/tools/contnr.hxx
@@ -30,7 +30,6 @@ class CBlock;
// - Container -
// -------------
-// Maximale Blockgroesse
#define CONTAINER_MAXBLOCKSIZE ((sal_uInt16)0x3FF0)
#define CONTAINER_APPEND ULONG_MAX
diff --git a/tools/inc/tools/debug.hxx b/tools/inc/tools/debug.hxx
index 6210fdcda95c..6d3173725840 100644
--- a/tools/inc/tools/debug.hxx
+++ b/tools/inc/tools/debug.hxx
@@ -46,8 +46,6 @@
#ifdef DBG_UTIL
-// --- Dbg-Daten ---
-
typedef void (*DbgPrintLine)( const sal_Char* pLine );
typedef const sal_Char* (*DbgUsr)(const void* pThis );
typedef void (*DbgTestSolarMutexProc)();
@@ -102,8 +100,7 @@ struct DbgDataType
sal_Char const * pName;
};
-// --- Dbg-Prototypen ---
-
+// Dbg prototypes
#define DBG_FUNC_DEBUGSTART 1
#define DBG_FUNC_DEBUGEND 2
#define DBG_FUNC_GLOBALDEBUGEND 3
@@ -307,8 +304,7 @@ inline void DbgPrintFile( const sal_Char* pLine )
DbgFunc( DBG_FUNC_PRINTFILE, (void*)(sal_Char*)pLine );
}
-// --- Dbg-Output ---
-
+// Dbg output
#define DBG_OUT_TRACE 1
#define DBG_OUT_WARNING 2
#define DBG_OUT_ERROR 3
@@ -320,7 +316,7 @@ TOOLS_DLLPUBLIC void DbgOutTypef( sal_uInt16 nOutType, const sal_Char* pFStr, ..
TOOLS_DLLPUBLIC void DbgOutf( const sal_Char* pFStr, ... );
TOOLS_DLLPUBLIC void ImpDbgOutfBuf( sal_Char* pBuf, const sal_Char* pFStr, ... );
-// --- Dbg-Test-Functions ---
+// Dbg test functions
#define DBG_PROF_START 1
#define DBG_PROF_STOP 2
@@ -364,7 +360,7 @@ public:
}
};
-// --- Dbg-Defines (intern) ---
+// (internally used) defines
#define DBG_FUNC( aName ) DbgName_##aName()
#define DBG_NAME( aName ) static DbgDataType aImpDbgData_##aName = { 0, #aName }; \
@@ -372,7 +368,7 @@ public:
#define DBG_NAMEEX_VISIBILITY( aName, vis ) vis DbgDataType* DBG_FUNC( aName );
#define DBG_NAMEEX( aName ) DBG_NAMEEX_VISIBILITY( aName, )
-// --- Dbg-Defines (extern) ---
+// (externally used) defines
#define DBG_DEBUGSTART() DbgDebugStart()
#define DBG_DEBUGEND() DbgDebugEnd()
@@ -443,7 +439,7 @@ do \
DbgTestSolarMutex(); \
} while(0)
-// --- Dbg-Defines (An/Ausschlaten) ---
+// en-/disable debug defines
#define DBG_INSTOUTTRACE( nOut ) \
do \
diff --git a/tools/inc/tools/errcode.hxx b/tools/inc/tools/errcode.hxx
index e1153974a59d..3ba47276754b 100644
--- a/tools/inc/tools/errcode.hxx
+++ b/tools/inc/tools/errcode.hxx
@@ -32,7 +32,7 @@ Warning || || |
| || || || |
Dynamic || || |
| || || |
- Subsystembereiche | |
+ Subsystemarea| || |
| || |
| || |
| || |
@@ -294,7 +294,7 @@ inline sal_uIntPtr ERRCODE_TOERROR( sal_uIntPtr x )
#define SVSTREAM_DISK_FULL ERRCODE_IO_OUTOFSPACE
-// Fuer die EditEngine:
+// For the EditEngine:
#define SVSTREAM_ERRBASE_USER ERRCODE_AREA_LIB1
#define PRINTER_OK ERRCODE_NONE
diff --git a/tools/inc/tools/fontenum.hxx b/tools/inc/tools/fontenum.hxx
index 1ed65857541b..dfad418e55b5 100644
--- a/tools/inc/tools/fontenum.hxx
+++ b/tools/inc/tools/fontenum.hxx
@@ -129,7 +129,7 @@ typedef sal_uInt16 FontEmphasisMark;
#define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000)
#define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000)
-// Only for kompability
+// Only for compability
#define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
#define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
#define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 83d326ea4941..43d928e2c718 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -63,7 +63,7 @@ typedef int DirEntryKind;
#define FSYS_KIND_BLOCK ((DirEntryKind) 8)
#define FSYS_KIND_CHAR ((DirEntryKind) 16)
#define FSYS_KIND_WILD ((DirEntryKind) 32)
-#define FSYS_KIND_BLOCK_REMOTE ((DirEntryKind) 64) //TPF: fuer RFS
+#define FSYS_KIND_BLOCK_REMOTE ((DirEntryKind) 64)
#define FSYS_KIND_REMOVEABLE ((DirEntryKind) 128)
#define FSYS_KIND_FIXED ((DirEntryKind) 256)
#define FSYS_KIND_REMOTE ((DirEntryKind) 512)
@@ -92,11 +92,11 @@ typedef ::std::vector< FSysSort > FSysSortList;
enum DirEntryFlag
{
FSYS_FLAG_NORMAL,
- FSYS_FLAG_VOLUME, // Dir( FSYS_FLAG_VOLUME ) und GetDevice()
- FSYS_FLAG_ABSROOT, // z.B. "a:\" oder "\"
- FSYS_FLAG_RELROOT, // z.B. "a:", "a:." oder "."
- FSYS_FLAG_CURRENT = FSYS_FLAG_RELROOT, // Synonym fuer FSYS_FLAG_RELROOT
- FSYS_FLAG_PARENT, // z.B. ".."
+ FSYS_FLAG_VOLUME, // Dir( FSYS_FLAG_VOLUME ) and GetDevice()
+ FSYS_FLAG_ABSROOT, // e.g. "a:\" or "\"
+ FSYS_FLAG_RELROOT, // e.g. "a:", "a:." or "."
+ FSYS_FLAG_CURRENT = FSYS_FLAG_RELROOT, // Synonym for FSYS_FLAG_RELROOT
+ FSYS_FLAG_PARENT, // e.g. ".."
FSYS_FLAG_INVALID
};
@@ -122,7 +122,7 @@ typedef int FSysAction;
// clashes
#define FSYS_ACTION_STANDARD 0
-// Fuer RFS
+// RFS
#define RFS_IDENTIFIER "-rfs-"
typedef sal_uIntPtr FSysError;
@@ -373,10 +373,10 @@ class TOOLS_DLLPUBLIC Dir : public DirEntry
{
friend struct DirReader_Impl;
- DirReader_Impl* pReader; // systemabhaengig
+ DirReader_Impl* pReader; // is system-dependent
DirEntryList* pLst;
- FSysSortList* pSortLst; // NULL, wenn kein Sort gefordert
- FileStatList* pStatLst; // NULL, wenn keine Stat's benoetigt
+ FSysSortList* pSortLst; // NULL if no sorting requested
+ FileStatList* pStatLst; // NULL if no stats requested
WildCard aNameMask;
DirEntryKind eAttrMask;
diff --git a/tools/inc/tools/postsys.h b/tools/inc/tools/postsys.h
index ad12f6ee4282..3c3431e50b8d 100644
--- a/tools/inc/tools/postsys.h
+++ b/tools/inc/tools/postsys.h
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-/* nicht geschuetz, muss als gegenstueck zu prestl.h includet werden */
+/* not protected, must be included together with prestl.h! */
#if defined WNT
@@ -27,7 +27,7 @@
#undef Rectangle
#undef DELETE
-/* Hilfe-Ids umbenennen */
+/* rename help IDs */
#define WIN_HELP_INDEX 0x0003
#define WIN_HELP_HELPONHELP 0x0004
#undef HELP_INDEX
@@ -206,7 +206,6 @@
#define WIN_FindWindow FindWindow
#endif
-// keine Yield-Definition
#undef Yield
/* new StretchBlt() Modes (simpler names) */
@@ -229,7 +228,7 @@ extern "C"
#endif
-// Konfl�kt mit den Tools-Pair vermeiden
+// avoid conflict with Pair in tools
#undef Pair
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/presys.h b/tools/inc/tools/presys.h
index aed0d9545abd..521768685aa9 100644
--- a/tools/inc/tools/presys.h
+++ b/tools/inc/tools/presys.h
@@ -17,9 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-/* nicht geschuetzt, darf nur einmal includet werden */
+/* not protected, do only include once! */
-// Konfl�kt mit den Tools-Pair vermeiden
+// avoid conflict with pair in tools
#define Pair StlPair
#if defined WNT
diff --git a/tools/inc/tools/pstm.hxx b/tools/inc/tools/pstm.hxx
index c74c108c2cff..3a209687d137 100644
--- a/tools/inc/tools/pstm.hxx
+++ b/tools/inc/tools/pstm.hxx
@@ -155,46 +155,45 @@ typedef std::map<SvPersistBase*, sal_uIntPtr> PersistBaseMap;
//=========================================================================
class SvStream;
-class TOOLS_DLLPUBLIC SvPersistStream : public SvStream
-/* [Beschreibung]
-
- Mit dieser Klasse k"onnen Laufzeit Objektstrukturen gespeichert
- und geladen werden. Es m"ussen immer alle beteiligten Objekte
- gespeichert oder geladen werden. Um die Objekte automatisch
- laden zu k"onnen, wird eine Factory f"ur jede Klasse von Objekten,
- die im Stream vorkommen k"onnen, ben"otigt. Die Liste aller Klassen
- wird in einem <SvClassManager> Objekt gespeichert und dem
- SvPersistStream "ubergeben, wenn er erzeugt wird.
- Weiterhin wird die M"oglichkeit geboten sal_uInt32 Werte komprimiert
- zu schreiben und zu lesen (<SvPersistStream::WriteCompressed>,
- <SvPersistStream::ReadCompressed>).
- Es gibt auch die drei Hilfsmethoden <SvPersistStream::WriteDummyLen>,
- <SvPersistStream::WriteLen> und <SvPersistStream::ReadLen> um eine
- L"ange vor das Objekt zu schreiben.
-
- [Beispiel]
-
- Ein konkretes Beispiel ist im Konstruktor beschrieben.
- Objekt A verweist auf B, dieses auf C und das wieder auf A.
- C verweist auf D.
-
- Die Reihenfolge beim Speichern und Laden ist egal, sie muss nur
- gleich sein:
- Speichern: Laden:
- A,B,C,D A,B,C,D richtig
- B,A,C,D B,A,C,D richtig
- C,A,B,D A,B,C,D falsch
- A,B,C,D A,B,C falsch
-
- [Anmerkung]
-
- Das Dateiformat zwischen DBG_UTIL und !DBG_UTIL ist unterschiedlich,
- kann aber von beiden Versionen gelesen werden.
+
+/** Persistent Stream
+
+ This class provides accessor to storing and loading runtime objects.
+ All dependent objects have to be stored as well.
+ In order to load objects automatically, every object class must
+ provide a Factory method to read an object from stream.
+ The list of all classes is stored in a <SvClassManager> object
+ and is sent to SvPersistStream upon initialization.
+ By using the Method SvPersistStream::WriteCompressed and
+ SvPersistStream::ReadCompressed, compressed sal_uInt32 values may be
+ written to / read from the Stream.
+ Several helper methods exists for writing and reading
+ object lengths to the stream: SvPersistStream::WriteDummyLen,
+ SvPersistStream::WriteLen and SvPersistStream::ReadLen.
+
+ [Example]
+
+ One example is described in the constructor.
+ Assume a ring-like dependency, where A referenes B,
+ B itself references C, and C references to both D and A.
+
+ The order of the objects upon saving and loading does not matter,
+ as long objects are loaded in the same order they were stored.
+
+ Saving: Loading:
+ A,B,C,D A,B,C,D correct
+ B,A,C,D B,A,C,D correct
+ C,A,B,D A,B,C,D wrong
+ A,B,C,D A,B,C wrong
+
+ @note The file formats DBG_UTIL and !DBG_UTIL differ, but we can read from
+ both versions.
*/
+class TOOLS_DLLPUBLIC SvPersistStream : public SvStream
{
SvClassManager & rClassMgr;
SvStream * pStm;
- PersistBaseMap aPTable; // Pointer und Key gedreht
+ PersistBaseMap aPTable; // reversed pointer and key
SvPersistUIdx aPUIdx;
sal_uIntPtr nStartIdx;
const SvPersistStream * pRefStm;
@@ -239,8 +238,7 @@ public:
TOOLS_DLLPUBLIC friend SvPersistStream& operator << (SvPersistStream &, SvPersistBase *);
TOOLS_DLLPUBLIC friend SvPersistStream& operator >> (SvPersistStream &, SvPersistBase * &);
- // Objekte halten ihre Id's w"ahrend geladen und
- // gespeichert werden.
+ // Objects maintain their IDs while storing and loading to/from stream
friend SvStream& operator >> ( SvStream &, SvPersistStream & );
friend SvStream& operator << ( SvStream &, SvPersistStream & );
};
diff --git a/tools/inc/tools/rc.h b/tools/inc/tools/rc.h
index 894b1cffd5d4..6b8cfde1c9e5 100644
--- a/tools/inc/tools/rc.h
+++ b/tools/inc/tools/rc.h
@@ -22,9 +22,9 @@
#include <tools/rcid.h>
-// Definition der Struktur die alle "Window"-Resourcen haben
-// Hier sind die Fensterstyles definiert die nicht in WinBits sind
-#define RSC_EXTRAMAPUNIT 0xFFFF //Wert nicht veraendern!!!
+// Defines for all "Window" resources.
+// (Here are all window styles that are not in WinBits)
+#define RSC_EXTRAMAPUNIT 0xFFFF // do not change that value!
typedef short RSWND_STYLE;
#define RSWND_DISABLED 0x01
@@ -44,26 +44,26 @@ typedef short RSWND_STYLE;
#define WINDOW_BORDER_STYLE 0x2000
#define WINDOW_HELPID 0x4000
-// Definition der Struktur die alle "WorkWindow"-Resourcen haben
+// For "WorkWindow" resources:
#define WORKWIN_SHOWNORMAL 0
#define WORKWIN_SHOWMINIMIZED 1
#define WORKWIN_SHOWMAXIMIZED 2
-// Definition der Struktur der FixedBitmap-Resource.
+// For "FixedBitmap" resource:
#define RSC_FIXEDBITMAP_BITMAP 0x0001
-// Definition der Struktur der FixedImage-Resource.
+// For "FixedImage" resource:
#define RSC_FIXEDIMAGE_IMAGE 0x0001
-// Definition der Struktur des MenuButtons
+// For "MenuButton" resources:
#define RSCMENUBUTTON_MENU 0x01
-// Definition der Struktur die alle Menu-Resourcen haben
+// For all menu resources:
#define RSC_MENU_ITEMS 0x01
#define RSC_MENU_TEXT 0x02
#define RSC_MENU_DEFAULTITEMID 0x04
-// Hier sind die MenuItem-Resourceoptionen definiert
+// "MenuItem" resource options:
#define RSC_MENUITEM_SEPARATOR 0x001
#define RSC_MENUITEM_ID 0x002
#define RSC_MENUITEM_STATUS 0x004
@@ -77,11 +77,11 @@ typedef short RSWND_STYLE;
#define RSC_MENUITEM_DISABLE 0x400
#define RSC_MENUITEM_COMMAND 0x800
-// Hier sind die AccelKey-Resourceoptionen definiert
+// "AccelKey" resource options:
#define ACCELITEM_ACCEL 0x01
#define ACCELITEM_KEY 0x02
-// Definition der Struktur die alle "Field"-Resourcen haben
+// For "Field" resources:
#define PATTERNFORMATTER_STRICTFORMAT 0x01
#define PATTERNFORMATTER_EDITMASK 0x02
#define PATTERNFORMATTER_LITTERALMASK 0x04
@@ -130,7 +130,7 @@ typedef short RSWND_STYLE;
#define TIMEFIELD_FIRST 0x01
#define TIMEFIELD_LAST 0x02
-// Definition der Struktur die alle "ToolBoxItem"-Resourcen haben
+// For "ToolBoxItem" resources:
#define RSC_TOOLBOXITEM_ID 0x0001
#define RSC_TOOLBOXITEM_TYPE 0x0002
#define RSC_TOOLBOXITEM_STATUS 0x0004
@@ -145,7 +145,7 @@ typedef short RSWND_STYLE;
#define RSC_TOOLBOXITEM_COMMAND 0x0800
#define RSC_TOOLBOXITEM_MENUSTRINGS 0x1000
-// Definition der Struktur die alle ToolBox-Resourcen haben
+// For "ToolBox" resources:
#define RSC_TOOLBOX_BUTTONTYPE 0x01
#define RSC_TOOLBOX_ALIGN 0x02
#define RSC_TOOLBOX_LINECOUNT 0x04
@@ -155,45 +155,45 @@ typedef short RSWND_STYLE;
#define RSC_TOOLBOX_ITEMIMAGELIST 0x40
#define RSC_TOOLBOX_ITEMLIST 0x80
-// Definition der Struktur die alle MoreButton-Resourcen haben
+// For "MoreButton" resources:
#define RSC_MOREBUTTON_STATE 0x01
#define RSC_MOREBUTTON_MAPUNIT 0x02
#define RSC_MOREBUTTON_DELTA 0x04
-// Definition der Struktur die alle FloatingWindow-Resourcen haben
+// For "FloatingWindow" resources:
#define RSC_FLOATINGWINDOW_WHMAPMODE 0x01
#define RSC_FLOATINGWINDOW_WIDTH 0x02
#define RSC_FLOATINGWINDOW_HEIGHT 0x04
#define RSC_FLOATINGWINDOW_ZOOMIN 0x08
-// Definition der Struktur die alle DockingWindow-Resourcen haben
+// For "DockingWindow" resources:
#define RSC_DOCKINGWINDOW_XYMAPMODE 0x01
#define RSC_DOCKINGWINDOW_X 0x02
#define RSC_DOCKINGWINDOW_Y 0x04
#define RSC_DOCKINGWINDOW_FLOATING 0x08
-// Definition der Struktur die alle "TabControlItem"-Resourcen haben
+// For "TabControlItem" resources:
#define RSC_TABCONTROLITEM_ID 0x0001
#define RSC_TABCONTROLITEM_TEXT 0x0002
#define RSC_TABCONTROLITEM_PAGERESID 0x0008
-// Definition der Struktur die alle TabControl-Resourcen haben
+// For "TabControl" resources:
#define RSC_TABCONTROL_ITEMLIST 0x01
-// Definition der Struktur des ImageButtons
+// For "ImageButtons":
#define RSC_IMAGEBUTTON_IMAGE 0x01
#define RSC_IMAGEBUTTON_SYMBOL 0x02
#define RSC_IMAGEBUTTON_STATE 0x04
-// Definition der Struktur des ImageRadioButtons
+// For "ImageRadioButtons":
#define RSC_IMAGERADIOBUTTON_IMAGE 0x01
-// Definition der Struktur des Image
+// For "Image":
#define RSC_IMAGE_IMAGEBITMAP 0x01
#define RSC_IMAGE_MASKBITMAP 0x02
#define RSC_IMAGE_MASKCOLOR 0x04
-// Definition der Struktur des Image
+// For "ImageList":
#define RSC_IMAGELIST_IMAGEBITMAP 0x01
#define RSC_IMAGELIST_MASKBITMAP 0x02
#define RSC_IMAGELIST_MASKCOLOR 0x04
diff --git a/tools/inc/tools/rc.hxx b/tools/inc/tools/rc.hxx
index 3e35b97c1763..899d7e2aaf54 100644
--- a/tools/inc/tools/rc.hxx
+++ b/tools/inc/tools/rc.hxx
@@ -79,7 +79,6 @@ class TOOLS_DLLPUBLIC Resource
rtl::OString ReadByteStringRes()
{ return m_pResMgr->ReadByteString(); }
- // Gibt die Resource frei (this-Zeiger fuer Fehlerueberpruefung)
// free the resource from m_pResMgr's stack (pass this ptr for validation)
void FreeResource()
{ m_pResMgr->PopContext( this ); }
diff --git a/tools/inc/tools/rcid.h b/tools/inc/tools/rcid.h
index d3aad9082729..c864c04bc8e3 100644
--- a/tools/inc/tools/rcid.h
+++ b/tools/inc/tools/rcid.h
@@ -22,25 +22,24 @@
#include <tools/resid.hxx>
-// Definition der Versionsnummer
+// Definition of the version number
#define RSCVERSION_ID 200U
-// Definition eines ungueltige Identifiers.
+// Definition of an invalid identifier
#define RC_NO_ID (sal_uInt32(0xFFFFFFFF))
-// Dies sind die Resourcetypen
-// Mindestens 0x100 wegen MS-Windows Resourcetypen
-//#define RSC_NOTYPE 0x100
-//RSC_NOTYPE wird in resid.hxx definiert
+// Resource types
+// Minimum is 0x100 due to MS-Windows resource types
+// (RSC_NOTYPE=0x100) is defined in resid.hxx
#define RSC_BYNAME (RSC_NOTYPE + 0x01)
-#define RSC_VERSIONCONTROL (RSC_NOTYPE + 0x02) // Versionskontrolle
+#define RSC_VERSIONCONTROL (RSC_NOTYPE + 0x02) // Version control
#define RSC_RESOURCE (RSC_NOTYPE + 0x10)
#define RSC_STRING (RSC_NOTYPE + 0x11)
#define RSC_BITMAP (RSC_NOTYPE + 0x13)
#define RSC_ACCEL (RSC_NOTYPE + 0x1a)
-#define RSC_ACCELITEM (RSC_NOTYPE + 0x1b)// nur intern
+#define RSC_ACCELITEM (RSC_NOTYPE + 0x1b) // only used internally
#define RSC_MENU (RSC_NOTYPE + 0x1c)
-#define RSC_MENUITEM (RSC_NOTYPE + 0x1d)// nur intern
+#define RSC_MENUITEM (RSC_NOTYPE + 0x1d) // only used internally
#define RSC_KEYCODE (RSC_NOTYPE + 0x1f)
#define RSC_TIME (RSC_NOTYPE + 0x20)
#define RSC_DATE (RSC_NOTYPE + 0x21)
@@ -115,13 +114,12 @@
#define RSC_TREELISTBOX (RSC_NOTYPE + 0x78)
#define RSC_STRINGARRAY (RSC_NOTYPE + 0x79)
-// (RSC_NOTYPE + 0x200) - (RSC_NOTYPE + 0x300) fuer Sfx reserviert
+// (RSC_NOTYPE + 0x200) - (RSC_NOTYPE + 0x300) reserved for Sfx
#define RT_SYS_BITMAP (RSC_NOTYPE + 0xf2)
-#define RT_SYS_STRING (RSC_NOTYPE + 0xf3) // Sonderbehandlung
-#define RT_SYS_FILE (RSC_NOTYPE + 0xf4) // nicht implementiert
+#define RT_SYS_STRING (RSC_NOTYPE + 0xf3) // special case
+#define RT_SYS_FILE (RSC_NOTYPE + 0xf4) // not implemented
-// (RSC_NOTYPE + 0x200) - (RSC_NOTYPE + 0x300) fuer Sfx reserviert
#endif // _RCID_H
diff --git a/tools/inc/tools/ref.hxx b/tools/inc/tools/ref.hxx
index 0154e3e2c54b..bc945f1f3e5a 100644
--- a/tools/inc/tools/ref.hxx
+++ b/tools/inc/tools/ref.hxx
@@ -220,7 +220,7 @@ class SvCompatWeakBase
public:
SvCompatWeakHdl* GetHdl() { return _xHdl; }
- // Wg CompilerWarnung nicht ueber Initializer
+ // does not use Initalizer due to compiler warnings
SvCompatWeakBase( void* pObj ) { _xHdl = new SvCompatWeakHdl( pObj ); }
~SvCompatWeakBase() { _xHdl->ResetWeakBase(); }
};
diff --git a/tools/inc/tools/resmgr.hxx b/tools/inc/tools/resmgr.hxx
index 396363ec5040..985365760f04 100644
--- a/tools/inc/tools/resmgr.hxx
+++ b/tools/inc/tools/resmgr.hxx
@@ -34,20 +34,20 @@ class InternalResMgr;
// - RSHEADER_TYPE -
// -----------------
-// Definition der Struktur, aus denen die Resource aufgebaut ist
+// Defines structure used to build resource
struct RSHEADER_TYPE
{
private:
- sal_uInt32 nId; // Identifier der Resource
- RESOURCE_TYPE nRT; // Resource Typ
- sal_uInt32 nGlobOff; // Globaler Offset
- sal_uInt32 nLocalOff; // Lokaler Offset
+ sal_uInt32 nId; // Identifier of resource
+ RESOURCE_TYPE nRT; // Resource type
+ sal_uInt32 nGlobOff; // Global offset
+ sal_uInt32 nLocalOff; // Local offset
public:
- inline sal_uInt32 GetId(); // Identifier der Resource
- inline RESOURCE_TYPE GetRT(); // Resource Typ
- inline sal_uInt32 GetGlobOff(); // Globaler Offset
- inline sal_uInt32 GetLocalOff(); // Lokaler Offset
+ inline sal_uInt32 GetId(); // Identifier of resource
+ inline RESOURCE_TYPE GetRT(); // Resource type
+ inline sal_uInt32 GetGlobOff(); // Global offset
+ inline sal_uInt32 GetLocalOff(); // Local offset
};
// ----------
@@ -60,9 +60,9 @@ typedef rtl::OUString (*ResHookProc)( const rtl::OUString& rStr );
// - ResMgr -
// ----------
-// Initialisierung
+// Initialization
#define RC_NOTYPE 0x00
-// Globale Resource
+// Global resource
#define RC_GLOBAL 0x01
#define RC_AUTORELEASE 0x02
#define RC_NOTFOUND 0x04
@@ -134,11 +134,11 @@ private:
ResMgr(const ResMgr&);
ResMgr& operator=(const ResMgr&);
public:
- static void DestroyAllResMgr(); // Wird gerufen, wenn App beendet wird
+ static void DestroyAllResMgr(); // Called upon app shutdown
~ResMgr();
- // Sprachabhaengige Resource Library
+ // Language-dependent resource library
static const sal_Char* GetLang( LanguageType& eLanguage, sal_uInt16 nPrio = 0 ); //depricated! see "tools/source/rc/resmgr.cxx"
static ResMgr* SearchCreateResMgr( const sal_Char* pPrefixName,
com::sun::star::lang::Locale& rLocale );
@@ -147,23 +147,23 @@ public:
rtl::OUString(),
rtl::OUString()));
- // Testet ob Resource noch da ist
+ // Test whether resource still exists
void TestStack( const Resource * );
- // ist Resource verfuegbar
+ // Returns whether resource is available
sal_Bool IsAvailable( const ResId& rId,
const Resource* = NULL) const;
- // Resource suchen und laden
+ // Search and load resource, given its ID
sal_Bool GetResource( const ResId& rId, const Resource * = NULL );
static void * GetResourceSkipHeader( const ResId& rResId, ResMgr ** ppResMgr );
- // Kontext freigeben
+ // Free resource context
void PopContext( const Resource* = NULL );
- // Resourcezeiger erhoehen
+ // Increment resource pointer
void* Increment( sal_uInt32 nSize );
- // Groesse ein Objektes in der Resource
+ // Size of an object within the resource
static sal_uInt32 GetObjSize( RSHEADER_TYPE* pHT )
{ return( pHT->GetGlobOff() ); }
@@ -172,24 +172,23 @@ public:
// returns a byte string and its length out of the resource
static sal_uInt32 GetByteString( rtl::OString& rStr, const sal_uInt8* pStr );
- // Groesse eines Strings in der Resource
+ // returns the size of a string in the resource
static sal_uInt32 GetStringSize( sal_uInt32 nLen )
{ nLen++; return (nLen + nLen%2); }
static sal_uInt32 GetStringSize( const sal_uInt8* pStr, sal_uInt32& nLen );
// return a int64
static sal_uInt64 GetUInt64( void* pDatum );
- // Gibt einen long zurueck
+ // return a long
static sal_Int32 GetLong( void * pLong );
// return a short
static sal_Int16 GetShort( void * pShort );
- // Gibt einen Zeiger auf die Resource zurueck
+ // return a pointer to the resource
void * GetClass();
RSHEADER_TYPE * CreateBlock( const ResId & rId );
- // Gibt die verbleibende Groesse zurueck
sal_uInt32 GetRemainSize();
const rtl::OUString&GetFileName() const;
diff --git a/tools/inc/tools/rtti.hxx b/tools/inc/tools/rtti.hxx
index 3a5bb9705b58..cb3abec0ba11 100644
--- a/tools/inc/tools/rtti.hxx
+++ b/tools/inc/tools/rtti.hxx
@@ -105,25 +105,24 @@ typedef void* (*TypeId)();
//-------------------------------------------------------------------------
-// Die (exemplarischen) Makros fuer die Anwendung ( hier fuer
-// Pointer, kann aber nach dem gleichen Strickmuster fuer
-// Referenzen erweitert werden.
-// PTR_CAST: sicheres Casten eines Pointers auf einen Pointer
-// einer abgeleiteten Klasse. Liefert im Fehlerfall einen
-// Nullpointer (wahrscheinlich die haeufigste Anwendung)
+// Exemplary application macros for pointers
+// (can be extended for use with references)
//
-// T: Typ, auf den gecastet werden soll
-// p: Pointer, der gecastet werden soll
+// PTR_CAST: Safe pointer casting to a derived class.
+// Returns NULL pointer on cast error.
+//
+// T: Target type to cast into
+// p: Pointer to be cast into T
#define PTR_CAST( T, pObj ) \
( pObj && (pObj)->IsA( TYPE(T) ) ? (T*)(pObj) : 0 )
-// Abfrage, ob ein Objekt eine bestimmte Klasse als
-// Basisklasse hat (oder genau von dieser Klasse ist)
+// Check whether object pObj has a Base Class T
+// (or if pObj is an instance of T)
#define HAS_BASE( T, pObj ) \
( pObj && (pObj)->IsA( TYPE(T) ) )
-// Abfrage, ob ein Pointer auf ein Objekt eines bestimmten
-// Typs zeigt
+// Check whether a pointer is targetting
+// an object of type T.
#define IS_TYPE(T,pObj) \
( pObj && (pObj)->Type() == TYPE(T) )
diff --git a/tools/inc/tools/simplerm.hxx b/tools/inc/tools/simplerm.hxx
index e956b81dbda2..2ef211105e79 100644
--- a/tools/inc/tools/simplerm.hxx
+++ b/tools/inc/tools/simplerm.hxx
@@ -57,7 +57,7 @@ public:
static SimpleResMgr* Create( const sal_Char* pPrefixName,
::com::sun::star::lang::Locale aLocale = ::com::sun::star::lang::Locale( rtl::OUString(),
rtl::OUString(),
- rtl::OUString()));// nur in VCL
+ rtl::OUString()));// only in VCL
bool IsValid() const { return m_pResImpl != NULL; }
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx
index a72f2037fe3f..dafcfc342cfa 100644
--- a/tools/inc/tools/stream.hxx
+++ b/tools/inc/tools/stream.hxx
@@ -230,25 +230,24 @@ class TOOLS_DLLPUBLIC SvStream
private:
// LockBytes Interface
void* pImp; // unused
- SvLockBytesRef xLockBytes; // Default Implmentierung
+ SvLockBytesRef xLockBytes; // Default implementation
sal_Size nActPos; //
// Puffer-Verwaltung
- sal_uInt8* pRWBuf; // Zeigt auf Read/Write-Puffer
+ sal_uInt8* pRWBuf; // Points to read/write buffer
sal_uInt8* pBufPos; // pRWBuf + nBufActualPos
- sal_uInt16 nBufSize; // Allozierte Groesse des Puffers
- sal_uInt16 nBufActualLen; // Laenge des beschriebenen Teils des Puffers
- // Entspricht nBufSize, wenn EOF nicht
- // ueberschritten wurde
- sal_uInt16 nBufActualPos; // aktuelle Position im Puffer (0..nBufSize-1)
- sal_uInt16 nBufFree; // freier Platz im Puffer fuer IO vom Typ eIOMode
+ sal_uInt16 nBufSize; // Allocated size of buffer
+ sal_uInt16 nBufActualLen; // Length of used segment of puffer
+ // = nBufSize, if EOF did not occur
+ sal_uInt16 nBufActualPos; // current position in buffer (0..nBufSize-1)
+ sal_uInt16 nBufFree; // number of free slots in buffer to IO of type eIOMode
unsigned int eIOMode:2; // STREAM_IO_*
- // Error-Codes, Konvertierung, Komprimierung, ...
- int bIsDirty:1; // sal_True: Stream != Pufferinhalt
- int bIsConsistent:1;// sal_False: Buffer enthaelt Daten, die NICHT
- // per PutData in den abgeleiteten Stream
- // geschrieben werden duerfen (siehe PutBack)
+ // Error codes, conversion, compression, ...
+ int bIsDirty:1; // sal_True: Stream != buffer content
+ int bIsConsistent:1;// sal_False: Buffer contains data, which were
+ // NOT allowed to be written by PutData
+ // into the derived stream (cf. PutBack)
int bSwap:1;
int bIsEof:1;
sal_uInt32 nError;
@@ -257,21 +256,21 @@ private:
LineEnd eLineDelimiter;
CharSet eStreamCharSet;
- // Verschluesselung
- rtl::OString m_aCryptMaskKey; // aCryptMaskKey.getLength != 0 -> Verschluesselung
+ // Encryption
+ rtl::OString m_aCryptMaskKey; // aCryptMaskKey.getLength != 0 -> Encryption used
unsigned char nCryptMask;
// Userdata
long nVersion; // for external use
- // Hilfsmethoden
+ // helper methods
TOOLS_DLLPRIVATE void ImpInit();
SvStream ( const SvStream& rStream ); // not implemented
SvStream& operator=( const SvStream& rStream ); // not implemented
protected:
- sal_Size nBufFilePos; // Fileposition von pBuf[0]
+ sal_Size nBufFilePos; // File position of pBuf[0]
sal_uInt16 eStreamMode;
sal_Bool bIsWritable;
@@ -284,7 +283,7 @@ protected:
void ClearError();
void ClearBuffer();
- // verschluesselt & schreibt blockweise
+ // encrypt and write in blocks
sal_Size CryptAndWriteBuffer( const void* pStart, sal_Size nLen );
sal_Bool EncryptBuffer( void* pStart, sal_Size nLen );
@@ -487,7 +486,7 @@ public:
long GetVersion() { return nVersion; }
void SetVersion( long n ) { nVersion = n; }
- friend SvStream& operator<<( SvStream& rStr, SvStrPtr f ); // fuer Manips
+ friend SvStream& operator<<( SvStream& rStr, SvStrPtr f ); // for Manips
//end of input seen during previous i/o operation
bool eof() const { return bIsEof; }
@@ -694,7 +693,7 @@ protected:
virtual void FlushData();
public:
- // Schaltet bei fehlgeschlagenem Schreiboeffnen auf Lesen zurueck
+ // Switches to Read StreamMode on failed attempt of Write opening
SvFileStream( const String& rFileName, StreamMode eOpenMode );
SvFileStream();
~SvFileStream();
@@ -737,25 +736,24 @@ protected:
virtual void SetSize( sal_Size nSize );
virtual void FlushData();
- // AllocateMemory muss folgende Variable mitpflegen:
- // - pBuf: Adresse des neuen Blocks
+ // AllocateMemory must update pBuf accordingly
+ // - pBuf: Address of new block
virtual sal_Bool AllocateMemory( sal_Size nSize );
- // ReAllocateMemory muss folgende Variablen mitpflegen:
- // - pBuf: Adresse des neuen Blocks
- // - nEndOfData: Muss auf nNewSize-1L gesetzt werden, wenn ausserhalb des Blocks
- // Muss auf 0 gesetzt werden, wenn neuer Block 0 Byte gross
- // - nSize: Neue Groesse des Blocks
- // - nPos: Muss auf 0 gesetzt werden, wenn ausserhalb des Blocks
+ // ReAllocateMemory must update the following variables:
+ // - pBuf: Address of new block
+ // - nEndOfData: Set to nNewSize-1L if outside of block
+ // Set to 0 if new block size is 0 bytes
+ // - nSize: New block size
+ // - nPos: Set to 0 if position outside of block
virtual sal_Bool ReAllocateMemory( long nDiff );
- // wird aufgerufen, wenn dem Stream der Speicher gehoert oder wenn
- // der Speicher in der Groesse veraendert wird.
- // FreeMemory muss folgende Variablen mitpflegen:
- // - in abgeleiteten Klassen muessen ggf. Handles genullt werden
+ // is called when this stream allocated the buffer
+ // or the buffer is resized.
+ // FreeMemory may need to NULL handles in derived classes
virtual void FreeMemory();
- SvMemoryStream(void*) { } // Fuer unsere Subklassen
+ SvMemoryStream(void*) { } // for sub-classes
public:
SvMemoryStream( void* pBuf, sal_Size nSize, StreamMode eMode);
@@ -784,14 +782,13 @@ public:
// - SvDataCopyStream -
// --------------------
-// AB 10.5.1996: Diese Klasse bildet die Basis fuer Klassen, die mittels
-// SvData (SO2\DTRANS.HXX/CXX) transportiert werden sollen, z.B. Graphik
-// Die abgeleiteten Klassen muessen die virtuellen Funktionen ueberladen.
+// This class is the foundation for all classes that use SvData for
+// transportation (e.g., graphics).
class TOOLS_DLLPUBLIC SvDataCopyStream
{
public:
- // mehrfaches Aufrufen von Load und Assign erlaubt
+ // repeated execution of Load or Assign is allowed
TYPEINFO();
virtual ~SvDataCopyStream(){}
virtual void Load( SvStream & ) = 0;
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index d3528df8ac80..3b3006679b48 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -90,11 +90,11 @@ enum StringCompare { COMPARE_LESS = -1, COMPARE_EQUAL = 0, COMPARE_GREATER = 1 }
// -----------------------------------------------------------------------
// ------------------------
-// - Interne String-Daten -
+// Internal String data
// ------------------------
-// Daten vom String, mit denen der String verwaltet wird
-// Nur fuer Debug-Zwecke (darf nie direkt einem String zugewiesen werden)
+// Data used for the management of this String
+// use only for debugging purposes (never assign to String directly!)
#ifdef SAL_W32
#pragma pack(push, 4)
@@ -102,7 +102,7 @@ enum StringCompare { COMPARE_LESS = -1, COMPARE_EQUAL = 0, COMPARE_GREATER = 1 }
typedef struct _UniStringData
{
- sal_Int32 mnRefCount; // Referenz counter
+ sal_Int32 mnRefCount; // reference counter
sal_Int32 mnLen; // Length of the String
sal_Unicode maStr[1]; // CharArray (String)
} UniStringData;
diff --git a/tools/inc/tools/wintypes.hxx b/tools/inc/tools/wintypes.hxx
index dc7fe669bb5e..f5942c50b8e3 100644
--- a/tools/inc/tools/wintypes.hxx
+++ b/tools/inc/tools/wintypes.hxx
@@ -119,7 +119,7 @@ typedef sal_uInt16 WindowType;
typedef sal_Int64 WinBits;
-// Window-Bits fuer Window
+// Window-Bits for Window
#define WB_CLIPCHILDREN ((WinBits)0x00000001)
#define WB_DIALOGCONTROL ((WinBits)0x00000002)
#define WB_NODIALOGCONTROL ((WinBits)0x00000004)
@@ -129,7 +129,7 @@ typedef sal_Int64 WinBits;
#define WB_3DLOOK ((WinBits)0x00000040)
#define WB_AUTOSIZE ((WinBits)0x00000080)
-// Window-Bits fuer SystemWindows
+// Window-Bits for SystemWindows
#define WB_MOVEABLE ((WinBits)0x00000100)
#define WB_ROLLABLE ((WinBits)0x00000200)
#define WB_CLOSEABLE ((WinBits)0x00000400)
@@ -149,7 +149,7 @@ typedef sal_Int64 WinBits;
#define WB_SYSTEMCHILDWINDOW ((WinBits)SAL_CONST_INT64(0x8000000000))
#define WB_SIZEMOVE (WB_SIZEABLE | WB_MOVEABLE)
-// Standard-Window-Bits fuer ChildWindows
+// Standard-Window-Bits for ChildWindows
#define WB_TABSTOP ((WinBits)0x00000100)
#define WB_NOTABSTOP ((WinBits)0x00000200)
#define WB_GROUP ((WinBits)0x00000400)