summaryrefslogtreecommitdiff
path: root/starmath/inc/rect.hxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-11-06 11:40:24 +0000
committerThomas Lange <tl@openoffice.org>2002-11-06 11:40:24 +0000
commitc9a64d2659595eee6ced2e360bed3184deb96486 (patch)
tree1c8df2e774c8b8915bdc8c7e6833e8434e882f52 /starmath/inc/rect.hxx
parent5ea63061d6357abd4477402fadbe2fad190e3e24 (diff)
#104792# usage of polygons removed
Diffstat (limited to 'starmath/inc/rect.hxx')
-rw-r--r--starmath/inc/rect.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx
index 6e8b9d6b6203..83af98d45628 100644
--- a/starmath/inc/rect.hxx
+++ b/starmath/inc/rect.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rect.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:57:24 $
+ * last change: $Author: tl $ $Date: 2002-11-06 12:40:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,8 +84,6 @@
#include "format.hxx"
-class SmPolygon;
-
BOOL SmGetGlyphBoundRect(const OutputDevice &rDev,
const XubString &rText, Rectangle &rRect);
@@ -151,14 +149,15 @@ class SmRect
nItalicRightSpace,
nLoAttrFence,
nHiAttrFence;
+ USHORT nBorderWidth;
BOOL bHasBaseline,
bHasAlignInfo;
protected:
void BuildRect (const OutputDevice &rDev, const SmFormat *pFormat,
- const XubString &rText, long nBorderWidth);
+ const XubString &rText, USHORT nBorderWidth);
void Init(const OutputDevice &rDev, const SmFormat *pFormat,
- const XubString &rText, long nBorderWidth);
+ const XubString &rText, USHORT nBorderWidth);
void ClearBaseline() { bHasBaseline = FALSE; };
inline void CopyMBL(const SmRect& rRect);
@@ -170,12 +169,13 @@ public:
SmRect();
SmRect(const OutputDevice &rDev, const SmFormat *pFormat,
const XubString &rText, long nBorderWidth);
- SmRect(const OutputDevice &rDev, const SmFormat *pFormat,
- const SmPolygon &rPoly, long nBorderWidth);
SmRect(long nWidth, long nHeight);
SmRect(const SmRect &rRect);
- inline void SetItalicSpaces(long nLeftSpace, long nRightSpace);
+
+ USHORT GetBorderWidth() const { return nBorderWidth; }
+
+ void SetItalicSpaces(long nLeftSpace, long nRightSpace);
void SetWidth(ULONG nWidth) { aSize.Width() = nWidth; }
void SetHeight(ULONG nHeight) { aSize.Height() = nHeight; }