summaryrefslogtreecommitdiff
path: root/editeng/inc/editeng
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/inc/editeng')
-rw-r--r--editeng/inc/editeng/AccessibleContextBase.hxx4
-rw-r--r--editeng/inc/editeng/AccessibleEditableTextPara.hxx6
-rw-r--r--editeng/inc/editeng/adjitem.hxx36
-rw-r--r--editeng/inc/editeng/akrnitem.hxx8
-rw-r--r--editeng/inc/editeng/blnkitem.hxx6
-rw-r--r--editeng/inc/editeng/bolnitem.hxx10
-rw-r--r--editeng/inc/editeng/borderline.hxx24
-rw-r--r--editeng/inc/editeng/boxitem.hxx86
-rw-r--r--editeng/inc/editeng/brkitem.hxx26
-rw-r--r--editeng/inc/editeng/brshitem.hxx28
-rw-r--r--editeng/inc/editeng/bulitem.hxx54
-rw-r--r--editeng/inc/editeng/charhiddenitem.hxx2
-rw-r--r--editeng/inc/editeng/charreliefitem.hxx14
-rw-r--r--editeng/inc/editeng/charrotateitem.hxx10
-rw-r--r--editeng/inc/editeng/charscaleitem.hxx10
-rw-r--r--editeng/inc/editeng/cmapitem.hxx18
-rw-r--r--editeng/inc/editeng/cntritem.hxx8
-rw-r--r--editeng/inc/editeng/colritem.hxx16
-rw-r--r--editeng/inc/editeng/crsditem.hxx22
-rw-r--r--editeng/inc/editeng/cscoitem.hxx8
-rw-r--r--editeng/inc/editeng/editdata.hxx64
-rwxr-xr-xediteng/inc/editeng/editeng.hxx258
-rw-r--r--editeng/inc/editeng/editobj.hxx64
-rw-r--r--editeng/inc/editeng/editstat.hxx28
-rw-r--r--editeng/inc/editeng/editund2.hxx12
-rw-r--r--editeng/inc/editeng/editview.hxx80
-rw-r--r--editeng/inc/editeng/eerdll.hxx2
-rw-r--r--editeng/inc/editeng/emphitem.hxx14
-rw-r--r--editeng/inc/editeng/escpitem.hxx30
-rw-r--r--editeng/inc/editeng/fhgtitem.hxx34
-rw-r--r--editeng/inc/editeng/flditem.hxx8
-rw-r--r--editeng/inc/editeng/flstitem.hxx4
-rw-r--r--editeng/inc/editeng/fontitem.hxx16
-rw-r--r--editeng/inc/editeng/forbiddencharacterstable.hxx10
-rw-r--r--editeng/inc/editeng/forbiddenruleitem.hxx4
-rw-r--r--editeng/inc/editeng/frmdiritem.hxx14
-rw-r--r--editeng/inc/editeng/fwdtitem.hxx30
-rw-r--r--editeng/inc/editeng/hngpnctitem.hxx4
-rw-r--r--editeng/inc/editeng/hyznitem.hxx42
-rw-r--r--editeng/inc/editeng/itemtype.hxx6
-rw-r--r--editeng/inc/editeng/keepitem.hxx10
-rw-r--r--editeng/inc/editeng/kernitem.hxx10
-rw-r--r--editeng/inc/editeng/langitem.hxx14
-rw-r--r--editeng/inc/editeng/lcolitem.hxx6
-rw-r--r--editeng/inc/editeng/lrspitem.hxx60
-rw-r--r--editeng/inc/editeng/lspcitem.hxx30
-rw-r--r--editeng/inc/editeng/nhypitem.hxx8
-rw-r--r--editeng/inc/editeng/nlbkitem.hxx8
-rw-r--r--editeng/inc/editeng/numitem.hxx112
-rw-r--r--editeng/inc/editeng/opaqitem.hxx8
-rw-r--r--editeng/inc/editeng/orphitem.hxx6
-rw-r--r--editeng/inc/editeng/outliner.hxx442
-rw-r--r--editeng/inc/editeng/paperinf.hxx2
-rw-r--r--editeng/inc/editeng/paravertalignitem.hxx10
-rw-r--r--editeng/inc/editeng/pbinitem.hxx12
-rw-r--r--editeng/inc/editeng/pgrditem.hxx8
-rw-r--r--editeng/inc/editeng/pmdlitem.hxx22
-rw-r--r--editeng/inc/editeng/postitem.hxx20
-rw-r--r--editeng/inc/editeng/prntitem.hxx8
-rw-r--r--editeng/inc/editeng/protitem.hxx36
-rw-r--r--editeng/inc/editeng/prszitem.hxx8
-rw-r--r--editeng/inc/editeng/scriptspaceitem.hxx4
-rw-r--r--editeng/inc/editeng/scripttypeitem.hxx32
-rw-r--r--editeng/inc/editeng/shaditem.hxx36
-rw-r--r--editeng/inc/editeng/shdditem.hxx8
-rw-r--r--editeng/inc/editeng/sizeitem.hxx12
-rw-r--r--editeng/inc/editeng/spltitem.hxx10
-rw-r--r--[-rwxr-xr-x]editeng/inc/editeng/splwrap.hxx0
-rw-r--r--editeng/inc/editeng/svxacorr.hxx104
-rw-r--r--editeng/inc/editeng/svxfont.hxx38
-rw-r--r--editeng/inc/editeng/svxrtf.hxx88
-rw-r--r--editeng/inc/editeng/swafopt.hxx68
-rw-r--r--editeng/inc/editeng/tstpitem.hxx38
-rw-r--r--editeng/inc/editeng/twolinesitem.hxx12
-rw-r--r--editeng/inc/editeng/txtrange.hxx78
-rw-r--r--editeng/inc/editeng/udlnitem.hxx34
-rw-r--r--editeng/inc/editeng/ulspitem.hxx52
-rw-r--r--editeng/inc/editeng/unoedhlp.hxx24
-rw-r--r--editeng/inc/editeng/unoedprx.hxx66
-rw-r--r--editeng/inc/editeng/unoedsrc.hxx60
-rw-r--r--editeng/inc/editeng/unofored.hxx56
-rw-r--r--editeng/inc/editeng/unoforou.hxx62
-rw-r--r--editeng/inc/editeng/unolingu.hxx14
-rw-r--r--editeng/inc/editeng/unotext.hxx38
-rw-r--r--editeng/inc/editeng/unoviwed.hxx2
-rw-r--r--editeng/inc/editeng/unoviwou.hxx2
-rw-r--r--editeng/inc/editeng/wghtitem.hxx20
-rw-r--r--editeng/inc/editeng/widwitem.hxx6
-rw-r--r--editeng/inc/editeng/writingmodeitem.hxx12
-rw-r--r--editeng/inc/editeng/wrlmitem.hxx8
-rw-r--r--editeng/inc/editeng/xmlcnitm.hxx4
91 files changed, 1474 insertions, 1474 deletions
diff --git a/editeng/inc/editeng/AccessibleContextBase.hxx b/editeng/inc/editeng/AccessibleContextBase.hxx
index 2358e8120917..2897eff65c3e 100644
--- a/editeng/inc/editeng/AccessibleContextBase.hxx
+++ b/editeng/inc/editeng/AccessibleContextBase.hxx
@@ -345,8 +345,8 @@ protected:
/** Check whether or not the object has been disposed (or is in the
state of beeing disposed).
- @return sal_True, if the object is disposed or in the course
- of being disposed. Otherwise, sal_False is returned.
+ @return TRUE, if the object is disposed or in the course
+ of being disposed. Otherwise, FALSE is returned.
*/
sal_Bool IsDisposed (void);
diff --git a/editeng/inc/editeng/AccessibleEditableTextPara.hxx b/editeng/inc/editeng/AccessibleEditableTextPara.hxx
index 8e35f0f7d138..4847bb60d281 100644
--- a/editeng/inc/editeng/AccessibleEditableTextPara.hxx
+++ b/editeng/inc/editeng/AccessibleEditableTextPara.hxx
@@ -320,7 +320,7 @@ namespace accessibility
@return sal_False, if the method was not able to determine the range
*/
- sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, sal_Int32 nIndex );
+ sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_Int32 nIndex );
// syntactic sugar for FireEvent
void GotPropertyEvent( const ::com::sun::star::uno::Any& rNewValue, const sal_Int16 nEventId ) const;
@@ -353,13 +353,13 @@ namespace accessibility
// Get text from forwarder
String GetText( sal_Int32 nIndex ) SAL_THROW((::com::sun::star::uno::RuntimeException));
String GetTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) SAL_THROW((::com::sun::star::uno::RuntimeException));
- USHORT GetTextLen() const SAL_THROW((::com::sun::star::uno::RuntimeException));
+ sal_uInt16 GetTextLen() const SAL_THROW((::com::sun::star::uno::RuntimeException));
/** Get the current selection of this paragraph
@return sal_False, if nothing in this paragraph is selected
*/
- sal_Bool GetSelection( USHORT& nStartPos, USHORT& nEndPos ) SAL_THROW((::com::sun::star::uno::RuntimeException));
+ sal_Bool GetSelection( sal_uInt16& nStartPos, sal_uInt16& nEndPos ) SAL_THROW((::com::sun::star::uno::RuntimeException));
/** create selection from Accessible selection.
diff --git a/editeng/inc/editeng/adjitem.hxx b/editeng/inc/editeng/adjitem.hxx
index d86cf23f274a..560772be0fa1 100644
--- a/editeng/inc/editeng/adjitem.hxx
+++ b/editeng/inc/editeng/adjitem.hxx
@@ -46,45 +46,45 @@ namespace rtl
[Beschreibung]
Dieses Item beschreibt die Zeilenausrichtung.
*/
-#define ADJUST_LASTBLOCK_VERSION ((USHORT)0x0001)
+#define ADJUST_LASTBLOCK_VERSION ((sal_uInt16)0x0001)
class EDITENG_DLLPUBLIC SvxAdjustItem : public SfxEnumItemInterface
{
- BOOL bLeft : 1;
- BOOL bRight : 1;
- BOOL bCenter : 1;
- BOOL bBlock : 1;
+ sal_Bool bLeft : 1;
+ sal_Bool bRight : 1;
+ sal_Bool bCenter : 1;
+ sal_Bool bBlock : 1;
// nur aktiv, wenn bBlock
- BOOL bOneBlock : 1;
- BOOL bLastCenter : 1;
- BOOL bLastBlock : 1;
+ sal_Bool bOneBlock : 1;
+ sal_Bool bLastCenter : 1;
+ sal_Bool bLastBlock : 1;
friend SvStream& operator<<( SvStream&, SvxAdjustItem& ); //$ ostream
public:
TYPEINFO();
SvxAdjustItem( const SvxAdjust eAdjst /*= SVX_ADJUST_LEFT*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
+ virtual sal_uInt16 GetValueCount() const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetEnumValue() const;
+ virtual void SetEnumValue( sal_uInt16 nNewVal );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
inline void SetOneWord( const SvxAdjust eType )
{
diff --git a/editeng/inc/editeng/akrnitem.hxx b/editeng/inc/editeng/akrnitem.hxx
index e574c61207c1..4c12759c6c8f 100644
--- a/editeng/inc/editeng/akrnitem.hxx
+++ b/editeng/inc/editeng/akrnitem.hxx
@@ -50,13 +50,13 @@ class EDITENG_DLLPUBLIC SvxAutoKernItem : public SfxBoolItem
public:
TYPEINFO();
- SvxAutoKernItem( const BOOL bAutoKern /*= FALSE*/,
- const USHORT nId );
+ SvxAutoKernItem( const sal_Bool bAutoKern /*= sal_False*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/blnkitem.hxx b/editeng/inc/editeng/blnkitem.hxx
index f1160c42b67d..c3df2d2ab9db 100644
--- a/editeng/inc/editeng/blnkitem.hxx
+++ b/editeng/inc/editeng/blnkitem.hxx
@@ -51,12 +51,12 @@ class EDITENG_DLLPUBLIC SvxBlinkItem : public SfxBoolItem
public:
TYPEINFO();
- SvxBlinkItem( const BOOL bBlink /*= FALSE*/, const USHORT nId );
+ SvxBlinkItem( const sal_Bool bBlink /*= sal_False*/, const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
diff --git a/editeng/inc/editeng/bolnitem.hxx b/editeng/inc/editeng/bolnitem.hxx
index e932434e2a23..14d05b105ccb 100644
--- a/editeng/inc/editeng/bolnitem.hxx
+++ b/editeng/inc/editeng/bolnitem.hxx
@@ -51,13 +51,13 @@ class EDITENG_DLLPUBLIC SvxLineItem : public SfxPoolItem
public:
TYPEINFO();
- SvxLineItem( const USHORT nId );
+ SvxLineItem( const sal_uInt16 nId );
SvxLineItem( const SvxLineItem& rCpy );
~SvxLineItem();
SvxLineItem &operator=( const SvxLineItem& rLine );
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -65,8 +65,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
diff --git a/editeng/inc/editeng/borderline.hxx b/editeng/inc/editeng/borderline.hxx
index 10d27f176d85..fdf08b693ee7 100644
--- a/editeng/inc/editeng/borderline.hxx
+++ b/editeng/inc/editeng/borderline.hxx
@@ -94,32 +94,32 @@ class EDITENG_DLLPUBLIC SvxBorderLine
{
protected:
Color aColor;
- USHORT nOutWidth;
- USHORT nInWidth;
- USHORT nDistance;
+ sal_uInt16 nOutWidth;
+ sal_uInt16 nInWidth;
+ sal_uInt16 nDistance;
public:
- SvxBorderLine( const Color *pCol = 0, USHORT nOut = 0, USHORT nIn = 0, USHORT nDist = 0 );
+ SvxBorderLine( const Color *pCol = 0, sal_uInt16 nOut = 0, sal_uInt16 nIn = 0, sal_uInt16 nDist = 0 );
SvxBorderLine( const SvxBorderLine& r );
SvxBorderLine& operator=( const SvxBorderLine& r );
const Color& GetColor() const { return aColor; }
- USHORT GetOutWidth() const { return nOutWidth; }
- USHORT GetInWidth() const { return nInWidth; }
- USHORT GetDistance() const { return nDistance; }
+ sal_uInt16 GetOutWidth() const { return nOutWidth; }
+ sal_uInt16 GetInWidth() const { return nInWidth; }
+ sal_uInt16 GetDistance() const { return nDistance; }
void SetColor( const Color &rColor ) { aColor = rColor; }
- void SetOutWidth( USHORT nNew ) { nOutWidth = nNew; }
- void SetInWidth( USHORT nNew ) { nInWidth = nNew; }
- void SetDistance( USHORT nNew ) { nDistance = nNew; }
+ void SetOutWidth( sal_uInt16 nNew ) { nOutWidth = nNew; }
+ void SetInWidth( sal_uInt16 nNew ) { nInWidth = nNew; }
+ void SetDistance( sal_uInt16 nNew ) { nDistance = nNew; }
void ScaleMetrics( long nMult, long nDiv );
- BOOL operator==( const SvxBorderLine &rCmp ) const;
+ sal_Bool operator==( const SvxBorderLine &rCmp ) const;
String GetValueString( SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit,
const IntlWrapper* pIntl,
- BOOL bMetricStr = FALSE ) const;
+ sal_Bool bMetricStr = sal_False ) const;
bool HasPriority( const SvxBorderLine& rOtherLine ) const;
diff --git a/editeng/inc/editeng/boxitem.hxx b/editeng/inc/editeng/boxitem.hxx
index 4d13f7ef4dc9..283ef326c9ba 100644
--- a/editeng/inc/editeng/boxitem.hxx
+++ b/editeng/inc/editeng/boxitem.hxx
@@ -42,12 +42,12 @@ Dieses Item beschreibt ein Umrandungsattribut (alle vier Kanten und
Abstand nach innen.
*/
-#define BOX_LINE_TOP ((USHORT)0)
-#define BOX_LINE_BOTTOM ((USHORT)1)
-#define BOX_LINE_LEFT ((USHORT)2)
-#define BOX_LINE_RIGHT ((USHORT)3)
+#define BOX_LINE_TOP ((sal_uInt16)0)
+#define BOX_LINE_BOTTOM ((sal_uInt16)1)
+#define BOX_LINE_LEFT ((sal_uInt16)2)
+#define BOX_LINE_RIGHT ((sal_uInt16)3)
-#define BOX_4DISTS_VERSION ((USHORT)1)
+#define BOX_4DISTS_VERSION ((sal_uInt16)1)
class EDITENG_DLLPUBLIC SvxBoxItem : public SfxPoolItem
{
@@ -55,7 +55,7 @@ class EDITENG_DLLPUBLIC SvxBoxItem : public SfxPoolItem
*pBottom,
*pLeft,
*pRight;
- USHORT nTopDist,
+ sal_uInt16 nTopDist,
nBottomDist,
nLeftDist,
nRightDist;
@@ -63,15 +63,15 @@ class EDITENG_DLLPUBLIC SvxBoxItem : public SfxPoolItem
public:
TYPEINFO();
- SvxBoxItem( const USHORT nId );
+ SvxBoxItem( const sal_uInt16 nId );
SvxBoxItem( const SvxBoxItem &rCpy );
~SvxBoxItem();
SvxBoxItem &operator=( const SvxBoxItem& rBox );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -79,9 +79,9 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
@@ -91,26 +91,26 @@ public:
const SvxBorderLine* GetLeft() const { return pLeft; }
const SvxBorderLine* GetRight() const { return pRight; }
- const SvxBorderLine* GetLine( USHORT nLine ) const;
+ const SvxBorderLine* GetLine( sal_uInt16 nLine ) const;
//Die Pointer werden kopiert!
- void SetLine( const SvxBorderLine* pNew, USHORT nLine );
+ void SetLine( const SvxBorderLine* pNew, sal_uInt16 nLine );
- USHORT GetDistance( USHORT nLine ) const;
- USHORT GetDistance() const;
+ sal_uInt16 GetDistance( sal_uInt16 nLine ) const;
+ sal_uInt16 GetDistance() const;
- void SetDistance( USHORT nNew, USHORT nLine );
- inline void SetDistance( USHORT nNew );
+ void SetDistance( sal_uInt16 nNew, sal_uInt16 nLine );
+ inline void SetDistance( sal_uInt16 nNew );
//Breite der Linien plus Zwischenraum plus Abstand nach innen.
- //JP 09.06.99: bIgnoreLine = TRUE -> Distance auch returnen, wenn
+ //JP 09.06.99: bIgnoreLine = sal_True -> Distance auch returnen, wenn
// keine Line gesetzt ist
- USHORT CalcLineSpace( USHORT nLine, BOOL bIgnoreLine = FALSE ) const;
+ sal_uInt16 CalcLineSpace( sal_uInt16 nLine, sal_Bool bIgnoreLine = sal_False ) const;
static com::sun::star::table::BorderLine SvxLineToLine( const SvxBorderLine* pLine, sal_Bool bConvert );
static sal_Bool LineToSvxLine(const ::com::sun::star::table::BorderLine& rLine, SvxBorderLine& rSvxLine, sal_Bool bConvert);
};
-inline void SvxBoxItem::SetDistance( USHORT nNew )
+inline void SvxBoxItem::SetDistance( sal_uInt16 nNew )
{
nTopDist = nBottomDist = nLeftDist = nRightDist = nNew;
}
@@ -126,8 +126,8 @@ Andererseits werden ueber dieses Attribut ggf. die BorderLines fuer die
horizontalen und vertikalen innerern Linien transportiert.
*/
-#define BOXINFO_LINE_HORI ((USHORT)0)
-#define BOXINFO_LINE_VERT ((USHORT)1)
+#define BOXINFO_LINE_HORI ((sal_uInt16)0)
+#define BOXINFO_LINE_VERT ((sal_uInt16)1)
#define VALID_TOP 0x01
#define VALID_BOTTOM 0x02
@@ -156,10 +156,10 @@ class EDITENG_DLLPUBLIC SvxBoxInfoItem : public SfxPoolItem
Abstand von der App zum Dialog und zurueck transportiert.
*/
- BOOL bDist :1; // TRUE, Abstand freischalten.
- BOOL bMinDist :1; // TRUE, Abstand darf nicht unterschritten werden.
+ sal_Bool bDist :1; // sal_True, Abstand freischalten.
+ sal_Bool bMinDist :1; // sal_True, Abstand darf nicht unterschritten werden.
- BYTE nValidFlags; // 0000 0000
+ sal_uInt8 nValidFlags; // 0000 0000
// ³³³³ ³³³ÀÄ VALID_TOP
// ³³³³ ³³ÀÄÄ VALID_BOTTOM
// ³³³³ ³ÀÄÄÄ VALID_LEFT
@@ -169,12 +169,12 @@ class EDITENG_DLLPUBLIC SvxBoxInfoItem : public SfxPoolItem
// ³ÀÄÄÄÄÄÄÄÄ VALID_DIST
// ÀÄÄÄÄÄÄÄÄÄ VALID_DISABLE
- USHORT nDefDist; // Der Default- bzw. Minimalabstand.
+ sal_uInt16 nDefDist; // Der Default- bzw. Minimalabstand.
public:
TYPEINFO();
- SvxBoxInfoItem( const USHORT nId );
+ SvxBoxInfoItem( const sal_uInt16 nId );
SvxBoxInfoItem( const SvxBoxInfoItem &rCpy );
~SvxBoxInfoItem();
SvxBoxInfoItem &operator=( const SvxBoxInfoItem &rCpy );
@@ -185,12 +185,12 @@ public:
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
@@ -198,26 +198,26 @@ public:
const SvxBorderLine* GetVert() const { return pVert; }
//Die Pointer werden kopiert!
- void SetLine( const SvxBorderLine* pNew, USHORT nLine );
+ void SetLine( const SvxBorderLine* pNew, sal_uInt16 nLine );
- BOOL IsTable() const { return mbEnableHor && mbEnableVer; }
- void SetTable( BOOL bNew ) { mbEnableHor = mbEnableVer = bNew; }
+ sal_Bool IsTable() const { return mbEnableHor && mbEnableVer; }
+ void SetTable( sal_Bool bNew ) { mbEnableHor = mbEnableVer = bNew; }
inline bool IsHorEnabled() const { return mbEnableHor; }
inline void EnableHor( bool bEnable ) { mbEnableHor = bEnable; }
inline bool IsVerEnabled() const { return mbEnableVer; }
inline void EnableVer( bool bEnable ) { mbEnableVer = bEnable; }
- BOOL IsDist() const { return bDist; }
- void SetDist( BOOL bNew ) { bDist = bNew; }
- BOOL IsMinDist() const { return bMinDist; }
- void SetMinDist( BOOL bNew ) { bMinDist = bNew; }
- USHORT GetDefDist() const { return nDefDist; }
- void SetDefDist( USHORT nNew ) { nDefDist = nNew; }
+ sal_Bool IsDist() const { return bDist; }
+ void SetDist( sal_Bool bNew ) { bDist = bNew; }
+ sal_Bool IsMinDist() const { return bMinDist; }
+ void SetMinDist( sal_Bool bNew ) { bMinDist = bNew; }
+ sal_uInt16 GetDefDist() const { return nDefDist; }
+ void SetDefDist( sal_uInt16 nNew ) { nDefDist = nNew; }
- BOOL IsValid( BYTE nValid ) const
+ sal_Bool IsValid( sal_uInt8 nValid ) const
{ return ( nValidFlags & nValid ) == nValid; }
- void SetValid( BYTE nValid, BOOL bValid = TRUE )
+ void SetValid( sal_uInt8 nValid, sal_Bool bValid = sal_True )
{ bValid ? ( nValidFlags |= nValid )
: ( nValidFlags &= ~nValid ); }
void ResetFlags();
diff --git a/editeng/inc/editeng/brkitem.hxx b/editeng/inc/editeng/brkitem.hxx
index 2a295b2201b4..8e039697617b 100644
--- a/editeng/inc/editeng/brkitem.hxx
+++ b/editeng/inc/editeng/brkitem.hxx
@@ -45,7 +45,7 @@ namespace rtl
Dieses Item beschreibt ein Umbruch-Attribut
Automatisch?, Seiten- oder Spaltenumbruch, davor oder danach?
*/
-#define FMTBREAK_NOAUTO ((USHORT)0x0001)
+#define FMTBREAK_NOAUTO ((sal_uInt16)0x0001)
class EDITENG_DLLPUBLIC SvxFmtBreakItem : public SfxEnumItem
{
@@ -53,39 +53,39 @@ public:
TYPEINFO();
inline SvxFmtBreakItem( const SvxBreak eBrk /*= SVX_BREAK_NONE*/,
- const USHORT nWhich );
+ const sal_uInt16 nWhich );
inline SvxFmtBreakItem( const SvxFmtBreakItem& rBreak );
inline SvxFmtBreakItem& operator=( const SvxFmtBreakItem& rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual USHORT GetValueCount() const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 ) const;
+ virtual sal_uInt16 GetValueCount() const;
// MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
+ void SetValue( sal_uInt16 nNewVal )
{SfxEnumItem::SetValue(nNewVal); }
SvxBreak GetBreak() const { return SvxBreak( GetValue() ); }
void SetBreak( const SvxBreak eNew )
- { SetValue( (USHORT)eNew ); }
+ { SetValue( (sal_uInt16)eNew ); }
};
inline SvxFmtBreakItem::SvxFmtBreakItem( const SvxBreak eBreak,
- const USHORT _nWhich ) :
- SfxEnumItem( _nWhich, (USHORT)eBreak )
+ const sal_uInt16 _nWhich ) :
+ SfxEnumItem( _nWhich, (sal_uInt16)eBreak )
{}
inline SvxFmtBreakItem::SvxFmtBreakItem( const SvxFmtBreakItem& rBreak ) :
diff --git a/editeng/inc/editeng/brshitem.hxx b/editeng/inc/editeng/brshitem.hxx
index 14b11b97a5e7..7802ba3e41a7 100644
--- a/editeng/inc/editeng/brshitem.hxx
+++ b/editeng/inc/editeng/brshitem.hxx
@@ -44,7 +44,7 @@ namespace rtl
class OUString;
}
-#define BRUSH_GRAPHIC_VERSION ((USHORT)0x0001)
+#define BRUSH_GRAPHIC_VERSION ((sal_uInt16)0x0001)
enum SvxGraphicPosition
{
@@ -66,28 +66,28 @@ class EDITENG_DLLPUBLIC SvxBrushItem : public SfxPoolItem
String* pStrLink;
String* pStrFilter;
SvxGraphicPosition eGraphicPos;
- BOOL bLoadAgain;
+ sal_Bool bLoadAgain;
void ApplyGraphicTransparency_Impl();
DECL_STATIC_LINK( SvxBrushItem, DoneHdl_Impl, void *);
// wird nur von Create benutzt
SvxBrushItem( SvStream& rStrm,
- USHORT nVersion, USHORT nWhich );
+ sal_uInt16 nVersion, sal_uInt16 nWhich );
public:
TYPEINFO();
- SvxBrushItem( USHORT nWhich );
- SvxBrushItem( const Color& rColor, USHORT nWhich );
+ SvxBrushItem( sal_uInt16 nWhich );
+ SvxBrushItem( const Color& rColor, sal_uInt16 nWhich );
SvxBrushItem( const Graphic& rGraphic,
- SvxGraphicPosition ePos, USHORT nWhich );
+ SvxGraphicPosition ePos, sal_uInt16 nWhich );
SvxBrushItem( const GraphicObject& rGraphicObj,
- SvxGraphicPosition ePos, USHORT nWhich );
+ SvxGraphicPosition ePos, sal_uInt16 nWhich );
SvxBrushItem( const String& rLink, const String& rFilter,
- SvxGraphicPosition ePos, USHORT nWhich );
+ SvxGraphicPosition ePos, sal_uInt16 nWhich );
SvxBrushItem( const SvxBrushItem& );
- SvxBrushItem( const CntWallpaperItem&, USHORT nWhich );
+ SvxBrushItem( const CntWallpaperItem&, sal_uInt16 nWhich );
~SvxBrushItem();
@@ -99,13 +99,13 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVersion ) const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
const Color& GetColor() const { return aColor; }
Color& GetColor() { return aColor; }
diff --git a/editeng/inc/editeng/bulitem.hxx b/editeng/inc/editeng/bulitem.hxx
index 7d64664ea19f..494cb074872f 100644
--- a/editeng/inc/editeng/bulitem.hxx
+++ b/editeng/inc/editeng/bulitem.hxx
@@ -75,13 +75,13 @@ class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
GraphicObject* pGraphicObject;
String aPrevText;
String aFollowText;
- USHORT nStart;
- USHORT nStyle;
+ sal_uInt16 nStart;
+ sal_uInt16 nStyle;
long nWidth;
- USHORT nScale;
+ sal_uInt16 nScale;
sal_Unicode cSymbol;
- BYTE nJustify;
- USHORT nValidMask; // Nur temporaer fuer GetAttribs/SetAttribs, wegen des grossen Bullets
+ sal_uInt8 nJustify;
+ sal_uInt16 nValidMask; // Nur temporaer fuer GetAttribs/SetAttribs, wegen des grossen Bullets
#ifdef _SVX_BULITEM_CXX
void SetDefaultFont_Impl();
@@ -91,30 +91,30 @@ class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
public:
TYPEINFO();
- SvxBulletItem( USHORT nWhich = 0 );
- SvxBulletItem( BYTE nStyle, const Font& rFont, USHORT nStart = 0, USHORT nWhich = 0 );
- SvxBulletItem( const Font& rFont, sal_Unicode cSymbol, USHORT nWhich=0 );
- SvxBulletItem( const Bitmap&, USHORT nWhich = 0 );
- SvxBulletItem( const GraphicObject&, USHORT nWhich = 0 );
- SvxBulletItem( SvStream& rStrm, USHORT nWhich = 0 );
+ SvxBulletItem( sal_uInt16 nWhich = 0 );
+ SvxBulletItem( sal_uInt8 nStyle, const Font& rFont, sal_uInt16 nStart = 0, sal_uInt16 nWhich = 0 );
+ SvxBulletItem( const Font& rFont, sal_Unicode cSymbol, sal_uInt16 nWhich=0 );
+ SvxBulletItem( const Bitmap&, sal_uInt16 nWhich = 0 );
+ SvxBulletItem( const GraphicObject&, sal_uInt16 nWhich = 0 );
+ SvxBulletItem( SvStream& rStrm, sal_uInt16 nWhich = 0 );
SvxBulletItem( const SvxBulletItem& );
~SvxBulletItem();
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream & , USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVersion ) const;
+ virtual SvStream& Store( SvStream & , sal_uInt16 nItemVersion ) const;
String GetFullText() const;
sal_Unicode GetSymbol() const { return cSymbol; }
String GetPrevText() const { return aPrevText; }
String GetFollowText() const { return aFollowText; }
- USHORT GetStart() const { return nStart; }
+ sal_uInt16 GetStart() const { return nStart; }
long GetWidth() const { return nWidth; }
- USHORT GetStyle() const { return nStyle; }
- BYTE GetJustification() const { return nJustify; }
+ sal_uInt16 GetStyle() const { return nStyle; }
+ sal_uInt8 GetJustification() const { return nJustify; }
Font GetFont() const { return aFont; }
- USHORT GetScale() const { return nScale; }
+ sal_uInt16 GetScale() const { return nScale; }
Bitmap GetBitmap() const;
void SetBitmap( const Bitmap& rBmp );
@@ -126,14 +126,14 @@ public:
void SetPrevText( const String& rStr) { aPrevText = rStr;}
void SetFollowText(const String& rStr) { aFollowText=rStr;}
- void SetStart( USHORT nNew ) { nStart = nNew; }
+ void SetStart( sal_uInt16 nNew ) { nStart = nNew; }
void SetWidth( long nNew ) { nWidth = nNew; }
- void SetStyle( USHORT nNew ) { nStyle = nNew; }
- void SetJustification( BYTE nNew ) { nJustify = nNew; }
+ void SetStyle( sal_uInt16 nNew ) { nStyle = nNew; }
+ void SetJustification( sal_uInt8 nNew ) { nJustify = nNew; }
void SetFont( const Font& rNew) { aFont = rNew; }
- void SetScale( USHORT nNew ) { nScale = nNew; }
+ void SetScale( sal_uInt16 nNew ) { nScale = nNew; }
- virtual USHORT GetVersion(USHORT nFileVersion) const;
+ virtual sal_uInt16 GetVersion(sal_uInt16 nFileVersion) const;
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -141,12 +141,12 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
static void StoreFont( SvStream&, const Font& );
- static Font CreateFont( SvStream&, USHORT nVer );
+ static Font CreateFont( SvStream&, sal_uInt16 nVer );
- USHORT& GetValidMask() { return nValidMask; }
- USHORT GetValidMask() const { return nValidMask; }
- USHORT IsValid( USHORT nFlag ) const { return nValidMask & nFlag; }
- void SetValid( USHORT nFlag, BOOL bValid )
+ sal_uInt16& GetValidMask() { return nValidMask; }
+ sal_uInt16 GetValidMask() const { return nValidMask; }
+ sal_uInt16 IsValid( sal_uInt16 nFlag ) const { return nValidMask & nFlag; }
+ void SetValid( sal_uInt16 nFlag, sal_Bool bValid )
{
if ( bValid )
nValidMask |= nFlag;
diff --git a/editeng/inc/editeng/charhiddenitem.hxx b/editeng/inc/editeng/charhiddenitem.hxx
index 2bffbfa2da5f..352b14b4e953 100644
--- a/editeng/inc/editeng/charhiddenitem.hxx
+++ b/editeng/inc/editeng/charhiddenitem.hxx
@@ -44,7 +44,7 @@ class EDITENG_DLLPUBLIC SvxCharHiddenItem : public SfxBoolItem
public:
TYPEINFO();
- SvxCharHiddenItem( const BOOL bHidden /*= FALSE*/, const USHORT nId );
+ SvxCharHiddenItem( const sal_Bool bHidden /*= sal_False*/, const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
diff --git a/editeng/inc/editeng/charreliefitem.hxx b/editeng/inc/editeng/charreliefitem.hxx
index 8fc17c60d7fc..edacdf5d2e61 100644
--- a/editeng/inc/editeng/charreliefitem.hxx
+++ b/editeng/inc/editeng/charreliefitem.hxx
@@ -51,12 +51,12 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetValueCount() const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -65,9 +65,9 @@ public:
const IntlWrapper * = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
+ sal_uInt8 nMemberId );
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
+ sal_uInt8 nMemberId ) const;
inline SvxCharReliefItem& operator=( const SvxCharReliefItem& rItem )
{
diff --git a/editeng/inc/editeng/charrotateitem.hxx b/editeng/inc/editeng/charrotateitem.hxx
index 4c5aedb8cdc8..87d19d65b9e8 100644
--- a/editeng/inc/editeng/charrotateitem.hxx
+++ b/editeng/inc/editeng/charrotateitem.hxx
@@ -54,9 +54,9 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -65,9 +65,9 @@ public:
const IntlWrapper * = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
+ sal_uInt8 nMemberId );
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
+ sal_uInt8 nMemberId ) const;
inline SvxCharRotateItem& operator=( const SvxCharRotateItem& rItem )
{
diff --git a/editeng/inc/editeng/charscaleitem.hxx b/editeng/inc/editeng/charscaleitem.hxx
index a6ccb3d3f5e5..d2b6d856ce47 100644
--- a/editeng/inc/editeng/charscaleitem.hxx
+++ b/editeng/inc/editeng/charscaleitem.hxx
@@ -51,9 +51,9 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -62,9 +62,9 @@ public:
const IntlWrapper * = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
+ sal_uInt8 nMemberId );
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
+ sal_uInt8 nMemberId ) const;
inline SvxCharScaleWidthItem& operator=(const SvxCharScaleWidthItem& rItem )
{
diff --git a/editeng/inc/editeng/cmapitem.hxx b/editeng/inc/editeng/cmapitem.hxx
index e88792bc4e99..154f0222247e 100644
--- a/editeng/inc/editeng/cmapitem.hxx
+++ b/editeng/inc/editeng/cmapitem.hxx
@@ -52,7 +52,7 @@ public:
TYPEINFO();
SvxCaseMapItem( const SvxCaseMap eMap /*= SVX_CASEMAP_NOT_MAPPED*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem + SfxEnumItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -61,13 +61,13 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetValueCount() const;
// MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
+ void SetValue( sal_uInt16 nNewVal )
{SfxEnumItem::SetValue(nNewVal); }
inline SvxCaseMapItem& operator=(const SvxCaseMapItem& rMap)
@@ -80,9 +80,9 @@ public:
SvxCaseMap GetCaseMap() const
{ return (SvxCaseMap)GetValue(); }
void SetCaseMap( SvxCaseMap eNew )
- { SetValue( (USHORT)eNew ); }
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ { SetValue( (sal_uInt16)eNew ); }
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
};
#endif
diff --git a/editeng/inc/editeng/cntritem.hxx b/editeng/inc/editeng/cntritem.hxx
index 9a5bedaf810a..b367bd401316 100644
--- a/editeng/inc/editeng/cntritem.hxx
+++ b/editeng/inc/editeng/cntritem.hxx
@@ -44,13 +44,13 @@ class EDITENG_DLLPUBLIC SvxContourItem : public SfxBoolItem
public:
TYPEINFO();
- SvxContourItem( const BOOL bContoured /*= FALSE*/,
- const USHORT nId );
+ SvxContourItem( const sal_Bool bContoured /*= sal_False*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/colritem.hxx b/editeng/inc/editeng/colritem.hxx
index 1eec9e48817d..e9e3f47ae9b4 100644
--- a/editeng/inc/editeng/colritem.hxx
+++ b/editeng/inc/editeng/colritem.hxx
@@ -56,17 +56,17 @@ private:
public:
TYPEINFO();
- SvxColorItem( const USHORT nId );
- SvxColorItem( const Color& aColor, const USHORT nId );
- SvxColorItem( SvStream& rStrm, const USHORT nId );
+ SvxColorItem( const sal_uInt16 nId );
+ SvxColorItem( const Color& aColor, const sal_uInt16 nId );
+ SvxColorItem( SvStream& rStrm, const sal_uInt16 nId );
SvxColorItem( const SvxColorItem& rCopy );
~SvxColorItem();
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -74,8 +74,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
inline SvxColorItem& operator=(const SvxColorItem& rColor)
{
diff --git a/editeng/inc/editeng/crsditem.hxx b/editeng/inc/editeng/crsditem.hxx
index d713ae209b6a..077de1582069 100644
--- a/editeng/inc/editeng/crsditem.hxx
+++ b/editeng/inc/editeng/crsditem.hxx
@@ -52,7 +52,7 @@ public:
TYPEINFO();
SvxCrossedOutItem( const FontStrikeout eSt /*= STRIKEOUT_NONE*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -61,20 +61,20 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetValueCount() const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
// MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
+ void SetValue( sal_uInt16 nNewVal )
{SfxEnumItem::SetValue(nNewVal); }
virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( BOOL bVal );
+ virtual sal_Bool GetBoolValue() const;
+ virtual void SetBoolValue( sal_Bool bVal );
inline SvxCrossedOutItem& operator=(const SvxCrossedOutItem& rCross)
{
@@ -86,7 +86,7 @@ public:
FontStrikeout GetStrikeout() const
{ return (FontStrikeout)GetValue(); }
void SetStrikeout( FontStrikeout eNew )
- { SetValue( (USHORT)eNew ); }
+ { SetValue( (sal_uInt16)eNew ); }
};
#endif // #ifndef _SVX_CRSDITEM_HXX
diff --git a/editeng/inc/editeng/cscoitem.hxx b/editeng/inc/editeng/cscoitem.hxx
index f9e990af118a..f1897ef0986c 100644
--- a/editeng/inc/editeng/cscoitem.hxx
+++ b/editeng/inc/editeng/cscoitem.hxx
@@ -46,9 +46,9 @@ class EDITENG_DLLPUBLIC SvxCharSetColorItem : public SvxColorItem
public:
TYPEINFO();
- SvxCharSetColorItem( const USHORT nId );
+ SvxCharSetColorItem( const sal_uInt16 nId );
SvxCharSetColorItem( const Color& aColor, const rtl_TextEncoding eFrom,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -57,8 +57,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
inline rtl_TextEncoding& GetCharSet() { return eFrom; }
inline rtl_TextEncoding GetCharSet() const { return eFrom; }
diff --git a/editeng/inc/editeng/editdata.hxx b/editeng/inc/editeng/editdata.hxx
index f541d64536d8..993ee7b73c4a 100644
--- a/editeng/inc/editeng/editdata.hxx
+++ b/editeng/inc/editeng/editdata.hxx
@@ -109,7 +109,7 @@ class SfxStyleSheet;
struct EPosition
{
- USHORT nPara;
+ sal_uInt16 nPara;
xub_StrLen nIndex;
EPosition() :
@@ -118,7 +118,7 @@ struct EPosition
{
}
- EPosition( USHORT nPara_, xub_StrLen nPos_ ) :
+ EPosition( sal_uInt16 nPara_, xub_StrLen nPos_ ) :
nPara( nPara_ ),
nIndex( nPos_ )
{
@@ -127,14 +127,14 @@ struct EPosition
struct ESelection
{
- USHORT nStartPara;
+ sal_uInt16 nStartPara;
xub_StrLen nStartPos;
- USHORT nEndPara;
+ sal_uInt16 nEndPara;
xub_StrLen nEndPos;
ESelection() : nStartPara( 0 ), nStartPos( 0 ), nEndPara( 0 ), nEndPos( 0 ) {}
- ESelection( USHORT nStPara, xub_StrLen nStPos, USHORT nEPara, xub_StrLen nEPos ) :
+ ESelection( sal_uInt16 nStPara, xub_StrLen nStPos, sal_uInt16 nEPara, xub_StrLen nEPos ) :
nStartPara( nStPara ),
nStartPos( nStPos ),
nEndPara( nEPara ),
@@ -142,7 +142,7 @@ struct ESelection
{
}
- ESelection( USHORT nPara, xub_StrLen nPos ) :
+ ESelection( sal_uInt16 nPara, xub_StrLen nPos ) :
nStartPara( nPara ),
nStartPos( nPos ),
nEndPara( nPara ),
@@ -151,14 +151,14 @@ struct ESelection
}
void Adjust();
- BOOL IsEqual( const ESelection& rS ) const;
- BOOL IsLess( const ESelection& rS ) const;
- BOOL IsGreater( const ESelection& rS ) const;
- BOOL IsZero() const;
- BOOL HasRange() const;
+ sal_Bool IsEqual( const ESelection& rS ) const;
+ sal_Bool IsLess( const ESelection& rS ) const;
+ sal_Bool IsGreater( const ESelection& rS ) const;
+ sal_Bool IsZero() const;
+ sal_Bool HasRange() const;
};
-inline BOOL ESelection::HasRange() const
+inline sal_Bool ESelection::HasRange() const
{
return ( nStartPara != nEndPara ) || ( nStartPos != nEndPos );
}
@@ -224,7 +224,7 @@ struct EDITENG_DLLPUBLIC EFieldInfo
EPosition aPosition;
EFieldInfo();
- EFieldInfo( const SvxFieldItem& rFieldItem, USHORT nPara, USHORT nPos );
+ EFieldInfo( const SvxFieldItem& rFieldItem, sal_uInt16 nPara, sal_uInt16 nPos );
~EFieldInfo();
EFieldInfo( const EFieldInfo& );
@@ -282,24 +282,24 @@ struct ParagraphInfos
, nFirstLineMaxAscent( 0 )
, bValid( 0 )
{}
- USHORT nParaHeight;
- USHORT nLines;
+ sal_uInt16 nParaHeight;
+ sal_uInt16 nLines;
- USHORT nFirstLineStartX;
+ sal_uInt16 nFirstLineStartX;
- USHORT nFirstLineOffset;
- USHORT nFirstLineHeight;
- USHORT nFirstLineTextHeight;
- USHORT nFirstLineMaxAscent;
+ sal_uInt16 nFirstLineOffset;
+ sal_uInt16 nFirstLineHeight;
+ sal_uInt16 nFirstLineTextHeight;
+ sal_uInt16 nFirstLineMaxAscent;
- BOOL bValid; // Bei einer Abfrage waehrend der Formatierung ungueltig!
+ sal_Bool bValid; // Bei einer Abfrage waehrend der Formatierung ungueltig!
};
struct EECharAttrib
{
const SfxPoolItem* pAttr;
- USHORT nPara;
+ sal_uInt16 nPara;
xub_StrLen nStart;
xub_StrLen nEnd;
};
@@ -308,11 +308,11 @@ SV_DECL_VARARR_VISIBILITY( EECharAttribArray, EECharAttrib, 0, 4, EDITENG_DLLPUB
struct MoveParagraphsInfo
{
- USHORT nStartPara;
- USHORT nEndPara;
- USHORT nDestPara;
+ sal_uInt16 nStartPara;
+ sal_uInt16 nEndPara;
+ sal_uInt16 nDestPara;
- MoveParagraphsInfo( USHORT nS, USHORT nE, USHORT nD )
+ MoveParagraphsInfo( sal_uInt16 nS, sal_uInt16 nE, sal_uInt16 nD )
{ nStartPara = nS; nEndPara = nE; nDestPara = nD; }
};
@@ -321,9 +321,9 @@ struct MoveParagraphsInfo
struct PasteOrDropInfos
{
- USHORT nAction;
- USHORT nStartPara;
- USHORT nEndPara;
+ sal_uInt16 nAction;
+ sal_uInt16 nStartPara;
+ sal_uInt16 nEndPara;
PasteOrDropInfos() : nAction(0), nStartPara(0xFFFF), nEndPara(0xFFFF) {}
};
@@ -376,10 +376,10 @@ struct EENotify
EditEngine* pEditEngine;
EditView* pEditView;
- USHORT nParagraph; // only valid in PARAGRAPHINSERTED/EE_NOTIFY_PARAGRAPHREMOVED
+ sal_uInt16 nParagraph; // only valid in PARAGRAPHINSERTED/EE_NOTIFY_PARAGRAPHREMOVED
- USHORT nParam1;
- USHORT nParam2;
+ sal_uInt16 nParam1;
+ sal_uInt16 nParam2;
EENotify( EENotifyType eType )
{ eNotificationType = eType; pEditEngine = NULL; pEditView = NULL; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; }
diff --git a/editeng/inc/editeng/editeng.hxx b/editeng/inc/editeng/editeng.hxx
index 642c290f4853..d046b77d98b3 100755
--- a/editeng/inc/editeng/editeng.hxx
+++ b/editeng/inc/editeng/editeng.hxx
@@ -126,7 +126,7 @@ private:
EDITENG_DLLPRIVATE EditEngine& operator=( const EditEngine& );
//#if 0 // _SOLAR__PRIVATE
- EDITENG_DLLPRIVATE BOOL PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView );
+ EDITENG_DLLPRIVATE sal_Bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView );
//#endif
protected:
@@ -138,8 +138,8 @@ public:
const SfxItemSet& GetEmptyItemSet();
- void SetDefTab( USHORT nDefTab );
- USHORT GetDefTab() const;
+ void SetDefTab( sal_uInt16 nDefTab );
+ sal_uInt16 GetDefTab() const;
void SetRefDevice( OutputDevice* pRefDef );
OutputDevice* GetRefDevice() const;
@@ -147,51 +147,51 @@ public:
void SetRefMapMode( const MapMode& rMapMode );
MapMode GetRefMapMode();
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const;
+ void SetUpdateMode( sal_Bool bUpdate );
+ sal_Bool GetUpdateMode() const;
void SetBackgroundColor( const Color& rColor );
Color GetBackgroundColor() const;
Color GetAutoColor() const;
- void EnableAutoColor( BOOL b );
- BOOL IsAutoColorEnabled() const;
- void ForceAutoColor( BOOL b );
- BOOL IsForceAutoColor() const;
+ void EnableAutoColor( sal_Bool b );
+ sal_Bool IsAutoColorEnabled() const;
+ void ForceAutoColor( sal_Bool b );
+ sal_Bool IsForceAutoColor() const;
- void InsertView( EditView* pEditView, USHORT nIndex = EE_APPEND );
+ void InsertView( EditView* pEditView, sal_uInt16 nIndex = EE_APPEND );
EditView* RemoveView( EditView* pEditView );
- EditView* RemoveView( USHORT nIndex = EE_APPEND );
- EditView* GetView( USHORT nIndex = 0 ) const;
- USHORT GetViewCount() const;
- BOOL HasView( EditView* pView ) const;
+ EditView* RemoveView( sal_uInt16 nIndex = EE_APPEND );
+ EditView* GetView( sal_uInt16 nIndex = 0 ) const;
+ sal_uInt16 GetViewCount() const;
+ sal_Bool HasView( EditView* pView ) const;
EditView* GetActiveView() const;
void SetActiveView( EditView* pView );
void SetPaperSize( const Size& rSize );
const Size& GetPaperSize() const;
- void SetVertical( BOOL bVertical );
- BOOL IsVertical() const;
+ void SetVertical( sal_Bool bVertical );
+ sal_Bool IsVertical() const;
- void SetFixedCellHeight( BOOL bUseFixedCellHeight );
- BOOL IsFixedCellHeight() const;
+ void SetFixedCellHeight( sal_Bool bUseFixedCellHeight );
+ sal_Bool IsFixedCellHeight() const;
void SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir );
EEHorizontalTextDirection GetDefaultHorizontalTextDirection() const;
- USHORT GetScriptType( const ESelection& rSelection ) const;
- LanguageType GetLanguage( USHORT nPara, USHORT nPos ) const;
+ sal_uInt16 GetScriptType( const ESelection& rSelection ) const;
+ LanguageType GetLanguage( sal_uInt16 nPara, sal_uInt16 nPos ) const;
void TransliterateText( const ESelection& rSelection, sal_Int32 nTransliterationMode );
- void SetAsianCompressionMode( USHORT nCompression );
- USHORT GetAsianCompressionMode() const;
+ void SetAsianCompressionMode( sal_uInt16 nCompression );
+ sal_uInt16 GetAsianCompressionMode() const;
- void SetKernAsianPunctuation( BOOL bEnabled );
- BOOL IsKernAsianPunctuation() const;
+ void SetKernAsianPunctuation( sal_Bool bEnabled );
+ sal_Bool IsKernAsianPunctuation() const;
- void SetAddExtLeading( BOOL b );
- BOOL IsAddExtLeading() const;
+ void SetAddExtLeading( sal_Bool b );
+ sal_Bool IsAddExtLeading() const;
void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon );
void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon);
@@ -210,107 +210,107 @@ public:
sal_uInt32 GetTextHeight() const;
sal_uInt32 CalcTextWidth();
- String GetText( USHORT nParagraph ) const;
- xub_StrLen GetTextLen( USHORT nParagraph ) const;
- sal_uInt32 GetTextHeight( USHORT nParagraph ) const;
+ String GetText( sal_uInt16 nParagraph ) const;
+ xub_StrLen GetTextLen( sal_uInt16 nParagraph ) const;
+ sal_uInt32 GetTextHeight( sal_uInt16 nParagraph ) const;
- USHORT GetParagraphCount() const;
+ sal_uInt16 GetParagraphCount() const;
- USHORT GetLineCount( USHORT nParagraph ) const;
- xub_StrLen GetLineLen( USHORT nParagraph, USHORT nLine ) const;
- void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const;
- USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
- sal_uInt32 GetLineHeight( USHORT nParagraph, USHORT nLine = 0 );
- USHORT GetFirstLineOffset( USHORT nParagraph );
- ParagraphInfos GetParagraphInfos( USHORT nPara );
- USHORT FindParagraph( long nDocPosY );
+ sal_uInt16 GetLineCount( sal_uInt16 nParagraph ) const;
+ xub_StrLen GetLineLen( sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
+ void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
+ sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ sal_uInt32 GetLineHeight( sal_uInt16 nParagraph, sal_uInt16 nLine = 0 );
+ sal_uInt16 GetFirstLineOffset( sal_uInt16 nParagraph );
+ ParagraphInfos GetParagraphInfos( sal_uInt16 nPara );
+ sal_uInt16 FindParagraph( long nDocPosY );
EPosition FindDocPosition( const Point& rDocPos ) const;
Rectangle GetCharacterBounds( const EPosition& rPos ) const;
- String GetWord( USHORT nPara, xub_StrLen nIndex );
+ String GetWord( sal_uInt16 nPara, xub_StrLen nIndex );
- ESelection GetWord( const ESelection& rSelection, USHORT nWordType ) const;
- ESelection WordLeft( const ESelection& rSelection, USHORT nWordType ) const;
- ESelection WordRight( const ESelection& rSelection, USHORT nWordType ) const;
- ESelection CursorLeft( const ESelection& rSelection, USHORT nCharacterIteratorMode ) const;
- ESelection CursorRight( const ESelection& rSelection, USHORT nCharacterIteratorMode ) const;
+ ESelection GetWord( const ESelection& rSelection, sal_uInt16 nWordType ) const;
+ ESelection WordLeft( const ESelection& rSelection, sal_uInt16 nWordType ) const;
+ ESelection WordRight( const ESelection& rSelection, sal_uInt16 nWordType ) const;
+ ESelection CursorLeft( const ESelection& rSelection, sal_uInt16 nCharacterIteratorMode ) const;
+ ESelection CursorRight( const ESelection& rSelection, sal_uInt16 nCharacterIteratorMode ) const;
ESelection SelectSentence( const ESelection& rCurSel ) const;
void Clear();
void SetText( const String& rStr );
EditTextObject* CreateTextObject();
- EditTextObject* CreateTextObject( USHORT nPara, USHORT nParas = 1 );
+ EditTextObject* CreateTextObject( sal_uInt16 nPara, sal_uInt16 nParas = 1 );
EditTextObject* CreateTextObject( const ESelection& rESelection );
void SetText( const EditTextObject& rTextObject );
- void RemoveParagraph( USHORT nPara );
- void InsertParagraph( USHORT nPara, const EditTextObject& rTxtObj );
- void InsertParagraph( USHORT nPara, const String& rText);
+ void RemoveParagraph( sal_uInt16 nPara );
+ void InsertParagraph( sal_uInt16 nPara, const EditTextObject& rTxtObj );
+ void InsertParagraph( sal_uInt16 nPara, const String& rText);
- void SetText( USHORT nPara, const EditTextObject& rTxtObj );
- void SetText( USHORT nPara, const String& rText);
+ void SetText( sal_uInt16 nPara, const EditTextObject& rTxtObj );
+ void SetText( sal_uInt16 nPara, const String& rText);
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
- virtual const SfxItemSet& GetParaAttribs( USHORT nPara ) const;
+ virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet );
+ virtual const SfxItemSet& GetParaAttribs( sal_uInt16 nPara ) const;
- void GetCharAttribs( USHORT nPara, EECharAttribArray& rLst ) const;
+ void GetCharAttribs( sal_uInt16 nPara, EECharAttribArray& rLst ) const;
- SfxItemSet GetAttribs( USHORT nPara, USHORT nStart, USHORT nEnd, sal_uInt8 nFlags = 0xFF ) const;
- SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = EditEngineAttribs_All );
+ SfxItemSet GetAttribs( sal_uInt16 nPara, sal_uInt16 nStart, sal_uInt16 nEnd, sal_uInt8 nFlags = 0xFF ) const;
+ SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = EditEngineAttribs_All );
- BOOL HasParaAttrib( USHORT nPara, USHORT nWhich ) const;
- const SfxPoolItem& GetParaAttrib( USHORT nPara, USHORT nWhich );
+ sal_Bool HasParaAttrib( sal_uInt16 nPara, sal_uInt16 nWhich ) const;
+ const SfxPoolItem& GetParaAttrib( sal_uInt16 nPara, sal_uInt16 nWhich );
- Font GetStandardFont( USHORT nPara );
- SvxFont GetStandardSvxFont( USHORT nPara );
+ Font GetStandardFont( sal_uInt16 nPara );
+ SvxFont GetStandardSvxFont( sal_uInt16 nPara );
void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- void ShowParagraph( USHORT nParagraph, BOOL bShow = TRUE );
- BOOL IsParagraphVisible( USHORT nParagraph );
+ void ShowParagraph( sal_uInt16 nParagraph, sal_Bool bShow = sal_True );
+ sal_Bool IsParagraphVisible( sal_uInt16 nParagraph );
::svl::IUndoManager&
GetUndoManager();
- void UndoActionStart( USHORT nId );
- void UndoActionEnd( USHORT nId );
- BOOL IsInUndo();
+ void UndoActionStart( sal_uInt16 nId );
+ void UndoActionEnd( sal_uInt16 nId );
+ sal_Bool IsInUndo();
- void EnableUndo( BOOL bEnable );
- BOOL IsUndoEnabled();
+ void EnableUndo( sal_Bool bEnable );
+ sal_Bool IsUndoEnabled();
/** returns the value last used for bTryMerge while calling ImpEditEngine::InsertUndo
This is currently used in a bad but needed hack to get undo actions merged in the
OutlineView in impress. Do not use it unless you want to sell your soul too! */
- BOOL HasTriedMergeOnLastAddUndo() const;
+ sal_Bool HasTriedMergeOnLastAddUndo() const;
void ClearModifyFlag();
void SetModified();
- BOOL IsModified() const;
+ sal_Bool IsModified() const;
void SetModifyHdl( const Link& rLink );
Link GetModifyHdl() const;
- BOOL IsInSelectionMode() const;
+ sal_Bool IsInSelectionMode() const;
void StopSelectionMode();
void StripPortions();
- void GetPortions( USHORT nPara, SvUShorts& rList );
+ void GetPortions( sal_uInt16 nPara, SvUShorts& rList );
- long GetFirstLineStartX( USHORT nParagraph );
- Point GetDocPosTopLeft( USHORT nParagraph );
+ long GetFirstLineStartX( sal_uInt16 nParagraph );
+ Point GetDocPosTopLeft( sal_uInt16 nParagraph );
Point GetDocPos( const Point& rPaperPos ) const;
- BOOL IsTextPos( const Point& rPaperPos, USHORT nBorder = 0 );
+ sal_Bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder = 0 );
// StartDocPos entspr. VisArea.TopLeft().
void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect );
void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos );
- void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos, BOOL bClip );
+ void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos, sal_Bool bClip );
void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 );
-// ULONG: Fehlercode des Streams.
- ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- ULONG Write( SvStream& rOutput, EETextFormat );
+// sal_uInt32: Fehlercode des Streams.
+ sal_uLong Read( SvStream& rInput, const String& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
+ sal_uLong Write( SvStream& rOutput, EETextFormat );
void SetStatusEventHdl( const Link& rLink );
Link GetStatusEventHdl() const;
@@ -322,25 +322,25 @@ public:
Link GetImportHdl() const;
// Flat-Mode: Keine Zeichenformatierung auswerten => Fuer Outliner
- BOOL IsFlatMode() const;
- void SetFlatMode( BOOL bFlat );
+ sal_Bool IsFlatMode() const;
+ void SetFlatMode( sal_Bool bFlat );
void SetControlWord( sal_uInt32 nWord );
sal_uInt32 GetControlWord() const;
void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
- void QuickRemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
+ void QuickRemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich = 0 );
void QuickMarkInvalid( const ESelection& rSel );
- void QuickFormatDoc( BOOL bFull = FALSE );
+ void QuickFormatDoc( sal_Bool bFull = sal_False );
void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
void QuickInsertLineBreak( const ESelection& rSel );
void QuickInsertText( const String& rText, const ESelection& rSel );
void QuickDelete( const ESelection& rSel );
- void QuickMarkToBeRepainted( USHORT nPara );
+ void QuickMarkToBeRepainted( sal_uInt16 nPara );
- void SetGlobalCharStretching( USHORT nX = 100, USHORT nY = 100 );
- void GetGlobalCharStretching( USHORT& rX, USHORT& rY );
- void DoStretchChars( USHORT nX, USHORT nY );
+ void SetGlobalCharStretching( sal_uInt16 nX = 100, sal_uInt16 nY = 100 );
+ void GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY );
+ void DoStretchChars( sal_uInt16 nX, sal_uInt16 nY );
void SetEditTextObjectPool( SfxItemPool* pPool );
SfxItemPool* GetEditTextObjectPool() const;
@@ -348,8 +348,8 @@ public:
void SetStyleSheetPool( SfxStyleSheetPool* pSPool );
SfxStyleSheetPool* GetStyleSheetPool();
- void SetStyleSheet( USHORT nPara, SfxStyleSheet* pStyle );
- SfxStyleSheet* GetStyleSheet( USHORT nPara ) const;
+ void SetStyleSheet( sal_uInt16 nPara, SfxStyleSheet* pStyle );
+ SfxStyleSheet* GetStyleSheet( sal_uInt16 nPara ) const;
void SetWordDelimiters( const String& rDelimiters );
String GetWordDelimiters() const;
@@ -357,11 +357,11 @@ public:
void SetGroupChars( const String& rChars );
String GetGroupChars() const;
- void EnablePasteSpecial( BOOL bEnable );
- BOOL IsPasteSpecialEnabled() const;
+ void EnablePasteSpecial( sal_Bool bEnable );
+ sal_Bool IsPasteSpecialEnabled() const;
- void EnableIdleFormatter( BOOL bEnable );
- BOOL IsIdleFormatterEnabled() const;
+ void EnableIdleFormatter( sal_Bool bEnable );
+ sal_Bool IsIdleFormatterEnabled() const;
void EraseVirtualDevice();
@@ -382,16 +382,16 @@ public:
void SetDefaultLanguage( LanguageType eLang );
LanguageType GetDefaultLanguage() const;
- BOOL HasOnlineSpellErrors() const;
+ sal_Bool HasOnlineSpellErrors() const;
void CompleteOnlineSpelling();
- void SetBigTextObjectStart( USHORT nStartAtPortionCount );
- USHORT GetBigTextObjectStart() const;
- BOOL ShouldCreateBigTextObject() const;
+ void SetBigTextObjectStart( sal_uInt16 nStartAtPortionCount );
+ sal_uInt16 GetBigTextObjectStart() const;
+ sal_Bool ShouldCreateBigTextObject() const;
// Zum schnellen Vorab-Pruefen ohne View:
EESpellState HasSpellErrors();
- BOOL HasText( const SvxSearchItem& rSearchItem );
+ sal_Bool HasText( const SvxSearchItem& rSearchItem );
//initialize sentence spelling
void StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc);
@@ -406,15 +406,15 @@ public:
// for text conversion (see also HasSpellErrors)
sal_Bool HasConvertibleTextPortion( LanguageType nLang );
- virtual BOOL ConvertNextDocument();
+ virtual sal_Bool ConvertNextDocument();
- BOOL UpdateFields();
- void RemoveFields( BOOL bKeepFieldText, TypeId aType = NULL );
+ sal_Bool UpdateFields();
+ void RemoveFields( sal_Bool bKeepFieldText, TypeId aType = NULL );
- USHORT GetFieldCount( USHORT nPara ) const;
- EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
+ sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const;
+ EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const;
- BOOL IsRightToLeft( USHORT nPara ) const;
+ sal_Bool IsRightToLeft( sal_uInt16 nPara ) const;
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >
CreateTransferable( const ESelection& rSelection ) const;
@@ -425,18 +425,18 @@ public:
void SetBeginPasteOrDropHdl( const Link& rLink );
void SetEndPasteOrDropHdl( const Link& rLink );
- virtual void PaintingFirstLine( USHORT nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev );
- virtual void ParagraphInserted( USHORT nNewParagraph );
- virtual void ParagraphDeleted( USHORT nDeletedParagraph );
- virtual void ParagraphConnected( USHORT nLeftParagraph, USHORT nRightParagraph );
- virtual void ParaAttribsChanged( USHORT nParagraph );
+ virtual void PaintingFirstLine( sal_uInt16 nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev );
+ virtual void ParagraphInserted( sal_uInt16 nNewParagraph );
+ virtual void ParagraphDeleted( sal_uInt16 nDeletedParagraph );
+ virtual void ParagraphConnected( sal_uInt16 nLeftParagraph, sal_uInt16 nRightParagraph );
+ virtual void ParaAttribsChanged( sal_uInt16 nParagraph );
virtual void StyleSheetChanged( SfxStyleSheet* pStyle );
- virtual void ParagraphHeightChanged( USHORT nPara );
+ virtual void ParagraphHeightChanged( sal_uInt16 nPara );
// #101498#
virtual void DrawingText(
- const Point& rStartPos, const String& rText, USHORT nTextStart, USHORT nTextLen, const sal_Int32* pDXArray,
- const SvxFont& rFont, USHORT nPara, xub_StrLen nIndex, BYTE nRightToLeft,
+ const Point& rStartPos, const String& rText, sal_uInt16 nTextStart, sal_uInt16 nTextLen, const sal_Int32* pDXArray,
+ const SvxFont& rFont, sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft,
const EEngineData::WrongSpellVector* pWrongSpellVector,
const SvxFieldData* pFieldData,
bool bEndOfLine,
@@ -446,33 +446,33 @@ public:
const Color& rOverlineColor,
const Color& rTextLineColor);
- virtual String GetUndoComment( USHORT nUndoId ) const;
- virtual BOOL FormattingParagraph( USHORT nPara );
- virtual BOOL SpellNextDocument();
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual void FieldSelected( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
+ virtual String GetUndoComment( sal_uInt16 nUndoId ) const;
+ virtual sal_Bool FormattingParagraph( sal_uInt16 nPara );
+ virtual sal_Bool SpellNextDocument();
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
+ virtual void FieldSelected( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
+ virtual String CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
// to be overloaded if access to bullet information needs to be provided
- virtual const SvxNumberFormat * GetNumberFormat( USHORT nPara ) const;
+ virtual const SvxNumberFormat * GetNumberFormat( sal_uInt16 nPara ) const;
- virtual Rectangle GetBulletArea( USHORT nPara );
+ virtual Rectangle GetBulletArea( sal_uInt16 nPara );
- static SfxItemPool* CreatePool( BOOL bLoadRefCounts = TRUE );
+ static SfxItemPool* CreatePool( sal_Bool bLoadRefCounts = sal_True );
static SfxItemPool& GetGlobalItemPool();
static sal_uInt32 RegisterClipboardFormatName();
- static BOOL DoesKeyChangeText( const KeyEvent& rKeyEvent );
- static BOOL DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
- static BOOL IsSimpleCharInput( const KeyEvent& rKeyEvent );
- static USHORT GetAvailableSearchOptions();
+ static sal_Bool DoesKeyChangeText( const KeyEvent& rKeyEvent );
+ static sal_Bool DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
+ static sal_Bool IsSimpleCharInput( const KeyEvent& rKeyEvent );
+ static sal_uInt16 GetAvailableSearchOptions();
static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const Font& rFont );
static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const SvxFont& rFont );
static Font CreateFontFromItemSet( const SfxItemSet& rItemSet );
- static Font CreateFontFromItemSet( const SfxItemSet& rItemSet, USHORT nScriptType );
+ static Font CreateFontFromItemSet( const SfxItemSet& rItemSet, sal_uInt16 nScriptType );
static SvxFont CreateSvxFontFromItemSet( const SfxItemSet& rItemSet );
- static void ImportBulletItem( SvxNumBulletItem& rNumBullet, USHORT nLevel, const SvxBulletItem* pOldBullet, const SvxLRSpaceItem* pOldLRSpace );
- static BOOL IsPrintable( sal_Unicode c ) { return ( ( c >= 32 ) && ( c != 127 ) ); }
- static BOOL HasValidData( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rTransferable );
+ static void ImportBulletItem( SvxNumBulletItem& rNumBullet, sal_uInt16 nLevel, const SvxBulletItem* pOldBullet, const SvxLRSpaceItem* pOldLRSpace );
+ static sal_Bool IsPrintable( sal_Unicode c ) { return ( ( c >= 32 ) && ( c != 127 ) ); }
+ static sal_Bool HasValidData( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rTransferable );
/** sets a link that is called at the beginning of a drag operation at an edit view */
void SetBeginDropHdl( const Link& rLink );
@@ -483,8 +483,8 @@ public:
Link GetEndDropHdl() const;
/// specifies if auto-correction should capitalize the first word or not (default is on)
- void SetFirstWordCapitalization( BOOL bCapitalize );
- BOOL IsFirstWordCapitalization() const;
+ void SetFirstWordCapitalization( sal_Bool bCapitalize );
+ sal_Bool IsFirstWordCapitalization() const;
};
#endif // _MyEDITENG_HXX
diff --git a/editeng/inc/editeng/editobj.hxx b/editeng/inc/editeng/editobj.hxx
index ef3307fe20c8..3ede397562a5 100644
--- a/editeng/inc/editeng/editobj.hxx
+++ b/editeng/inc/editeng/editobj.hxx
@@ -48,11 +48,11 @@ class EECharAttribArray;
class EDITENG_DLLPUBLIC EditTextObject
{
private:
- USHORT nWhich;
+ sal_uInt16 nWhich;
EDITENG_DLLPRIVATE EditTextObject& operator=( const EditTextObject& );
protected:
- EditTextObject( USHORT nWhich );
+ EditTextObject( sal_uInt16 nWhich );
EditTextObject( const EditTextObject& r );
virtual void StoreData( SvStream& rOStream ) const;
@@ -61,59 +61,59 @@ protected:
public:
virtual ~EditTextObject();
- USHORT Which() const { return nWhich; }
+ sal_uInt16 Which() const { return nWhich; }
- virtual USHORT GetUserType() const; // Fuer OutlinerMode, der kann das aber nicht kompatibel speichern
- virtual void SetUserType( USHORT n );
+ virtual sal_uInt16 GetUserType() const; // Fuer OutlinerMode, der kann das aber nicht kompatibel speichern
+ virtual void SetUserType( sal_uInt16 n );
- virtual ULONG GetObjectSettings() const;
- virtual void SetObjectSettings( ULONG n );
+ virtual sal_uLong GetObjectSettings() const;
+ virtual void SetObjectSettings( sal_uLong n );
- virtual BOOL IsVertical() const;
- virtual void SetVertical( BOOL bVertical );
+ virtual sal_Bool IsVertical() const;
+ virtual void SetVertical( sal_Bool bVertical );
- virtual USHORT GetScriptType() const;
+ virtual sal_uInt16 GetScriptType() const;
- virtual USHORT GetVersion() const; // Solange der Outliner keine Recordlaenge speichert
+ virtual sal_uInt16 GetVersion() const; // Solange der Outliner keine Recordlaenge speichert
virtual EditTextObject* Clone() const = 0;
- BOOL Store( SvStream& rOStream ) const;
+ sal_Bool Store( SvStream& rOStream ) const;
static EditTextObject* Create( SvStream& rIStream,
SfxItemPool* pGlobalTextObjectPool = 0 );
void Skip( SvStream& rIStream );
- virtual USHORT GetParagraphCount() const;
+ virtual sal_uInt16 GetParagraphCount() const;
- virtual XubString GetText( USHORT nParagraph ) const;
- virtual void Insert( const EditTextObject& rObj, USHORT nPara );
- virtual void RemoveParagraph( USHORT nPara );
- virtual EditTextObject* CreateTextObject( USHORT nPara, USHORT nParas = 1 ) const;
+ virtual XubString GetText( sal_uInt16 nParagraph ) const;
+ virtual void Insert( const EditTextObject& rObj, sal_uInt16 nPara );
+ virtual void RemoveParagraph( sal_uInt16 nPara );
+ virtual EditTextObject* CreateTextObject( sal_uInt16 nPara, sal_uInt16 nParas = 1 ) const;
- virtual BOOL HasPortionInfo() const;
+ virtual sal_Bool HasPortionInfo() const;
virtual void ClearPortionInfo();
- virtual BOOL HasOnlineSpellErrors() const;
+ virtual sal_Bool HasOnlineSpellErrors() const;
- virtual BOOL HasCharAttribs( USHORT nWhich = 0 ) const;
- virtual void GetCharAttribs( USHORT nPara, EECharAttribArray& rLst ) const;
+ virtual sal_Bool HasCharAttribs( sal_uInt16 nWhich = 0 ) const;
+ virtual void GetCharAttribs( sal_uInt16 nPara, EECharAttribArray& rLst ) const;
- virtual BOOL RemoveCharAttribs( USHORT nWhich = 0 );
- virtual BOOL RemoveParaAttribs( USHORT nWhich = 0 );
+ virtual sal_Bool RemoveCharAttribs( sal_uInt16 nWhich = 0 );
+ virtual sal_Bool RemoveParaAttribs( sal_uInt16 nWhich = 0 );
- virtual void MergeParaAttribs( const SfxItemSet& rAttribs, USHORT nStart = EE_CHAR_START, USHORT nEnd = EE_CHAR_END );
+ virtual void MergeParaAttribs( const SfxItemSet& rAttribs, sal_uInt16 nStart = EE_CHAR_START, sal_uInt16 nEnd = EE_CHAR_END );
- virtual BOOL IsFieldObject() const;
+ virtual sal_Bool IsFieldObject() const;
virtual const SvxFieldItem* GetField() const;
- virtual BOOL HasField( TypeId aType = NULL ) const;
+ virtual sal_Bool HasField( TypeId aType = NULL ) const;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rAttribs );
+ virtual SfxItemSet GetParaAttribs( sal_uInt16 nPara ) const;
+ virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rAttribs );
- virtual BOOL HasStyleSheet( const XubString& rName, SfxStyleFamily eFamily ) const;
- virtual void GetStyleSheet( USHORT nPara, XubString& rName, SfxStyleFamily& eFamily ) const;
- virtual void SetStyleSheet( USHORT nPara, const XubString& rName, const SfxStyleFamily& eFamily );
- virtual BOOL ChangeStyleSheets( const XubString& rOldName, SfxStyleFamily eOldFamily,
+ virtual sal_Bool HasStyleSheet( const XubString& rName, SfxStyleFamily eFamily ) const;
+ virtual void GetStyleSheet( sal_uInt16 nPara, XubString& rName, SfxStyleFamily& eFamily ) const;
+ virtual void SetStyleSheet( sal_uInt16 nPara, const XubString& rName, const SfxStyleFamily& eFamily );
+ virtual sal_Bool ChangeStyleSheets( const XubString& rOldName, SfxStyleFamily eOldFamily,
const XubString& rNewName, SfxStyleFamily eNewFamily );
virtual void ChangeStyleSheetName( SfxStyleFamily eFamily, const XubString& rOldName, const XubString& rNewName );
diff --git a/editeng/inc/editeng/editstat.hxx b/editeng/inc/editeng/editstat.hxx
index 8db48c63f72c..6c9373c1638d 100644
--- a/editeng/inc/editeng/editstat.hxx
+++ b/editeng/inc/editeng/editstat.hxx
@@ -88,7 +88,7 @@
EE_STAT_CRSRLEFTPARA zur Zeit bei Cursorbewegungen und Return.
*/
-inline void SetFlags( ULONG& rBits, const ULONG nMask, FASTBOOL bOn )
+inline void SetFlags( sal_uLong& rBits, const sal_uInt32 nMask, sal_Bool bOn )
{
if ( bOn )
rBits |= nMask;
@@ -99,25 +99,25 @@ inline void SetFlags( ULONG& rBits, const ULONG nMask, FASTBOOL bOn )
class EditStatus
{
protected:
- ULONG nStatusBits;
- ULONG nControlBits;
- USHORT nPrevPara; // fuer EE_STAT_CRSRLEFTPARA
+ sal_uLong nStatusBits;
+ sal_uLong nControlBits;
+ sal_uInt16 nPrevPara; // fuer EE_STAT_CRSRLEFTPARA
public:
EditStatus() { nStatusBits = 0; nControlBits = 0; nPrevPara = 0xFFFF; }
void Clear() { nStatusBits = 0; }
- void SetControlBits( ULONG nMask, FASTBOOL bOn )
+ void SetControlBits( sal_uLong nMask, sal_Bool bOn )
{ SetFlags( nControlBits, nMask, bOn ); }
- ULONG GetStatusWord() const { return nStatusBits; }
- ULONG& GetStatusWord() { return nStatusBits; }
+ sal_uLong GetStatusWord() const { return nStatusBits; }
+ sal_uLong& GetStatusWord() { return nStatusBits; }
- ULONG GetControlWord() const { return nControlBits; }
- ULONG& GetControlWord() { return nControlBits; }
+ sal_uLong GetControlWord() const { return nControlBits; }
+ sal_uLong& GetControlWord() { return nControlBits; }
- USHORT GetPrevParagraph() const { return nPrevPara; }
- USHORT& GetPrevParagraph() { return nPrevPara; }
+ sal_uInt16 GetPrevParagraph() const { return nPrevPara; }
+ sal_uInt16& GetPrevParagraph() { return nPrevPara; }
};
#define SPELLCMD_IGNOREWORD 0x0001
@@ -128,18 +128,18 @@ public:
struct SpellCallbackInfo
{
- USHORT nCommand;
+ sal_uInt16 nCommand;
String aWord;
LanguageType eLanguage;
- SpellCallbackInfo( USHORT nCMD, const String& rWord )
+ SpellCallbackInfo( sal_uInt16 nCMD, const String& rWord )
: aWord( rWord )
{
nCommand = nCMD;
eLanguage = LANGUAGE_DONTKNOW;
}
- SpellCallbackInfo( USHORT nCMD, LanguageType eLang )
+ SpellCallbackInfo( sal_uInt16 nCMD, LanguageType eLang )
{
nCommand = nCMD;
eLanguage = eLang;
diff --git a/editeng/inc/editeng/editund2.hxx b/editeng/inc/editeng/editund2.hxx
index 14091ea3e1a7..52986e6ee1e4 100644
--- a/editeng/inc/editeng/editund2.hxx
+++ b/editeng/inc/editeng/editund2.hxx
@@ -43,8 +43,8 @@ private:
public:
EditUndoManager( ImpEditEngine* pImpEE );
- virtual BOOL Undo();
- virtual BOOL Redo();
+ virtual sal_Bool Undo();
+ virtual sal_Bool Redo();
};
// -----------------------------------------------------------------------
@@ -53,12 +53,12 @@ public:
class EDITENG_DLLPUBLIC EditUndo : public SfxUndoAction
{
private:
- USHORT nId;
+ sal_uInt16 nId;
ImpEditEngine* pImpEE;
public:
TYPEINFO();
- EditUndo( USHORT nI, ImpEditEngine* pImpEE );
+ EditUndo( sal_uInt16 nI, ImpEditEngine* pImpEE );
virtual ~EditUndo();
ImpEditEngine* GetImpEditEngine() const { return pImpEE; }
@@ -66,9 +66,9 @@ public:
virtual void Undo() = 0;
virtual void Redo() = 0;
- virtual BOOL CanRepeat(SfxRepeatTarget&) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget&) const;
virtual String GetComment() const;
- virtual USHORT GetId() const;
+ virtual sal_uInt16 GetId() const;
};
#endif // _EDITUND2_HXX
diff --git a/editeng/inc/editeng/editview.hxx b/editeng/inc/editeng/editview.hxx
index 15052ecc3c0c..c187ea60743b 100644
--- a/editeng/inc/editeng/editview.hxx
+++ b/editeng/inc/editeng/editview.hxx
@@ -99,33 +99,33 @@ public:
void Paint( const Rectangle& rRect );
void Invalidate();
- Pair Scroll( long nHorzScroll, long nVertScroll, BYTE nRangeCheck = RGCHK_NEG );
+ Pair Scroll( long nHorzScroll, long nVertScroll, sal_uInt8 nRangeCheck = RGCHK_NEG );
- void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
+ void ShowCursor( sal_Bool bGotoCursor = sal_True, sal_Bool bForceVisCursor = sal_True );
void HideCursor();
EESelectionMode GetSelectionMode() const;
void SetSelectionMode( EESelectionMode eMode );
- void SetReadOnly( BOOL bReadOnly );
- BOOL IsReadOnly() const;
+ void SetReadOnly( sal_Bool bReadOnly );
+ sal_Bool IsReadOnly() const;
- BOOL HasSelection() const;
+ sal_Bool HasSelection() const;
ESelection GetSelection() const;
void SetSelection( const ESelection& rNewSel );
- BOOL SelectCurrentWord( sal_Int16 nWordType = ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES );
+ sal_Bool SelectCurrentWord( sal_Int16 nWordType = ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES );
void IndentBlock();
void UnindentBlock();
- BOOL IsInsertMode() const;
- void SetInsertMode( BOOL bInsert );
+ sal_Bool IsInsertMode() const;
+ void SetInsertMode( sal_Bool bInsert );
void ReplaceSelected( const String& rStr );
String GetSelected();
void DeleteSelected();
- USHORT GetSelectedScriptType() const;
+ sal_uInt16 GetSelectedScriptType() const;
// Position der VisArea im Ausgabefenster.
// Eine Groessenaenderung betrifft auch die VisArea
@@ -143,17 +143,17 @@ public:
void SetCursor( const Cursor& rCursor );
Cursor* GetCursor() const;
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void InsertText( const String& rNew, sal_Bool bSelect = sal_False );
- BOOL PostKeyEvent( const KeyEvent& rKeyEvent );
+ sal_Bool PostKeyEvent( const KeyEvent& rKeyEvent );
- BOOL MouseButtonUp( const MouseEvent& rMouseEvent );
- BOOL MouseButtonDown( const MouseEvent& rMouseEvent );
- BOOL MouseMove( const MouseEvent& rMouseEvent );
+ sal_Bool MouseButtonUp( const MouseEvent& rMouseEvent );
+ sal_Bool MouseButtonDown( const MouseEvent& rMouseEvent );
+ sal_Bool MouseMove( const MouseEvent& rMouseEvent );
void Command( const CommandEvent& rCEvt );
- BOOL Drop( const DropEvent& rEvt );
- BOOL QueryDrop( DropEvent& rEvt );
+ sal_Bool Drop( const DropEvent& rEvt );
+ sal_Bool QueryDrop( DropEvent& rEvt );
ESelection GetDropPos();
void Cut();
@@ -161,28 +161,28 @@ public:
void Paste();
void PasteSpecial();
- void EnablePaste( BOOL bEnable );
- BOOL IsPasteEnabled() const;
+ void EnablePaste( sal_Bool bEnable );
+ sal_Bool IsPasteEnabled() const;
void Undo();
void Redo();
// speziell fuer Olli
- USHORT GetParagraph( const Point& rMousePosPixel );
- Point GetWindowPosTopLeft( USHORT nParagraph );
- void MoveParagraphs( Range aParagraphs, USHORT nNewPos );
+ sal_uInt16 GetParagraph( const Point& rMousePosPixel );
+ Point GetWindowPosTopLeft( sal_uInt16 nParagraph );
+ void MoveParagraphs( Range aParagraphs, sal_uInt16 nNewPos );
void MoveParagraphs( long nDiff );
const SfxItemSet& GetEmptyItemSet();
SfxItemSet GetAttribs();
void SetAttribs( const SfxItemSet& rSet );
- void SetParaAttribs( const SfxItemSet& rSet, USHORT nPara );
- void RemoveAttribs( BOOL bRemoveParaAttribs = FALSE, USHORT nWhich = 0 );
- void RemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
- void RemoveAttribsKeepLanguages( BOOL bRemoveParaAttribs = FALSE );
+ void SetParaAttribs( const SfxItemSet& rSet, sal_uInt16 nPara );
+ void RemoveAttribs( sal_Bool bRemoveParaAttribs = sal_False, sal_uInt16 nWhich = 0 );
+ void RemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich = 0 );
+ void RemoveAttribsKeepLanguages( sal_Bool bRemoveParaAttribs = sal_False );
- ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, BOOL bSelect = FALSE, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- ULONG Write( SvStream& rOutput, EETextFormat eFormat );
+ sal_uLong Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, sal_Bool bSelect = sal_False, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
+ sal_uLong Write( SvStream& rOutput, EETextFormat eFormat );
void SetBackgroundColor( const Color& rColor );
Color GetBackgroundColor() const;
@@ -192,12 +192,12 @@ public:
EditTextObject* CreateTextObject();
void InsertText( const EditTextObject& rTextObject );
- void InsertText( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xDataObj, const String& rBaseURL, BOOL bUseSpecial );
+ void InsertText( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xDataObj, const String& rBaseURL, sal_Bool bUseSpecial );
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetTransferable();
- // An EditView, damit bei TRUE flackerfreies Update:
- void SetEditEngineUpdateMode( BOOL bUpdate );
+ // An EditView, damit bei sal_True flackerfreies Update:
+ void SetEditEngineUpdateMode( sal_Bool bUpdate );
void ForceUpdate();
SfxStyleSheet* GetStyleSheet() const;
@@ -206,37 +206,37 @@ public:
void SetAnchorMode( EVAnchorMode eMode );
EVAnchorMode GetAnchorMode() const;
- BOOL MatchGroup();
+ sal_Bool MatchGroup();
void CompleteAutoCorrect();
- EESpellState StartSpeller( BOOL bMultipleDoc = FALSE );
+ EESpellState StartSpeller( sal_Bool bMultipleDoc = sal_False );
EESpellState StartThesaurus();
- USHORT StartSearchAndReplace( const SvxSearchItem& rSearchItem );
+ sal_uInt16 StartSearchAndReplace( const SvxSearchItem& rSearchItem );
// for text conversion
- void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, INT32 nOptions, BOOL bIsInteractive, BOOL bMultipleDoc );
+ void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, sal_Int32 nOptions, sal_Bool bIsInteractive, sal_Bool bMultipleDoc );
sal_Bool HasConvertibleTextPortion( LanguageType nLang );
void TransliterateText( sal_Int32 nTransliterationMode );
- BOOL IsCursorAtWrongSpelledWord( BOOL bMarkIfWrong = FALSE );
- BOOL IsWrongSpelledWordAtPos( const Point& rPosPixel, BOOL bMarkIfWrong = FALSE );
+ sal_Bool IsCursorAtWrongSpelledWord( sal_Bool bMarkIfWrong = sal_False );
+ sal_Bool IsWrongSpelledWordAtPos( const Point& rPosPixel, sal_Bool bMarkIfWrong = sal_False );
void SpellIgnoreWord();
void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
void InsertField( const SvxFieldItem& rFld );
const SvxFieldItem* GetFieldUnderMousePointer() const;
- const SvxFieldItem* GetFieldUnderMousePointer( USHORT& nPara, xub_StrLen& nPos ) const;
- const SvxFieldItem* GetField( const Point& rPos, USHORT* pnPara = NULL, xub_StrLen* pnPos = NULL ) const;
+ const SvxFieldItem* GetFieldUnderMousePointer( sal_uInt16& nPara, xub_StrLen& nPos ) const;
+ const SvxFieldItem* GetField( const Point& rPos, sal_uInt16* pnPara = NULL, xub_StrLen* pnPos = NULL ) const;
const SvxFieldItem* GetFieldAtSelection() const;
String GetWordUnderMousePointer() const;
String GetWordUnderMousePointer( Rectangle& rWordRect ) const;
- void SetInvalidateMore( USHORT nPixel );
- USHORT GetInvalidateMore() const;
+ void SetInvalidateMore( sal_uInt16 nPixel );
+ sal_uInt16 GetInvalidateMore() const;
// grows or shrinks the font height for the current selection
void ChangeFontSize( bool bGrow, const FontList* pList );
diff --git a/editeng/inc/editeng/eerdll.hxx b/editeng/inc/editeng/eerdll.hxx
index 417fab6c1e2a..0889d6e0d5b1 100644
--- a/editeng/inc/editeng/eerdll.hxx
+++ b/editeng/inc/editeng/eerdll.hxx
@@ -37,7 +37,7 @@ class GlobalEditData;
class EDITENG_DLLPUBLIC EditResId: public ResId
{
public:
- EditResId( USHORT nId );
+ EditResId( sal_uInt16 nId );
};
class EditDLL
diff --git a/editeng/inc/editeng/emphitem.hxx b/editeng/inc/editeng/emphitem.hxx
index e461817e4bdb..18845e64a3db 100644
--- a/editeng/inc/editeng/emphitem.hxx
+++ b/editeng/inc/editeng/emphitem.hxx
@@ -52,7 +52,7 @@ public:
TYPEINFO();
SvxEmphasisMarkItem( const FontEmphasisMark eVal /*= EMPHASISMARK_NONE*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem + SfxEnumItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -62,14 +62,14 @@ public:
const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 ) const;
+ sal_uInt8 nMemberId = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 );
+ sal_uInt8 nMemberId = 0 );
inline SvxEmphasisMarkItem& operator=(const SvxEmphasisMarkItem& rItem )
{
@@ -81,7 +81,7 @@ public:
FontEmphasisMark GetEmphasisMark() const
{ return (FontEmphasisMark)GetValue(); }
void SetEmphasisMark( FontEmphasisMark eNew )
- { SetValue( (USHORT)eNew ); }
+ { SetValue( (sal_uInt16)eNew ); }
};
#endif // #ifndef _SVX_EMPHITEM_HXX
diff --git a/editeng/inc/editeng/escpitem.hxx b/editeng/inc/editeng/escpitem.hxx
index 95311632e947..2f29c8f2e79b 100644
--- a/editeng/inc/editeng/escpitem.hxx
+++ b/editeng/inc/editeng/escpitem.hxx
@@ -55,15 +55,15 @@ namespace rtl
class EDITENG_DLLPUBLIC SvxEscapementItem : public SfxEnumItemInterface
{
short nEsc;
- BYTE nProp;
+ sal_uInt8 nProp;
public:
TYPEINFO();
- SvxEscapementItem( const USHORT nId );
+ SvxEscapementItem( const sal_uInt16 nId );
SvxEscapementItem( const SvxEscapement eEscape,
- const USHORT nId );
- SvxEscapementItem( const short nEsc, const BYTE nProp,
- const USHORT nId );
+ const sal_uInt16 nId );
+ SvxEscapementItem( const short nEsc, const sal_uInt8 nProp,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
@@ -72,12 +72,12 @@ public:
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
inline void SetEscapement( const SvxEscapement eNew )
{
@@ -94,8 +94,8 @@ public:
inline short &GetEsc() { return nEsc; }
inline short GetEsc() const { return nEsc; }
- inline BYTE &GetProp() { return nProp; }
- inline BYTE GetProp() const { return nProp; }
+ inline sal_uInt8 &GetProp() { return nProp; }
+ inline sal_uInt8 GetProp() const { return nProp; }
inline SvxEscapementItem& operator=(const SvxEscapementItem& rEsc)
{
@@ -104,10 +104,10 @@ public:
return *this;
}
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
+ virtual sal_uInt16 GetValueCount() const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetEnumValue() const;
+ virtual void SetEnumValue( sal_uInt16 nNewVal );
};
#endif
diff --git a/editeng/inc/editeng/fhgtitem.hxx b/editeng/inc/editeng/fhgtitem.hxx
index 573e959cd59e..5b087e952d57 100644
--- a/editeng/inc/editeng/fhgtitem.hxx
+++ b/editeng/inc/editeng/fhgtitem.hxx
@@ -47,24 +47,24 @@ namespace rtl
Dieses Item beschreibt die Font-Hoehe.
*/
-#define FONTHEIGHT_16_VERSION ((USHORT)0x0001)
-#define FONTHEIGHT_UNIT_VERSION ((USHORT)0x0002)
+#define FONTHEIGHT_16_VERSION ((sal_uInt16)0x0001)
+#define FONTHEIGHT_UNIT_VERSION ((sal_uInt16)0x0002)
class EDITENG_DLLPUBLIC SvxFontHeightItem : public SfxPoolItem
{
- UINT32 nHeight;
- USHORT nProp; // default 100%
+ sal_uInt32 nHeight;
+ sal_uInt16 nProp; // default 100%
SfxMapUnit ePropUnit; // Percent, Twip, ...
public:
TYPEINFO();
- SvxFontHeightItem( const ULONG nSz /*= 240*/, const USHORT nPropHeight /*= 100*/,
- const USHORT nId );
+ SvxFontHeightItem( const sal_uLong nSz /*= 240*/, const sal_uInt16 nPropHeight /*= 100*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -72,9 +72,9 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual USHORT GetVersion( USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nItemVersion) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
@@ -85,21 +85,21 @@ public:
return *this;
}
- void SetHeight( UINT32 nNewHeight, const USHORT nNewProp = 100,
+ void SetHeight( sal_uInt32 nNewHeight, const sal_uInt16 nNewProp = 100,
SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE );
- void SetHeight( UINT32 nNewHeight, USHORT nNewProp,
+ void SetHeight( sal_uInt32 nNewHeight, sal_uInt16 nNewProp,
SfxMapUnit eUnit, SfxMapUnit eCoreUnit );
- UINT32 GetHeight() const { return nHeight; }
+ sal_uInt32 GetHeight() const { return nHeight; }
- void SetHeightValue( UINT32 nNewHeight )
+ void SetHeightValue( sal_uInt32 nNewHeight )
{
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
nHeight = nNewHeight;
}
- void SetProp( const USHORT nNewProp,
+ void SetProp( const sal_uInt16 nNewProp,
SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE )
{
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
@@ -107,7 +107,7 @@ public:
ePropUnit = eUnit;
}
- USHORT GetProp() const { return nProp; }
+ sal_uInt16 GetProp() const { return nProp; }
SfxMapUnit GetPropUnit() const { return ePropUnit; } // Percent, Twip, ...
};
diff --git a/editeng/inc/editeng/flditem.hxx b/editeng/inc/editeng/flditem.hxx
index 67233ba5337f..30f08ee38257 100644
--- a/editeng/inc/editeng/flditem.hxx
+++ b/editeng/inc/editeng/flditem.hxx
@@ -68,19 +68,19 @@ class EDITENG_DLLPUBLIC SvxFieldItem : public SfxPoolItem
private:
SvxFieldData* pField;
- EDITENG_DLLPRIVATE SvxFieldItem( SvxFieldData* pField, const USHORT nId );
+ EDITENG_DLLPRIVATE SvxFieldItem( SvxFieldData* pField, const sal_uInt16 nId );
public:
TYPEINFO();
- SvxFieldItem( const SvxFieldData& rField, const USHORT nId );
+ SvxFieldItem( const SvxFieldData& rField, const sal_uInt16 nId );
SvxFieldItem( const SvxFieldItem& rItem );
~SvxFieldItem();
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nVer ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVer ) const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
const SvxFieldData* GetField() const { return pField; }
static SvClassManager& GetClassManager();
diff --git a/editeng/inc/editeng/flstitem.hxx b/editeng/inc/editeng/flstitem.hxx
index 8c4fd0cd589e..7a607f475828 100644
--- a/editeng/inc/editeng/flstitem.hxx
+++ b/editeng/inc/editeng/flstitem.hxx
@@ -55,13 +55,13 @@ public:
TYPEINFO();
SvxFontListItem( const FontList* pFontLst,
- const USHORT nId );
+ const sal_uInt16 nId );
SvxFontListItem( const SvxFontListItem& rItem );
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/fontitem.hxx b/editeng/inc/editeng/fontitem.hxx
index fa6d1e085aab..4ec96052769c 100644
--- a/editeng/inc/editeng/fontitem.hxx
+++ b/editeng/inc/editeng/fontitem.hxx
@@ -55,25 +55,25 @@ class EDITENG_DLLPUBLIC SvxFontItem : public SfxPoolItem
FontPitch ePitch;
rtl_TextEncoding eTextEncoding;
- static BOOL bEnableStoreUnicodeNames;
+ static sal_Bool bEnableStoreUnicodeNames;
public:
TYPEINFO();
- SvxFontItem( const USHORT nId );
+ SvxFontItem( const sal_uInt16 nId );
SvxFontItem( const FontFamily eFam, const String& rFamilyName,
const String& rStyleName,
const FontPitch eFontPitch /*= PITCH_DONTKNOW*/,
const rtl_TextEncoding eFontTextEncoding /*= RTL_TEXTENCODING_DONTKNOW*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -106,7 +106,7 @@ public:
return *this;
}
- static void EnableStoreUnicodeNames( BOOL bEnable );
+ static void EnableStoreUnicodeNames( sal_Bool bEnable );
};
diff --git a/editeng/inc/editeng/forbiddencharacterstable.hxx b/editeng/inc/editeng/forbiddencharacterstable.hxx
index 3bb83f68ed12..877121b69005 100644
--- a/editeng/inc/editeng/forbiddencharacterstable.hxx
+++ b/editeng/inc/editeng/forbiddencharacterstable.hxx
@@ -47,7 +47,7 @@ namespace lang {
struct ForbiddenCharactersInfo
{
com::sun::star::i18n::ForbiddenCharacters aForbiddenChars;
- BOOL bTemporary;
+ sal_Bool bTemporary;
};
DECLARE_TABLE( SvxForbiddenCharactersTableImpl, ForbiddenCharactersInfo* )
@@ -58,12 +58,12 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMSF;
public:
- SvxForbiddenCharactersTable( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF, USHORT nISize = 4, USHORT nGrow = 4 );
+ SvxForbiddenCharactersTable( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF, sal_uInt16 nISize = 4, sal_uInt16 nGrow = 4 );
~SvxForbiddenCharactersTable();
- const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( USHORT nLanuage, BOOL bGetDefault ) const;
- void SetForbiddenCharacters( USHORT nLanuage , const com::sun::star::i18n::ForbiddenCharacters& );
- void ClearForbiddenCharacters( USHORT nLanuage );
+ const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( sal_uInt16 nLanuage, sal_Bool bGetDefault ) const;
+ void SetForbiddenCharacters( sal_uInt16 nLanuage , const com::sun::star::i18n::ForbiddenCharacters& );
+ void ClearForbiddenCharacters( sal_uInt16 nLanuage );
};
#endif // _FORBIDDENCHARACTERSTABLE_HXX
diff --git a/editeng/inc/editeng/forbiddenruleitem.hxx b/editeng/inc/editeng/forbiddenruleitem.hxx
index e3ca0602b8f9..e0e5aac309a2 100644
--- a/editeng/inc/editeng/forbiddenruleitem.hxx
+++ b/editeng/inc/editeng/forbiddenruleitem.hxx
@@ -48,8 +48,8 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/frmdiritem.hxx b/editeng/inc/editeng/frmdiritem.hxx
index 505f51b7cfab..6e479d27530b 100644
--- a/editeng/inc/editeng/frmdiritem.hxx
+++ b/editeng/inc/editeng/frmdiritem.hxx
@@ -47,15 +47,15 @@ class EDITENG_DLLPUBLIC SvxFrameDirectionItem : public SfxUInt16Item
public:
TYPEINFO();
- SvxFrameDirectionItem( USHORT nWhich );
+ SvxFrameDirectionItem( sal_uInt16 nWhich );
SvxFrameDirectionItem( SvxFrameDirection nValue /*= FRMDIR_HORI_LEFT_TOP*/,
- USHORT nWhich );
+ sal_uInt16 nWhich );
virtual ~SvxFrameDirectionItem();
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -65,9 +65,9 @@ public:
const IntlWrapper * = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
+ sal_uInt8 nMemberId );
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
+ sal_uInt8 nMemberId ) const;
inline SvxFrameDirectionItem& operator=( const SvxFrameDirectionItem& rItem )
{
diff --git a/editeng/inc/editeng/fwdtitem.hxx b/editeng/inc/editeng/fwdtitem.hxx
index 10b3bdc964fa..05f957835912 100644
--- a/editeng/inc/editeng/fwdtitem.hxx
+++ b/editeng/inc/editeng/fwdtitem.hxx
@@ -43,19 +43,19 @@
class SvxFontWidthItem : public SfxPoolItem
{
- UINT16 nWidth; // 0 = default
- USHORT nProp; // default 100%
+ sal_uInt16 nWidth; // 0 = default
+ sal_uInt16 nProp; // default 100%
public:
TYPEINFO();
- SvxFontWidthItem( const USHORT nSz /*= 0*/,
- const USHORT nPropWidth /*= 100*/,
- const USHORT nId );
+ SvxFontWidthItem( const sal_uInt16 nSz /*= 0*/,
+ const sal_uInt16 nPropWidth /*= 100*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -63,8 +63,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
@@ -75,28 +75,28 @@ public:
return *this;
}
- void SetWidth( UINT16 nNewWidth, const USHORT nNewProp = 100 )
+ void SetWidth( sal_uInt16 nNewWidth, const sal_uInt16 nNewProp = 100 )
{
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
- nWidth = UINT16(( (UINT32)nNewWidth * nNewProp ) / 100 );
+ nWidth = sal_uInt16(( (sal_uInt32)nNewWidth * nNewProp ) / 100 );
nProp = nNewProp;
}
- UINT16 GetWidth() const { return nWidth; }
+ sal_uInt16 GetWidth() const { return nWidth; }
- void SetWidthValue( UINT16 nNewWidth )
+ void SetWidthValue( sal_uInt16 nNewWidth )
{
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
nWidth = nNewWidth;
}
- void SetProp( const USHORT nNewProp )
+ void SetProp( const sal_uInt16 nNewProp )
{
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
nProp = nNewProp;
}
- USHORT GetProp() const { return nProp; }
+ sal_uInt16 GetProp() const { return nProp; }
};
diff --git a/editeng/inc/editeng/hngpnctitem.hxx b/editeng/inc/editeng/hngpnctitem.hxx
index cecdba9e42f0..dfe060c45f92 100644
--- a/editeng/inc/editeng/hngpnctitem.hxx
+++ b/editeng/inc/editeng/hngpnctitem.hxx
@@ -48,8 +48,8 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/hyznitem.hxx b/editeng/inc/editeng/hyznitem.hxx
index 15acf21825c6..15c6665c620f 100644
--- a/editeng/inc/editeng/hyznitem.hxx
+++ b/editeng/inc/editeng/hyznitem.hxx
@@ -48,24 +48,24 @@ Zeichen am Zeilenende und -anfang).
class EDITENG_DLLPUBLIC SvxHyphenZoneItem : public SfxPoolItem
{
- BOOL bHyphen: 1;
- BOOL bPageEnd: 1;
- BYTE nMinLead;
- BYTE nMinTrail;
- BYTE nMaxHyphens;
+ sal_Bool bHyphen: 1;
+ sal_Bool bPageEnd: 1;
+ sal_uInt8 nMinLead;
+ sal_uInt8 nMinTrail;
+ sal_uInt8 nMaxHyphens;
friend SvStream & operator<<( SvStream & aS, SvxHyphenZoneItem & );
public:
TYPEINFO();
- SvxHyphenZoneItem( const BOOL bHyph /*= FALSE*/,
- const USHORT nId );
+ SvxHyphenZoneItem( const sal_Bool bHyph /*= sal_False*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -73,23 +73,23 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
- inline void SetHyphen( const BOOL bNew ) { bHyphen = bNew; }
- inline BOOL IsHyphen() const { return bHyphen; }
+ inline void SetHyphen( const sal_Bool bNew ) { bHyphen = bNew; }
+ inline sal_Bool IsHyphen() const { return bHyphen; }
- inline void SetPageEnd( const BOOL bNew ) { bPageEnd = bNew; }
- inline BOOL IsPageEnd() const { return bPageEnd; }
+ inline void SetPageEnd( const sal_Bool bNew ) { bPageEnd = bNew; }
+ inline sal_Bool IsPageEnd() const { return bPageEnd; }
- inline BYTE &GetMinLead() { return nMinLead; }
- inline BYTE GetMinLead() const { return nMinLead; }
+ inline sal_uInt8 &GetMinLead() { return nMinLead; }
+ inline sal_uInt8 GetMinLead() const { return nMinLead; }
- inline BYTE &GetMinTrail() { return nMinTrail; }
- inline BYTE GetMinTrail() const { return nMinTrail; }
+ inline sal_uInt8 &GetMinTrail() { return nMinTrail; }
+ inline sal_uInt8 GetMinTrail() const { return nMinTrail; }
- inline BYTE &GetMaxHyphens() { return nMaxHyphens; }
- inline BYTE GetMaxHyphens() const { return nMaxHyphens; }
+ inline sal_uInt8 &GetMaxHyphens() { return nMaxHyphens; }
+ inline sal_uInt8 GetMaxHyphens() const { return nMaxHyphens; }
inline SvxHyphenZoneItem &operator=( const SvxHyphenZoneItem &rNew )
{
diff --git a/editeng/inc/editeng/itemtype.hxx b/editeng/inc/editeng/itemtype.hxx
index d3ffe0ad53a3..19bf08ed0d5d 100644
--- a/editeng/inc/editeng/itemtype.hxx
+++ b/editeng/inc/editeng/itemtype.hxx
@@ -48,14 +48,14 @@ class IntlWrapper;
static const sal_Unicode cDelim = ',';
static const sal_Unicode cpDelim[] = { ',' , ' ', '\0' };
-EDITENG_DLLPUBLIC String GetSvxString( USHORT nId );
+EDITENG_DLLPUBLIC String GetSvxString( sal_uInt16 nId );
EDITENG_DLLPUBLIC String GetMetricText( long nVal, SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit, const IntlWrapper * pIntl );
String GetColorString( const Color& rCol );
-EDITENG_DLLPUBLIC USHORT GetMetricId( SfxMapUnit eUnit );
+EDITENG_DLLPUBLIC sal_uInt16 GetMetricId( SfxMapUnit eUnit );
// -----------------------------------------------------------------------
-inline String GetBoolString( BOOL bVal )
+inline String GetBoolString( sal_Bool bVal )
{
return String( EditResId( bVal ? RID_SVXITEMS_TRUE : RID_SVXITEMS_FALSE ) );
}
diff --git a/editeng/inc/editeng/keepitem.hxx b/editeng/inc/editeng/keepitem.hxx
index 29c7241f01c3..a7751eb1efda 100644
--- a/editeng/inc/editeng/keepitem.hxx
+++ b/editeng/inc/editeng/keepitem.hxx
@@ -49,14 +49,14 @@ class EDITENG_DLLPUBLIC SvxFmtKeepItem : public SfxBoolItem
public:
TYPEINFO();
- inline SvxFmtKeepItem( const BOOL bKeep /*= FALSE*/,
- const USHORT _nWhich );
+ inline SvxFmtKeepItem( const sal_Bool bKeep /*= sal_False*/,
+ const sal_uInt16 _nWhich );
inline SvxFmtKeepItem& operator=( const SvxFmtKeepItem& rSplit );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 ) const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -64,7 +64,7 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
};
-inline SvxFmtKeepItem::SvxFmtKeepItem( const BOOL bKeep, const USHORT _nWhich ) :
+inline SvxFmtKeepItem::SvxFmtKeepItem( const sal_Bool bKeep, const sal_uInt16 _nWhich ) :
SfxBoolItem( _nWhich, bKeep )
{}
diff --git a/editeng/inc/editeng/kernitem.hxx b/editeng/inc/editeng/kernitem.hxx
index f4d4d67f0361..f18cf9ff316e 100644
--- a/editeng/inc/editeng/kernitem.hxx
+++ b/editeng/inc/editeng/kernitem.hxx
@@ -53,12 +53,12 @@ class EDITENG_DLLPUBLIC SvxKerningItem : public SfxInt16Item
public:
TYPEINFO();
- SvxKerningItem( const short nKern /*= 0*/, const USHORT nId );
+ SvxKerningItem( const short nKern /*= 0*/, const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
@@ -72,8 +72,8 @@ public:
return *this;
}
- virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
};
#endif
diff --git a/editeng/inc/editeng/langitem.hxx b/editeng/inc/editeng/langitem.hxx
index c683b7c6a38c..a90982f16799 100644
--- a/editeng/inc/editeng/langitem.hxx
+++ b/editeng/inc/editeng/langitem.hxx
@@ -52,7 +52,7 @@ public:
TYPEINFO();
SvxLanguageItem( const LanguageType eLang /*= LANGUAGE_GERMAN*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -61,9 +61,9 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual USHORT GetValueCount() const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual sal_uInt16 GetValueCount() const;
inline SvxLanguageItem& operator=(const SvxLanguageItem& rLang)
{
@@ -75,9 +75,9 @@ public:
LanguageType GetLanguage() const
{ return (LanguageType)GetValue(); }
void SetLanguage( const LanguageType eLang )
- { SetValue( (USHORT)eLang ); }
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ { SetValue( (sal_uInt16)eLang ); }
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
};
#endif
diff --git a/editeng/inc/editeng/lcolitem.hxx b/editeng/inc/editeng/lcolitem.hxx
index 74fd91461be7..969d0316b198 100644
--- a/editeng/inc/editeng/lcolitem.hxx
+++ b/editeng/inc/editeng/lcolitem.hxx
@@ -42,9 +42,9 @@ class EDITENG_DLLPUBLIC SvxLineColorItem : public SvxColorItem
public:
TYPEINFO();
- SvxLineColorItem( const USHORT nId );
- SvxLineColorItem( const Color& aColor, const USHORT nId );
- SvxLineColorItem( SvStream& rStrm, const USHORT nId );
+ SvxLineColorItem( const sal_uInt16 nId );
+ SvxLineColorItem( const Color& aColor, const sal_uInt16 nId );
+ SvxLineColorItem( SvStream& rStrm, const sal_uInt16 nId );
SvxLineColorItem( const SvxLineColorItem& rCopy );
~SvxLineColorItem();
diff --git a/editeng/inc/editeng/lrspitem.hxx b/editeng/inc/editeng/lrspitem.hxx
index f667c72b1d8b..cf903fbd7a07 100644
--- a/editeng/inc/editeng/lrspitem.hxx
+++ b/editeng/inc/editeng/lrspitem.hxx
@@ -58,37 +58,37 @@ SetTxtLeft SetTxtFirst GetLeft GetTxtLeft GetTxtFirst (Was?)
700 -500 200 700 -500
*/
-#define LRSPACE_16_VERSION ((USHORT)0x0001)
-#define LRSPACE_TXTLEFT_VERSION ((USHORT)0x0002)
-#define LRSPACE_AUTOFIRST_VERSION ((USHORT)0x0003)
-#define LRSPACE_NEGATIVE_VERSION ((USHORT)0x0004)
+#define LRSPACE_16_VERSION ((sal_uInt16)0x0001)
+#define LRSPACE_TXTLEFT_VERSION ((sal_uInt16)0x0002)
+#define LRSPACE_AUTOFIRST_VERSION ((sal_uInt16)0x0003)
+#define LRSPACE_NEGATIVE_VERSION ((sal_uInt16)0x0004)
class EDITENG_DLLPUBLIC SvxLRSpaceItem : public SfxPoolItem
{
short nFirstLineOfst; // Erstzeileneinzug _immer_ relativ zu nTxtLeft
- long nTxtLeft; // wir spendieren einen USHORT
+ long nTxtLeft; // wir spendieren einen sal_uInt16
long nLeftMargin; // nLeft oder der neg. Erstzeileneinzug
long nRightMargin; // der unproblematische rechte Rand
- USHORT nPropFirstLineOfst, nPropLeftMargin, nPropRightMargin;
- BOOL bAutoFirst : 1; // Automatische Berechnung der Erstzeileneinzugs
+ sal_uInt16 nPropFirstLineOfst, nPropLeftMargin, nPropRightMargin;
+ sal_Bool bAutoFirst : 1; // Automatische Berechnung der Erstzeileneinzugs
void AdjustLeft(); // nLeftMargin und nTxtLeft werden angepasst.
public:
TYPEINFO();
- SvxLRSpaceItem( const USHORT nId );
+ SvxLRSpaceItem( const sal_uInt16 nId );
SvxLRSpaceItem( const long nLeft, const long nRight,
const long nTLeft /*= 0*/, const short nOfset /*= 0*/,
- const USHORT nId );
+ const sal_uInt16 nId );
inline SvxLRSpaceItem& operator=( const SvxLRSpaceItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -96,41 +96,41 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
// Die "Layout-Schnittstelle":
- inline void SetLeft ( const long nL, const USHORT nProp = 100 );
- inline void SetRight( const long nR, const USHORT nProp = 100 );
+ inline void SetLeft ( const long nL, const sal_uInt16 nProp = 100 );
+ inline void SetRight( const long nR, const sal_uInt16 nProp = 100 );
// abfragen / direktes setzen der absoluten Werte
inline long GetLeft() const { return nLeftMargin; }
inline long GetRight() const { return nRightMargin;}
inline void SetLeftValue( const long nL ) { nTxtLeft = nLeftMargin = nL; }
inline void SetRightValue( const long nR ) { nRightMargin = nR; }
- inline BOOL IsAutoFirst() const { return bAutoFirst; }
- inline void SetAutoFirst( const BOOL bNew ) { bAutoFirst = bNew; }
+ inline sal_Bool IsAutoFirst() const { return bAutoFirst; }
+ inline void SetAutoFirst( const sal_Bool bNew ) { bAutoFirst = bNew; }
// abfragen / setzen der Prozent-Werte
- inline void SetPropLeft( const USHORT nProp = 100 )
+ inline void SetPropLeft( const sal_uInt16 nProp = 100 )
{ nPropLeftMargin = nProp; }
- inline void SetPropRight( const USHORT nProp = 100 )
+ inline void SetPropRight( const sal_uInt16 nProp = 100 )
{ nPropRightMargin = nProp;}
- inline USHORT GetPropLeft() const { return nPropLeftMargin; }
- inline USHORT GetPropRight() const { return nPropRightMargin;}
+ inline sal_uInt16 GetPropLeft() const { return nPropLeftMargin; }
+ inline sal_uInt16 GetPropRight() const { return nPropRightMargin;}
// Die "UI/Text-Schnittstelle":
- inline void SetTxtLeft( const long nL, const USHORT nProp = 100 );
+ inline void SetTxtLeft( const long nL, const sal_uInt16 nProp = 100 );
inline long GetTxtLeft() const { return nTxtLeft; }
- inline void SetTxtFirstLineOfst( const short nF, const USHORT nProp = 100 );
+ inline void SetTxtFirstLineOfst( const short nF, const sal_uInt16 nProp = 100 );
inline short GetTxtFirstLineOfst() const { return nFirstLineOfst; }
- inline void SetPropTxtFirstLineOfst( const USHORT nProp = 100 )
+ inline void SetPropTxtFirstLineOfst( const sal_uInt16 nProp = 100 )
{ nPropFirstLineOfst = nProp; }
- inline USHORT GetPropTxtFirstLineOfst() const
+ inline sal_uInt16 GetPropTxtFirstLineOfst() const
{ return nPropFirstLineOfst; }
inline void SetTxtFirstLineOfstValue( const short nValue )
{ nFirstLineOfst = nValue; }
@@ -149,26 +149,26 @@ inline SvxLRSpaceItem &SvxLRSpaceItem::operator=( const SvxLRSpaceItem &rCpy )
return *this;
}
-inline void SvxLRSpaceItem::SetLeft( const long nL, const USHORT nProp )
+inline void SvxLRSpaceItem::SetLeft( const long nL, const sal_uInt16 nProp )
{
nLeftMargin = (nL * nProp) / 100;
nTxtLeft = nLeftMargin;
nPropLeftMargin = nProp;
}
-inline void SvxLRSpaceItem::SetRight( const long nR, const USHORT nProp )
+inline void SvxLRSpaceItem::SetRight( const long nR, const sal_uInt16 nProp )
{
nRightMargin = (nR * nProp) / 100;
nPropRightMargin = nProp;
}
inline void SvxLRSpaceItem::SetTxtFirstLineOfst( const short nF,
- const USHORT nProp )
+ const sal_uInt16 nProp )
{
nFirstLineOfst = short((long(nF) * nProp ) / 100);
nPropFirstLineOfst = nProp;
AdjustLeft();
}
-inline void SvxLRSpaceItem::SetTxtLeft( const long nL, const USHORT nProp )
+inline void SvxLRSpaceItem::SetTxtLeft( const long nL, const sal_uInt16 nProp )
{
nTxtLeft = (nL * nProp) / 100;
nPropLeftMargin = nProp;
diff --git a/editeng/inc/editeng/lspcitem.hxx b/editeng/inc/editeng/lspcitem.hxx
index f02676598543..8e444ff8aed1 100644
--- a/editeng/inc/editeng/lspcitem.hxx
+++ b/editeng/inc/editeng/lspcitem.hxx
@@ -52,8 +52,8 @@ class EDITENG_DLLPUBLIC SvxLineSpacingItem : public SfxEnumItemInterface
friend SvStream& operator<<( SvStream&, SvxLineSpacingItem& ); //$ ostream
short nInterLineSpace;
- USHORT nLineHeight;
- BYTE nPropLineSpace;
+ sal_uInt16 nLineHeight;
+ sal_uInt8 nPropLineSpace;
SvxLineSpace eLineSpace;
SvxInterLineSpace eInterLineSpace;
@@ -66,12 +66,12 @@ public:
// => lieber einen krummen Wert als Default, aber der Programmierer
// sieht, dass dort etwas besonderes passiert.
- SvxLineSpacingItem( USHORT nHeight /*= LINE_SPACE_DEFAULT_HEIGHT*/, const USHORT nId );
+ SvxLineSpacingItem( sal_uInt16 nHeight /*= LINE_SPACE_DEFAULT_HEIGHT*/, const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -79,8 +79,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
// Methoden zum Abfragen und Aendern
// Interlinespace wird zur Hoehe addiert.
@@ -92,16 +92,16 @@ public:
}
// Bestimmt absolute oder minimale Zeilenhoehe.
- inline USHORT GetLineHeight() const { return nLineHeight; }
- inline void SetLineHeight( const USHORT nHeight )
+ inline sal_uInt16 GetLineHeight() const { return nLineHeight; }
+ inline void SetLineHeight( const sal_uInt16 nHeight )
{
nLineHeight = nHeight;
eLineSpace = SVX_LINE_SPACE_MIN;
}
// Vergroessert oder verkleinert die Zeilenhoehe.
- BYTE GetPropLineSpace() const { return nPropLineSpace; }
- inline void SetPropLineSpace( const BYTE nProp )
+ sal_uInt8 GetPropLineSpace() const { return nPropLineSpace; }
+ inline void SetPropLineSpace( const sal_uInt8 nProp )
{
nPropLineSpace = nProp;
eInterLineSpace = SVX_INTER_LINE_SPACE_PROP;
@@ -113,10 +113,10 @@ public:
inline SvxInterLineSpace &GetInterLineSpaceRule() { return eInterLineSpace; }
inline SvxInterLineSpace GetInterLineSpaceRule() const { return eInterLineSpace; }
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
+ virtual sal_uInt16 GetValueCount() const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetEnumValue() const;
+ virtual void SetEnumValue( sal_uInt16 nNewVal );
};
#endif
diff --git a/editeng/inc/editeng/nhypitem.hxx b/editeng/inc/editeng/nhypitem.hxx
index 344d5296f3c1..3443ffc0cdec 100644
--- a/editeng/inc/editeng/nhypitem.hxx
+++ b/editeng/inc/editeng/nhypitem.hxx
@@ -44,13 +44,13 @@ class EDITENG_DLLPUBLIC SvxNoHyphenItem : public SfxBoolItem
public:
TYPEINFO();
- SvxNoHyphenItem( const BOOL bHyphen /*= TRUE*/,
- const USHORT nId );
+ SvxNoHyphenItem( const sal_Bool bHyphen /*= sal_True*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/nlbkitem.hxx b/editeng/inc/editeng/nlbkitem.hxx
index 356b9ebc991f..9287168c4c59 100644
--- a/editeng/inc/editeng/nlbkitem.hxx
+++ b/editeng/inc/editeng/nlbkitem.hxx
@@ -46,13 +46,13 @@ class EDITENG_DLLPUBLIC SvxNoLinebreakItem : public SfxBoolItem
public:
TYPEINFO();
- SvxNoLinebreakItem( const BOOL bBreak /*= TRUE*/,
- const USHORT nId );
+ SvxNoLinebreakItem( const sal_Bool bBreak /*= sal_True*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/numitem.hxx b/editeng/inc/editeng/numitem.hxx
index 101518b227c4..cb0f8a1f6765 100644
--- a/editeng/inc/editeng/numitem.hxx
+++ b/editeng/inc/editeng/numitem.hxx
@@ -55,7 +55,7 @@ namespace com{namespace sun{ namespace star{
}}}
// -----------------------------------------------------------------------
-//Feature-Flags (only USHORT!)
+//Feature-Flags (only sal_uInt16!)
#define NUM_CONTINUOUS 0x0001 // fortlaufende Numerierung moeglich?
#define NUM_CHAR_TEXT_DISTANCE 0x0002 // Abstand Symbol<->Text?
#define NUM_CHAR_STYLE 0x0004 // Zeichenvorlagen?
@@ -83,8 +83,8 @@ public:
SvxNumberType(const SvxNumberType& rType);
~SvxNumberType();
- String GetNumStr( ULONG nNo ) const;
- String GetNumStr( ULONG nNo, const com::sun::star::lang::Locale& rLocale ) const;
+ String GetNumStr( sal_uLong nNo ) const;
+ String GetNumStr( sal_uLong nNo, const com::sun::star::lang::Locale& rLocale ) const;
void SetNumberingType(sal_Int16 nSet) {nNumType = nSet;}
sal_Int16 GetNumberingType() const {return nNumType;}
@@ -123,11 +123,11 @@ private:
SvxAdjust eNumAdjust;
- BYTE nInclUpperLevels; //Nummern aus der vorigen Ebenen uebernehmen
- USHORT nStart; //Start der Zaehlung
+ sal_uInt8 nInclUpperLevels; //Nummern aus der vorigen Ebenen uebernehmen
+ sal_uInt16 nStart; //Start der Zaehlung
sal_Unicode cBullet; //Symbol
- USHORT nBulletRelSize; //proz. Groesse des Bullets
+ sal_uInt16 nBulletRelSize; //proz. Groesse des Bullets
Color nBulletColor; //Bullet color
// --> OD 2008-01-08 #newlistlevelattrs#
@@ -185,8 +185,8 @@ public:
SvStream& Store(SvStream &rStream, FontToSubsFontConverter pConverter);
SvxNumberFormat& operator=( const SvxNumberFormat& );
- BOOL operator==( const SvxNumberFormat& ) const;
- BOOL operator!=( const SvxNumberFormat& rFmt) const {return !(*this == rFmt);}
+ sal_Bool operator==( const SvxNumberFormat& ) const;
+ sal_Bool operator!=( const SvxNumberFormat& rFmt) const {return !(*this == rFmt);}
void SetNumAdjust(SvxAdjust eSet) {eNumAdjust = eSet;}
SvxAdjust GetNumAdjust() const {return eNumAdjust;}
@@ -202,15 +202,15 @@ public:
const Font* GetBulletFont() const {return pBulletFont;}
void SetBulletChar(sal_Unicode cSet){cBullet = cSet;}
sal_Unicode GetBulletChar()const {return cBullet;}
- void SetBulletRelSize(USHORT nSet) {nBulletRelSize = nSet;}
- USHORT GetBulletRelSize() const { return nBulletRelSize;}
+ void SetBulletRelSize(sal_uInt16 nSet) {nBulletRelSize = nSet;}
+ sal_uInt16 GetBulletRelSize() const { return nBulletRelSize;}
void SetBulletColor(Color nSet){nBulletColor = nSet;}
Color GetBulletColor()const {return nBulletColor;}
- void SetIncludeUpperLevels( BYTE nSet ) { nInclUpperLevels = nSet;}
- BYTE GetIncludeUpperLevels()const { return nInclUpperLevels;}
- void SetStart(USHORT nSet) {nStart = nSet;}
- USHORT GetStart() const {return nStart;}
+ void SetIncludeUpperLevels( sal_uInt8 nSet ) { nInclUpperLevels = nSet;}
+ sal_uInt8 GetIncludeUpperLevels()const { return nInclUpperLevels;}
+ void SetStart(sal_uInt16 nSet) {nStart = nSet;}
+ sal_uInt16 GetStart() const {return nStart;}
virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = 0, const sal_Int16* pOrient = 0);
const SvxBrushItem* GetBrush() const {return pGraphicBrush;}
@@ -254,7 +254,7 @@ public:
// <--
static Size GetGraphicSizeMM100(const Graphic* pGraphic);
- static String CreateRomanString( ULONG nNo, BOOL bUpper );
+ static String CreateRomanString( sal_uLong nNo, sal_Bool bUpper );
};
enum SvxNumRuleType
@@ -267,21 +267,21 @@ enum SvxNumRuleType
class EDITENG_DLLPUBLIC SvxNumRule
{
- USHORT nLevelCount; // Anzahl der unterstuetzten Levels
- ULONG nFeatureFlags; // was wird unterstuetzt?
+ sal_uInt16 nLevelCount; // Anzahl der unterstuetzten Levels
+ sal_uInt32 nFeatureFlags; // was wird unterstuetzt?
SvxNumRuleType eNumberingType; // was fuer eine Numerierung
- BOOL bContinuousNumbering; // fortlaufende Numerierung
+ sal_Bool bContinuousNumbering; // fortlaufende Numerierung
SvxNumberFormat* aFmts[SVX_MAX_NUM];
- BOOL aFmtsSet[SVX_MAX_NUM]; //Flags ueber Gueltigkeit der Ebenen
+ sal_Bool aFmtsSet[SVX_MAX_NUM]; //Flags ueber Gueltigkeit der Ebenen
static sal_Int32 nRefCount;
com::sun::star::lang::Locale aLocale;
public:
// --> OD 2008-02-11 #newlistlevelattrs#
- SvxNumRule( ULONG nFeatures,
- USHORT nLevels,
- BOOL bCont,
+ SvxNumRule( sal_uLong nFeatures,
+ sal_uInt16 nLevels,
+ sal_Bool bCont,
SvxNumRuleType eType = SVX_RULETYPE_NUMBERING,
SvxNumberFormat::SvxNumPositionAndSpaceMode
eDefaultNumberFormatPositionAndSpaceMode
@@ -298,28 +298,28 @@ public:
SvStream& Store(SvStream &rStream);
- const SvxNumberFormat* Get(USHORT nLevel)const;
- const SvxNumberFormat& GetLevel(USHORT nLevel)const;
- void SetLevel(USHORT nLevel, const SvxNumberFormat& rFmt, BOOL bIsValid = TRUE);
- void SetLevel(USHORT nLevel, const SvxNumberFormat* pFmt);
+ const SvxNumberFormat* Get(sal_uInt16 nLevel)const;
+ const SvxNumberFormat& GetLevel(sal_uInt16 nLevel)const;
+ void SetLevel(sal_uInt16 nLevel, const SvxNumberFormat& rFmt, sal_Bool bIsValid = sal_True);
+ void SetLevel(sal_uInt16 nLevel, const SvxNumberFormat* pFmt);
- BOOL IsContinuousNumbering()const
+ sal_Bool IsContinuousNumbering()const
{return bContinuousNumbering;}
- void SetContinuousNumbering(BOOL bSet)
+ void SetContinuousNumbering(sal_Bool bSet)
{bContinuousNumbering = bSet;}
- USHORT GetLevelCount() const {return nLevelCount;}
- BOOL IsFeatureSupported(ULONG nFeature) const
+ sal_uInt16 GetLevelCount() const {return nLevelCount;}
+ sal_Bool IsFeatureSupported(sal_uInt32 nFeature) const
{return 0 != (nFeatureFlags & nFeature);}
- ULONG GetFeatureFlags() const {return nFeatureFlags;}
- void SetFeatureFlag( ULONG nFlag, BOOL bSet = TRUE ) { if(bSet) nFeatureFlags |= nFlag; else nFeatureFlags &= ~nFlag; }
+ sal_uInt32 GetFeatureFlags() const {return nFeatureFlags;}
+ void SetFeatureFlag( sal_uInt32 nFlag, sal_Bool bSet = sal_True ) { if(bSet) nFeatureFlags |= nFlag; else nFeatureFlags &= ~nFlag; }
- String MakeNumString( const SvxNodeNum&, BOOL bInclStrings = TRUE ) const;
+ String MakeNumString( const SvxNodeNum&, sal_Bool bInclStrings = sal_True ) const;
SvxNumRuleType GetNumRuleType() const { return eNumberingType; }
void SetNumRuleType( const SvxNumRuleType& rType ) { eNumberingType = rType; }
- BOOL UnLinkGraphics();
+ sal_Bool UnLinkGraphics();
};
/* -----------------27.10.98 13:04-------------------
*
@@ -329,50 +329,50 @@ class EDITENG_DLLPUBLIC SvxNumBulletItem : public SfxPoolItem
SvxNumRule* pNumRule;
public:
SvxNumBulletItem(SvxNumRule& rRule);
- SvxNumBulletItem(SvxNumRule& rRule, USHORT nWhich );
+ SvxNumBulletItem(SvxNumRule& rRule, sal_uInt16 nWhich );
SvxNumBulletItem(const SvxNumBulletItem& rCopy);
virtual ~SvxNumBulletItem();
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- USHORT GetVersion( USHORT nFileVersion ) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual int operator==( const SfxPoolItem& ) const;
SvxNumRule* GetNumRule() const {return pNumRule;}
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
};
/* -----------------28.10.98 15:21-------------------
*
* --------------------------------------------------*/
class SvxNodeNum
{
- USHORT nLevelVal[ SVX_MAX_NUM ]; // Nummern aller Levels
- USHORT nSetValue; // vorgegebene Nummer
- BYTE nMyLevel; // akt. Level
- BOOL bStartNum; // Numerierung neu starten
+ sal_uInt16 nLevelVal[ SVX_MAX_NUM ]; // Nummern aller Levels
+ sal_uInt16 nSetValue; // vorgegebene Nummer
+ sal_uInt8 nMyLevel; // akt. Level
+ sal_Bool bStartNum; // Numerierung neu starten
public:
- inline SvxNodeNum( BYTE nLevel = SVX_NO_NUM, USHORT nSetVal = USHRT_MAX );
+ inline SvxNodeNum( sal_uInt8 nLevel = SVX_NO_NUM, sal_uInt16 nSetVal = USHRT_MAX );
inline SvxNodeNum& operator=( const SvxNodeNum& rCpy );
- BYTE GetLevel() const { return nMyLevel; }
- void SetLevel( BYTE nVal ) { nMyLevel = nVal; }
+ sal_uInt8 GetLevel() const { return nMyLevel; }
+ void SetLevel( sal_uInt8 nVal ) { nMyLevel = nVal; }
- BOOL IsStart() const { return bStartNum; }
- void SetStart( BOOL bFlag = TRUE ) { bStartNum = bFlag; }
+ sal_Bool IsStart() const { return bStartNum; }
+ void SetStart( sal_Bool bFlag = sal_True ) { bStartNum = bFlag; }
- USHORT GetSetValue() const { return nSetValue; }
- void SetSetValue( USHORT nVal ) { nSetValue = nVal; }
+ sal_uInt16 GetSetValue() const { return nSetValue; }
+ void SetSetValue( sal_uInt16 nVal ) { nSetValue = nVal; }
- const USHORT* GetLevelVal() const { return nLevelVal; }
- USHORT* GetLevelVal() { return nLevelVal; }
+ const sal_uInt16* GetLevelVal() const { return nLevelVal; }
+ sal_uInt16* GetLevelVal() { return nLevelVal; }
};
-SvxNodeNum::SvxNodeNum( BYTE nLevel, USHORT nSetVal )
- : nSetValue( nSetVal ), nMyLevel( nLevel ), bStartNum( FALSE )
+SvxNodeNum::SvxNodeNum( sal_uInt8 nLevel, sal_uInt16 nSetVal )
+ : nSetValue( nSetVal ), nMyLevel( nLevel ), bStartNum( sal_False )
{
memset( nLevelVal, 0, sizeof( nLevelVal ) );
}
@@ -390,7 +390,7 @@ inline SvxNodeNum& SvxNodeNum::operator=( const SvxNodeNum& rCpy )
/* --------------------------------------------------
*
* --------------------------------------------------*/
-SvxNumRule* SvxConvertNumRule( const SvxNumRule* pRule, USHORT nLevel, SvxNumRuleType eType );
+SvxNumRule* SvxConvertNumRule( const SvxNumRule* pRule, sal_uInt16 nLevel, SvxNumRuleType eType );
#endif
diff --git a/editeng/inc/editeng/opaqitem.hxx b/editeng/inc/editeng/opaqitem.hxx
index 4c71f0cfbb53..3dcd828184e0 100644
--- a/editeng/inc/editeng/opaqitem.hxx
+++ b/editeng/inc/editeng/opaqitem.hxx
@@ -51,13 +51,13 @@ class EDITENG_DLLPUBLIC SvxOpaqueItem : public SfxBoolItem
public:
TYPEINFO();
- SvxOpaqueItem( const USHORT nId , const BOOL bOpa = TRUE );
+ SvxOpaqueItem( const sal_uInt16 nId , const sal_Bool bOpa = sal_True );
inline SvxOpaqueItem &operator=( const SvxOpaqueItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -65,7 +65,7 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
};
-inline SvxOpaqueItem::SvxOpaqueItem( const USHORT nId, const BOOL bOpa )
+inline SvxOpaqueItem::SvxOpaqueItem( const sal_uInt16 nId, const sal_Bool bOpa )
: SfxBoolItem( nId, bOpa )
{}
diff --git a/editeng/inc/editeng/orphitem.hxx b/editeng/inc/editeng/orphitem.hxx
index 32cd8574cf45..8271275a81f7 100644
--- a/editeng/inc/editeng/orphitem.hxx
+++ b/editeng/inc/editeng/orphitem.hxx
@@ -51,12 +51,12 @@ class EDITENG_DLLPUBLIC SvxOrphansItem: public SfxByteItem
public:
TYPEINFO();
- SvxOrphansItem( const BYTE nL /*= 0*/, const USHORT nId );
+ SvxOrphansItem( const sal_uInt8 nL /*= 0*/, const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx
index 900ee69af2d5..a14d688864eb 100644
--- a/editeng/inc/editeng/outliner.hxx
+++ b/editeng/inc/editeng/outliner.hxx
@@ -136,12 +136,12 @@ private:
Paragraph& operator=(const Paragraph& rPara );
- USHORT nFlags;
+ sal_uInt16 nFlags;
XubString aBulText;
Size aBulSize;
- BOOL bVisible;
+ sal_Bool bVisible;
- BOOL IsVisible() const { return bVisible; }
+ sal_Bool IsVisible() const { return bVisible; }
void SetText( const XubString& rText ) { aBulText = rText; aBulSize.Width() = -1; }
void Invalidate() { aBulSize.Width() = -1; }
void SetDepth( sal_Int16 nNewDepth ) { nDepth = nNewDepth; aBulSize.Width() = -1; }
@@ -160,27 +160,27 @@ private:
sal_Bool IsParaIsNumberingRestart() const { return mbParaIsNumberingRestart; }
void SetParaIsNumberingRestart( sal_Bool bParaIsNumberingRestart );
- void SetFlag( USHORT nFlag ) { nFlags |= nFlag; }
- void RemoveFlag( USHORT nFlag ) { nFlags &= ~nFlag; }
- bool HasFlag( USHORT nFlag ) const { return (nFlags & nFlag) != 0; }
+ void SetFlag( sal_uInt16 nFlag ) { nFlags |= nFlag; }
+ void RemoveFlag( sal_uInt16 nFlag ) { nFlags &= ~nFlag; }
+ bool HasFlag( sal_uInt16 nFlag ) const { return (nFlags & nFlag) != 0; }
};
struct ParaRange
{
- USHORT nStartPara;
- USHORT nEndPara;
+ sal_uInt16 nStartPara;
+ sal_uInt16 nEndPara;
- ParaRange( USHORT nS, USHORT nE ) { nStartPara = nS, nEndPara = nE; }
+ ParaRange( sal_uInt16 nS, sal_uInt16 nE ) { nStartPara = nS, nEndPara = nE; }
void Adjust();
- USHORT Len() const { return 1 + ( ( nEndPara > nStartPara ) ? (nEndPara-nStartPara) : (nStartPara-nEndPara) ); }
+ sal_uInt16 Len() const { return 1 + ( ( nEndPara > nStartPara ) ? (nEndPara-nStartPara) : (nStartPara-nEndPara) ); }
};
inline void ParaRange::Adjust()
{
if ( nStartPara > nEndPara )
{
- USHORT nTmp = nStartPara;
+ sal_uInt16 nTmp = nStartPara;
nStartPara = nEndPara;
nEndPara = nTmp;
}
@@ -198,18 +198,18 @@ private:
EditView* pEditView;
// Drag & Drop
- BOOL bBeginDragAtMove_OLDMEMBER;
- BOOL bInDragMode;
+ sal_Bool bBeginDragAtMove_OLDMEMBER;
+ sal_Bool bInDragMode;
Point aDDStartPosRef;
Point aDDStartPosPix;
- ULONG nDDStartPara;
- ULONG nDDStartParaVisChildCount;
- ULONG nDDCurPara;
- USHORT nDDStartDepth;
- USHORT nDDCurDepth;
- USHORT nDDMaxDepth;
- BOOL bDDChangingDepth;
- BOOL bDDCursorVisible;
+ sal_uLong nDDStartPara;
+ sal_uLong nDDStartParaVisChildCount;
+ sal_uLong nDDCurPara;
+ sal_uInt16 nDDStartDepth;
+ sal_uInt16 nDDCurDepth;
+ sal_uInt16 nDDMaxDepth;
+ sal_Bool bDDChangingDepth;
+ sal_Bool bDDCursorVisible;
long* pHorTabArrDoc;
long nDDScrollLRBorderWidthWin; // Left Right
long nDDScrollTBBorderWidthWin; // Top Bottom
@@ -217,7 +217,7 @@ private:
long nDDScrollTDOffs;
void* pDummy;
- ULONG nDummy;
+ sal_uLong nDummy;
enum MouseTarget {
MouseText = 0,
@@ -230,11 +230,11 @@ private:
#ifdef _OUTLINER_CXX
- EDITENG_DLLPRIVATE void ImplExpandOrCollaps( USHORT nStartPara, USHORT nEndPara, BOOL bExpand );
+ EDITENG_DLLPRIVATE void ImplExpandOrCollaps( sal_uInt16 nStartPara, sal_uInt16 nEndPara, sal_Bool bExpand );
- EDITENG_DLLPRIVATE ULONG ImpCheckMousePos( const Point& rPosPixel, MouseTarget& reTarget);
+ EDITENG_DLLPRIVATE sal_uLong ImpCheckMousePos( const Point& rPosPixel, MouseTarget& reTarget);
EDITENG_DLLPRIVATE void ImpToggleExpand( Paragraph* pParentPara );
- EDITENG_DLLPRIVATE ParaRange ImpGetSelectedParagraphs( BOOL bIncludeHiddenChilds );
+ EDITENG_DLLPRIVATE ParaRange ImpGetSelectedParagraphs( sal_Bool bIncludeHiddenChilds );
EDITENG_DLLPRIVATE void ImpHideDDCursor();
EDITENG_DLLPRIVATE void ImpShowDDCursor();
EDITENG_DLLPRIVATE void ImpPaintDDCursor();
@@ -245,13 +245,13 @@ private:
EDITENG_DLLPRIVATE void ImpScrollUp();
EDITENG_DLLPRIVATE void ImpScrollDown();
- EDITENG_DLLPRIVATE ULONG ImpGetInsertionPara( const Point& rPosPixel );
+ EDITENG_DLLPRIVATE sal_uLong ImpGetInsertionPara( const Point& rPosPixel );
EDITENG_DLLPRIVATE Point ImpGetDocPos( const Point& rPosPixel );
EDITENG_DLLPRIVATE Pointer ImpGetMousePointer( MouseTarget eTarget );
- EDITENG_DLLPRIVATE USHORT ImpInitPaste( ULONG& rStart );
- EDITENG_DLLPRIVATE void ImpPasted( ULONG nStart, ULONG nPrevParaCount, USHORT nSize);
- EDITENG_DLLPRIVATE USHORT ImpCalcSelectedPages( BOOL bIncludeFirstSelected );
- EDITENG_DLLPRIVATE BOOL ImpIsIndentingPages();
+ EDITENG_DLLPRIVATE sal_uInt16 ImpInitPaste( sal_uLong& rStart );
+ EDITENG_DLLPRIVATE void ImpPasted( sal_uLong nStart, sal_uLong nPrevParaCount, sal_uInt16 nSize);
+ EDITENG_DLLPRIVATE sal_uInt16 ImpCalcSelectedPages( sal_Bool bIncludeFirstSelected );
+ EDITENG_DLLPRIVATE sal_Bool ImpIsIndentingPages();
#endif
@@ -264,12 +264,12 @@ public:
void Scroll( long nHorzScroll, long nVertScroll );
void Paint( const Rectangle& rRect );
- BOOL PostKeyEvent( const KeyEvent& rKEvt );
- BOOL MouseButtonDown( const MouseEvent& );
- BOOL MouseButtonUp( const MouseEvent& );
- BOOL MouseMove( const MouseEvent& );
+ sal_Bool PostKeyEvent( const KeyEvent& rKEvt );
+ sal_Bool MouseButtonDown( const MouseEvent& );
+ sal_Bool MouseButtonUp( const MouseEvent& );
+ sal_Bool MouseMove( const MouseEvent& );
- void ShowCursor( BOOL bGotoCursor = TRUE );
+ void ShowCursor( sal_Bool bGotoCursor = sal_True );
void HideCursor();
void SetOutliner( Outliner* pOutliner );
@@ -278,8 +278,8 @@ public:
void SetWindow( Window* pWindow );
Window* GetWindow() const;
- void SetReadOnly( BOOL bReadOnly );
- BOOL IsReadOnly() const;
+ void SetReadOnly( sal_Bool bReadOnly );
+ sal_Bool IsReadOnly() const;
void SetOutputArea( const Rectangle& rRect );
Rectangle GetOutputArea() const;
@@ -290,26 +290,26 @@ public:
// gibt Anzahl selektierter Absaetze zurueck
// MT 07/00: Who needs this?
- ULONG Select( Paragraph* pParagraph,
- BOOL bSelect=TRUE,
- BOOL bWChilds=TRUE);
+ sal_uLong Select( Paragraph* pParagraph,
+ sal_Bool bSelect=sal_True,
+ sal_Bool bWChilds=sal_True);
String GetSelected() const;
- void SelectRange( ULONG nFirst, USHORT nCount );
+ void SelectRange( sal_uLong nFirst, sal_uInt16 nCount );
void SetAttribs( const SfxItemSet& );
void Indent( short nDiff );
void AdjustDepth( short nDX ); // Spaeter gegeb Indent ersetzen!
- BOOL AdjustHeight( long nDY );
+ sal_Bool AdjustHeight( long nDY );
void AdjustDepth( Paragraph* pPara, short nDX,
- BOOL bWithChilds = FALSE );
+ sal_Bool bWithChilds = sal_False );
void AdjustHeight( Paragraph* pPara, long nDY,
- BOOL bWithChilds=FALSE );
+ sal_Bool bWithChilds=sal_False );
- ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, BOOL bSelect = FALSE, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- ULONG Write( SvStream& rOutput, EETextFormat eFormat );
+ sal_uLong Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, sal_Bool bSelect = sal_False, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
+ sal_uLong Write( SvStream& rOutput, EETextFormat eFormat );
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void InsertText( const String& rNew, sal_Bool bSelect = sal_False );
void InsertText( const OutlinerParaObject& rParaObj );
void Expand();
void Collapse();
@@ -327,7 +327,7 @@ public:
void Copy();
void Paste();
void PasteSpecial();
- void EnablePaste( BOOL bEnable );
+ void EnablePaste( sal_Bool bEnable );
void Undo();
void Redo();
@@ -335,41 +335,41 @@ public:
void SetStyleSheet( SfxStyleSheet* );
SfxStyleSheet* GetStyleSheet() const;
- void SetControlWord( ULONG nWord );
- ULONG GetControlWord() const;
+ void SetControlWord( sal_uLong nWord );
+ sal_uLong GetControlWord() const;
void SetAnchorMode( EVAnchorMode eMode );
EVAnchorMode GetAnchorMode() const;
Pointer GetPointer( const Point& rPosPixel );
void Command( const CommandEvent& rCEvt );
- void RemoveCharAttribs( ULONG nPara, USHORT nWhich = 0 );
+ void RemoveCharAttribs( sal_uLong nPara, sal_uInt16 nWhich = 0 );
void CompleteAutoCorrect();
- EESpellState StartSpeller( BOOL bMultipleDoc = FALSE );
+ EESpellState StartSpeller( sal_Bool bMultipleDoc = sal_False );
EESpellState StartThesaurus();
- USHORT StartSearchAndReplace( const SvxSearchItem& rSearchItem );
+ sal_uInt16 StartSearchAndReplace( const SvxSearchItem& rSearchItem );
// for text conversion
- void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, INT32 nOptions, BOOL bIsInteractive, BOOL bMultipleDoc );
+ void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, sal_Int32 nOptions, sal_Bool bIsInteractive, sal_Bool bMultipleDoc );
void TransliterateText( sal_Int32 nTransliterationMode );
ESelection GetSelection();
- USHORT GetSelectedScriptType() const;
+ sal_uInt16 GetSelectedScriptType() const;
void SetVisArea( const Rectangle& rRec );
void SetSelection( const ESelection& );
- void RemoveAttribs( BOOL bRemoveParaAttribs = FALSE, USHORT nWhich = 0, BOOL bKeepLanguages = FALSE );
- void RemoveAttribsKeepLanguages( BOOL bRemoveParaAttribs );
- BOOL HasSelection() const;
+ void RemoveAttribs( sal_Bool bRemoveParaAttribs = sal_False, sal_uInt16 nWhich = 0, sal_Bool bKeepLanguages = sal_False );
+ void RemoveAttribsKeepLanguages( sal_Bool bRemoveParaAttribs );
+ sal_Bool HasSelection() const;
void InsertField( const SvxFieldItem& rFld );
const SvxFieldItem* GetFieldUnderMousePointer() const;
- const SvxFieldItem* GetFieldUnderMousePointer( USHORT& nPara, xub_StrLen& nPos ) const;
+ const SvxFieldItem* GetFieldUnderMousePointer( sal_uInt16& nPara, xub_StrLen& nPos ) const;
const SvxFieldItem* GetFieldAtSelection() const;
/** enables numbering for the selected paragraphs if the numbering of the first paragraph is off
@@ -382,13 +382,13 @@ public:
*/
void EnableBullets();
- BOOL IsCursorAtWrongSpelledWord( BOOL bMarkIfWrong = FALSE );
- BOOL IsWrongSpelledWordAtPos( const Point& rPosPixel, BOOL bMarkIfWrong = FALSE );
+ sal_Bool IsCursorAtWrongSpelledWord( sal_Bool bMarkIfWrong = sal_False );
+ sal_Bool IsWrongSpelledWordAtPos( const Point& rPosPixel, sal_Bool bMarkIfWrong = sal_False );
void SpellIgnoreWord();
void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
- void SetInvalidateMore( USHORT nPixel );
- USHORT GetInvalidateMore() const;
+ void SetInvalidateMore( sal_uInt16 nPixel );
+ sal_uInt16 GetInvalidateMore() const;
String GetSurroundingText() const;
Selection GetSurroundingTextSelection() const;
@@ -425,14 +425,14 @@ public:
const Color maTextLineColor;
// #101498# BiDi level needs to be transported, too.
- BYTE mnBiDiLevel;
+ sal_uInt8 mnBiDiLevel;
// bitfield
unsigned mbEndOfLine : 1;
unsigned mbEndOfParagraph : 1;
unsigned mbEndOfBullet : 1;
- BYTE GetBiDiLevel() const { return mnBiDiLevel; }
+ sal_uInt8 GetBiDiLevel() const { return mnBiDiLevel; }
sal_Bool IsRTL() const;
DrawPortionInfo(
@@ -449,7 +449,7 @@ public:
const ::com::sun::star::lang::Locale* pLocale,
const Color& rOverlineColor,
const Color& rTextLineColor,
- BYTE nBiDiLevel,
+ sal_uInt8 nBiDiLevel,
bool bEndOfLine,
bool bEndOfParagraph,
bool bEndOfBullet)
@@ -492,14 +492,14 @@ public:
struct EDITENG_DLLPUBLIC PaintFirstLineInfo
{
- USHORT mnPara;
+ sal_uInt16 mnPara;
const Point& mrStartPos;
long mnBaseLineY;
const Point& mrOrigin;
short mnOrientation;
OutputDevice* mpOutDev;
- PaintFirstLineInfo( USHORT nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev )
+ PaintFirstLineInfo( sal_uInt16 nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev )
: mnPara( nPara ), mrStartPos( rStartPos ), mnBaseLineY( nBaseLineY ), mrOrigin( rOrigin ), mnOrientation( nOrientation ), mpOutDev( pOutDev )
{}
};
@@ -517,9 +517,9 @@ private:
String aRepresentation;
- USHORT nPara;
+ sal_uInt16 nPara;
xub_StrLen nPos;
- BOOL bSimpleClick;
+ sal_Bool bSimpleClick;
EditFieldInfo();
EditFieldInfo( const EditFieldInfo& );
@@ -527,12 +527,12 @@ private:
SdrPage* mpSdrPage;
public:
- EditFieldInfo( Outliner* pOutl, const SvxFieldItem& rFItem, USHORT nPa, xub_StrLen nPo )
+ EditFieldInfo( Outliner* pOutl, const SvxFieldItem& rFItem, sal_uInt16 nPa, xub_StrLen nPo )
: rFldItem( rFItem )
{
pOutliner = pOutl;
nPara = nPa; nPos = nPo;
- pTxtColor = 0; pFldColor = 0; bSimpleClick = FALSE;
+ pTxtColor = 0; pFldColor = 0; bSimpleClick = sal_False;
mpSdrPage = 0;
}
~EditFieldInfo()
@@ -555,11 +555,11 @@ public:
void ClearFldColor()
{ delete pFldColor; pFldColor = 0; }
- USHORT GetPara() const { return nPara; }
+ sal_uInt16 GetPara() const { return nPara; }
xub_StrLen GetPos() const { return nPos; }
- BOOL IsSimpleClick() const { return bSimpleClick; }
- void SetSimpleClick( BOOL bSimple ) { bSimpleClick = bSimple; }
+ sal_Bool IsSimpleClick() const { return bSimpleClick; }
+ void SetSimpleClick( sal_Bool bSimple ) { bSimpleClick = bSimple; }
const String& GetRepresentation() const { return aRepresentation; }
String& GetRepresentation() { return aRepresentation; }
@@ -571,15 +571,15 @@ public:
struct EBulletInfo
{
- BOOL bVisible;
- USHORT nType; // see SvxNumberType
+ sal_Bool bVisible;
+ sal_uInt16 nType; // see SvxNumberType
String aText;
SvxFont aFont;
Graphic aGraphic;
- USHORT nParagraph;
+ sal_uInt16 nParagraph;
Rectangle aBounds;
- EBulletInfo() : bVisible( FALSE ), nType( 0 ), nParagraph( EE_PARA_NOT_FOUND ) {}
+ EBulletInfo() : bVisible( sal_False ), nType( 0 ), nParagraph( EE_PARA_NOT_FOUND ) {}
};
#define OUTLINERMODE_DONTKNOW 0x0000
@@ -609,7 +609,7 @@ class EDITENG_DLLPUBLIC Outliner : public SfxBroadcaster
ViewList aViewList;
Paragraph* pHdlParagraph;
- ULONG mnFirstSelPage;
+ sal_uLong mnFirstSelPage;
Link aDrawPortionHdl;
Link aDrawBulletHdl;
Link aExpandHdl;
@@ -628,20 +628,20 @@ class EDITENG_DLLPUBLIC Outliner : public SfxBroadcaster
Link maEndPasteOrDropHdl;
sal_Int16 nDepthChangedHdlPrevDepth;
- USHORT mnDepthChangeHdlPrevFlags;
+ sal_uInt16 mnDepthChangeHdlPrevFlags;
sal_Int16 nMaxDepth;
const sal_Int16 nMinDepth;
- USHORT nFirstPage;
+ sal_uInt16 nFirstPage;
- USHORT nOutlinerMode;
+ sal_uInt16 nOutlinerMode;
- BOOL bIsExpanding; // Nur in Expand/Collaps-Hdl gueltig, mal umstellen
- BOOL bFirstParaIsEmpty;
- BOOL bBlockInsCallback;
- BOOL bStrippingPortions;
- BOOL bPasting;
+ sal_Bool bIsExpanding; // Nur in Expand/Collaps-Hdl gueltig, mal umstellen
+ sal_Bool bFirstParaIsEmpty;
+ sal_Bool bBlockInsCallback;
+ sal_Bool bStrippingPortions;
+ sal_Bool bPasting;
- ULONG nDummy;
+ sal_uLong nDummy;
#ifdef _OUTLINER_CXX
@@ -651,96 +651,96 @@ class EDITENG_DLLPUBLIC Outliner : public SfxBroadcaster
DECL_LINK( BeginPasteOrDropHdl, PasteOrDropInfos* );
DECL_LINK( EndPasteOrDropHdl, PasteOrDropInfos* );
DECL_LINK( EditEngineNotifyHdl, EENotify* );
- void ImplCheckParagraphs( USHORT nStart, USHORT nEnd );
- BOOL ImplHasBullet( USHORT nPara ) const;
- Size ImplGetBulletSize( USHORT nPara );
- sal_uInt16 ImplGetNumbering( USHORT nPara, const SvxNumberFormat* pParaFmt );
- void ImplCalcBulletText( USHORT nPara, BOOL bRecalcLevel, BOOL bRecalcChilds );
- String ImplGetBulletText( USHORT nPara );
- void ImplCheckNumBulletItem( USHORT nPara );
- void ImplInitDepth( USHORT nPara, sal_Int16 nDepth, BOOL bCreateUndo, BOOL bUndoAction = FALSE );
- void ImplSetLevelDependendStyleSheet( USHORT nPara, SfxStyleSheet* pLevelStyle = NULL );
-
- void ImplBlockInsertionCallbacks( BOOL b );
-
- void ImplCheckStyleSheet( USHORT nPara, BOOL bReplaceExistingStyle );
- void ImpRecalcBulletIndent( ULONG nPara );
-
- const SvxBulletItem& ImpGetBullet( ULONG nPara, USHORT& );
- void ImpFilterIndents( ULONG nFirstPara, ULONG nLastPara );
+ void ImplCheckParagraphs( sal_uInt16 nStart, sal_uInt16 nEnd );
+ sal_Bool ImplHasBullet( sal_uInt16 nPara ) const;
+ Size ImplGetBulletSize( sal_uInt16 nPara );
+ sal_uInt16 ImplGetNumbering( sal_uInt16 nPara, const SvxNumberFormat* pParaFmt );
+ void ImplCalcBulletText( sal_uInt16 nPara, sal_Bool bRecalcLevel, sal_Bool bRecalcChilds );
+ String ImplGetBulletText( sal_uInt16 nPara );
+ void ImplCheckNumBulletItem( sal_uInt16 nPara );
+ void ImplInitDepth( sal_uInt16 nPara, sal_Int16 nDepth, sal_Bool bCreateUndo, sal_Bool bUndoAction = sal_False );
+ void ImplSetLevelDependendStyleSheet( sal_uInt16 nPara, SfxStyleSheet* pLevelStyle = NULL );
+
+ void ImplBlockInsertionCallbacks( sal_Bool b );
+
+ void ImplCheckStyleSheet( sal_uInt16 nPara, sal_Bool bReplaceExistingStyle );
+ void ImpRecalcBulletIndent( sal_uLong nPara );
+
+ const SvxBulletItem& ImpGetBullet( sal_uLong nPara, sal_uInt16& );
+ void ImpFilterIndents( sal_uLong nFirstPara, sal_uLong nLastPara );
bool ImpConvertEdtToOut( sal_uInt32 nPara, EditView* pView = 0 );
- void ImpTextPasted( ULONG nStartPara, USHORT nCount );
- long ImpCalcMaxBulletWidth( USHORT nPara, const SvxBulletItem& rBullet );
- Font ImpCalcBulletFont( USHORT nPara ) const;
- Rectangle ImpCalcBulletArea( USHORT nPara, BOOL bAdjust, BOOL bReturnPaperPos );
- long ImpGetTextIndent( ULONG nPara );
- BOOL ImpCanIndentSelectedPages( OutlinerView* pCurView );
- BOOL ImpCanDeleteSelectedPages( OutlinerView* pCurView );
- BOOL ImpCanDeleteSelectedPages( OutlinerView* pCurView, USHORT nFirstPage, USHORT nPages );
+ void ImpTextPasted( sal_uLong nStartPara, sal_uInt16 nCount );
+ long ImpCalcMaxBulletWidth( sal_uInt16 nPara, const SvxBulletItem& rBullet );
+ Font ImpCalcBulletFont( sal_uInt16 nPara ) const;
+ Rectangle ImpCalcBulletArea( sal_uInt16 nPara, sal_Bool bAdjust, sal_Bool bReturnPaperPos );
+ long ImpGetTextIndent( sal_uLong nPara );
+ sal_Bool ImpCanIndentSelectedPages( OutlinerView* pCurView );
+ sal_Bool ImpCanDeleteSelectedPages( OutlinerView* pCurView );
+ sal_Bool ImpCanDeleteSelectedPages( OutlinerView* pCurView, sal_uInt16 nFirstPage, sal_uInt16 nPages );
- USHORT ImplGetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
+ sal_uInt16 ImplGetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
void ImplCheckDepth( sal_Int16& rnDepth ) const;
#endif
protected:
- void ParagraphInserted( USHORT nParagraph );
- void ParagraphDeleted( USHORT nParagraph );
- void ParaAttribsChanged( USHORT nParagraph );
+ void ParagraphInserted( sal_uInt16 nParagraph );
+ void ParagraphDeleted( sal_uInt16 nParagraph );
+ void ParaAttribsChanged( sal_uInt16 nParagraph );
virtual void StyleSheetChanged( SfxStyleSheet* pStyle );
- void InvalidateBullet( Paragraph* pPara, ULONG nPara );
- void PaintBullet( USHORT nPara, const Point& rStartPos,
+ void InvalidateBullet( Paragraph* pPara, sal_uLong nPara );
+ void PaintBullet( sal_uInt16 nPara, const Point& rStartPos,
const Point& rOrigin, short nOrientation,
OutputDevice* pOutDev );
// used by OutlinerEditEng. Allows Outliner objects to provide
// bullet access to the EditEngine.
- virtual const SvxNumberFormat* GetNumberFormat( USHORT nPara ) const;
+ virtual const SvxNumberFormat* GetNumberFormat( sal_uInt16 nPara ) const;
public:
- Outliner( SfxItemPool* pPool, USHORT nOutlinerMode );
+ Outliner( SfxItemPool* pPool, sal_uInt16 nOutlinerMode );
virtual ~Outliner();
- void Init( USHORT nOutlinerMode );
- USHORT GetMode() const { return nOutlinerMode; }
+ void Init( sal_uInt16 nOutlinerMode );
+ sal_uInt16 GetMode() const { return nOutlinerMode; }
- void SetVertical( BOOL bVertical );
- BOOL IsVertical() const;
+ void SetVertical( sal_Bool bVertical );
+ sal_Bool IsVertical() const;
- void SetFixedCellHeight( BOOL bUseFixedCellHeight );
- BOOL IsFixedCellHeight() const;
+ void SetFixedCellHeight( sal_Bool bUseFixedCellHeight );
+ sal_Bool IsFixedCellHeight() const;
void SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir );
EEHorizontalTextDirection GetDefaultHorizontalTextDirection() const;
- USHORT GetScriptType( const ESelection& rSelection ) const;
- LanguageType GetLanguage( USHORT nPara, USHORT nPos ) const;
+ sal_uInt16 GetScriptType( const ESelection& rSelection ) const;
+ LanguageType GetLanguage( sal_uInt16 nPara, sal_uInt16 nPos ) const;
- void SetAsianCompressionMode( USHORT nCompressionMode );
- USHORT GetAsianCompressionMode() const;
+ void SetAsianCompressionMode( sal_uInt16 nCompressionMode );
+ sal_uInt16 GetAsianCompressionMode() const;
- void SetKernAsianPunctuation( BOOL bEnabled );
- BOOL IsKernAsianPunctuation() const;
+ void SetKernAsianPunctuation( sal_Bool bEnabled );
+ sal_Bool IsKernAsianPunctuation() const;
- void SetAddExtLeading( BOOL b );
- BOOL IsAddExtLeading() const;
+ void SetAddExtLeading( sal_Bool b );
+ sal_Bool IsAddExtLeading() const;
- ULONG InsertView( OutlinerView* pView, ULONG nIndex=LIST_APPEND);
+ sal_uLong InsertView( OutlinerView* pView, sal_uLong nIndex=LIST_APPEND);
OutlinerView* RemoveView( OutlinerView* pView );
- OutlinerView* RemoveView( ULONG nIndex );
- OutlinerView* GetView( ULONG nIndex ) const;
- ULONG GetViewCount() const;
+ OutlinerView* RemoveView( sal_uLong nIndex );
+ OutlinerView* GetView( sal_uLong nIndex ) const;
+ sal_uLong GetViewCount() const;
- Paragraph* Insert( const String& rText, ULONG nAbsPos = LIST_APPEND, sal_Int16 nDepth = 0 );
+ Paragraph* Insert( const String& rText, sal_uLong nAbsPos = LIST_APPEND, sal_Int16 nDepth = 0 );
void SetText( const OutlinerParaObject& );
void AddText( const OutlinerParaObject& );
void SetText( const String& rText, Paragraph* pParagraph );
- String GetText( Paragraph* pPara, ULONG nParaCount=1 ) const;
+ String GetText( Paragraph* pPara, sal_uLong nParaCount=1 ) const;
- OutlinerParaObject* CreateParaObject( USHORT nStartPara = 0, USHORT nParaCount = 0xFFFF ) const;
+ OutlinerParaObject* CreateParaObject( sal_uInt16 nStartPara = 0, sal_uInt16 nParaCount = 0xFFFF ) const;
const SfxItemSet& GetEmptyItemSet() const;
@@ -752,46 +752,46 @@ public:
sal_Int16 GetMinDepth() const { return -1; }
- void SetMaxDepth( sal_Int16 nDepth, BOOL bCheckParas = FALSE );
+ void SetMaxDepth( sal_Int16 nDepth, sal_Bool bCheckParas = sal_False );
sal_Int16 GetMaxDepth() const { return nMaxDepth; }
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const;
+ void SetUpdateMode( sal_Bool bUpdate );
+ sal_Bool GetUpdateMode() const;
void Clear();
void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- ULONG GetParagraphCount() const;
- Paragraph* GetParagraph( ULONG nAbsPos ) const;
+ sal_uLong GetParagraphCount() const;
+ Paragraph* GetParagraph( sal_uLong nAbsPos ) const;
- BOOL HasParent( Paragraph* pParagraph ) const;
- BOOL HasChilds( Paragraph* pParagraph ) const;
- ULONG GetChildCount( Paragraph* pParent ) const;
- BOOL IsExpanded( Paragraph* pPara ) const;
-// Paragraph* GetParagraph( Paragraph* pParent, ULONG nRelPos ) const;
+ sal_Bool HasParent( Paragraph* pParagraph ) const;
+ sal_Bool HasChilds( Paragraph* pParagraph ) const;
+ sal_uLong GetChildCount( Paragraph* pParent ) const;
+ sal_Bool IsExpanded( Paragraph* pPara ) const;
+// Paragraph* GetParagraph( Paragraph* pParent, sal_uLong nRelPos ) const;
Paragraph* GetParent( Paragraph* pParagraph ) const;
-// ULONG GetRelPos( Paragraph* pParent, Paragraph* pPara ) const;
- ULONG GetAbsPos( Paragraph* pPara );
+// sal_uLong GetRelPos( Paragraph* pParent, Paragraph* pPara ) const;
+ sal_uLong GetAbsPos( Paragraph* pPara );
- sal_Int16 GetDepth( ULONG nPara ) const;
+ sal_Int16 GetDepth( sal_uLong nPara ) const;
void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth );
- void SetVisible( Paragraph* pPara, BOOL bVisible );
- BOOL IsVisible( Paragraph* pPara ) const { return pPara->IsVisible(); }
+ void SetVisible( Paragraph* pPara, sal_Bool bVisible );
+ sal_Bool IsVisible( Paragraph* pPara ) const { return pPara->IsVisible(); }
- void EnableUndo( BOOL bEnable );
- BOOL IsUndoEnabled() const;
- void UndoActionStart( USHORT nId );
- void UndoActionEnd( USHORT nId );
+ void EnableUndo( sal_Bool bEnable );
+ sal_Bool IsUndoEnabled() const;
+ void UndoActionStart( sal_uInt16 nId );
+ void UndoActionEnd( sal_uInt16 nId );
void InsertUndo( EditUndo* pUndo );
- BOOL IsInUndo();
+ sal_Bool IsInUndo();
void ClearModifyFlag();
- BOOL IsModified() const;
+ sal_Bool IsModified() const;
Paragraph* GetHdlParagraph() const { return pHdlParagraph; }
- BOOL IsExpanding() const { return bIsExpanding; }
+ sal_Bool IsExpanding() const { return bIsExpanding; }
virtual void ExpandHdl();
void SetExpandHdl( const Link& rLink ) { aExpandHdl = rLink; }
@@ -809,7 +809,7 @@ public:
void SetDepthChangedHdl(const Link& rLink){aDepthChangedHdl=rLink;}
Link GetDepthChangedHdl() const { return aDepthChangedHdl; }
sal_Int16 GetPrevDepth() const { return nDepthChangedHdlPrevDepth; }
- USHORT GetPrevFlags() const { return mnDepthChangeHdlPrevFlags; }
+ sal_uInt16 GetPrevFlags() const { return mnDepthChangeHdlPrevFlags; }
virtual long RemovingPagesHdl( OutlinerView* );
void SetRemovingPagesHdl(const Link& rLink){aRemovingPagesHdl=rLink;}
@@ -818,9 +818,9 @@ public:
void SetIndentingPagesHdl(const Link& rLink){aIndentingPagesHdl=rLink;}
Link GetIndentingPagesHdl() const { return aIndentingPagesHdl; }
// nur gueltig in den beiden oberen Handlern
- USHORT GetSelPageCount() const { return nDepthChangedHdlPrevDepth; }
+ sal_uInt16 GetSelPageCount() const { return nDepthChangedHdlPrevDepth; }
// nur gueltig in den beiden oberen Handlern
- ULONG GetFirstSelPage() const { return mnFirstSelPage; }
+ sal_uLong GetFirstSelPage() const { return mnFirstSelPage; }
void SetCalcFieldValueHdl(const Link& rLink ) { aCalcFieldValueHdl= rLink; }
Link GetCalcFieldValueHdl() const { return aCalcFieldValueHdl; }
@@ -853,8 +853,8 @@ public:
const Size& GetPaperSize() const;
void SetPaperSize( const Size& rSize );
- void SetFirstPageNumber( USHORT n ) { nFirstPage = n; }
- USHORT GetFirstPageNumber() const { return nFirstPage; }
+ void SetFirstPageNumber( sal_uInt16 n ) { nFirstPage = n; }
+ sal_uInt16 GetFirstPageNumber() const { return nFirstPage; }
void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon );
void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon);
@@ -867,30 +867,30 @@ public:
const Size& GetMaxAutoPaperSize() const;
void SetMaxAutoPaperSize( const Size& rSz );
- void SetDefTab( USHORT nTab );
- USHORT GetDefTab() const;
+ void SetDefTab( sal_uInt16 nTab );
+ sal_uInt16 GetDefTab() const;
- BOOL IsFlatMode() const;
- void SetFlatMode( BOOL bFlat );
+ sal_Bool IsFlatMode() const;
+ void SetFlatMode( sal_Bool bFlat );
- void EnableAutoColor( BOOL b );
- BOOL IsAutoColorEnabled() const;
+ void EnableAutoColor( sal_Bool b );
+ sal_Bool IsAutoColorEnabled() const;
- void ForceAutoColor( BOOL b );
- BOOL IsForceAutoColor() const;
+ void ForceAutoColor( sal_Bool b );
+ sal_Bool IsForceAutoColor() const;
- EBulletInfo GetBulletInfo( USHORT nPara );
+ EBulletInfo GetBulletInfo( sal_uInt16 nPara );
void SetWordDelimiters( const String& rDelimiters );
String GetWordDelimiters() const;
- String GetWord( USHORT nPara, xub_StrLen nIndex );
+ String GetWord( sal_uInt16 nPara, xub_StrLen nIndex );
void StripPortions();
// #101498#
virtual void DrawingText(
- const Point& rStartPos, const String& rText, USHORT nTextStart, USHORT nTextLen,
- const sal_Int32* pDXArray, const SvxFont& rFont, USHORT nPara, xub_StrLen nIndex, BYTE nRightToLeft,
+ const Point& rStartPos, const String& rText, sal_uInt16 nTextStart, sal_uInt16 nTextLen,
+ const sal_Int32* pDXArray, const SvxFont& rFont, sal_uInt16 nPara, xub_StrLen nIndex, sal_uInt8 nRightToLeft,
const EEngineData::WrongSpellVector* pWrongSpellVector,
const SvxFieldData* pFieldData,
bool bEndOfLine,
@@ -907,17 +907,17 @@ public:
void SetStyleSheetPool( SfxStyleSheetPool* pSPool );
SfxStyleSheetPool* GetStyleSheetPool();
- BOOL IsInSelectionMode() const;
+ sal_Bool IsInSelectionMode() const;
- void SetStyleSheet( ULONG nPara, SfxStyleSheet* pStyle );
- SfxStyleSheet* GetStyleSheet( ULONG nPara );
+ void SetStyleSheet( sal_uLong nPara, SfxStyleSheet* pStyle );
+ SfxStyleSheet* GetStyleSheet( sal_uLong nPara );
- void SetParaAttribs( USHORT nPara, const SfxItemSet& );
- SfxItemSet GetParaAttribs( USHORT nPara );
+ void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& );
+ SfxItemSet GetParaAttribs( sal_uInt16 nPara );
- void Remove( Paragraph* pPara, ULONG nParaCount );
- BOOL Expand( Paragraph* );
- BOOL Collapse( Paragraph* );
+ void Remove( Paragraph* pPara, sal_uLong nParaCount );
+ sal_Bool Expand( Paragraph* );
+ sal_Bool Collapse( Paragraph* );
void SetParaFlag( Paragraph* pPara, sal_uInt16 nFlag );
void RemoveParaFlag( Paragraph* pPara, sal_uInt16 nFlag );
@@ -928,20 +928,20 @@ public:
Link GetWidthArrReqHdl() const{ return aWidthArrReqHdl; }
void SetWidthArrReqHdl(const Link& rLink){aWidthArrReqHdl=rLink; }
- void SetControlWord( ULONG nWord );
- ULONG GetControlWord() const;
+ void SetControlWord( sal_uLong nWord );
+ sal_uLong GetControlWord() const;
Link GetBeginMovingHdl() const { return aBeginMovingHdl; }
void SetBeginMovingHdl(const Link& rLink) {aBeginMovingHdl=rLink;}
Link GetEndMovingHdl() const {return aEndMovingHdl;}
void SetEndMovingHdl( const Link& rLink){aEndMovingHdl=rLink;}
- ULONG GetLineCount( ULONG nParagraph ) const;
- USHORT GetLineLen( ULONG nParagraph, USHORT nLine ) const;
- ULONG GetLineHeight( ULONG nParagraph, ULONG nLine = 0 );
+ sal_uLong GetLineCount( sal_uLong nParagraph ) const;
+ sal_uInt16 GetLineLen( sal_uLong nParagraph, sal_uInt16 nLine ) const;
+ sal_uLong GetLineHeight( sal_uLong nParagraph, sal_uLong nLine = 0 );
// nFormat muss ein Wert aus dem enum EETextFormat sein (wg.CLOOKS)
- ULONG Read( SvStream& rInput, const String& rBaseURL, USHORT, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
+ sal_uLong Read( SvStream& rInput, const String& rBaseURL, sal_uInt16, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
::svl::IUndoManager&
GetUndoManager();
@@ -953,15 +953,15 @@ public:
// nur fuer EditEngine-Modus
void QuickInsertText( const String& rText, const ESelection& rSel );
void QuickDelete( const ESelection& rSel );
- void QuickRemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
- void QuickFormatDoc( BOOL bFull = FALSE );
+ void QuickRemoveCharAttribs( sal_uInt16 nPara, sal_uInt16 nWhich = 0 );
+ void QuickFormatDoc( sal_Bool bFull = sal_False );
- BOOL UpdateFields();
- void RemoveFields( BOOL bKeepFieldText, TypeId aType = NULL );
+ sal_Bool UpdateFields();
+ void RemoveFields( sal_Bool bKeepFieldText, TypeId aType = NULL );
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual void FieldSelected( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
+ virtual void FieldSelected( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
+ virtual String CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos, Color*& rTxtColor, Color*& rFldColor );
void SetSpeller( ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XSpellChecker1 > &xSpeller );
@@ -981,16 +981,16 @@ public:
void SetDefaultLanguage( LanguageType eLang );
LanguageType GetDefaultLanguage() const;
- BOOL HasOnlineSpellErrors() const;
+ sal_Bool HasOnlineSpellErrors() const;
void CompleteOnlineSpelling();
EESpellState HasSpellErrors();
- BOOL HasText( const SvxSearchItem& rSearchItem );
- virtual BOOL SpellNextDocument();
+ sal_Bool HasText( const SvxSearchItem& rSearchItem );
+ virtual sal_Bool SpellNextDocument();
// for text conversion
sal_Bool HasConvertibleTextPortion( LanguageType nLang );
- virtual BOOL ConvertNextDocument();
+ virtual sal_Bool ConvertNextDocument();
void SetEditTextObjectPool( SfxItemPool* pPool );
SfxItemPool* GetEditTextObjectPool() const;
@@ -998,30 +998,30 @@ public:
void SetRefDevice( OutputDevice* pRefDev );
OutputDevice* GetRefDevice() const;
- USHORT GetFirstLineOffset( ULONG nParagraph );
+ sal_uInt16 GetFirstLineOffset( sal_uLong nParagraph );
- ULONG GetTextHeight() const;
- ULONG GetTextHeight( ULONG nParagraph ) const;
- Point GetDocPosTopLeft( ULONG nParagraph );
+ sal_uLong GetTextHeight() const;
+ sal_uLong GetTextHeight( sal_uLong nParagraph ) const;
+ Point GetDocPosTopLeft( sal_uLong nParagraph );
Point GetDocPos( const Point& rPaperPos ) const;
- BOOL IsTextPos( const Point& rPaperPos, USHORT nBorder = 0 );
- BOOL IsTextPos( const Point& rPaperPos, USHORT nBorder, BOOL* pbBuuletPos );
+ sal_Bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder = 0 );
+ sal_Bool IsTextPos( const Point& rPaperPos, sal_uInt16 nBorder, sal_Bool* pbBuuletPos );
- void SetGlobalCharStretching( USHORT nX = 100, USHORT nY = 100 );
- void GetGlobalCharStretching( USHORT& rX, USHORT& rY );
- void DoStretchChars( USHORT nX, USHORT nY );
+ void SetGlobalCharStretching( sal_uInt16 nX = 100, sal_uInt16 nY = 100 );
+ void GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY );
+ void DoStretchChars( sal_uInt16 nX, sal_uInt16 nY );
void EraseVirtualDevice();
- void SetBigTextObjectStart( USHORT nStartAtPortionCount );
- USHORT GetBigTextObjectStart() const;
- BOOL ShouldCreateBigTextObject() const;
+ void SetBigTextObjectStart( sal_uInt16 nStartAtPortionCount );
+ sal_uInt16 GetBigTextObjectStart() const;
+ sal_Bool ShouldCreateBigTextObject() const;
const EditEngine& GetEditEngine() const { return *((EditEngine*)pEditEngine); }
// this is needed for StarOffice Api
- void SetLevelDependendStyleSheet( USHORT nPara );
+ void SetLevelDependendStyleSheet( sal_uInt16 nPara );
- USHORT GetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
+ sal_uInt16 GetOutlinerMode() const { return nOutlinerMode & OUTLINERMODE_USERMASK; }
void StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc);
//spell and return a sentence
diff --git a/editeng/inc/editeng/paperinf.hxx b/editeng/inc/editeng/paperinf.hxx
index dbc5c9e01d37..3f2584edc452 100644
--- a/editeng/inc/editeng/paperinf.hxx
+++ b/editeng/inc/editeng/paperinf.hxx
@@ -48,7 +48,7 @@ public:
static Size GetDefaultPaperSize( MapUnit eUnit = MAP_TWIP );
static Size GetPaperSize( Paper ePaper, MapUnit eUnit = MAP_TWIP );
static Size GetPaperSize( const Printer* pPrinter );
- static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit = MAP_TWIP, bool bSloppy = FALSE );
+ static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit = MAP_TWIP, bool bSloppy = sal_False );
static long GetSloppyPaperDimension( long nSize, MapUnit eUnit = MAP_TWIP );
static String GetName( Paper ePaper );
};
diff --git a/editeng/inc/editeng/paravertalignitem.hxx b/editeng/inc/editeng/paravertalignitem.hxx
index 2def5bc71dbe..74264c0b8aba 100644
--- a/editeng/inc/editeng/paravertalignitem.hxx
+++ b/editeng/inc/editeng/paravertalignitem.hxx
@@ -51,9 +51,9 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -62,9 +62,9 @@ public:
const IntlWrapper * = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
+ sal_uInt8 nMemberId );
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
+ sal_uInt8 nMemberId ) const;
inline SvxParaVertAlignItem& operator=( const SvxParaVertAlignItem& rItem )
{
diff --git a/editeng/inc/editeng/pbinitem.hxx b/editeng/inc/editeng/pbinitem.hxx
index bc1bd5aa0d59..9b4941ee0744 100644
--- a/editeng/inc/editeng/pbinitem.hxx
+++ b/editeng/inc/editeng/pbinitem.hxx
@@ -34,7 +34,7 @@
// define ----------------------------------------------------------------
-#define PAPERBIN_PRINTER_SETTINGS ((BYTE)0xFF)
+#define PAPERBIN_PRINTER_SETTINGS ((sal_uInt8)0xFF)
// class SvxPaperBinItem -------------------------------------------------
@@ -48,21 +48,21 @@ class EDITENG_DLLPUBLIC SvxPaperBinItem : public SfxByteItem
public:
TYPEINFO();
- inline SvxPaperBinItem( const USHORT nId ,
- const BYTE nTray = PAPERBIN_PRINTER_SETTINGS );
+ inline SvxPaperBinItem( const sal_uInt16 nId ,
+ const sal_uInt8 nTray = PAPERBIN_PRINTER_SETTINGS );
inline SvxPaperBinItem &operator=( const SvxPaperBinItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream &, USHORT ) const;
- virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream &, sal_uInt16 ) const;
+ virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
};
-inline SvxPaperBinItem::SvxPaperBinItem( const USHORT nId, const BYTE nT )
+inline SvxPaperBinItem::SvxPaperBinItem( const sal_uInt16 nId, const sal_uInt8 nT )
: SfxByteItem( nId, nT )
{}
diff --git a/editeng/inc/editeng/pgrditem.hxx b/editeng/inc/editeng/pgrditem.hxx
index c4b81eb69244..eb464290e736 100644
--- a/editeng/inc/editeng/pgrditem.hxx
+++ b/editeng/inc/editeng/pgrditem.hxx
@@ -45,13 +45,13 @@ class EDITENG_DLLPUBLIC SvxParaGridItem : public SfxBoolItem
public:
TYPEINFO();
- SvxParaGridItem( const BOOL bSnapToGrid /*= TRUE*/,
- const USHORT nId );
+ SvxParaGridItem( const sal_Bool bSnapToGrid /*= sal_True*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/pmdlitem.hxx b/editeng/inc/editeng/pmdlitem.hxx
index e14b056ed363..631cbb4ff9f7 100644
--- a/editeng/inc/editeng/pmdlitem.hxx
+++ b/editeng/inc/editeng/pmdlitem.hxx
@@ -42,14 +42,14 @@ Dieses Item enthaelt einen Namen einer Seitenvorlage.
class EDITENG_DLLPUBLIC SvxPageModelItem : public SfxStringItem
{
private:
- BOOL bAuto;
+ sal_Bool bAuto;
public:
TYPEINFO();
- inline SvxPageModelItem( USHORT nWh );
- inline SvxPageModelItem( const String& rModel, BOOL bA /*= FALSE*/,
- USHORT nWh );
+ inline SvxPageModelItem( sal_uInt16 nWh );
+ inline SvxPageModelItem( const String& rModel, sal_Bool bA /*= sal_False*/,
+ sal_uInt16 nWh );
inline SvxPageModelItem& operator=( const SvxPageModelItem& rModel );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
@@ -59,19 +59,19 @@ public:
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
- BOOL IsAuto() const { return bAuto; }
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
+ sal_Bool IsAuto() const { return bAuto; }
};
-inline SvxPageModelItem::SvxPageModelItem( USHORT nWh )
- : bAuto( FALSE )
+inline SvxPageModelItem::SvxPageModelItem( sal_uInt16 nWh )
+ : bAuto( sal_False )
{
SetWhich( nWh );
}
-inline SvxPageModelItem::SvxPageModelItem( const String& rModel, BOOL bA,
- USHORT nWh ) :
+inline SvxPageModelItem::SvxPageModelItem( const String& rModel, sal_Bool bA,
+ sal_uInt16 nWh ) :
SfxStringItem( nWh, rModel ),
bAuto( bA )
{}
diff --git a/editeng/inc/editeng/postitem.hxx b/editeng/inc/editeng/postitem.hxx
index 9c59aafd8b19..873f2c0d068f 100644
--- a/editeng/inc/editeng/postitem.hxx
+++ b/editeng/inc/editeng/postitem.hxx
@@ -52,7 +52,7 @@ public:
TYPEINFO();
SvxPostureItem( const FontItalic ePost /*= ITALIC_NONE*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem + SwEnumItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -61,17 +61,17 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetValueCount() const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( BOOL bVal );
+ virtual sal_Bool GetBoolValue() const;
+ virtual void SetBoolValue( sal_Bool bVal );
inline SvxPostureItem& operator=(const SvxPostureItem& rPost) {
SetValue( rPost.GetValue() );
@@ -82,7 +82,7 @@ public:
FontItalic GetPosture() const
{ return (FontItalic)GetValue(); }
void SetPosture( FontItalic eNew )
- { SetValue( (USHORT)eNew ); }
+ { SetValue( (sal_uInt16)eNew ); }
};
#endif // #ifndef _SVX_POSTITEM_HXX
diff --git a/editeng/inc/editeng/prntitem.hxx b/editeng/inc/editeng/prntitem.hxx
index 53646b520f32..9571b831720b 100644
--- a/editeng/inc/editeng/prntitem.hxx
+++ b/editeng/inc/editeng/prntitem.hxx
@@ -48,13 +48,13 @@ class EDITENG_DLLPUBLIC SvxPrintItem : public SfxBoolItem
public:
TYPEINFO();
- SvxPrintItem( const USHORT nId , const BOOL bPrt = TRUE );
+ SvxPrintItem( const sal_uInt16 nId , const sal_Bool bPrt = sal_True );
inline SvxPrintItem &operator=( const SvxPrintItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -62,7 +62,7 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
};
-inline SvxPrintItem::SvxPrintItem( const USHORT nId, const BOOL bPrt )
+inline SvxPrintItem::SvxPrintItem( const sal_uInt16 nId, const sal_Bool bPrt )
: SfxBoolItem( nId, bPrt )
{}
diff --git a/editeng/inc/editeng/protitem.hxx b/editeng/inc/editeng/protitem.hxx
index 9ba2976bb367..b4a4e26b6f5b 100644
--- a/editeng/inc/editeng/protitem.hxx
+++ b/editeng/inc/editeng/protitem.hxx
@@ -50,14 +50,14 @@ sollen.
class EDITENG_DLLPUBLIC SvxProtectItem : public SfxPoolItem
{
- BOOL bCntnt :1; //Inhalt geschuetzt
- BOOL bSize :1; //Groesse geschuetzt
- BOOL bPos :1; //Position geschuetzt
+ sal_Bool bCntnt :1; //Inhalt geschuetzt
+ sal_Bool bSize :1; //Groesse geschuetzt
+ sal_Bool bPos :1; //Position geschuetzt
public:
TYPEINFO();
- inline SvxProtectItem( const USHORT nId );
+ inline SvxProtectItem( const sal_uInt16 nId );
inline SvxProtectItem &operator=( const SvxProtectItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
@@ -70,24 +70,24 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
-
- BOOL IsCntntProtected() const { return bCntnt; }
- BOOL IsSizeProtected() const { return bSize; }
- BOOL IsPosProtected() const { return bPos; }
- void SetCntntProtect( BOOL bNew ) { bCntnt = bNew; }
- void SetSizeProtect ( BOOL bNew ) { bSize = bNew; }
- void SetPosProtect ( BOOL bNew ) { bPos = bNew; }
-
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
+
+ sal_Bool IsCntntProtected() const { return bCntnt; }
+ sal_Bool IsSizeProtected() const { return bSize; }
+ sal_Bool IsPosProtected() const { return bPos; }
+ void SetCntntProtect( sal_Bool bNew ) { bCntnt = bNew; }
+ void SetSizeProtect ( sal_Bool bNew ) { bSize = bNew; }
+ void SetPosProtect ( sal_Bool bNew ) { bPos = bNew; }
+
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
};
-inline SvxProtectItem::SvxProtectItem( const USHORT nId )
+inline SvxProtectItem::SvxProtectItem( const sal_uInt16 nId )
: SfxPoolItem( nId )
{
- bCntnt = bSize = bPos = FALSE;
+ bCntnt = bSize = bPos = sal_False;
}
inline SvxProtectItem &SvxProtectItem::operator=( const SvxProtectItem &rCpy )
diff --git a/editeng/inc/editeng/prszitem.hxx b/editeng/inc/editeng/prszitem.hxx
index 8a1286c603d8..0d74f26d0651 100644
--- a/editeng/inc/editeng/prszitem.hxx
+++ b/editeng/inc/editeng/prszitem.hxx
@@ -44,13 +44,13 @@ class EDITENG_DLLPUBLIC SvxPropSizeItem : public SfxUInt16Item
public:
TYPEINFO();
- SvxPropSizeItem( const USHORT nPercent /*= 100*/,
- const USHORT nID );
+ SvxPropSizeItem( const sal_uInt16 nPercent /*= 100*/,
+ const sal_uInt16 nID );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/scriptspaceitem.hxx b/editeng/inc/editeng/scriptspaceitem.hxx
index 4896b54c144d..4087bd229b25 100644
--- a/editeng/inc/editeng/scriptspaceitem.hxx
+++ b/editeng/inc/editeng/scriptspaceitem.hxx
@@ -49,8 +49,8 @@ public:
const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/scripttypeitem.hxx b/editeng/inc/editeng/scripttypeitem.hxx
index de4c3f94b130..10b7abcb39b8 100644
--- a/editeng/inc/editeng/scripttypeitem.hxx
+++ b/editeng/inc/editeng/scripttypeitem.hxx
@@ -41,9 +41,9 @@
used for the user interface.
*/
-EDITENG_DLLPUBLIC USHORT GetI18NScriptTypeOfLanguage( USHORT nLang );
-USHORT GetItemScriptType( short nI18NType );
-short GetI18NScriptType( USHORT nItemType );
+EDITENG_DLLPUBLIC sal_uInt16 GetI18NScriptTypeOfLanguage( sal_uInt16 nLang );
+sal_uInt16 GetItemScriptType( short nI18NType );
+short GetI18NScriptType( sal_uInt16 nItemType );
class EDITENG_DLLPUBLIC SvxScriptTypeItem : public SfxUInt16Item
{
@@ -60,30 +60,30 @@ class EDITENG_DLLPUBLIC SvxScriptSetItem : public SfxSetItem
public:
TYPEINFO();
- SvxScriptSetItem( USHORT nSlotId, SfxItemPool& rPool );
+ SvxScriptSetItem( sal_uInt16 nSlotId, SfxItemPool& rPool );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
+ virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const;
static const SfxPoolItem* GetItemOfScriptSet( const SfxItemSet& rSet,
- USHORT nWhich );
- inline const SfxPoolItem* GetItemOfScriptSet( USHORT _nWhich ) const
+ sal_uInt16 nWhich );
+ inline const SfxPoolItem* GetItemOfScriptSet( sal_uInt16 _nWhich ) const
{ return SvxScriptSetItem::GetItemOfScriptSet( GetItemSet(), _nWhich ); }
- static const SfxPoolItem* GetItemOfScript( USHORT nSlotId, const SfxItemSet& rSet, USHORT nScript );
+ static const SfxPoolItem* GetItemOfScript( sal_uInt16 nSlotId, const SfxItemSet& rSet, sal_uInt16 nScript );
- const SfxPoolItem* GetItemOfScript( USHORT nScript ) const;
+ const SfxPoolItem* GetItemOfScript( sal_uInt16 nScript ) const;
- void PutItemForScriptType( USHORT nScriptType, const SfxPoolItem& rItem );
+ void PutItemForScriptType( sal_uInt16 nScriptType, const SfxPoolItem& rItem );
- static void GetWhichIds( USHORT nSlotId, const SfxItemSet& rSet, USHORT& rLatin, USHORT& rAsian, USHORT& rComplex);
+ static void GetWhichIds( sal_uInt16 nSlotId, const SfxItemSet& rSet, sal_uInt16& rLatin, sal_uInt16& rAsian, sal_uInt16& rComplex);
- void GetWhichIds( USHORT& rLatin, USHORT& rAsian, USHORT& rComplex) const;
+ void GetWhichIds( sal_uInt16& rLatin, sal_uInt16& rAsian, sal_uInt16& rComplex) const;
- static void GetSlotIds( USHORT nSlotId, USHORT& rLatin, USHORT& rAsian,
- USHORT& rComplex );
- inline void GetSlotIds( USHORT& rLatin, USHORT& rAsian,
- USHORT& rComplex ) const
+ static void GetSlotIds( sal_uInt16 nSlotId, sal_uInt16& rLatin, sal_uInt16& rAsian,
+ sal_uInt16& rComplex );
+ inline void GetSlotIds( sal_uInt16& rLatin, sal_uInt16& rAsian,
+ sal_uInt16& rComplex ) const
{ GetSlotIds( Which(), rLatin, rAsian, rComplex ); }
};
diff --git a/editeng/inc/editeng/shaditem.hxx b/editeng/inc/editeng/shaditem.hxx
index b120df3bca19..7d6d76e7f075 100644
--- a/editeng/inc/editeng/shaditem.hxx
+++ b/editeng/inc/editeng/shaditem.hxx
@@ -46,29 +46,29 @@ namespace rtl
Dieses Item beschreibt ein Schattenattribut (Farbe, Breite, Lage).
*/
-#define SHADOW_TOP ((USHORT)0)
-#define SHADOW_BOTTOM ((USHORT)1)
-#define SHADOW_LEFT ((USHORT)2)
-#define SHADOW_RIGHT ((USHORT)3)
+#define SHADOW_TOP ((sal_uInt16)0)
+#define SHADOW_BOTTOM ((sal_uInt16)1)
+#define SHADOW_LEFT ((sal_uInt16)2)
+#define SHADOW_RIGHT ((sal_uInt16)3)
class EDITENG_DLLPUBLIC SvxShadowItem : public SfxEnumItemInterface
{
Color aShadowColor;
- USHORT nWidth;
+ sal_uInt16 nWidth;
SvxShadowLocation eLocation;
public:
TYPEINFO();
- SvxShadowItem( const USHORT nId ,
- const Color *pColor = 0, const USHORT nWidth = 100 /*5pt*/,
+ SvxShadowItem( const sal_uInt16 nId ,
+ const Color *pColor = 0, const sal_uInt16 nWidth = 100 /*5pt*/,
const SvxShadowLocation eLoc = SVX_SHADOW_NONE );
inline SvxShadowItem& operator=( const SvxShadowItem& rFmtShadow );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -76,27 +76,27 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
const Color& GetColor() const { return aShadowColor;}
void SetColor( const Color &rNew ) { aShadowColor = rNew; }
- USHORT GetWidth() const { return nWidth; }
+ sal_uInt16 GetWidth() const { return nWidth; }
SvxShadowLocation GetLocation() const { return eLocation; }
- void SetWidth( USHORT nNew ) { nWidth = nNew; }
+ void SetWidth( sal_uInt16 nNew ) { nWidth = nNew; }
void SetLocation( SvxShadowLocation eNew ) { eLocation = eNew; }
//Breite des Schattens auf der jeweiligen Seite berechnen.
- USHORT CalcShadowSpace( USHORT nShadow ) const;
+ sal_uInt16 CalcShadowSpace( sal_uInt16 nShadow ) const;
- virtual USHORT GetValueCount() const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetEnumValue() const;
- virtual void SetEnumValue( USHORT nNewVal );
+ virtual sal_uInt16 GetValueCount() const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetEnumValue() const;
+ virtual void SetEnumValue( sal_uInt16 nNewVal );
};
inline SvxShadowItem &SvxShadowItem::operator=( const SvxShadowItem& rFmtShadow )
diff --git a/editeng/inc/editeng/shdditem.hxx b/editeng/inc/editeng/shdditem.hxx
index 72c3d3f655d7..54c26a3120da 100644
--- a/editeng/inc/editeng/shdditem.hxx
+++ b/editeng/inc/editeng/shdditem.hxx
@@ -50,13 +50,13 @@ class EDITENG_DLLPUBLIC SvxShadowedItem : public SfxBoolItem
public:
TYPEINFO();
- SvxShadowedItem( const BOOL bShadowed /*= FALSE*/,
- const USHORT nId );
+ SvxShadowedItem( const sal_Bool bShadowed /*= sal_False*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/sizeitem.hxx b/editeng/inc/editeng/sizeitem.hxx
index e99eda7a0753..6159c68855b7 100644
--- a/editeng/inc/editeng/sizeitem.hxx
+++ b/editeng/inc/editeng/sizeitem.hxx
@@ -48,15 +48,15 @@ class EDITENG_DLLPUBLIC SvxSizeItem : public SfxPoolItem
public:
TYPEINFO();
- SvxSizeItem( const USHORT nId );
- SvxSizeItem( const USHORT nId, const Size& rSize);
+ SvxSizeItem( const sal_uInt16 nId );
+ SvxSizeItem( const sal_uInt16 nId, const Size& rSize);
inline SvxSizeItem& operator=( const SvxSizeItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -64,8 +64,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
diff --git a/editeng/inc/editeng/spltitem.hxx b/editeng/inc/editeng/spltitem.hxx
index d97959626fc6..0ab4d42c5ab7 100644
--- a/editeng/inc/editeng/spltitem.hxx
+++ b/editeng/inc/editeng/spltitem.hxx
@@ -51,14 +51,14 @@ public:
TYPEINFO();
~SvxFmtSplitItem();
- inline SvxFmtSplitItem( const BOOL bSplit /*= TRUE*/,
- const USHORT nWh );
+ inline SvxFmtSplitItem( const sal_Bool bSplit /*= sal_True*/,
+ const sal_uInt16 nWh );
inline SvxFmtSplitItem& operator=( const SvxFmtSplitItem& rSplit );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 ) const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -66,7 +66,7 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
};
-inline SvxFmtSplitItem::SvxFmtSplitItem( const BOOL bSplit, const USHORT nWh ) :
+inline SvxFmtSplitItem::SvxFmtSplitItem( const sal_Bool bSplit, const sal_uInt16 nWh ) :
SfxBoolItem( nWh, bSplit )
{}
diff --git a/editeng/inc/editeng/splwrap.hxx b/editeng/inc/editeng/splwrap.hxx
index 5e46a96adb9f..5e46a96adb9f 100755..100644
--- a/editeng/inc/editeng/splwrap.hxx
+++ b/editeng/inc/editeng/splwrap.hxx
diff --git a/editeng/inc/editeng/svxacorr.hxx b/editeng/inc/editeng/svxacorr.hxx
index 1ef6bad09d9b..f355a669a304 100644
--- a/editeng/inc/editeng/svxacorr.hxx
+++ b/editeng/inc/editeng/svxacorr.hxx
@@ -76,25 +76,25 @@ public:
SvxAutoCorrDoc() {}
virtual ~SvxAutoCorrDoc();
- virtual BOOL Delete( xub_StrLen nStt, xub_StrLen nEnd ) = 0;
- virtual BOOL Insert( xub_StrLen nPos, const String& rTxt ) = 0;
- virtual BOOL Replace( xub_StrLen nPos, const String& rTxt ) = 0;
+ virtual sal_Bool Delete( xub_StrLen nStt, xub_StrLen nEnd ) = 0;
+ virtual sal_Bool Insert( xub_StrLen nPos, const String& rTxt ) = 0;
+ virtual sal_Bool Replace( xub_StrLen nPos, const String& rTxt ) = 0;
- virtual BOOL SetAttr( xub_StrLen nStt, xub_StrLen nEnd, USHORT nSlotId,
+ virtual sal_Bool SetAttr( xub_StrLen nStt, xub_StrLen nEnd, sal_uInt16 nSlotId,
SfxPoolItem& ) = 0;
- virtual BOOL SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const String& rURL ) = 0;
+ virtual sal_Bool SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const String& rURL ) = 0;
// returne den Text eines vorherigen Absatzes.
// Dieser darf nicht leer sein!
// Gibt es diesen nicht oder gibt es davor nur Leere, dann returne 0
// Das Flag gibt an:
- // TRUE: den, vor der normalen Einfuegeposition (TRUE)
- // FALSE: den, in den das korrigierte Wort eingfuegt wurde.
+ // sal_True: den, vor der normalen Einfuegeposition (sal_True)
+ // sal_False: den, in den das korrigierte Wort eingfuegt wurde.
// (Muss nicht der gleiche Absatz sein!!!!)
- virtual const String* GetPrevPara( BOOL bAtNormalPos ) = 0;
+ virtual const String* GetPrevPara( sal_Bool bAtNormalPos ) = 0;
- virtual BOOL ChgAutoCorrWord( xub_StrLen& rSttPos, xub_StrLen nEndPos,
+ virtual sal_Bool ChgAutoCorrWord( xub_StrLen& rSttPos, xub_StrLen nEndPos,
SvxAutoCorrect& rACorrect,
const String** ppPara ) = 0;
// wird nach dem austauschen der Zeichen von den Funktionen
@@ -102,27 +102,27 @@ public:
// - FnCptlSttSntnc
// gerufen. Dann koennen die Worte ggfs. in die Ausnahmelisten
// aufgenommen werden.
- virtual void SaveCpltSttWord( ULONG nFlag, xub_StrLen nPos,
+ virtual void SaveCpltSttWord( sal_uLong nFlag, xub_StrLen nPos,
const String& rExceptWord,
sal_Unicode cChar );
// welche Sprache gilt an der Position?
- virtual LanguageType GetLanguage( xub_StrLen nPos, BOOL bPrevPara = FALSE ) const;
+ virtual LanguageType GetLanguage( xub_StrLen nPos, sal_Bool bPrevPara = sal_False ) const;
};
class EDITENG_DLLPUBLIC SvxAutocorrWord
{
String sShort, sLong;
- BOOL bIsTxtOnly; // ist reiner ASCII - Text
+ sal_Bool bIsTxtOnly; // ist reiner ASCII - Text
public:
- SvxAutocorrWord( const String& rS, const String& rL, BOOL bFlag = TRUE )
+ SvxAutocorrWord( const String& rS, const String& rL, sal_Bool bFlag = sal_True )
: sShort( rS ), sLong( rL ), bIsTxtOnly( bFlag )
{}
const String& GetShort() const { return sShort; }
const String& GetLong() const { return sLong; }
- BOOL IsTextOnly() const { return bIsTxtOnly; }
+ sal_Bool IsTextOnly() const { return bIsTxtOnly; }
};
typedef SvxAutocorrWord* SvxAutocorrWordPtr;
@@ -143,16 +143,16 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists
long nFlags;
- BOOL IsFileChanged_Imp();
+ sal_Bool IsFileChanged_Imp();
void LoadXMLExceptList_Imp( SvStringsISortDtor*& rpLst,
const sal_Char* pStrmName,
SotStorageRef& rStg);
void SaveExceptList_Imp( const SvStringsISortDtor& rLst,
const sal_Char* pStrmName,
SotStorageRef& rStg,
- BOOL bConvert = FALSE);
+ sal_Bool bConvert = sal_False);
- BOOL MakeBlocklist_Imp( SotStorage& rStg );
+ sal_Bool MakeBlocklist_Imp( SotStorage& rStg );
void RemoveStream_Imp( const String& rName );
void MakeUserStorage_Impl();
@@ -174,7 +174,7 @@ public:
void SaveCplSttExceptList();
void SetCplSttExceptList( SvStringsISortDtor* pList );
SvStringsISortDtor* GetCplSttExceptList();
- BOOL AddToCplSttExceptList(const String& rNew);
+ sal_Bool AddToCplSttExceptList(const String& rNew);
// Lade, Setze, Gebe die Ausnahmeliste fuer 2 Grossbuchstaben am
// Wortanfang
@@ -182,17 +182,17 @@ public:
void SaveWrdSttExceptList();
void SetWrdSttExceptList( SvStringsISortDtor* pList );
SvStringsISortDtor* GetWrdSttExceptList();
- BOOL AddToWrdSttExceptList(const String& rNew);
+ sal_Bool AddToWrdSttExceptList(const String& rNew);
// Speichern von Wortersetzungen:
// Diese speichern direkt im Storage. Die Wortliste wird
// entsprechend aktualisiert!
// - purer Text
- BOOL PutText( const String& rShort, const String& rLong );
+ sal_Bool PutText( const String& rShort, const String& rLong );
// - Text mit Attributierung (kann nur der SWG - SWG-Format!)
- BOOL PutText( const String& rShort, SfxObjectShell& );
+ sal_Bool PutText( const String& rShort, SfxObjectShell& );
// - loesche einen Eintrag
- BOOL DeleteText( const String& rShort );
+ sal_Bool DeleteText( const String& rShort );
};
@@ -226,19 +226,19 @@ class EDITENG_DLLPUBLIC SvxAutoCorrect
protected:
// - Text mit Attributierung (kann nur der SWG - SWG-Format!)
// rShort ist der Stream-Name - gecryptet!
- virtual BOOL PutText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const String& rFileName, const String& rShort, SfxObjectShell& ,
+ virtual sal_Bool PutText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const String& rFileName, const String& rShort, SfxObjectShell& ,
String& );
// geforderte Sprache in die Tabelle eintragen gfs. nur wenn das file existiert
- BOOL CreateLanguageFile(LanguageType eLang, BOOL bNewFile = TRUE);
+ sal_Bool CreateLanguageFile(LanguageType eLang, sal_Bool bNewFile = sal_True);
// - return den Ersetzungstext (nur fuer SWG-Format, alle anderen
// koennen aus der Wortliste herausgeholt werden!)
// rShort ist der Stream-Name - gecryptet!
public:
//The method below is changed from private to public by BerryJia for Bug95846 Time:2002-8-13 15:50
- sal_Unicode GetQuote( sal_Unicode cInsChar, BOOL bSttQuote,
+ sal_Unicode GetQuote( sal_Unicode cInsChar, sal_Bool bSttQuote,
LanguageType eLang ) const;
- virtual BOOL GetLongText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const String& rFileName, const String& rShort, String& rLong );
+ virtual sal_Bool GetLongText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const String& rFileName, const String& rShort, String& rLong );
TYPEINFO();
@@ -249,12 +249,12 @@ public:
// fuehre eine AutoKorrektur aus.
// returnt was ausgefuehrt wurde; entsprechend den obigen Flags
- ULONG AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt,
- xub_StrLen nPos, sal_Unicode cInsChar, BOOL bInsert );
+ sal_uLong AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt,
+ xub_StrLen nPos, sal_Unicode cInsChar, sal_Bool bInsert );
// return fuer die Autotext Expandierung das vorherige Wort, was dem
// AutoCorrect - Algorythmus entspricht.
- BOOL GetPrevAutoCorrWord( SvxAutoCorrDoc& rDoc, const String& rTxt,
+ sal_Bool GetPrevAutoCorrWord( SvxAutoCorrDoc& rDoc, const String& rTxt,
xub_StrLen nPos, String& rWord ) const;
// suche das oder die Worte in der ErsetzungsTabelle.
@@ -280,24 +280,24 @@ public:
void SetEndDoubleQuote( const sal_Unicode cEnd ) { cEndDQuote = cEnd; }
String GetQuote( SvxAutoCorrDoc& rDoc, xub_StrLen nInsPos,
- sal_Unicode cInsChar, BOOL bSttQuote );
+ sal_Unicode cInsChar, sal_Bool bSttQuote );
void InsertQuote( SvxAutoCorrDoc& rDoc, xub_StrLen nInsPos,
- sal_Unicode cInsChar, BOOL bSttQuote, BOOL bIns );
+ sal_Unicode cInsChar, sal_Bool bSttQuote, sal_Bool bIns );
// erfrage / setze den Namen der AutoKorrektur-Datei
// defaultet auf "autocorr.dat"
String GetAutoCorrFileName( LanguageType eLang = LANGUAGE_SYSTEM,
- BOOL bNewFile = FALSE,
- BOOL bTstUserExist = FALSE ) const;
+ sal_Bool bNewFile = sal_False,
+ sal_Bool bTstUserExist = sal_False ) const;
void SetUserAutoCorrFileName( const String& rNew );
void SetShareAutoCorrFileName( const String& rNew );
// erfrage / setze die aktuellen Einstellungen der AutoKorrektur
long GetFlags() const { return nFlags; }
inline SvxSwAutoFmtFlags& GetSwFlags() { return aSwFlags;}
- BOOL IsAutoCorrFlag( long nFlag ) const
- { return nFlags & nFlag ? TRUE : FALSE; }
- void SetAutoCorrFlag( long nFlag, BOOL bOn = TRUE );
+ sal_Bool IsAutoCorrFlag( long nFlag ) const
+ { return nFlags & nFlag ? sal_True : sal_False; }
+ void SetAutoCorrFlag( long nFlag, sal_Bool bOn = sal_True );
// Lade, Setze, Gebe - die Ersetzungsliste
SvxAutocorrWordList* LoadAutocorrWordList(
@@ -311,14 +311,14 @@ public:
// Diese speichern direkt im Storage. Die Wortliste wird
// entsprechend aktualisiert!
// - purer Text
- BOOL PutText( const String& rShort, const String& rLong, LanguageType eLang = LANGUAGE_SYSTEM );
+ sal_Bool PutText( const String& rShort, const String& rLong, LanguageType eLang = LANGUAGE_SYSTEM );
// - Text mit Attributierung (kann nur der SWG - SWG-Format!)
- BOOL PutText( const String& rShort, SfxObjectShell& rShell,
+ sal_Bool PutText( const String& rShort, SfxObjectShell& rShell,
LanguageType eLang = LANGUAGE_SYSTEM )
{ return _GetLanguageList( eLang ).PutText(rShort, rShell ); }
// - loesche einen Eintrag
- BOOL DeleteText( const String& rShort, LanguageType eLang = LANGUAGE_SYSTEM);
+ sal_Bool DeleteText( const String& rShort, LanguageType eLang = LANGUAGE_SYSTEM);
// Lade, Setze, Gebe - die Ausnahmeliste fuer Grossbuchstabe am
// Satzanfang
@@ -332,7 +332,7 @@ public:
// fuegt ein einzelnes Wort hinzu. Die Liste wird sofort
// in die Datei geschrieben!
- BOOL AddCplSttException( const String& rNew,
+ sal_Bool AddCplSttException( const String& rNew,
LanguageType eLang = LANGUAGE_SYSTEM );
// Lade, Setze, Gebe die Ausnahmeliste fuer 2 Grossbuchstaben am
@@ -346,33 +346,33 @@ public:
{ return _GetLanguageList( eLang ).GetWrdSttExceptList(); }
// fuegt ein einzelnes Wort hinzu. Die Liste wird sofort
// in die Datei geschrieben!
- BOOL AddWrtSttException( const String& rNew, LanguageType eLang = LANGUAGE_SYSTEM);
+ sal_Bool AddWrtSttException( const String& rNew, LanguageType eLang = LANGUAGE_SYSTEM);
//ueber die Sprachen nach dem Eintrag suchen
- BOOL FindInWrdSttExceptList( LanguageType eLang, const String& sWord );
- BOOL FindInCplSttExceptList( LanguageType eLang, const String& sWord,
- BOOL bAbbreviation = FALSE);
+ sal_Bool FindInWrdSttExceptList( LanguageType eLang, const String& sWord );
+ sal_Bool FindInCplSttExceptList( LanguageType eLang, const String& sWord,
+ sal_Bool bAbbreviation = sal_False);
// die einzelnen Methoden fuer die Autokorrektur
- BOOL FnCptlSttWrd( SvxAutoCorrDoc&, const String&,
+ sal_Bool FnCptlSttWrd( SvxAutoCorrDoc&, const String&,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnChgOrdinalNumber( SvxAutoCorrDoc&, const String&,
+ sal_Bool FnChgOrdinalNumber( SvxAutoCorrDoc&, const String&,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnChgToEnEmDash( SvxAutoCorrDoc&, const String&,
+ sal_Bool FnChgToEnEmDash( SvxAutoCorrDoc&, const String&,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnAddNonBrkSpace( SvxAutoCorrDoc&, const String&,
+ sal_Bool FnAddNonBrkSpace( SvxAutoCorrDoc&, const String&,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnSetINetAttr( SvxAutoCorrDoc&, const String&,
+ sal_Bool FnSetINetAttr( SvxAutoCorrDoc&, const String&,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnChgWeightUnderl( SvxAutoCorrDoc&, const String&,
+ sal_Bool FnChgWeightUnderl( SvxAutoCorrDoc&, const String&,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
- BOOL FnCptlSttSntnc( SvxAutoCorrDoc&, const String&, BOOL bNormalPos,
+ sal_Bool FnCptlSttSntnc( SvxAutoCorrDoc&, const String&, sal_Bool bNormalPos,
xub_StrLen nSttPos, xub_StrLen nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM);
@@ -380,7 +380,7 @@ public:
static long GetDefaultFlags();
-// returns TRUE for charcters where the function
+// returns sal_True for charcters where the function
// 'SvxAutoCorrect::AutoCorrect' should be called.
// (used to avoid occasional 'collisions' with (Thai) input-sequence-checking)
static sal_Bool IsAutoCorrectChar( sal_Unicode cChar );
diff --git a/editeng/inc/editeng/svxfont.hxx b/editeng/inc/editeng/svxfont.hxx
index f1e53b31276e..498ad5f296d4 100644
--- a/editeng/inc/editeng/svxfont.hxx
+++ b/editeng/inc/editeng/svxfont.hxx
@@ -42,7 +42,7 @@ class EDITENG_DLLPUBLIC SvxFont : public Font
LanguageType eLang; // Language
SvxCaseMap eCaseMap; // Textauszeichnung
short nEsc; // Grad der Hoch-/Tiefstellung
- BYTE nPropr; // Grad der Verkleinerung der Fonthoehe
+ sal_uInt8 nPropr; // Grad der Verkleinerung der Fonthoehe
short nKern; // Kerning in Pt
public:
@@ -54,10 +54,10 @@ public:
inline short GetEscapement() const { return nEsc; }
inline void SetEscapement( const short nNewEsc ) { nEsc = nNewEsc; }
- inline BYTE GetPropr() const { return nPropr; }
- inline void SetPropr( const BYTE nNewPropr ) { nPropr = nNewPropr; }
- inline void SetProprRel( const BYTE nNewPropr )
- { SetPropr( (BYTE)( (long)nNewPropr * (long)nPropr / 100L ) ); }
+ inline sal_uInt8 GetPropr() const { return nPropr; }
+ inline void SetPropr( const sal_uInt8 nNewPropr ) { nPropr = nNewPropr; }
+ inline void SetProprRel( const sal_uInt8 nNewPropr )
+ { SetPropr( (sal_uInt8)( (long)nNewPropr * (long)nPropr / 100L ) ); }
// Kerning
inline short GetFixKerning() const { return nKern; }
@@ -71,10 +71,10 @@ public:
{ eLang = eNewLan; Font::SetLanguage(eNewLan); }
// Is-Methoden:
- inline BOOL IsCaseMap() const { return SVX_CASEMAP_NOT_MAPPED != eCaseMap; }
- inline BOOL IsCapital() const { return SVX_CASEMAP_KAPITAELCHEN == eCaseMap; }
- inline BOOL IsKern() const { return 0 != nKern; }
- inline BOOL IsEsc() const { return 0 != nEsc; }
+ inline sal_Bool IsCaseMap() const { return SVX_CASEMAP_NOT_MAPPED != eCaseMap; }
+ inline sal_Bool IsCapital() const { return SVX_CASEMAP_KAPITAELCHEN == eCaseMap; }
+ inline sal_Bool IsKern() const { return 0 != nKern; }
+ inline sal_Bool IsEsc() const { return 0 != nEsc; }
// Versalien, Gemeine etc. beruecksichtigen
String CalcCaseMap( const String &rTxt ) const;
@@ -84,40 +84,40 @@ public:
#ifndef REDUCEDSVXFONT
// Kapitaelchenbearbeitung
void DoOnCapitals( SvxDoCapitals &rDo,
- const USHORT nPartLen = USHRT_MAX ) const;
+ const sal_uInt16 nPartLen = USHRT_MAX ) const;
void SetPhysFont( OutputDevice *pOut ) const;
Font ChgPhysFont( OutputDevice *pOut ) const;
Size GetCapitalSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen) const;
void DrawCapital( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx, const USHORT nLen ) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen ) const;
Size GetPhysTxtSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen ) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen ) const;
Size GetPhysTxtSize( const OutputDevice *pOut, const String &rTxt );
Size GetTxtSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN );
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN );
void DrawText( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN ) const;
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN ) const;
void QuickDrawText( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN, const sal_Int32* pDXArray = NULL ) const;
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN, const sal_Int32* pDXArray = NULL ) const;
Size QuickGetTextSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen, sal_Int32* pDXArray = NULL ) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen, sal_Int32* pDXArray = NULL ) const;
void DrawPrev( OutputDevice* pOut, Printer* pPrinter,
const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN ) const;
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN ) const;
#endif // !REDUCEDSVXFONT
static void DrawArrow( OutputDevice &rOut, const Rectangle& rRect,
- const Size& rSize, const Color& rCol, BOOL bLeft );
+ const Size& rSize, const Color& rCol, sal_Bool bLeft );
SvxFont& operator=( const SvxFont& rFont );
SvxFont& operator=( const Font& rFont );
};
diff --git a/editeng/inc/editeng/svxrtf.hxx b/editeng/inc/editeng/svxrtf.hxx
index 62bc6efcd4bf..a56c28e42a81 100644
--- a/editeng/inc/editeng/svxrtf.hxx
+++ b/editeng/inc/editeng/svxrtf.hxx
@@ -33,7 +33,7 @@
#include <svl/itemset.hxx>
#include <svtools/parrtf.hxx>
-#define _SVSTDARR_USHORTS
+#define _SVSTDARR_sal_uInt16S
#include <svl/svstdarr.hxx>
#include <editeng/editengdllapi.h>
@@ -60,14 +60,14 @@ namespace com { namespace sun { namespace star {
// Mapper-Klassen fuer die verschiedenen Anforderungen an Doc-Positionen
// Swg - NodePosition ist ein SwIndex, der intern veraendert wird
-// EditEngine - ULONG auf Liste von Absaetzen
+// EditEngine - sal_uInt32 auf Liste von Absaetzen
// .....
class SvxNodeIdx
{
public:
virtual ~SvxNodeIdx() {}
- virtual ULONG GetIdx() const = 0;
+ virtual sal_uLong GetIdx() const = 0;
virtual SvxNodeIdx* Clone() const = 0; // erzeuge von sich eine Kopie
};
@@ -76,7 +76,7 @@ class SvxPosition
public:
virtual ~SvxPosition() {}
- virtual ULONG GetNodeIdx() const = 0;
+ virtual sal_uLong GetNodeIdx() const = 0;
virtual xub_StrLen GetCntIdx() const = 0;
virtual SvxPosition* Clone() const = 0; // erzeuge von sich eine Kopie
@@ -100,12 +100,12 @@ struct SvxRTFStyleType
{
SfxItemSet aAttrSet; // die Attribute vom Style (+Ableitung!)
String sName;
- USHORT nBasedOn, nNext;
- BOOL bBasedOnIsSet; //$flr #117411#
- BYTE nOutlineNo;
- BOOL bIsCharFmt;
+ sal_uInt16 nBasedOn, nNext;
+ sal_Bool bBasedOnIsSet; //$flr #117411#
+ sal_uInt8 nOutlineNo;
+ sal_Bool bIsCharFmt;
- SvxRTFStyleType( SfxItemPool& rPool, const USHORT* pWhichRange );
+ SvxRTFStyleType( SfxItemPool& rPool, const sal_uInt16* pWhichRange );
};
@@ -132,14 +132,14 @@ struct EDITENG_DLLPUBLIC SvxRTFPictureType
HEX_MODE
} nMode;
- USHORT nType;
+ sal_uInt16 nType;
sal_uInt32 uPicLen;
- USHORT nWidth, nHeight;
- USHORT nGoalWidth, nGoalHeight;
- USHORT nBitsPerPixel;
- USHORT nPlanes;
- USHORT nWidthBytes;
- USHORT nScalX, nScalY;
+ sal_uInt16 nWidth, nHeight;
+ sal_uInt16 nGoalWidth, nGoalHeight;
+ sal_uInt16 nBitsPerPixel;
+ sal_uInt16 nPlanes;
+ sal_uInt16 nWidthBytes;
+ sal_uInt16 nScalX, nScalY;
short nCropT, nCropB, nCropL, nCropR;
PictPropertyNameValuePairs aPropertyPairs;
SvxRTFPictureType() { ResetValues(); }
@@ -152,7 +152,7 @@ struct EDITENG_DLLPUBLIC SvxRTFPictureType
// Die Ids werden ueber die SlotIds vom POOL richtig gesetzt.
struct RTFPlainAttrMapIds
{
- USHORT nCaseMap,
+ sal_uInt16 nCaseMap,
nBgColor,
nColor,
nContour,
@@ -195,7 +195,7 @@ struct RTFPlainAttrMapIds
// Die Ids werden ueber die SlotIds vom POOL richtig gesetzt.
struct RTFPardAttrMapIds
{
- USHORT nLinespacing,
+ sal_uInt16 nLinespacing,
nAdjust,
nTabStop,
nHyphenzone,
@@ -246,23 +246,23 @@ class EDITENG_DLLPUBLIC SvxRTFParser : public SvRTFParser
long nVersionNo;
int nDfltFont;
- BOOL bNewDoc : 1; // FALSE - in ein bestehendes lesen
- BOOL bNewGroup : 1; // TRUE - es gab eine oeffnende Klammer
- BOOL bIsSetDfltTab : 1; // TRUE - DefTab wurde eingelesen
- BOOL bChkStyleAttr : 1; // TRUE - StyleSheets werden ausgewertet
- BOOL bCalcValue : 1; // TRUE - Twipwerte an APP anpassen
- BOOL bPardTokenRead : 1; // TRUE - Token \pard wurde erkannt
- BOOL bReadDocInfo : 1; // TRUE - DocInfo mit einlesen
- BOOL bIsLeftToRightDef : 1; // TRUE - in LeftToRight char run def.
- // FALSE - in RightToLeft char run def.
- BOOL bIsInReadStyleTab : 1; // TRUE - in ReadStyleTable
+ sal_Bool bNewDoc : 1; // sal_False - in ein bestehendes lesen
+ sal_Bool bNewGroup : 1; // sal_True - es gab eine oeffnende Klammer
+ sal_Bool bIsSetDfltTab : 1; // sal_True - DefTab wurde eingelesen
+ sal_Bool bChkStyleAttr : 1; // sal_True - StyleSheets werden ausgewertet
+ sal_Bool bCalcValue : 1; // sal_True - Twipwerte an APP anpassen
+ sal_Bool bPardTokenRead : 1; // sal_True - Token \pard wurde erkannt
+ sal_Bool bReadDocInfo : 1; // sal_True - DocInfo mit einlesen
+ sal_Bool bIsLeftToRightDef : 1; // sal_True - in LeftToRight char run def.
+ // sal_False - in RightToLeft char run def.
+ sal_Bool bIsInReadStyleTab : 1; // sal_True - in ReadStyleTable
void ClearColorTbl();
void ClearFontTbl();
void ClearStyleTbl();
void ClearAttrStack();
- SvxRTFItemStackTypePtr _GetAttrSet( int bCopyAttr=FALSE ); // neue ItemStackType anlegen
+ SvxRTFItemStackTypePtr _GetAttrSet( int bCopyAttr=sal_False ); // neue ItemStackType anlegen
void _ClearStyleAttr( SvxRTFItemStackType& rStkType );
// setzt alle Attribute, die unterschiedlich zum aktuellen sind
@@ -321,7 +321,7 @@ protected:
virtual void InsertText() = 0;
- virtual void MovePos( int bForward = TRUE ) = 0;
+ virtual void MovePos( int bForward = sal_True ) = 0;
virtual void SetEndPrevPara( SvxNodeIdx*& rpNodePos,
xub_StrLen& rCntPos )=0;
virtual void SetAttrInDoc( SvxRTFItemStackType &rSet );
@@ -335,7 +335,7 @@ protected:
SvStream& rIn,
::com::sun::star::uno::Reference<
::com::sun::star::document::XDocumentProperties> i_xDocProps,
- int bReadNewDoc = TRUE );
+ int bReadNewDoc = sal_True );
virtual ~SvxRTFParser();
int IsNewDoc() const { return bNewDoc; }
@@ -359,8 +359,8 @@ protected:
// erfrage/setze die Mapping-Ids fuer die Pard/Plain Attribute
// (Set: es werden sich die Pointer gemerkt, also keine Kopie erzeugt!!! )
- void AddPardAttr( USHORT nWhich ) { aPardMap.Insert( nWhich, aPardMap.Count() ); }
- void AddPlainAttr( USHORT nWhich ) { aPlainMap.Insert( nWhich, aPlainMap.Count() ); }
+ void AddPardAttr( sal_uInt16 nWhich ) { aPardMap.Insert( nWhich, aPardMap.Count() ); }
+ void AddPlainAttr( sal_uInt16 nWhich ) { aPlainMap.Insert( nWhich, aPlainMap.Count() ); }
SvxRTFStyleTbl& GetStyleTbl() { return aStyleTbl; }
SvxRTFItemStack& GetAttrStack() { return aAttrStack; }
@@ -371,8 +371,8 @@ protected:
// lesen die GrafikDaten und fuelle damit die Grafik und die
// die PicDaten.
- // Return - TRUE: die Grafik ist gueltig
- BOOL ReadBmpData( Graphic& rGrf, SvxRTFPictureType& rPicType );
+ // Return - sal_True: die Grafik ist gueltig
+ sal_Bool ReadBmpData( Graphic& rGrf, SvxRTFPictureType& rPicType );
// wandel die ASCII-HexCodes in binaere Zeichen um. Werden
// ungueltige Daten gefunden (Zeichen ausser 0-9|a-f|A-F, so
// wird USHRT_MAX returnt, ansonsten die Anzahl der umgewandelten Ze.
@@ -383,7 +383,7 @@ public:
virtual SvParserState CallParser(); // Aufruf des Parsers
inline const Color& GetColor( size_t nId ) const;
- const Font& GetFont( USHORT nId ); // aendert den dflt Font
+ const Font& GetFont( sal_uInt16 nId ); // aendert den dflt Font
virtual int IsEndPara( SvxNodeIdx* pNd, xub_StrLen nCnt ) const = 0;
@@ -396,8 +396,8 @@ public:
RTFPlainAttrMapIds& GetPlainMap()
{ return (RTFPlainAttrMapIds&)*aPlainMap.GetData(); }
// um diese von aussen z.B. Tabellenzellen zuordnen zu koennen
- void ReadBorderAttr( int nToken, SfxItemSet& rSet, int bTableDef=FALSE );
- void ReadBackgroundAttr( int nToken, SfxItemSet& rSet, int bTableDef=FALSE );
+ void ReadBorderAttr( int nToken, SfxItemSet& rSet, int bTableDef=sal_False );
+ void ReadBackgroundAttr( int nToken, SfxItemSet& rSet, int bTableDef=sal_False );
// fuers asynchrone lesen aus dem SvStream
virtual void Continue( int nToken );
@@ -419,9 +419,9 @@ class EDITENG_DLLPUBLIC SvxRTFItemStackType
SvxNodeIdx *pSttNd, *pEndNd;
xub_StrLen nSttCnt, nEndCnt;
SvxRTFItemStackList* pChildList;
- USHORT nStyleNo;
+ sal_uInt16 nStyleNo;
- SvxRTFItemStackType( SfxItemPool&, const USHORT* pWhichRange,
+ SvxRTFItemStackType( SfxItemPool&, const sal_uInt16* pWhichRange,
const SvxPosition& );
~SvxRTFItemStackType();
@@ -430,7 +430,7 @@ class EDITENG_DLLPUBLIC SvxRTFItemStackType
public:
SvxRTFItemStackType( const SvxRTFItemStackType&, const SvxPosition&,
- int bCopyAttr = FALSE );
+ int bCopyAttr = sal_False );
//cmc, I'm very suspicios about SetStartPos, it doesn't change
//its children's starting position, and the implementation looks
//bad, consider this deprecated.
@@ -439,8 +439,8 @@ public:
void MoveFullNode(const SvxNodeIdx &rOldNode,
const SvxNodeIdx &rNewNode);
- ULONG GetSttNodeIdx() const { return pSttNd->GetIdx(); }
- ULONG GetEndNodeIdx() const { return pEndNd->GetIdx(); }
+ sal_uLong GetSttNodeIdx() const { return pSttNd->GetIdx(); }
+ sal_uLong GetEndNodeIdx() const { return pEndNd->GetIdx(); }
const SvxNodeIdx& GetSttNode() const { return *pSttNd; }
const SvxNodeIdx& GetEndNode() const { return *pEndNd; }
@@ -451,7 +451,7 @@ public:
SfxItemSet& GetAttrSet() { return aAttrSet; }
const SfxItemSet& GetAttrSet() const { return aAttrSet; }
- USHORT StyleNo() const { return nStyleNo; }
+ sal_uInt16 StyleNo() const { return nStyleNo; }
void SetRTFDefaults( const SfxItemSet& rDefaults );
};
diff --git a/editeng/inc/editeng/swafopt.hxx b/editeng/inc/editeng/swafopt.hxx
index c80711725add..f777730355f9 100644
--- a/editeng/inc/editeng/swafopt.hxx
+++ b/editeng/inc/editeng/swafopt.hxx
@@ -44,54 +44,54 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFmtFlags
sal_Unicode cBullet;
sal_Unicode cByInputBullet;
- USHORT nAutoCmpltWordLen, nAutoCmpltListLen;
- USHORT nAutoCmpltExpandKey;
+ sal_uInt16 nAutoCmpltWordLen, nAutoCmpltListLen;
+ sal_uInt16 nAutoCmpltExpandKey;
- BYTE nRightMargin;
+ sal_uInt8 nRightMargin;
- BOOL bAutoCorrect : 1;
- BOOL bCptlSttSntnc : 1;
- BOOL bCptlSttWrd : 1;
- BOOL bChkFontAttr : 1;
+ sal_Bool bAutoCorrect : 1;
+ sal_Bool bCptlSttSntnc : 1;
+ sal_Bool bCptlSttWrd : 1;
+ sal_Bool bChkFontAttr : 1;
- BOOL bChgUserColl : 1;
- BOOL bChgEnumNum : 1;
+ sal_Bool bChgUserColl : 1;
+ sal_Bool bChgEnumNum : 1;
- BOOL bAFmtByInput : 1;
- BOOL bDelEmptyNode : 1;
- BOOL bSetNumRule : 1;
+ sal_Bool bAFmtByInput : 1;
+ sal_Bool bDelEmptyNode : 1;
+ sal_Bool bSetNumRule : 1;
- BOOL bChgOrdinalNumber : 1;
- BOOL bChgToEnEmDash : 1;
- BOOL bAddNonBrkSpace : 1;
- BOOL bChgWeightUnderl : 1;
- BOOL bSetINetAttr : 1;
+ sal_Bool bChgOrdinalNumber : 1;
+ sal_Bool bChgToEnEmDash : 1;
+ sal_Bool bAddNonBrkSpace : 1;
+ sal_Bool bChgWeightUnderl : 1;
+ sal_Bool bSetINetAttr : 1;
- BOOL bSetBorder : 1;
- BOOL bCreateTable : 1;
- BOOL bReplaceStyles : 1;
- BOOL bDummy : 1;
+ sal_Bool bSetBorder : 1;
+ sal_Bool bCreateTable : 1;
+ sal_Bool bReplaceStyles : 1;
+ sal_Bool bDummy : 1;
- BOOL bWithRedlining : 1;
+ sal_Bool bWithRedlining : 1;
- BOOL bRightMargin : 1;
+ sal_Bool bRightMargin : 1;
- BOOL bAutoCompleteWords : 1;
- BOOL bAutoCmpltCollectWords : 1;
- BOOL bAutoCmpltEndless : 1;
+ sal_Bool bAutoCompleteWords : 1;
+ sal_Bool bAutoCmpltCollectWords : 1;
+ sal_Bool bAutoCmpltEndless : 1;
// -- under NT hier starts a new long
- BOOL bAutoCmpltAppendBlanc : 1;
- BOOL bAutoCmpltShowAsTip : 1;
+ sal_Bool bAutoCmpltAppendBlanc : 1;
+ sal_Bool bAutoCmpltShowAsTip : 1;
- BOOL bAFmtDelSpacesAtSttEnd : 1;
- BOOL bAFmtDelSpacesBetweenLines : 1;
- BOOL bAFmtByInpDelSpacesAtSttEnd : 1;
- BOOL bAFmtByInpDelSpacesBetweenLines : 1;
+ sal_Bool bAFmtDelSpacesAtSttEnd : 1;
+ sal_Bool bAFmtDelSpacesBetweenLines : 1;
+ sal_Bool bAFmtByInpDelSpacesAtSttEnd : 1;
+ sal_Bool bAFmtByInpDelSpacesBetweenLines : 1;
- BOOL bAutoCmpltKeepList : 1;
+ sal_Bool bAutoCmpltKeepList : 1;
// some dummies for any new options
- BOOL bDummy6 : 1,
+ sal_Bool bDummy6 : 1,
bDummy7 : 1,
bDummy8 : 1
;
diff --git a/editeng/inc/editeng/tstpitem.hxx b/editeng/inc/editeng/tstpitem.hxx
index 887258c20f4f..d3554607b79c 100644
--- a/editeng/inc/editeng/tstpitem.hxx
+++ b/editeng/inc/editeng/tstpitem.hxx
@@ -83,7 +83,7 @@ public:
String GetValueString() const;
// das "alte" operator==()
- BOOL IsEqual( const SvxTabStop& rTS ) const
+ sal_Bool IsEqual( const SvxTabStop& rTS ) const
{
return ( nTabPos == rTS.nTabPos &&
eAdjustment == rTS.eAdjustment &&
@@ -92,9 +92,9 @@ public:
}
// Fuer das SortedArray:
- BOOL operator==( const SvxTabStop& rTS ) const
+ sal_Bool operator==( const SvxTabStop& rTS ) const
{ return nTabPos == rTS.nTabPos; }
- BOOL operator <( const SvxTabStop& rTS ) const
+ sal_Bool operator <( const SvxTabStop& rTS ) const
{ return nTabPos < rTS.nTabPos; }
SvxTabStop& operator=( const SvxTabStop& rTS )
@@ -123,27 +123,27 @@ class EDITENG_DLLPUBLIC SvxTabStopItem : public SfxPoolItem, private SvxTabStopA
public:
TYPEINFO();
- SvxTabStopItem( USHORT nWhich );
- SvxTabStopItem( const USHORT nTabs,
- const USHORT nDist,
+ SvxTabStopItem( sal_uInt16 nWhich );
+ SvxTabStopItem( const sal_uInt16 nTabs,
+ const sal_uInt16 nDist,
const SvxTabAdjust eAdjst /*= SVX_TAB_ADJUST_DEFAULT*/,
- USHORT nWhich );
+ sal_uInt16 nWhich );
SvxTabStopItem( const SvxTabStopItem& rTSI );
// Liefert Index-Position des Tabs zurueck oder TAB_NOTFOUND
- USHORT GetPos( const SvxTabStop& rTab ) const;
+ sal_uInt16 GetPos( const SvxTabStop& rTab ) const;
// Liefert Index-Position des Tabs an nPos zurueck oder TAB_NOTFOUND
- USHORT GetPos( const long nPos ) const;
+ sal_uInt16 GetPos( const long nPos ) const;
// entprivatisiert:
- USHORT Count() const { return SvxTabStopArr::Count(); }
- BOOL Insert( const SvxTabStop& rTab );
- void Insert( const SvxTabStopItem* pTabs, USHORT nStart = 0,
- USHORT nEnd = USHRT_MAX );
+ sal_uInt16 Count() const { return SvxTabStopArr::Count(); }
+ sal_Bool Insert( const SvxTabStop& rTab );
+ void Insert( const SvxTabStopItem* pTabs, sal_uInt16 nStart = 0,
+ sal_uInt16 nEnd = USHRT_MAX );
void Remove( SvxTabStop& rTab )
{ SvxTabStopArr::Remove( rTab ); }
- void Remove( const USHORT nPos, const USHORT nLen = 1 )
+ void Remove( const sal_uInt16 nPos, const sal_uInt16 nLen = 1 )
{ SvxTabStopArr::Remove( nPos, nLen ); }
// Zuweisungsoperator, Gleichheitsoperator (vorsicht: teuer!)
@@ -154,7 +154,7 @@ public:
// { return !( operator==( rTSI ) ); }
// SortedArrays liefern nur Stackobjekte zurueck!
- const SvxTabStop& operator[]( const USHORT nPos ) const
+ const SvxTabStop& operator[]( const sal_uInt16 nPos ) const
{
DBG_ASSERT( GetStart() &&
nPos < Count(), "op[]" );
@@ -165,8 +165,8 @@ public:
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -174,8 +174,8 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT ) const;
- virtual SvStream& Store( SvStream& , USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream&, sal_uInt16 ) const;
+ virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const;
using SvxTabStopArr::Insert;
using SvxTabStopArr::Remove;
diff --git a/editeng/inc/editeng/twolinesitem.hxx b/editeng/inc/editeng/twolinesitem.hxx
index 19ae8c976565..7f167386d5fa 100644
--- a/editeng/inc/editeng/twolinesitem.hxx
+++ b/editeng/inc/editeng/twolinesitem.hxx
@@ -43,7 +43,7 @@ class EDITENG_DLLPUBLIC SvxTwoLinesItem : public SfxPoolItem
sal_Bool bOn;
public:
TYPEINFO();
- SvxTwoLinesItem( sal_Bool bOn /*= TRUE*/,
+ SvxTwoLinesItem( sal_Bool bOn /*= sal_True*/,
sal_Unicode nStartBracket /*= 0*/,
sal_Unicode nEndBracket /*= 0*/,
sal_uInt16 nId );
@@ -53,8 +53,8 @@ public:
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nVer) const;
- virtual SvStream& Store(SvStream &, USHORT nIVer) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16 nVer) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nIVer) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
@@ -62,11 +62,11 @@ public:
const IntlWrapper* pIntl = 0 ) const;
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 ) const;
+ sal_uInt8 nMemberId = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 );
+ sal_uInt8 nMemberId = 0 );
- virtual USHORT GetVersion( USHORT nFFVer ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFFVer ) const;
SvxTwoLinesItem& operator=( const SvxTwoLinesItem& rCpy )
{
diff --git a/editeng/inc/editeng/txtrange.hxx b/editeng/inc/editeng/txtrange.hxx
index 5f0c8b721aca..f6bbbfd77477 100644
--- a/editeng/inc/editeng/txtrange.hxx
+++ b/editeng/inc/editeng/txtrange.hxx
@@ -29,7 +29,7 @@
#define _MyTXTRANGE_HXX
#ifndef _TXTRANGE_HXX
-#define _SVSTDARR_BOOLS
+#define _SVSTDARR_sal_BoolS
#define _SVSTDARR_LONGS
#include <svl/svstdarr.hxx>
#endif
@@ -61,56 +61,56 @@ class EDITENG_DLLPUBLIC TextRanger
PolyPolygon *mpPolyPolygon; // Flaechenpolygon
PolyPolygon *mpLinePolyPolygon; // Linienpolygon
Rectangle *pBound; // Umfassendes Rechteck
- USHORT nCacheSize; // Cache-Size
- USHORT nCacheIdx; // Cache-Index
- USHORT nRight; // Abstand Kontur-Text
- USHORT nLeft; // Abstand Text-Kontur
- USHORT nUpper; // Abstand Kontur-Text
- USHORT nLower; // Abstand Text-Kontur
+ sal_uInt16 nCacheSize; // Cache-Size
+ sal_uInt16 nCacheIdx; // Cache-Index
+ sal_uInt16 nRight; // Abstand Kontur-Text
+ sal_uInt16 nLeft; // Abstand Text-Kontur
+ sal_uInt16 nUpper; // Abstand Kontur-Text
+ sal_uInt16 nLower; // Abstand Text-Kontur
sal_uInt32 nPointCount; // Anzahl der Polygonpunkte
- BOOL bSimple : 1; // Nur Aussenkante
- BOOL bInner : 1; // TRUE: Objekt beschriften (EditEngine);
- // FALSE: Objekt umfliessen (StarWriter);
- BOOL bVertical :1; // for vertical writing mode
- BOOL bFlag3 :1;
- BOOL bFlag4 :1;
- BOOL bFlag5 :1;
- BOOL bFlag6 :1;
- BOOL bFlag7 :1;
+ sal_Bool bSimple : 1; // Nur Aussenkante
+ sal_Bool bInner : 1; // sal_True: Objekt beschriften (EditEngine);
+ // sal_False: Objekt umfliessen (StarWriter);
+ sal_Bool bVertical :1; // for vertical writing mode
+ sal_Bool bFlag3 :1;
+ sal_Bool bFlag4 :1;
+ sal_Bool bFlag5 :1;
+ sal_Bool bFlag6 :1;
+ sal_Bool bFlag7 :1;
TextRanger( const TextRanger& ); // not implemented
const Rectangle& _GetBoundRect();
public:
TextRanger( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon,
- USHORT nCacheSize, USHORT nLeft, USHORT nRight,
- BOOL bSimple, BOOL bInner, BOOL bVert = sal_False );
+ sal_uInt16 nCacheSize, sal_uInt16 nLeft, sal_uInt16 nRight,
+ sal_Bool bSimple, sal_Bool bInner, sal_Bool bVert = sal_False );
~TextRanger();
SvLongsPtr GetTextRanges( const Range& rRange );
- USHORT GetRight() const { return nRight; }
- USHORT GetLeft() const { return nLeft; }
- USHORT GetUpper() const { return nUpper; }
- USHORT GetLower() const { return nLower; }
+ sal_uInt16 GetRight() const { return nRight; }
+ sal_uInt16 GetLeft() const { return nLeft; }
+ sal_uInt16 GetUpper() const { return nUpper; }
+ sal_uInt16 GetLower() const { return nLower; }
sal_uInt32 GetPointCount() const { return nPointCount; }
- BOOL IsSimple() const { return bSimple; }
- BOOL IsInner() const { return bInner; }
- BOOL IsVertical() const { return bVertical; }
- BOOL HasBorder() const { return nRight || nLeft; }
+ sal_Bool IsSimple() const { return bSimple; }
+ sal_Bool IsInner() const { return bInner; }
+ sal_Bool IsVertical() const { return bVertical; }
+ sal_Bool HasBorder() const { return nRight || nLeft; }
const PolyPolygon& GetPolyPolygon() const { return *mpPolyPolygon; }
const PolyPolygon* GetLinePolygon() const { return mpLinePolyPolygon; }
const Rectangle& GetBoundRect()
{ return pBound ? static_cast< const Rectangle& >(*pBound) : _GetBoundRect(); }
- void SetUpper( USHORT nNew ){ nUpper = nNew; }
- void SetLower( USHORT nNew ){ nLower = nNew; }
- void SetVertical( BOOL bNew );
- BOOL IsFlag3() const { return bFlag3; }
- void SetFlag3( BOOL bNew ) { bFlag3 = bNew; }
- BOOL IsFlag4() const { return bFlag4; }
- void SetFlag4( BOOL bNew ) { bFlag4 = bNew; }
- BOOL IsFlag5() const { return bFlag5; }
- void SetFlag5( BOOL bNew ) { bFlag5 = bNew; }
- BOOL IsFlag6() const { return bFlag6; }
- void SetFlag6( BOOL bNew ) { bFlag6 = bNew; }
- BOOL IsFlag7() const { return bFlag7; }
- void SetFlag7( BOOL bNew ) { bFlag7 = bNew; }
+ void SetUpper( sal_uInt16 nNew ){ nUpper = nNew; }
+ void SetLower( sal_uInt16 nNew ){ nLower = nNew; }
+ void SetVertical( sal_Bool bNew );
+ sal_Bool IsFlag3() const { return bFlag3; }
+ void SetFlag3( sal_Bool bNew ) { bFlag3 = bNew; }
+ sal_Bool IsFlag4() const { return bFlag4; }
+ void SetFlag4( sal_Bool bNew ) { bFlag4 = bNew; }
+ sal_Bool IsFlag5() const { return bFlag5; }
+ void SetFlag5( sal_Bool bNew ) { bFlag5 = bNew; }
+ sal_Bool IsFlag6() const { return bFlag6; }
+ void SetFlag6( sal_Bool bNew ) { bFlag6 = bNew; }
+ sal_Bool IsFlag7() const { return bFlag7; }
+ void SetFlag7( sal_Bool bNew ) { bFlag7 = bNew; }
};
diff --git a/editeng/inc/editeng/udlnitem.hxx b/editeng/inc/editeng/udlnitem.hxx
index 6d4601ab4d20..d0c76be4a5b7 100644
--- a/editeng/inc/editeng/udlnitem.hxx
+++ b/editeng/inc/editeng/udlnitem.hxx
@@ -51,7 +51,7 @@ public:
TYPEINFO();
SvxTextLineItem( const FontUnderline eSt,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -60,22 +60,22 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetValueCount() const;
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 ) const;
+ sal_uInt8 nMemberId = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId = 0 );
+ sal_uInt8 nMemberId = 0 );
// MS VC4.0 kommt durcheinander
- void SetValue( USHORT nNewVal )
+ void SetValue( sal_uInt16 nNewVal )
{SfxEnumItem::SetValue(nNewVal); }
virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( BOOL bVal );
+ virtual sal_Bool GetBoolValue() const;
+ virtual void SetBoolValue( sal_Bool bVal );
virtual int operator==( const SfxPoolItem& ) const;
@@ -90,7 +90,7 @@ public:
FontUnderline GetLineStyle() const
{ return (FontUnderline)GetValue(); }
void SetLineStyle( FontUnderline eNew )
- { SetValue((USHORT) eNew); }
+ { SetValue((sal_uInt16) eNew); }
const Color& GetColor() const { return mColor; }
void SetColor( const Color& rCol ) { mColor = rCol; }
@@ -106,11 +106,11 @@ public:
TYPEINFO();
SvxUnderlineItem( const FontUnderline eSt,
- const USHORT nId );
+ const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
};
// class SvxOverlineItem ------------------------------------------------
@@ -123,11 +123,11 @@ public:
TYPEINFO();
SvxOverlineItem( const FontUnderline eSt,
- const USHORT nId );
+ const sal_uInt16 nId );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
};
#endif // #ifndef _SVX_UDLNITEM_HXX
diff --git a/editeng/inc/editeng/ulspitem.hxx b/editeng/inc/editeng/ulspitem.hxx
index 29774c49ac61..adccf0c45d34 100644
--- a/editeng/inc/editeng/ulspitem.hxx
+++ b/editeng/inc/editeng/ulspitem.hxx
@@ -44,26 +44,26 @@ namespace rtl
Dieses Item beschreibt den oberen und unteren Rand einer Seite oder Absatz.
*/
-#define ULSPACE_16_VERSION ((USHORT)0x0001)
+#define ULSPACE_16_VERSION ((sal_uInt16)0x0001)
class EDITENG_DLLPUBLIC SvxULSpaceItem : public SfxPoolItem
{
- USHORT nUpper; //Oberer Rand
- USHORT nLower; //Unterer Rand
- USHORT nPropUpper, nPropLower; // relativ oder absolut (=100%)
+ sal_uInt16 nUpper; //Oberer Rand
+ sal_uInt16 nLower; //Unterer Rand
+ sal_uInt16 nPropUpper, nPropLower; // relativ oder absolut (=100%)
public:
TYPEINFO();
- SvxULSpaceItem( const USHORT nId );
- SvxULSpaceItem( const USHORT nUp, const USHORT nLow,
- const USHORT nId );
+ SvxULSpaceItem( const sal_uInt16 nId );
+ SvxULSpaceItem( const sal_uInt16 nUp, const sal_uInt16 nLow,
+ const sal_uInt16 nId );
inline SvxULSpaceItem& operator=( const SvxULSpaceItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -71,24 +71,24 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual int ScaleMetrics( long nMult, long nDiv );
virtual int HasMetrics() const;
- inline void SetUpper( const USHORT nU, const USHORT nProp = 100 );
- inline void SetLower( const USHORT nL, const USHORT nProp = 100 );
+ inline void SetUpper( const sal_uInt16 nU, const sal_uInt16 nProp = 100 );
+ inline void SetLower( const sal_uInt16 nL, const sal_uInt16 nProp = 100 );
- void SetUpperValue( const USHORT nU ) { nUpper = nU; }
- void SetLowerValue( const USHORT nL ) { nLower = nL; }
- void SetPropUpper( const USHORT nU ) { nPropUpper = nU; }
- void SetPropLower( const USHORT nL ) { nPropLower = nL; }
+ void SetUpperValue( const sal_uInt16 nU ) { nUpper = nU; }
+ void SetLowerValue( const sal_uInt16 nL ) { nLower = nL; }
+ void SetPropUpper( const sal_uInt16 nU ) { nPropUpper = nU; }
+ void SetPropLower( const sal_uInt16 nL ) { nPropLower = nL; }
- USHORT GetUpper() const { return nUpper; }
- USHORT GetLower() const { return nLower; }
- USHORT GetPropUpper() const { return nPropUpper; }
- USHORT GetPropLower() const { return nPropLower; }
+ sal_uInt16 GetUpper() const { return nUpper; }
+ sal_uInt16 GetLower() const { return nLower; }
+ sal_uInt16 GetPropUpper() const { return nPropUpper; }
+ sal_uInt16 GetPropLower() const { return nPropLower; }
};
inline SvxULSpaceItem &SvxULSpaceItem::operator=( const SvxULSpaceItem &rCpy )
@@ -100,13 +100,13 @@ inline SvxULSpaceItem &SvxULSpaceItem::operator=( const SvxULSpaceItem &rCpy )
return *this;
}
-inline void SvxULSpaceItem::SetUpper( const USHORT nU, const USHORT nProp )
+inline void SvxULSpaceItem::SetUpper( const sal_uInt16 nU, const sal_uInt16 nProp )
{
- nUpper = USHORT((ULONG(nU) * nProp ) / 100); nPropUpper = nProp;
+ nUpper = sal_uInt16((sal_uInt32(nU) * nProp ) / 100); nPropUpper = nProp;
}
-inline void SvxULSpaceItem::SetLower( const USHORT nL, const USHORT nProp )
+inline void SvxULSpaceItem::SetLower( const sal_uInt16 nL, const sal_uInt16 nProp )
{
- nLower = USHORT((ULONG(nL) * nProp ) / 100); nPropLower = nProp;
+ nLower = sal_uInt16((sal_uInt32(nL) * nProp ) / 100); nPropLower = nProp;
}
#endif
diff --git a/editeng/inc/editeng/unoedhlp.hxx b/editeng/inc/editeng/unoedhlp.hxx
index 6f5dab8afe06..5d140f90492c 100644
--- a/editeng/inc/editeng/unoedhlp.hxx
+++ b/editeng/inc/editeng/unoedhlp.hxx
@@ -49,20 +49,20 @@ class EditEngine;
class EDITENG_DLLPUBLIC SvxEditSourceHint : public TextHint
{
private:
- ULONG mnStart;
- ULONG mnEnd;
+ sal_uLong mnStart;
+ sal_uLong mnEnd;
public:
TYPEINFO();
- SvxEditSourceHint( ULONG nId );
- SvxEditSourceHint( ULONG nId, ULONG nValue, ULONG nStart=0, ULONG nEnd=0 );
-
- ULONG GetValue() const;
- ULONG GetStartValue() const;
- ULONG GetEndValue() const;
- void SetValue( ULONG n );
- void SetStartValue( ULONG n );
- void SetEndValue( ULONG n );
+ SvxEditSourceHint( sal_uLong nId );
+ SvxEditSourceHint( sal_uLong nId, sal_uLong nValue, sal_uLong nStart=0, sal_uLong nEnd=0 );
+
+ sal_uLong GetValue() const;
+ sal_uLong GetStartValue() const;
+ sal_uLong GetEndValue() const;
+ void SetValue( sal_uLong n );
+ void SetStartValue( sal_uLong n );
+ void SetEndValue( sal_uLong n );
};
/** Helper class for common functionality in edit sources
@@ -101,7 +101,7 @@ public:
@return sal_True, if the range has been successfully determined
*/
- static sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, const EditEngine& rEE, USHORT nPara, USHORT nIndex );
+ static sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, const EditEngine& rEE, sal_uInt16 nPara, sal_uInt16 nIndex );
/** Convert point from edit engine to user coordinate space
diff --git a/editeng/inc/editeng/unoedprx.hxx b/editeng/inc/editeng/unoedprx.hxx
index 693fabe7d49f..c4de3037eb30 100644
--- a/editeng/inc/editeng/unoedprx.hxx
+++ b/editeng/inc/editeng/unoedprx.hxx
@@ -41,20 +41,20 @@ public:
SvxAccessibleTextAdapter();
virtual ~SvxAccessibleTextAdapter();
- virtual USHORT GetParagraphCount() const;
- virtual USHORT GetTextLen( USHORT nParagraph ) const;
+ virtual sal_uInt16 GetParagraphCount() const;
+ virtual sal_uInt16 GetTextLen( sal_uInt16 nParagraph ) const;
virtual String GetText( const ESelection& rSel ) const;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = 0 ) const;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
+ virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const;
+ virtual SfxItemSet GetParaAttribs( sal_uInt16 nPara ) const;
+ virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet );
virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const;
+ virtual void GetPortions( sal_uInt16 nPara, SvUShorts& rList ) const;
- virtual sal_Int32 CalcLogicalIndex( USHORT nPara, USHORT nEEIndex );
- virtual USHORT CalcEditEngineIndex( USHORT nPara, sal_Int32 nLogicalIndex );
+ virtual sal_Int32 CalcLogicalIndex( sal_uInt16 nPara, sal_uInt16 nEEIndex );
+ virtual sal_uInt16 CalcEditEngineIndex( sal_uInt16 nPara, sal_Int32 nLogicalIndex );
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const;
+ virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
+ virtual sal_uInt16 GetItemState( sal_uInt16 nPara, sal_uInt16 nWhich ) const;
virtual void QuickInsertText( const String& rText, const ESelection& rSel );
virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
@@ -63,46 +63,46 @@ public:
virtual SfxItemPool* GetPool() const;
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor );
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
+ virtual XubString CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, sal_uInt16 nPos, Color*& rpTxtColor, Color*& rpFldColor );
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
- virtual BOOL IsValid() const;
+ virtual sal_Bool IsValid() const;
- virtual LanguageType GetLanguage( USHORT, USHORT ) const;
- virtual USHORT GetFieldCount( USHORT nPara ) const;
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const;
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const;
- virtual Rectangle GetParaBounds( USHORT nPara ) const;
+ virtual LanguageType GetLanguage( sal_uInt16, sal_uInt16 ) const;
+ virtual sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const;
+ virtual EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const;
+ virtual EBulletInfo GetBulletInfo( sal_uInt16 nPara ) const;
+ virtual Rectangle GetCharBounds( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual Rectangle GetParaBounds( sal_uInt16 nPara ) const;
virtual MapMode GetMapMode() const;
virtual OutputDevice* GetRefDevice() const;
- virtual sal_Bool GetIndexAtPoint( const Point&, USHORT& nPara, USHORT& nIndex ) const;
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& nStart, USHORT& nEnd ) const;
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const;
- virtual USHORT GetLineCount( USHORT nPara ) const;
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const;
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const;
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
+ virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
+ virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
+ virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
+ virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
+ virtual void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
+ virtual sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool Delete( const ESelection& );
virtual sal_Bool InsertText( const String&, const ESelection& );
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE );
- virtual sal_Int16 GetDepth( USHORT nPara ) const;
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth );
+ virtual sal_Bool QuickFormatDoc( sal_Bool bFull=sal_False );
+ virtual sal_Int16 GetDepth( sal_uInt16 nPara ) const;
+ virtual sal_Bool SetDepth( sal_uInt16 nPara, sal_Int16 nNewDepth );
virtual const SfxItemSet* GetEmptyItemSetPtr();
// implementation functions for XParagraphAppend and XTextPortionAppend
// (not needed for accessibility, only for new import API)
virtual void AppendParagraph();
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet );
+ virtual xub_StrLen AppendTextPortion( sal_uInt16 nPara, const String &rText, const SfxItemSet &rSet );
//XTextCopy
virtual void CopyText(const SvxTextForwarder& rSource);
void SetForwarder( SvxTextForwarder& );
- sal_Bool HaveImageBullet( USHORT nPara ) const;
- sal_Bool HaveTextBullet( USHORT nPara ) const;
+ sal_Bool HaveImageBullet( sal_uInt16 nPara ) const;
+ sal_Bool HaveTextBullet( sal_uInt16 nPara ) const;
/** Query whether all text in given selection is editable
@@ -124,7 +124,7 @@ public:
virtual ~SvxAccessibleTextEditViewAdapter();
// SvxViewForwarder interface
- virtual BOOL IsValid() const;
+ virtual sal_Bool IsValid() const;
virtual Rectangle GetVisArea() const;
virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const;
virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const;
diff --git a/editeng/inc/editeng/unoedsrc.hxx b/editeng/inc/editeng/unoedsrc.hxx
index 3890bb009cae..8ce3016fa7c4 100644
--- a/editeng/inc/editeng/unoedsrc.hxx
+++ b/editeng/inc/editeng/unoedsrc.hxx
@@ -153,25 +153,25 @@ class EDITENG_DLLPUBLIC SvxTextForwarder
public:
virtual ~SvxTextForwarder();
- virtual USHORT GetParagraphCount() const = 0;
- virtual USHORT GetTextLen( USHORT nParagraph ) const = 0;
+ virtual sal_uInt16 GetParagraphCount() const = 0;
+ virtual sal_uInt16 GetTextLen( sal_uInt16 nParagraph ) const = 0;
virtual String GetText( const ESelection& rSel ) const = 0;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = 0 ) const = 0;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const = 0;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet ) = 0;
+ virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const = 0;
+ virtual SfxItemSet GetParaAttribs( sal_uInt16 nPara ) const = 0;
+ virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet ) = 0;
virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich ) = 0;
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const = 0;
+ virtual void GetPortions( sal_uInt16 nPara, SvUShorts& rList ) const = 0;
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const = 0;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const = 0;
+ virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const = 0;
+ virtual sal_uInt16 GetItemState( sal_uInt16 nPara, sal_uInt16 nWhich ) const = 0;
virtual void QuickInsertText( const String& rText, const ESelection& rSel ) = 0;
virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) = 0;
virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) = 0;
virtual void QuickInsertLineBreak( const ESelection& rSel ) = 0;
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor ) = 0;
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos ) = 0;
+ virtual XubString CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, sal_uInt16 nPos, Color*& rpTxtColor, Color*& rpFldColor ) = 0;
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos ) = 0;
virtual SfxItemPool* GetPool() const = 0;
@@ -179,7 +179,7 @@ public:
// implementation functions for XParagraphAppend and XTextPortionAppend
virtual void AppendParagraph() = 0;
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet ) = 0;
+ virtual xub_StrLen AppendTextPortion( sal_uInt16 nPara, const String &rText, const SfxItemSet &rSet ) = 0;
// XTextCopy
virtual void CopyText(const SvxTextForwarder& rSource) = 0;
@@ -188,7 +188,7 @@ public:
@return sal_False, if no longer valid
*/
- virtual BOOL IsValid() const = 0;
+ virtual sal_Bool IsValid() const = 0;
/** Query language of character at given position on the underlying edit engine
@@ -198,14 +198,14 @@ public:
@param nIndex[0 .. m-1]
Index of character to query language of
*/
- virtual LanguageType GetLanguage( USHORT nPara, USHORT nIndex ) const = 0;
+ virtual LanguageType GetLanguage( sal_uInt16 nPara, sal_uInt16 nIndex ) const = 0;
/** Query number of fields in the underlying edit engine
@param nPara[0 .. n-1]
Index of paragraph to query field number in
*/
- virtual USHORT GetFieldCount( USHORT nPara ) const = 0;
+ virtual sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const = 0;
/** Query information for given field number in the underlying edit engine
@@ -215,14 +215,14 @@ public:
@param nField[0 .. m-1]
Index of field to query information of
*/
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const = 0;
+ virtual EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const = 0;
/** Query information regarding bullets for given paragraph on the underlying edit engine
@param nPara[0 .. n-1]
Index of paragraph to query bullet info on
*/
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const = 0;
+ virtual EBulletInfo GetBulletInfo( sal_uInt16 nPara ) const = 0;
/** Query the bounding rectangle of the given character
@@ -245,7 +245,7 @@ public:
left corner of text. The coordinates returned here are to be
interpreted in the map mode given by GetMapMode().
*/
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const = 0;
+ virtual Rectangle GetCharBounds( sal_uInt16 nPara, sal_uInt16 nIndex ) const = 0;
/** Query the bounding rectangle of the given paragraph
@@ -256,7 +256,7 @@ public:
left corner of text. The coordinates returned here are to be
interpreted in the map mode given by GetMapMode().
*/
- virtual Rectangle GetParaBounds( USHORT nPara ) const = 0;
+ virtual Rectangle GetParaBounds( sal_uInt16 nPara ) const = 0;
/** Query the map mode of the underlying EditEngine/Outliner
@@ -293,7 +293,7 @@ public:
@return sal_True, if the point is over any text and both rPara and rIndex are valid
*/
- virtual sal_Bool GetIndexAtPoint( const Point& rPoint, USHORT& rPara, USHORT& rIndex ) const = 0;
+ virtual sal_Bool GetIndexAtPoint( const Point& rPoint, sal_uInt16& rPara, sal_uInt16& rIndex ) const = 0;
/** Get the start and the end index of the word at the given index
@@ -318,7 +318,7 @@ public:
@return sal_True, if the result is non-empty
*/
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& rStart, USHORT& rEnd ) const = 0;
+ virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& rStart, sal_uInt16& rEnd ) const = 0;
/** Query range of similar attributes
@@ -335,7 +335,7 @@ public:
@return sal_True, if the range has been successfully determined
*/
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const = 0;
+ virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const = 0;
/** Query number of lines in the formatted paragraph
@@ -345,7 +345,7 @@ public:
@return number of lines in given paragraph
*/
- virtual USHORT GetLineCount( USHORT nPara ) const = 0;
+ virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const = 0;
/** Query line length
@@ -356,7 +356,7 @@ public:
Index of line in paragraph to query line length of
*/
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const = 0;
+ virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const = 0;
/** Query bounds of line in paragraph
@@ -373,7 +373,7 @@ public:
Index of line in paragraph to query line length of
*/
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const = 0;
+ virtual void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const = 0;
/** Query the line number for a index in the paragraphs text
@@ -386,7 +386,7 @@ public:
@returns [0 .. k-1]
The line number of the chara in the paragraph
*/
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const = 0;
+ virtual sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const = 0;
/** Delete given text range and reformat text
@@ -415,7 +415,7 @@ public:
@return sal_True if text have been successfully reformatted
*/
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE ) = 0;
+ virtual sal_Bool QuickFormatDoc( sal_Bool bFull=sal_False ) = 0;
/** Get the outline depth of given paragraph
@@ -425,7 +425,7 @@ public:
@return the outline level of the given paragraph. The range is
[0,n), where n is the maximal outline level.
*/
- virtual sal_Int16 GetDepth( USHORT nPara ) const = 0;
+ virtual sal_Int16 GetDepth( sal_uInt16 nPara ) const = 0;
/** Set the outline depth of given paragraph
@@ -436,11 +436,11 @@ public:
The depth to set on the given paragraph. The range is
[0,n), where n is the maximal outline level.
- @return TRUE, if depth could be successfully set. Reasons for
+ @return sal_True, if depth could be successfully set. Reasons for
failure are e.g. the text does not support outline level
(EditEngine), or the depth range is exceeded.
*/
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth ) = 0;
+ virtual sal_Bool SetDepth( sal_uInt16 nPara, sal_Int16 nNewDepth ) = 0;
virtual sal_Int16 GetNumberingStartValue( sal_uInt16 nPara );
virtual void SetNumberingStartValue( sal_uInt16 nPara, sal_Int16 nNumberingStartValue );
@@ -464,7 +464,7 @@ public:
@return sal_False, if no longer valid
*/
- virtual BOOL IsValid() const = 0;
+ virtual sal_Bool IsValid() const = 0;
/** Query visible area of the view containing the text
diff --git a/editeng/inc/editeng/unofored.hxx b/editeng/inc/editeng/unofored.hxx
index 1c201043511d..f13f9c4f8a2c 100644
--- a/editeng/inc/editeng/unofored.hxx
+++ b/editeng/inc/editeng/unofored.hxx
@@ -43,17 +43,17 @@ public:
SvxEditEngineForwarder( EditEngine& rEngine );
virtual ~SvxEditEngineForwarder();
- virtual USHORT GetParagraphCount() const;
- virtual USHORT GetTextLen( USHORT nParagraph ) const;
+ virtual sal_uInt16 GetParagraphCount() const;
+ virtual sal_uInt16 GetTextLen( sal_uInt16 nParagraph ) const;
virtual String GetText( const ESelection& rSel ) const;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = EditEngineAttribs_All ) const;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
+ virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = EditEngineAttribs_All ) const;
+ virtual SfxItemSet GetParaAttribs( sal_uInt16 nPara ) const;
+ virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet );
virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const;
+ virtual void GetPortions( sal_uInt16 nPara, SvUShorts& rList ) const;
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const;
+ virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
+ virtual sal_uInt16 GetItemState( sal_uInt16 nPara, sal_uInt16 nWhich ) const;
virtual void QuickInsertText( const String& rText, const ESelection& rSel );
virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
@@ -62,36 +62,36 @@ public:
virtual SfxItemPool* GetPool() const;
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor );
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
- virtual BOOL IsValid() const;
+ virtual XubString CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, sal_uInt16 nPos, Color*& rpTxtColor, Color*& rpFldColor );
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
+ virtual sal_Bool IsValid() const;
- virtual LanguageType GetLanguage( USHORT, USHORT ) const;
- virtual USHORT GetFieldCount( USHORT nPara ) const;
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const;
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const;
- virtual Rectangle GetParaBounds( USHORT nPara ) const;
+ virtual LanguageType GetLanguage( sal_uInt16, sal_uInt16 ) const;
+ virtual sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const;
+ virtual EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const;
+ virtual EBulletInfo GetBulletInfo( sal_uInt16 nPara ) const;
+ virtual Rectangle GetCharBounds( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual Rectangle GetParaBounds( sal_uInt16 nPara ) const;
virtual MapMode GetMapMode() const;
virtual OutputDevice* GetRefDevice() const;
- virtual sal_Bool GetIndexAtPoint( const Point&, USHORT& nPara, USHORT& nIndex ) const;
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& nStart, USHORT& nEnd ) const;
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const;
- virtual USHORT GetLineCount( USHORT nPara ) const;
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const;
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const;
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
+ virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
+ virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
+ virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
+ virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
+ virtual void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
+ virtual sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool Delete( const ESelection& );
virtual sal_Bool InsertText( const String&, const ESelection& );
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE );
- virtual sal_Int16 GetDepth( USHORT nPara ) const;
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth );
+ virtual sal_Bool QuickFormatDoc( sal_Bool bFull=sal_False );
+ virtual sal_Int16 GetDepth( sal_uInt16 nPara ) const;
+ virtual sal_Bool SetDepth( sal_uInt16 nPara, sal_Int16 nNewDepth );
virtual const SfxItemSet* GetEmptyItemSetPtr();
// implementation functions for XParagraphAppend and XTextPortionAppend
virtual void AppendParagraph();
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet );
+ virtual xub_StrLen AppendTextPortion( sal_uInt16 nPara, const String &rText, const SfxItemSet &rSet );
//XTextCopy
virtual void CopyText(const SvxTextForwarder& rSource);
};
diff --git a/editeng/inc/editeng/unoforou.hxx b/editeng/inc/editeng/unoforou.hxx
index 10aeb5805d11..63e48e7ac189 100644
--- a/editeng/inc/editeng/unoforou.hxx
+++ b/editeng/inc/editeng/unoforou.hxx
@@ -41,7 +41,7 @@ class EDITENG_DLLPUBLIC SvxOutlinerForwarder : public SvxTextForwarder
{
private:
Outliner& rOutliner;
- BOOL bOutlinerText;
+ sal_Bool bOutlinerText;
/** this pointer may be null or point to an item set for the attribs of
the selection maAttribsSelection */
@@ -55,23 +55,23 @@ private:
mutable SfxItemSet* mpParaAttribsCache;
/** if we have a cached para attribute item set, this is the paragraph of it */
- mutable USHORT mnParaAttribsCache;
+ mutable sal_uInt16 mnParaAttribsCache;
public:
- SvxOutlinerForwarder( Outliner& rOutl, BOOL bOutlText = FALSE );
+ SvxOutlinerForwarder( Outliner& rOutl, sal_Bool bOutlText = sal_False );
virtual ~SvxOutlinerForwarder();
- virtual USHORT GetParagraphCount() const;
- virtual USHORT GetTextLen( USHORT nParagraph ) const;
+ virtual sal_uInt16 GetParagraphCount() const;
+ virtual sal_uInt16 GetTextLen( sal_uInt16 nParagraph ) const;
virtual String GetText( const ESelection& rSel ) const;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = 0 ) const;
- virtual SfxItemSet GetParaAttribs( USHORT nPara ) const;
- virtual void SetParaAttribs( USHORT nPara, const SfxItemSet& rSet );
+ virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const;
+ virtual SfxItemSet GetParaAttribs( sal_uInt16 nPara ) const;
+ virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet );
virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
- virtual void GetPortions( USHORT nPara, SvUShorts& rList ) const;
+ virtual void GetPortions( sal_uInt16 nPara, SvUShorts& rList ) const;
- virtual USHORT GetItemState( const ESelection& rSel, USHORT nWhich ) const;
- virtual USHORT GetItemState( USHORT nPara, USHORT nWhich ) const;
+ virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
+ virtual sal_uInt16 GetItemState( sal_uInt16 nPara, sal_uInt16 nWhich ) const;
virtual void QuickInsertText( const String& rText, const ESelection& rSel );
virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
@@ -80,33 +80,33 @@ public:
virtual SfxItemPool* GetPool() const;
- virtual XubString CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor );
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
+ virtual XubString CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, sal_uInt16 nPos, Color*& rpTxtColor, Color*& rpFldColor );
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
- virtual BOOL IsValid() const;
+ virtual sal_Bool IsValid() const;
Outliner& GetOutliner() const { return rOutliner; }
- virtual LanguageType GetLanguage( USHORT, USHORT ) const;
- virtual USHORT GetFieldCount( USHORT nPara ) const;
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const;
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const;
- virtual Rectangle GetParaBounds( USHORT nPara ) const;
+ virtual LanguageType GetLanguage( sal_uInt16, sal_uInt16 ) const;
+ virtual sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const;
+ virtual EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const;
+ virtual EBulletInfo GetBulletInfo( sal_uInt16 nPara ) const;
+ virtual Rectangle GetCharBounds( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual Rectangle GetParaBounds( sal_uInt16 nPara ) const;
virtual MapMode GetMapMode() const;
virtual OutputDevice* GetRefDevice() const;
- virtual sal_Bool GetIndexAtPoint( const Point&, USHORT& nPara, USHORT& nIndex ) const;
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& nStart, USHORT& nEnd ) const;
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const;
- virtual USHORT GetLineCount( USHORT nPara ) const;
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const;
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nPara, USHORT nLine ) const;
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
+ virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
+ virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
+ virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
+ virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
+ virtual void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nPara, sal_uInt16 nLine ) const;
+ virtual sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool Delete( const ESelection& );
virtual sal_Bool InsertText( const String&, const ESelection& );
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE );
- virtual sal_Int16 GetDepth( USHORT nPara ) const;
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth );
+ virtual sal_Bool QuickFormatDoc( sal_Bool bFull=sal_False );
+ virtual sal_Int16 GetDepth( sal_uInt16 nPara ) const;
+ virtual sal_Bool SetDepth( sal_uInt16 nPara, sal_Int16 nNewDepth );
virtual sal_Int16 GetNumberingStartValue( sal_uInt16 nPara );
virtual void SetNumberingStartValue( sal_uInt16 nPara, sal_Int16 nNumberingStartValue );
@@ -120,7 +120,7 @@ public:
// implementation functions for XParagraphAppend and XTextPortionAppend
virtual void AppendParagraph();
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet );
+ virtual xub_StrLen AppendTextPortion( sal_uInt16 nPara, const String &rText, const SfxItemSet &rSet );
//XTextCopy
virtual void CopyText(const SvxTextForwarder& rSource);
};
diff --git a/editeng/inc/editeng/unolingu.hxx b/editeng/inc/editeng/unolingu.hxx
index 7ca3a2be0fce..c787bf368b8f 100644
--- a/editeng/inc/editeng/unolingu.hxx
+++ b/editeng/inc/editeng/unolingu.hxx
@@ -55,17 +55,17 @@ class Window;
class SvxLinguConfigUpdate
{
- static INT32 nCurrentDataFilesChangedCheckValue;
- static INT16 nNeedUpdating; // n == -1 => needs to be checked
+ static sal_Int32 nCurrentDataFilesChangedCheckValue;
+ static sal_Int16 nNeedUpdating; // n == -1 => needs to be checked
// n == 0 => already updated, nothing to be done
// n == 1 => needs to be updated
- static INT32 CalcDataFilesChangedCheckValue();
+ static sal_Int32 CalcDataFilesChangedCheckValue();
public:
EDITENG_DLLPUBLIC static void UpdateAll( sal_Bool bForceCheck = sal_False );
- static BOOL IsNeedUpdateAll( sal_Bool bForceCheck = sal_False );
+ static sal_Bool IsNeedUpdateAll( sal_Bool bForceCheck = sal_False );
};
///////////////////////////////////////////////////////////////////////////
@@ -157,15 +157,15 @@ struct SvxAlternativeSpelling
String aReplacement;
::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XHyphenatedWord > xHyphWord;
- INT16 nChangedPos,
+ sal_Int16 nChangedPos,
nChangedLength;
- BOOL bIsAltSpelling;
+ sal_Bool bIsAltSpelling;
inline SvxAlternativeSpelling();
};
inline SvxAlternativeSpelling::SvxAlternativeSpelling() :
- nChangedPos(-1), nChangedLength(-1), bIsAltSpelling(FALSE)
+ nChangedPos(-1), nChangedLength(-1), bIsAltSpelling(sal_False)
{
}
diff --git a/editeng/inc/editeng/unotext.hxx b/editeng/inc/editeng/unotext.hxx
index 732c2f4d17dc..3ba7e12b492d 100644
--- a/editeng/inc/editeng/unotext.hxx
+++ b/editeng/inc/editeng/unotext.hxx
@@ -190,7 +190,7 @@ public:
virtual sal_uInt16 GetParagraphCount() const;
virtual sal_uInt16 GetTextLen( sal_uInt16 nParagraph ) const;
virtual String GetText( const ESelection& rSel ) const;
- virtual SfxItemSet GetAttribs( const ESelection& rSel, BOOL bOnlyHardAttrib = 0 ) const;
+ virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const;
virtual SfxItemSet GetParaAttribs( sal_uInt16 nPara ) const;
virtual void SetParaAttribs( sal_uInt16 nPara, const SfxItemSet& rSet );
virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
@@ -207,37 +207,37 @@ public:
virtual void QuickInsertLineBreak( const ESelection& rSel );
virtual XubString CalcFieldValue( const SvxFieldItem& rField, sal_uInt16 nPara, sal_uInt16 nPos, Color*& rpTxtColor, Color*& rpFldColor );
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT nPara, xub_StrLen nPos );
+ virtual void FieldClicked( const SvxFieldItem& rField, sal_uInt16 nPara, xub_StrLen nPos );
virtual sal_Bool IsValid() const;
virtual void SetNotifyHdl( const Link& );
- virtual LanguageType GetLanguage( USHORT, USHORT ) const;
- virtual USHORT GetFieldCount( USHORT nPara ) const;
- virtual EFieldInfo GetFieldInfo( USHORT nPara, USHORT nField ) const;
- virtual EBulletInfo GetBulletInfo( USHORT nPara ) const;
- virtual Rectangle GetCharBounds( USHORT nPara, USHORT nIndex ) const;
- virtual Rectangle GetParaBounds( USHORT nPara ) const;
+ virtual LanguageType GetLanguage( sal_uInt16, sal_uInt16 ) const;
+ virtual sal_uInt16 GetFieldCount( sal_uInt16 nPara ) const;
+ virtual EFieldInfo GetFieldInfo( sal_uInt16 nPara, sal_uInt16 nField ) const;
+ virtual EBulletInfo GetBulletInfo( sal_uInt16 nPara ) const;
+ virtual Rectangle GetCharBounds( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual Rectangle GetParaBounds( sal_uInt16 nPara ) const;
virtual MapMode GetMapMode() const;
virtual OutputDevice* GetRefDevice() const;
- virtual sal_Bool GetIndexAtPoint( const Point&, USHORT& nPara, USHORT& nIndex ) const;
- virtual sal_Bool GetWordIndices( USHORT nPara, USHORT nIndex, USHORT& nStart, USHORT& nEnd ) const;
- virtual sal_Bool GetAttributeRun( USHORT& nStartIndex, USHORT& nEndIndex, USHORT nPara, USHORT nIndex ) const;
- virtual USHORT GetLineCount( USHORT nPara ) const;
- virtual USHORT GetLineLen( USHORT nPara, USHORT nLine ) const;
- virtual void GetLineBoundaries( /*out*/USHORT &rStart, /*out*/USHORT &rEnd, USHORT nParagraph, USHORT nLine ) const;
- virtual USHORT GetLineNumberAtIndex( USHORT nPara, USHORT nIndex ) const;
+ virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
+ virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
+ virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
+ virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
+ virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
+ virtual void GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
+ virtual sal_uInt16 GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool Delete( const ESelection& );
virtual sal_Bool InsertText( const String&, const ESelection& );
- virtual sal_Bool QuickFormatDoc( BOOL bFull=FALSE );
- virtual sal_Int16 GetDepth( USHORT nPara ) const;
- virtual sal_Bool SetDepth( USHORT nPara, sal_Int16 nNewDepth );
+ virtual sal_Bool QuickFormatDoc( sal_Bool bFull=sal_False );
+ virtual sal_Int16 GetDepth( sal_uInt16 nPara ) const;
+ virtual sal_Bool SetDepth( sal_uInt16 nPara, sal_Int16 nNewDepth );
virtual const SfxItemSet* GetEmptyItemSetPtr();
// implementation functions for XParagraphAppend and XTextPortionAppend
virtual void AppendParagraph();
- virtual xub_StrLen AppendTextPortion( USHORT nPara, const String &rText, const SfxItemSet &rSet );
+ virtual xub_StrLen AppendTextPortion( sal_uInt16 nPara, const String &rText, const SfxItemSet &rSet );
//XTextCopy
virtual void CopyText(const SvxTextForwarder& rSource);
};
diff --git a/editeng/inc/editeng/unoviwed.hxx b/editeng/inc/editeng/unoviwed.hxx
index 8fb1638e9206..0acdc6e769f4 100644
--- a/editeng/inc/editeng/unoviwed.hxx
+++ b/editeng/inc/editeng/unoviwed.hxx
@@ -44,7 +44,7 @@ public:
SvxEditEngineViewForwarder( EditView& rView );
virtual ~SvxEditEngineViewForwarder();
- virtual BOOL IsValid() const;
+ virtual sal_Bool IsValid() const;
virtual Rectangle GetVisArea() const;
virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const;
diff --git a/editeng/inc/editeng/unoviwou.hxx b/editeng/inc/editeng/unoviwou.hxx
index b20c668eb7ee..8821e812ebdc 100644
--- a/editeng/inc/editeng/unoviwou.hxx
+++ b/editeng/inc/editeng/unoviwou.hxx
@@ -47,7 +47,7 @@ public:
SvxDrawOutlinerViewForwarder( OutlinerView& rOutl, const Point& rShapePosTopLeft );
virtual ~SvxDrawOutlinerViewForwarder();
- virtual BOOL IsValid() const;
+ virtual sal_Bool IsValid() const;
virtual Rectangle GetVisArea() const;
virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const;
diff --git a/editeng/inc/editeng/wghtitem.hxx b/editeng/inc/editeng/wghtitem.hxx
index 76838f67bbd4..063c98d77059 100644
--- a/editeng/inc/editeng/wghtitem.hxx
+++ b/editeng/inc/editeng/wghtitem.hxx
@@ -52,7 +52,7 @@ public:
TYPEINFO();
SvxWeightItem( const FontWeight eWght /*= WEIGHT_NORMAL*/,
- const USHORT nId );
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem + SfxEnumItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -61,17 +61,17 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual String GetValueTextByPos( USHORT nPos ) const;
- virtual USHORT GetValueCount() const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
+ virtual String GetValueTextByPos( sal_uInt16 nPos ) const;
+ virtual sal_uInt16 GetValueCount() const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual int HasBoolValue() const;
- virtual BOOL GetBoolValue() const;
- virtual void SetBoolValue( BOOL bVal );
+ virtual sal_Bool GetBoolValue() const;
+ virtual void SetBoolValue( sal_Bool bVal );
inline SvxWeightItem& operator=(const SvxWeightItem& rWeight) {
SetValue( rWeight.GetValue() );
@@ -82,7 +82,7 @@ public:
FontWeight GetWeight() const
{ return (FontWeight)GetValue(); }
void SetWeight( FontWeight eNew )
- { SetValue( (USHORT)eNew ); }
+ { SetValue( (sal_uInt16)eNew ); }
};
#endif // #ifndef _SVX_WGHTITEM_HXX
diff --git a/editeng/inc/editeng/widwitem.hxx b/editeng/inc/editeng/widwitem.hxx
index cf0c8c9d05c7..10cfbb9e6932 100644
--- a/editeng/inc/editeng/widwitem.hxx
+++ b/editeng/inc/editeng/widwitem.hxx
@@ -51,12 +51,12 @@ class EDITENG_DLLPUBLIC SvxWidowsItem: public SfxByteItem
public:
TYPEINFO();
- SvxWidowsItem( const BYTE nL /*= 0*/, const USHORT nId );
+ SvxWidowsItem( const sal_uInt8 nL /*= 0*/, const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream &, USHORT ) const;
- virtual SvStream& Store( SvStream & , USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream &, sal_uInt16 ) const;
+ virtual SvStream& Store( SvStream & , sal_uInt16 nItemVersion ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/writingmodeitem.hxx b/editeng/inc/editeng/writingmodeitem.hxx
index 8a81f5291d27..5caf33302f13 100644
--- a/editeng/inc/editeng/writingmodeitem.hxx
+++ b/editeng/inc/editeng/writingmodeitem.hxx
@@ -41,15 +41,15 @@ public:
TYPEINFO();
SvxWritingModeItem( ::com::sun::star::text::WritingMode eValue /*= com::sun::star::text::WritingMode_LR_TB*/,
- USHORT nWhich /*= SDRATTR_TEXTDIRECTION*/ );
+ sal_uInt16 nWhich /*= SDRATTR_TEXTDIRECTION*/ );
virtual ~SvxWritingModeItem();
SvxWritingModeItem& operator=( const SvxWritingModeItem& rItem );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream & rStrm, USHORT nIVer) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const;
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
@@ -59,9 +59,9 @@ public:
const IntlWrapper * = 0 ) const;
virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal,
- BYTE nMemberId );
+ sal_uInt8 nMemberId );
virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal,
- BYTE nMemberId ) const;
+ sal_uInt8 nMemberId ) const;
};
#endif // #ifndef _SVX_WRITINGMODEITEM_HXX
diff --git a/editeng/inc/editeng/wrlmitem.hxx b/editeng/inc/editeng/wrlmitem.hxx
index 322d3d87cbc0..e4eeeb59127e 100644
--- a/editeng/inc/editeng/wrlmitem.hxx
+++ b/editeng/inc/editeng/wrlmitem.hxx
@@ -51,13 +51,13 @@ class EDITENG_DLLPUBLIC SvxWordLineModeItem : public SfxBoolItem
public:
TYPEINFO();
- SvxWordLineModeItem( const BOOL bWordLineMode /*= FALSE*/,
- const USHORT nId );
+ SvxWordLineModeItem( const sal_Bool bWordLineMode /*= sal_False*/,
+ const sal_uInt16 nId );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
+ virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/editeng/inc/editeng/xmlcnitm.hxx b/editeng/inc/editeng/xmlcnitm.hxx
index 70c49d03c143..7c15d6aa24b6 100644
--- a/editeng/inc/editeng/xmlcnitm.hxx
+++ b/editeng/inc/editeng/xmlcnitm.hxx
@@ -62,8 +62,8 @@ public:
virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const;
- virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
virtual SfxPoolItem *Clone( SfxItemPool * = 0) const
{ return new SvXMLAttrContainerItem( *this ); }