summaryrefslogtreecommitdiff
path: root/sw/inc/ndnotxt.hxx
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2001-05-04 07:34:39 +0000
committerMichael Brauer <mib@openoffice.org>2001-05-04 07:34:39 +0000
commitbeae54c2436c01f858983a5888035840135d5ed1 (patch)
treec15b74324404f45386144c0e98310da6a360cf09 /sw/inc/ndnotxt.hxx
parent315b5e7c4637463f688a6bf32fac2ed691877c55 (diff)
Contour API properties added and fixed
Diffstat (limited to 'sw/inc/ndnotxt.hxx')
-rw-r--r--sw/inc/ndnotxt.hxx26
1 files changed, 22 insertions, 4 deletions
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index 10f9e7dbdfe8..5becec6547e3 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ndnotxt.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ama $ $Date: 2001-04-24 10:06:27 $
+ * last change: $Author: mib $ $Date: 2001-05-04 08:34:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -77,7 +77,11 @@ class SwNoTxtNode : public SwCntntNode
String aAlternateText; // alternativer Text (HTML)
PolyPolygon *pContour; // Polygon fuer Konturumlauf
- BOOL bAutomaticContour; // automatic contour polygon, not manipulated
+ BOOL bAutomaticContour : 1; // automatic contour polygon, not manipulated
+ BOOL bContourMapModeValid : 1; // contour map mode is not the graphics's
+ // prefered map mode, but either
+ // MM100 or or pixel
+ BOOL bPixelContour : 1; // contour map mode is invalid and pixel.
// erzeugt fuer alle Ableitungen einen AttrSet mit Bereichen
// fuer Frame- und Grafik-Attributen (wird nur vom SwCntntNode gerufen)
@@ -108,11 +112,25 @@ public:
void SetContour( const PolyPolygon *pPoly,
BOOL bAutomatic = FALSE );
- const PolyPolygon *HasContour() const { return pContour; }
+ const PolyPolygon *HasContour() const;
+ const BOOL _HasContour() const { return pContour!=0; };
void GetContour( PolyPolygon &rPoly ) const;
void CreateContour();
+
+ void SetAutomaticContour( BOOL bSet ) { bAutomaticContour = bSet; }
const BOOL HasAutomaticContour() const { return bAutomaticContour; }
+ // set either a MM100 or pixel contour
+ void SetContourAPI( const PolyPolygon *pPoly );
+
+ // get either a MM100 or pixel contour, return FALSE if no contour is set.
+ BOOL GetContourAPI( PolyPolygon &rPoly ) const;
+
+ void SetPixelContour( BOOL bSet ) { bPixelContour = bSet; }
+ const BOOL IsPixelContour() const;
+
+ const BOOL IsContourMapModeValid() const { return bContourMapModeValid; }
+
//Besorgt die Graphic, mit SwapIn fuer GrfNode, per GetData fuer OLE.
Graphic GetGraphic() const;
};