summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/tbcontrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx314
1 files changed, 157 insertions, 157 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index bd0a39200dd1..5a4362592738 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -103,11 +103,11 @@
#define DELETEZ(p) (delete (p), (p)=NULL)
#endif
// don't make more than 15 entries visible at once
-#define MAX_STYLES_ENTRIES static_cast< USHORT >( 15 )
+#define MAX_STYLES_ENTRIES static_cast< sal_uInt16 >( 15 )
void lcl_ResizeValueSet( Window &rWin, ValueSet &rValueSet );
void lcl_CalcSizeValueSet( Window &rWin, ValueSet &rValueSet, const Size &aItemSize );
-BOOL lcl_FontChangedHint( const SfxHint &rHint );
+sal_Bool lcl_FontChangedHint( const SfxHint &rHint );
// namespaces
using ::rtl::OUString;
@@ -138,12 +138,12 @@ class SvxStyleBox_Impl : public ComboBox
{
using Window::IsVisible;
public:
- SvxStyleBox_Impl( Window* pParent, USHORT nSlot, const OUString& rCommand, SfxStyleFamily eFamily, const Reference< XDispatchProvider >& rDispatchProvider,
- const Reference< XFrame >& _xFrame,const String& rClearFormatKey, const String& rMoreKey, BOOL bInSpecialMode );
+ SvxStyleBox_Impl( Window* pParent, sal_uInt16 nSlot, const OUString& rCommand, SfxStyleFamily eFamily, const Reference< XDispatchProvider >& rDispatchProvider,
+ const Reference< XFrame >& _xFrame,const String& rClearFormatKey, const String& rMoreKey, sal_Bool bInSpecialMode );
~SvxStyleBox_Impl();
void SetFamily( SfxStyleFamily eNewFamily );
- inline BOOL IsVisible() { return bVisible; }
+ inline sal_Bool IsVisible() { return bVisible; }
virtual long PreNotify( NotifyEvent& rNEvt );
virtual long Notify( NotifyEvent& rNEvt );
@@ -160,20 +160,20 @@ protected:
virtual void Select();
private:
- USHORT nSlotId;
+ sal_uInt16 nSlotId;
SfxStyleFamily eStyleFamily;
- USHORT nCurSel;
- BOOL bRelease;
+ sal_uInt16 nCurSel;
+ sal_Bool bRelease;
Size aLogicalSize;
Link aVisibilityListener;
- BOOL bVisible;
+ sal_Bool bVisible;
Reference< XDispatchProvider > m_xDispatchProvider;
Reference< XFrame > m_xFrame;
OUString m_aCommand;
String aClearFormatKey;
String aMoreKey;
String sDefaultStyle;
- BOOL bInSpecialMode;
+ sal_Bool bInSpecialMode;
void ReleaseFocus();
};
@@ -191,8 +191,8 @@ private:
Font aCurFont;
Size aLogicalSize;
String aCurText;
- USHORT nFtCount;
- BOOL bRelease;
+ sal_uInt16 nFtCount;
+ sal_Bool bRelease;
Reference< XDispatchProvider > m_xDispatchProvider;
Reference< XFrame > m_xFrame;
@@ -210,7 +210,7 @@ public:
void FillList();
void Update( const SvxFontItem* pFontItem );
- USHORT GetListCount() { return nFtCount; }
+ sal_uInt16 GetListCount() { return nFtCount; }
void Clear() { FontNameBox::Clear(); nFtCount = 0; }
void Fill( const FontList* pList )
{ FontNameBox::Fill( pList );
@@ -230,12 +230,12 @@ public:
class SvxFrmValueSet_Impl : public ValueSet
{
- USHORT nModifier;
+ sal_uInt16 nModifier;
virtual void MouseButtonUp( const MouseEvent& rMEvt );
public:
SvxFrmValueSet_Impl(Window* pParent, WinBits nWinStyle)
: ValueSet(pParent, nWinStyle), nModifier(0) {}
- USHORT GetModifier() const {return nModifier;}
+ sal_uInt16 GetModifier() const {return nModifier;}
};
@@ -260,24 +260,24 @@ private:
protected:
virtual void Resize();
- virtual BOOL Close();
+ virtual sal_Bool Close();
virtual Window* GetPreferredKeyInputWindow();
virtual void GetFocus();
public:
- SvxFrameWindow_Impl( USHORT nId, const Reference< XFrame >& rFrame, Window* pParentWindow );
+ SvxFrameWindow_Impl( sal_uInt16 nId, const Reference< XFrame >& rFrame, Window* pParentWindow );
~SvxFrameWindow_Impl();
void StartSelection();
- virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState );
virtual SfxPopupWindow* Clone() const;
virtual void DataChanged( const DataChangedEvent& rDCEvt );
- inline BOOL IsHighContrast( void ) const;
+ inline sal_Bool IsHighContrast( void ) const;
};
-inline BOOL SvxFrameWindow_Impl::IsHighContrast( void ) const
+inline sal_Bool SvxFrameWindow_Impl::IsHighContrast( void ) const
{
return GetSettings().GetStyleSettings().GetHighContrastMode();
}
@@ -292,20 +292,20 @@ private:
bool m_bIsWriter;
#if _SOLAR__PRIVATE
- void MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& rSize, String& rStr,
+ void MakeLineBitmap( sal_uInt16 nNo, Bitmap& rBmp, const Size& rSize, String& rStr,
const ::Color& rLine, const ::Color& rBack );
DECL_LINK( SelectHdl, void * );
#endif
protected:
virtual void Resize();
- virtual BOOL Close();
+ virtual sal_Bool Close();
virtual Window* GetPreferredKeyInputWindow();
virtual void GetFocus();
virtual void DataChanged( const DataChangedEvent& rDCEvt );
void CreateBitmaps( void );
public:
- SvxLineWindow_Impl( USHORT nId, const Reference< XFrame >& rFrame, Window* pParentWindow );
+ SvxLineWindow_Impl( sal_uInt16 nId, const Reference< XFrame >& rFrame, Window* pParentWindow );
void StartSelection();
virtual SfxPopupWindow* Clone() const;
@@ -322,12 +322,12 @@ class SfxStyleControllerItem_Impl : public SfxStatusListener
{
public:
SfxStyleControllerItem_Impl( const Reference< XDispatchProvider >& rDispatchProvider,
- USHORT nSlotId,
+ sal_uInt16 nSlotId,
const rtl::OUString& rCommand,
SvxStyleToolBoxControl& rTbxCtl );
protected:
- virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
private:
SvxStyleToolBoxControl& rControl;
@@ -339,21 +339,21 @@ class SfxStyleControllerItem_Impl : public SfxStatusListener
SvxStyleBox_Impl::SvxStyleBox_Impl(
Window* pParent,
- USHORT nSlot,
+ sal_uInt16 nSlot,
const rtl::OUString& rCommand,
SfxStyleFamily eFamily,
const Reference< XDispatchProvider >& rDispatchProvider,
const Reference< XFrame >& _xFrame,
const String& rClearFormatKey,
const String& rMoreKey,
- BOOL bInSpec) :
+ sal_Bool bInSpec) :
ComboBox( pParent, SVX_RES( RID_SVXTBX_STYLE ) ),
nSlotId ( nSlot ),
eStyleFamily( eFamily ),
- bRelease ( TRUE ),
- bVisible(FALSE),
+ bRelease ( sal_True ),
+ bVisible(sal_False),
m_xDispatchProvider( rDispatchProvider ),
m_xFrame(_xFrame),
m_aCommand ( rCommand ),
@@ -362,7 +362,7 @@ SvxStyleBox_Impl::SvxStyleBox_Impl(
bInSpecialMode ( bInSpec )
{
aLogicalSize = PixelToLogic( GetSizePixel(), MAP_APPFONT );
- EnableAutocomplete( TRUE );
+ EnableAutocomplete( sal_True );
}
SvxStyleBox_Impl::~SvxStyleBox_Impl()
@@ -375,7 +375,7 @@ void SvxStyleBox_Impl::ReleaseFocus()
{
if ( !bRelease )
{
- bRelease = TRUE;
+ bRelease = sal_True;
return;
}
if ( m_xFrame.is() && m_xFrame->getContainerWindow().is() )
@@ -463,7 +463,7 @@ void SvxStyleBox_Impl::SetFamily( SfxStyleFamily eNewFamily )
long SvxStyleBox_Impl::PreNotify( NotifyEvent& rNEvt )
{
- USHORT nType = rNEvt.GetType();
+ sal_uInt16 nType = rNEvt.GetType();
if ( EVENT_MOUSEBUTTONDOWN == nType || EVENT_GETFOCUS == nType )
nCurSel = GetSelectEntryPos();
@@ -484,7 +484,7 @@ long SvxStyleBox_Impl::Notify( NotifyEvent& rNEvt )
if ( rNEvt.GetType() == EVENT_KEYINPUT )
{
- USHORT nCode = rNEvt.GetKeyEvent()->GetKeyCode().GetCode();
+ sal_uInt16 nCode = rNEvt.GetKeyEvent()->GetKeyCode().GetCode();
switch ( nCode )
{
@@ -492,7 +492,7 @@ long SvxStyleBox_Impl::Notify( NotifyEvent& rNEvt )
case KEY_TAB:
{
if ( KEY_TAB == nCode )
- bRelease = FALSE;
+ bRelease = sal_False;
else
nHandled = 1;
Select();
@@ -536,7 +536,7 @@ void SvxStyleBox_Impl::StateChanged( StateChangedType nStateChange )
}
else if ( nStateChange == STATE_CHANGE_INITSHOW )
{
- bVisible = TRUE;
+ bVisible = sal_True;
if ( aVisibilityListener.IsSet() )
aVisibilityListener.Call( this );
}
@@ -554,9 +554,9 @@ IMPL_STATIC_LINK( SvxStyleBox_Impl, FocusHdl_Impl, Control*, _pCtrl )
// -----------------------------------------------------------------------
-BOOL GetDocFontList_Impl( const FontList** ppFontList, SvxFontNameBox_Impl* pBox )
+sal_Bool GetDocFontList_Impl( const FontList** ppFontList, SvxFontNameBox_Impl* pBox )
{
- BOOL bChanged = FALSE;
+ sal_Bool bChanged = sal_False;
const SfxObjectShell* pDocSh = SfxObjectShell::Current();
SvxFontListItem* pFontListItem = NULL;
@@ -568,7 +568,7 @@ BOOL GetDocFontList_Impl( const FontList** ppFontList, SvxFontNameBox_Impl* pBox
::std::auto_ptr<FontList> aFontList(new FontList( pBox ));
*ppFontList = aFontList.get();
pBox->SetOwnFontList(aFontList);
- bChanged = TRUE;
+ bChanged = sal_True;
}
if ( pFontListItem )
@@ -581,7 +581,7 @@ BOOL GetDocFontList_Impl( const FontList** ppFontList, SvxFontNameBox_Impl* pBox
{
// => "ubernehmen
*ppFontList = pNewFontList;
- bChanged = TRUE;
+ bChanged = sal_True;
}
else
{
@@ -634,7 +634,7 @@ SvxFontNameBox_Impl::SvxFontNameBox_Impl( Window* pParent, const Reference< XDis
pFontList ( NULL ),
aLogicalSize ( 75,160 ),
nFtCount ( 0 ),
- bRelease ( TRUE ),
+ bRelease ( sal_True ),
m_xDispatchProvider( rDispatchProvider ),
m_xFrame (_xFrame)
{
@@ -674,7 +674,7 @@ void SvxFontNameBox_Impl::Update( const SvxFontItem* pFontItem )
long SvxFontNameBox_Impl::PreNotify( NotifyEvent& rNEvt )
{
- USHORT nType = rNEvt.GetType();
+ sal_uInt16 nType = rNEvt.GetType();
if ( EVENT_MOUSEBUTTONDOWN == nType || EVENT_GETFOCUS == nType )
{
@@ -692,7 +692,7 @@ long SvxFontNameBox_Impl::Notify( NotifyEvent& rNEvt )
if ( rNEvt.GetType() == EVENT_KEYINPUT )
{
- USHORT nCode = rNEvt.GetKeyEvent()->GetKeyCode().GetCode();
+ sal_uInt16 nCode = rNEvt.GetKeyEvent()->GetKeyCode().GetCode();
switch ( nCode )
{
@@ -700,7 +700,7 @@ long SvxFontNameBox_Impl::Notify( NotifyEvent& rNEvt )
case KEY_TAB:
{
if ( KEY_TAB == nCode )
- bRelease = FALSE;
+ bRelease = sal_False;
else
nHandled = 1;
Select();
@@ -743,7 +743,7 @@ void SvxFontNameBox_Impl::ReleaseFocus_Impl()
{
if ( !bRelease )
{
- bRelease = TRUE;
+ bRelease = sal_True;
return;
}
if ( m_xFrame.is() && m_xFrame->getContainerWindow().is() )
@@ -755,8 +755,8 @@ void SvxFontNameBox_Impl::ReleaseFocus_Impl()
void SvxFontNameBox_Impl::EnableControls_Impl()
{
SvtFontOptions aFontOpt;
- BOOL bEnable = aFontOpt.IsFontHistoryEnabled();
- USHORT nEntries = bEnable ? MAX_MRU_FONTNAME_ENTRIES : 0;
+ sal_Bool bEnable = aFontOpt.IsFontHistoryEnabled();
+ sal_uInt16 nEntries = bEnable ? MAX_MRU_FONTNAME_ENTRIES : 0;
if ( GetMaxMRUCount() != nEntries )
{
// refill in the next GetFocus-Handler
@@ -824,7 +824,7 @@ void SvxFontNameBox_Impl::Select()
#define PALETTE_SIZE (PALETTE_X * PALETTE_Y)
SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
- USHORT nSlotId,
+ sal_uInt16 nSlotId,
const Reference< XFrame >& rFrame,
const String& rWndTitle,
Window* pParentWindow ) :
@@ -839,7 +839,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
SfxObjectShell* pDocSh = SfxObjectShell::Current();
const SfxPoolItem* pItem = NULL;
XColorTable* pColorTable = NULL;
- BOOL bKillTable = FALSE;
+ sal_Bool bKillTable = sal_False;
const Size aSize12( 13, 13 );
if ( pDocSh )
@@ -849,7 +849,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
if ( !pColorTable )
{
pColorTable = new XColorTable( SvtPathOptions().GetPalettePath() );
- bKillTable = TRUE;
+ bKillTable = sal_True;
}
if ( SID_ATTR_CHAR_COLOR_BACKGROUND == theSlotId || SID_BACKGROUND_COLOR == theSlotId )
@@ -934,7 +934,7 @@ SfxPopupWindow* SvxColorWindow_Impl::Clone() const
IMPL_LINK( SvxColorWindow_Impl, SelectHdl, void *, EMPTYARG )
{
- USHORT nItemId = aColorSet.GetSelectItemId();
+ sal_uInt16 nItemId = aColorSet.GetSelectItemId();
SvxColorItem aColorItem( aColorSet.GetItemColor( nItemId ), theSlotId );
/* #i33380# DR 2004-09-03 Moved the following line above the Dispatch() calls.
@@ -999,14 +999,14 @@ void SvxColorWindow_Impl::StartSelection()
// -----------------------------------------------------------------------
-BOOL SvxColorWindow_Impl::Close()
+sal_Bool SvxColorWindow_Impl::Close()
{
return SfxPopupWindow::Close();
}
// -----------------------------------------------------------------------
-void SvxColorWindow_Impl::StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState )
+void SvxColorWindow_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
{
if (( SFX_ITEM_DISABLED != eState ) && pState )
{
@@ -1053,7 +1053,7 @@ void SvxColorWindow_Impl::StateChanged( USHORT nSID, SfxItemState eState, const
// class SvxFrameWindow_Impl --------------------------------------------------
//========================================================================
-SvxFrameWindow_Impl::SvxFrameWindow_Impl( USHORT nId, const Reference< XFrame >& rFrame, Window* pParentWindow ) :
+SvxFrameWindow_Impl::SvxFrameWindow_Impl( sal_uInt16 nId, const Reference< XFrame >& rFrame, Window* pParentWindow ) :
SfxPopupWindow( nId, rFrame, pParentWindow, WinBits( WB_BORDER | WB_STDFLOATWIN | WB_3DLOOK | WB_DIALOGCONTROL ) ),
aFrameSet ( this, WinBits( WB_ITEMBORDER | WB_DOUBLEBORDER | WB_3DLOOK | WB_NO_DIRECTSELECT ) ),
@@ -1075,7 +1075,7 @@ SvxFrameWindow_Impl::SvxFrameWindow_Impl( USHORT nId, const Reference< XFrame >&
* abgeschaltet werden
*/
- USHORT i = 0;
+ sal_uInt16 i = 0;
for ( i=1; i<9; i++ )
aFrameSet.InsertItem( i, aImgList.GetImage(i) );
@@ -1126,9 +1126,9 @@ void SvxFrameWindow_Impl::DataChanged( const DataChangedEvent& rDCEvt )
{
aImgList = ImageList( SVX_RES( IsHighContrast()? RID_SVXIL_FRAME_HC : RID_SVXIL_FRAME ) );
- USHORT nNumOfItems = aFrameSet.GetItemCount();
+ sal_uInt16 nNumOfItems = aFrameSet.GetItemCount();
- for( USHORT i = 1 ; i <= nNumOfItems ; ++i )
+ for( sal_uInt16 i = 1 ; i <= nNumOfItems ; ++i )
aFrameSet.SetItemImage( i, aImgList.GetImage( i ) );
}
}
@@ -1157,9 +1157,9 @@ IMPL_LINK( SvxFrameWindow_Impl, SelectHdl, void *, EMPTYARG )
*pRight = 0,
*pTop = 0,
*pBottom = 0;
- USHORT nSel = aFrameSet.GetSelectItemId();
- USHORT nModifier = aFrameSet.GetModifier();
- BYTE nValidFlags = 0;
+ sal_uInt16 nSel = aFrameSet.GetSelectItemId();
+ sal_uInt16 nModifier = aFrameSet.GetModifier();
+ sal_uInt8 nValidFlags = 0;
theDefLine.SetOutWidth( DEF_LINE_WIDTH_0 );
switch ( nSel )
@@ -1233,8 +1233,8 @@ IMPL_LINK( SvxFrameWindow_Impl, SelectHdl, void *, EMPTYARG )
aBorderInner.SetValid( VALID_RIGHT, 0 != (nValidFlags&FRM_VALID_RIGHT ));
aBorderInner.SetValid( VALID_HORI, 0 != (nValidFlags&FRM_VALID_HINNER ));
aBorderInner.SetValid( VALID_VERT, 0 != (nValidFlags&FRM_VALID_VINNER));
- aBorderInner.SetValid( VALID_DISTANCE, TRUE );
- aBorderInner.SetValid( VALID_DISABLE, FALSE );
+ aBorderInner.SetValid( VALID_DISTANCE, sal_True );
+ aBorderInner.SetValid( VALID_DISABLE, sal_False );
if ( IsInPopupMode() )
EndPopupMode();
@@ -1270,7 +1270,7 @@ void SvxFrameWindow_Impl::Resize()
void SvxFrameWindow_Impl::StateChanged(
- USHORT nSID, SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
{
if ( pState && nSID == SID_BORDER_REDUCED_MODE)
@@ -1279,24 +1279,24 @@ void SvxFrameWindow_Impl::StateChanged(
if ( pItem )
{
- bParagraphMode = (BOOL)pItem->GetValue();
+ bParagraphMode = (sal_Bool)pItem->GetValue();
//initial calls mustn't insert or remove elements
if(aFrameSet.GetItemCount())
{
- BOOL bTableMode = ( aFrameSet.GetItemCount() == 12 );
- BOOL bResize = FALSE;
+ sal_Bool bTableMode = ( aFrameSet.GetItemCount() == 12 );
+ sal_Bool bResize = sal_False;
if ( bTableMode && bParagraphMode )
{
- for ( USHORT i = 9; i < 13; i++ )
+ for ( sal_uInt16 i = 9; i < 13; i++ )
aFrameSet.RemoveItem(i);
- bResize = TRUE;
+ bResize = sal_True;
}
else if ( !bTableMode && !bParagraphMode )
{
- for ( USHORT i = 9; i < 13; i++ )
+ for ( sal_uInt16 i = 9; i < 13; i++ )
aFrameSet.InsertItem( i, aImgList.GetImage(i) );
- bResize = TRUE;
+ bResize = sal_True;
}
if ( bResize )
@@ -1318,7 +1318,7 @@ void SvxFrameWindow_Impl::StartSelection()
// -----------------------------------------------------------------------
-BOOL SvxFrameWindow_Impl::Close()
+sal_Bool SvxFrameWindow_Impl::Close()
{
return SfxPopupWindow::Close();
}
@@ -1327,7 +1327,7 @@ BOOL SvxFrameWindow_Impl::Close()
// class SvxLineWindow_Impl --------------------------------------------------
//========================================================================
-SvxLineWindow_Impl::SvxLineWindow_Impl( USHORT nId, const Reference< XFrame >& rFrame, Window* pParentWindow ) :
+SvxLineWindow_Impl::SvxLineWindow_Impl( sal_uInt16 nId, const Reference< XFrame >& rFrame, Window* pParentWindow ) :
SfxPopupWindow( nId, rFrame, pParentWindow, WinBits( WB_BORDER | WB_STDFLOATWIN | WB_3DLOOK | WB_DIALOGCONTROL ) ),
@@ -1362,7 +1362,7 @@ SfxPopupWindow* SvxLineWindow_Impl::Clone() const
// -----------------------------------------------------------------------
-void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& rSize, String& rStr,
+void SvxLineWindow_Impl::MakeLineBitmap( sal_uInt16 nNo, Bitmap& rBmp, const Size& rSize, String& rStr,
const ::Color& rLineCol, const ::Color& rBackCol )
{
VirtualDevice aVirDev( *this );
@@ -1388,14 +1388,14 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 5;
aRect.Bottom() = 6;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) DEF_LINE_WIDTH_1/20;
+ nLineWidth = (sal_uInt16) DEF_LINE_WIDTH_1/20;
break;
case 3: // DEF_LINE_WIDTH_2
aRect.Top() = 5;
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) DEF_LINE_WIDTH_2/20;
+ nLineWidth = (sal_uInt16) DEF_LINE_WIDTH_2/20;
break;
case 4: // DEF_LINE_WIDTH_3
@@ -1403,14 +1403,14 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
aVirDev.DrawRect( Rectangle( Point(2,4), Point(37,7) ) );
- nLineWidth = (USHORT) DEF_LINE_WIDTH_3/20;
+ nLineWidth = (sal_uInt16) DEF_LINE_WIDTH_3/20;
break;
case 5: // DEF_LINE_WIDTH_4
aRect.Top() = 4;
aRect.Bottom() = 8;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) DEF_LINE_WIDTH_4/20;
+ nLineWidth = (sal_uInt16) DEF_LINE_WIDTH_4/20;
break;
case 6: // DEF_DOUBLE_LINE0
@@ -1420,7 +1420,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 7;
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE0_OUT+DEF_DOUBLE_LINE0_IN+DEF_DOUBLE_LINE0_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE0_OUT+DEF_DOUBLE_LINE0_IN+DEF_DOUBLE_LINE0_DIST)/20;
break;
case 7: // DEF_DOUBLE_LINE7
@@ -1430,7 +1430,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 7;
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE7_OUT+DEF_DOUBLE_LINE7_IN+DEF_DOUBLE_LINE7_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE7_OUT+DEF_DOUBLE_LINE7_IN+DEF_DOUBLE_LINE7_DIST)/20;
break;
case 8: // DEF_DOUBLE_LINE1
@@ -1440,7 +1440,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 7;
aRect.Bottom() = 8;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE1_OUT+DEF_DOUBLE_LINE1_IN+DEF_DOUBLE_LINE1_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE1_OUT+DEF_DOUBLE_LINE1_IN+DEF_DOUBLE_LINE1_DIST)/20;
break;
case 9: // DEF_DOUBLE_LINE2
@@ -1450,7 +1450,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 8;
aRect.Bottom() = 10;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE2_OUT+DEF_DOUBLE_LINE2_IN+DEF_DOUBLE_LINE2_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE2_OUT+DEF_DOUBLE_LINE2_IN+DEF_DOUBLE_LINE2_DIST)/20;
break;
case 10: // DEF_DOUBLE_LINE8
@@ -1460,7 +1460,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 7;
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE8_OUT+DEF_DOUBLE_LINE8_IN+DEF_DOUBLE_LINE8_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE8_OUT+DEF_DOUBLE_LINE8_IN+DEF_DOUBLE_LINE8_DIST)/20;
break;
case 11: // DEF_DOUBLE_LINE9
@@ -1470,7 +1470,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 8;
aRect.Bottom() = 8;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE9_OUT+DEF_DOUBLE_LINE9_IN+DEF_DOUBLE_LINE9_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE9_OUT+DEF_DOUBLE_LINE9_IN+DEF_DOUBLE_LINE9_DIST)/20;
break;
case 12: // DEF_DOUBLE_LINE10
@@ -1480,7 +1480,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 8;
aRect.Bottom() = 8;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE10_OUT+DEF_DOUBLE_LINE10_IN+DEF_DOUBLE_LINE10_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE10_OUT+DEF_DOUBLE_LINE10_IN+DEF_DOUBLE_LINE10_DIST)/20;
break;
case 13: // DEF_DOUBLE_LINE3
@@ -1490,7 +1490,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 7;
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE3_OUT+DEF_DOUBLE_LINE3_IN+DEF_DOUBLE_LINE3_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE3_OUT+DEF_DOUBLE_LINE3_IN+DEF_DOUBLE_LINE3_DIST)/20;
break;
case 14: // DEF_DOUBLE_LINE4
@@ -1500,7 +1500,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 6;
aRect.Bottom() = 7;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE4_OUT+DEF_DOUBLE_LINE4_IN+DEF_DOUBLE_LINE4_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE4_OUT+DEF_DOUBLE_LINE4_IN+DEF_DOUBLE_LINE4_DIST)/20;
break;
case 15: // DEF_DOUBLE_LINE5
@@ -1510,7 +1510,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 8;
aRect.Bottom() = 9;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE5_OUT+DEF_DOUBLE_LINE5_IN+DEF_DOUBLE_LINE5_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE5_OUT+DEF_DOUBLE_LINE5_IN+DEF_DOUBLE_LINE5_DIST)/20;
break;
case 16: // DEF_DOUBLE_LINE6
@@ -1520,7 +1520,7 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
aRect.Top() = 7;
aRect.Bottom() = 9;
aVirDev.DrawRect( aRect );
- nLineWidth = (USHORT) (DEF_DOUBLE_LINE6_OUT+DEF_DOUBLE_LINE6_IN+DEF_DOUBLE_LINE6_DIST)/20;
+ nLineWidth = (sal_uInt16) (DEF_DOUBLE_LINE6_OUT+DEF_DOUBLE_LINE6_IN+DEF_DOUBLE_LINE6_DIST)/20;
break;
default:
@@ -1539,10 +1539,10 @@ void SvxLineWindow_Impl::MakeLineBitmap( USHORT nNo, Bitmap& rBmp, const Size& r
IMPL_LINK( SvxLineWindow_Impl, SelectHdl, void *, EMPTYARG )
{
SvxLineItem aLineItem( SID_FRAME_LINESTYLE );
- USHORT n1 = 0,
+ sal_uInt16 n1 = 0,
n2 = 0,
n3 = 0;
- BOOL bSetLine = TRUE;
+ sal_Bool bSetLine = sal_True;
switch ( aLineSet.GetSelectItemId() )
{
@@ -1587,7 +1587,7 @@ IMPL_LINK( SvxLineWindow_Impl, SelectHdl, void *, EMPTYARG )
n3 = DEF_DOUBLE_LINE6_DIST; break;
case 0:
default:
- bSetLine = FALSE;
+ bSetLine = sal_False;
break;
}
if ( bSetLine )
@@ -1634,7 +1634,7 @@ void SvxLineWindow_Impl::StartSelection()
// -----------------------------------------------------------------------
-BOOL SvxLineWindow_Impl::Close()
+sal_Bool SvxLineWindow_Impl::Close()
{
return SfxPopupWindow::Close();
}
@@ -1676,7 +1676,7 @@ void SvxLineWindow_Impl::CreateBitmaps( void )
::Color aBackCol( rStyleSettings.GetWindowColor() );
aLineSet.Clear();
- for( USHORT i = 1 ; i < 17 ; ++i )
+ for( sal_uInt16 i = 1 ; i < 17 ; ++i )
{
MakeLineBitmap( i, aBmp, aBmpSize, aStr, aLineCol, aBackCol );
aLineSet.InsertItem( i, aBmp, aStr );
@@ -1694,7 +1694,7 @@ void SvxLineWindow_Impl::CreateBitmaps( void )
SfxStyleControllerItem_Impl::SfxStyleControllerItem_Impl(
const Reference< XDispatchProvider >& rDispatchProvider,
- USHORT nSlotId, // Family-ID
+ sal_uInt16 nSlotId, // Family-ID
const rtl::OUString& rCommand, // .uno: command bound to this item
SvxStyleToolBoxControl& rTbxCtl ) // Controller-Instanz, dem dieses Item zugeordnet ist.
: SfxStatusListener( rDispatchProvider, nSlotId, rCommand ),
@@ -1705,7 +1705,7 @@ SfxStyleControllerItem_Impl::SfxStyleControllerItem_Impl(
// -----------------------------------------------------------------------
void SfxStyleControllerItem_Impl::StateChanged(
- USHORT, SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16, SfxItemState eState, const SfxPoolItem* pState )
{
switch ( GetId() )
{
@@ -1715,7 +1715,7 @@ void SfxStyleControllerItem_Impl::StateChanged(
case SID_STYLE_FAMILY4:
case SID_STYLE_FAMILY5:
{
- const USHORT nIdx = GetId() - SID_STYLE_FAMILY_START;
+ const sal_uInt16 nIdx = GetId() - SID_STYLE_FAMILY_START;
if ( SFX_ITEM_AVAILABLE == eState )
{
@@ -1742,16 +1742,16 @@ struct SvxStyleToolBoxControl::Impl
String aClearForm;
String aMore;
::std::vector< ::rtl::OUString > aDefaultStyles;
- BOOL bListening;
- BOOL bSpecModeWriter;
- BOOL bSpecModeCalc;
+ sal_Bool bListening;
+ sal_Bool bSpecModeWriter;
+ sal_Bool bSpecModeCalc;
inline Impl( void )
:aClearForm ( SVX_RESSTR( RID_SVXSTR_CLEARFORM ) )
,aMore ( SVX_RESSTR( RID_SVXSTR_MORE ) )
- ,bListening ( FALSE )
- ,bSpecModeWriter ( FALSE )
- ,bSpecModeCalc ( FALSE )
+ ,bListening ( sal_False )
+ ,bSpecModeWriter ( sal_False )
+ ,bSpecModeCalc ( sal_False )
{
@@ -1848,14 +1848,14 @@ static const char* StyleSlotToStyleCommand[MAX_FAMILIES] =
};
SvxStyleToolBoxControl::SvxStyleToolBoxControl(
- USHORT nSlotId, USHORT nId, ToolBox& rTbx )
+ sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
: SfxToolBoxControl ( nSlotId, nId, rTbx ),
pStyleSheetPool ( NULL ),
nActFamily ( 0xffff ),
- bListening ( FALSE ),
+ bListening ( sal_False ),
pImpl ( new Impl )
{
- for ( USHORT i=0; i<MAX_FAMILIES; i++ )
+ for ( sal_uInt16 i=0; i<MAX_FAMILIES; i++ )
{
pBoundItems[i] = 0;
m_xBoundItems[i] = Reference< XComponent >();
@@ -1880,7 +1880,7 @@ throw ( Exception, RuntimeException)
{
pImpl->InitializeStyles(m_xFrame->getController()->getModel());
Reference< XDispatchProvider > xDispatchProvider( m_xFrame->getController(), UNO_QUERY );
- for ( USHORT i=0; i<MAX_FAMILIES; i++ )
+ for ( sal_uInt16 i=0; i<MAX_FAMILIES; i++ )
{
pBoundItems[i] = new SfxStyleControllerItem_Impl( xDispatchProvider,
SID_STYLE_FAMILY_START + i,
@@ -1898,7 +1898,7 @@ throw (::com::sun::star::uno::RuntimeException)
{
SfxToolBoxControl::dispose();
- for( USHORT i=0; i<MAX_FAMILIES; i++ )
+ for( sal_uInt16 i=0; i<MAX_FAMILIES; i++ )
{
if ( m_xBoundItems[i].is() )
{
@@ -1964,10 +1964,10 @@ void SvxStyleToolBoxControl::FillStyleBox()
if ( pStyleSheetPool && pBox && nActFamily!=0xffff )
{
const SfxStyleFamily eFamily = GetActFamily();
- USHORT nCount = pStyleSheetPool->Count();
- USHORT i = 0;
+ sal_uInt16 nCount = pStyleSheetPool->Count();
+ sal_uInt16 i = 0;
SfxStyleSheetBase* pStyle = NULL;
- BOOL bDoFill = FALSE;
+ sal_Bool bDoFill = sal_False;
pStyleSheetPool->SetSearchMask( eFamily, SFXSTYLEBIT_USED );
@@ -1980,7 +1980,7 @@ void SvxStyleToolBoxControl::FillStyleBox()
//!!! so the list doesn't show the count
if ( nCount != pBox->GetEntryCount() )
{
- bDoFill = TRUE;
+ bDoFill = sal_True;
}
else
{
@@ -1994,11 +1994,11 @@ void SvxStyleToolBoxControl::FillStyleBox()
if ( bDoFill )
{
- pBox->SetUpdateMode( FALSE );
+ pBox->SetUpdateMode( sal_False );
pBox->Clear();
{
- USHORT _i;
+ sal_uInt16 _i;
sal_uInt32 nCnt = pImpl->aDefaultStyles.size();
bool bInsert;
@@ -2038,9 +2038,9 @@ void SvxStyleToolBoxControl::FillStyleBox()
if( pImpl->bSpecModeWriter || pImpl->bSpecModeCalc )
{
// insert default styles
- USHORT _i;
+ sal_uInt16 _i;
sal_uInt32 nCnt = pImpl->aDefaultStyles.size();
- USHORT nPos = 1;
+ sal_uInt16 nPos = 1;
for( _i = 0 ; _i < nCnt ; ++_i )
{
pBox->InsertEntry( pImpl->aDefaultStyles[_i], nPos );
@@ -2062,10 +2062,10 @@ void SvxStyleToolBoxControl::FillStyleBox()
pBox->SetStyle( nWinBits );
}
- pBox->SetUpdateMode( TRUE );
+ pBox->SetUpdateMode( sal_True );
pBox->SetFamily( eFamily );
- USHORT nLines = Min( pBox->GetEntryCount(), MAX_STYLES_ENTRIES );
+ sal_uInt16 nLines = Min( pBox->GetEntryCount(), MAX_STYLES_ENTRIES );
pBox->SetDropDownLineCount( nLines );
}
}
@@ -2105,7 +2105,7 @@ void SvxStyleToolBoxControl::Update()
if ( pDocShell )
pPool = pDocShell->GetStyleSheetPool();
- USHORT i;
+ sal_uInt16 i;
for ( i=0; i<MAX_FAMILIES; i++ )
if( pFamilyState[i] )
break;
@@ -2149,7 +2149,7 @@ void SvxStyleToolBoxControl::Update()
// -----------------------------------------------------------------------
-void SvxStyleToolBoxControl::SetFamilyState( USHORT nIdx,
+void SvxStyleToolBoxControl::SetFamilyState( sal_uInt16 nIdx,
const SfxTemplateItem* pItem )
{
DELETEZ( pFamilyState[nIdx] );
@@ -2165,7 +2165,7 @@ void SvxStyleToolBoxControl::SetFamilyState( USHORT nIdx,
IMPL_LINK( SvxStyleToolBoxControl, VisibilityNotification, void*, EMPTYARG )
{
- USHORT i;
+ sal_uInt16 i;
// Call ReBind() && UnBind() according to visibility
SvxStyleBox_Impl* pBox = (SvxStyleBox_Impl*)( GetToolBox().GetItemWindow( GetId() ));
@@ -2190,10 +2190,10 @@ IMPL_LINK( SvxStyleToolBoxControl, VisibilityNotification, void*, EMPTYARG )
void SvxStyleToolBoxControl::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
SvxStyleBox_Impl* pBox = (SvxStyleBox_Impl*)(rTbx.GetItemWindow( nId ));
TriState eTri = STATE_NOCHECK;
@@ -2252,8 +2252,8 @@ Window* SvxStyleToolBoxControl::CreateItemWindow( Window *pParent )
//========================================================================
SvxFontNameToolBoxControl::SvxFontNameToolBoxControl(
- USHORT nSlotId,
- USHORT nId,
+ sal_uInt16 nSlotId,
+ sal_uInt16 nId,
ToolBox& rTbx )
: SfxToolBoxControl( nSlotId, nId, rTbx )
@@ -2264,10 +2264,10 @@ SvxFontNameToolBoxControl::SvxFontNameToolBoxControl(
void SvxFontNameToolBoxControl::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
SvxFontNameBox_Impl* pBox = (SvxFontNameBox_Impl*)(rTbx.GetItemWindow( nId ));
@@ -2313,8 +2313,8 @@ Window* SvxFontNameToolBoxControl::CreateItemWindow( Window *pParent )
//========================================================================
SvxFontColorToolBoxControl::SvxFontColorToolBoxControl(
- USHORT nSlotId,
- USHORT nId,
+ sal_uInt16 nSlotId,
+ sal_uInt16 nId,
ToolBox& rTbx )
: SfxToolBoxControl( nSlotId, nId, rTbx ),
@@ -2361,10 +2361,10 @@ SfxPopupWindow* SvxFontColorToolBoxControl::CreatePopupWindow()
void SvxFontColorToolBoxControl::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
const SvxColorItem* pItem = 0;
@@ -2382,7 +2382,7 @@ void SvxFontColorToolBoxControl::StateChanged(
// class SvxColorToolBoxControl --------------------------------
//========================================================================
-SvxColorToolBoxControl::SvxColorToolBoxControl( USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+SvxColorToolBoxControl::SvxColorToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx )
{
@@ -2412,7 +2412,7 @@ SfxPopupWindowType SvxColorToolBoxControl::GetPopupWindowType() const
SfxPopupWindow* SvxColorToolBoxControl::CreatePopupWindow()
{
- USHORT nResId = GetSlotId() == SID_BACKGROUND_COLOR ?
+ sal_uInt16 nResId = GetSlotId() == SID_BACKGROUND_COLOR ?
RID_SVXSTR_BACKGROUND : RID_SVXSTR_COLOR;
SvxColorWindow_Impl* pColorWin = new SvxColorWindow_Impl(
OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:BackgroundColor" )),
@@ -2432,7 +2432,7 @@ SfxPopupWindow* SvxColorToolBoxControl::CreatePopupWindow()
void SvxColorToolBoxControl::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState )
{
const SvxColorItem* pItem = 0;
@@ -2442,7 +2442,7 @@ void SvxColorToolBoxControl::StateChanged(
if ( pItem )
pBtnUpdater->Update( pItem->GetValue() );
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
rTbx.EnableItem( nId, SFX_ITEM_DISABLED != eState );
rTbx.SetItemState( nId, ( SFX_ITEM_DONTCARE == eState ) ? STATE_DONTKNOW : STATE_NOCHECK );
@@ -2453,8 +2453,8 @@ void SvxColorToolBoxControl::StateChanged(
//========================================================================
SvxFontColorExtToolBoxControl::SvxFontColorExtToolBoxControl(
- USHORT nSlotId,
- USHORT nId,
+ sal_uInt16 nSlotId,
+ sal_uInt16 nId,
ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx ),
@@ -2467,7 +2467,7 @@ SvxFontColorExtToolBoxControl::SvxFontColorExtToolBoxControl(
else
addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharBackgroundExt" )));
- USHORT nMode = SID_ATTR_CHAR_COLOR2 == nSlotId
+ sal_uInt16 nMode = SID_ATTR_CHAR_COLOR2 == nSlotId
? TBX_UPDATER_MODE_CHAR_COLOR_NEW : TBX_UPDATER_MODE_CHAR_COLOR_NEW;
pBtnUpdater = new ::svx::ToolboxButtonColorUpdater( nSlotId, nId, &GetToolBox(), nMode );
}
@@ -2512,10 +2512,10 @@ SfxPopupWindow* SvxFontColorExtToolBoxControl::CreatePopupWindow()
void SvxFontColorExtToolBoxControl::StateChanged(
- USHORT nSID, SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
const SvxColorItem* pItem = 0;
@@ -2541,7 +2541,7 @@ void SvxFontColorExtToolBoxControl::StateChanged(
// -----------------------------------------------------------------------
-void SvxFontColorExtToolBoxControl::Select( BOOL )
+void SvxFontColorExtToolBoxControl::Select( sal_Bool )
{
OUString aCommand;
OUString aParamName;
@@ -2567,8 +2567,8 @@ void SvxFontColorExtToolBoxControl::Select( BOOL )
//========================================================================
SvxFrameToolBoxControl::SvxFrameToolBoxControl(
- USHORT nSlotId,
- USHORT nId,
+ sal_uInt16 nSlotId,
+ sal_uInt16 nId,
ToolBox& rTbx )
: SfxToolBoxControl( nSlotId, nId, rTbx )
@@ -2601,10 +2601,10 @@ SfxPopupWindow* SvxFrameToolBoxControl::CreatePopupWindow()
void SvxFrameToolBoxControl::StateChanged(
- USHORT, SfxItemState eState, const SfxPoolItem* )
+ sal_uInt16, SfxItemState eState, const SfxPoolItem* )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
rTbx.EnableItem( nId, SFX_ITEM_DISABLED != eState );
@@ -2618,8 +2618,8 @@ void SvxFrameToolBoxControl::StateChanged(
//========================================================================
SvxFrameLineStyleToolBoxControl::SvxFrameLineStyleToolBoxControl(
- USHORT nSlotId,
- USHORT nId,
+ sal_uInt16 nSlotId,
+ sal_uInt16 nId,
ToolBox& rTbx )
: SfxToolBoxControl( nSlotId, nId, rTbx )
@@ -2639,7 +2639,7 @@ SfxPopupWindowType SvxFrameLineStyleToolBoxControl::GetPopupWindowType() const
SfxPopupWindow* SvxFrameLineStyleToolBoxControl::CreatePopupWindow()
{
SvxLineWindow_Impl* pLineWin = new SvxLineWindow_Impl( GetSlotId(), m_xFrame, &GetToolBox() );
- pLineWin->StartPopupMode( &GetToolBox(), TRUE );
+ pLineWin->StartPopupMode( &GetToolBox(), sal_True );
pLineWin->StartSelection();
SetPopupWindow( pLineWin );
@@ -2650,9 +2650,9 @@ SfxPopupWindow* SvxFrameLineStyleToolBoxControl::CreatePopupWindow()
void SvxFrameLineStyleToolBoxControl::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
rTbx.EnableItem( nId, SFX_ITEM_DISABLED != eState );
@@ -2666,8 +2666,8 @@ void SvxFrameLineStyleToolBoxControl::StateChanged(
//========================================================================
SvxFrameLineColorToolBoxControl::SvxFrameLineColorToolBoxControl(
- USHORT nSlotId,
- USHORT nId,
+ sal_uInt16 nSlotId,
+ sal_uInt16 nId,
ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx ),
@@ -2713,10 +2713,10 @@ SfxPopupWindow* SvxFrameLineColorToolBoxControl::CreatePopupWindow()
void SvxFrameLineColorToolBoxControl::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState )
{
- USHORT nId = GetId();
+ sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
rTbx.EnableItem( nId, SFX_ITEM_DISABLED != eState );
rTbx.SetItemState( nId, ( SFX_ITEM_DONTCARE == eState ) ? STATE_DONTKNOW : STATE_NOCHECK );
@@ -2753,7 +2753,7 @@ public:
// -----------------------------------------------------------------------
-SvxReloadControllerItem::SvxReloadControllerItem( USHORT nSlotId, USHORT nId, ToolBox& rTbx )
+SvxReloadControllerItem::SvxReloadControllerItem( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
: SfxToolBoxControl( nSlotId, nId, rTbx )
, pImpl( new SvxReloadControllerItem_Impl )
{
@@ -2770,7 +2770,7 @@ SvxReloadControllerItem::~SvxReloadControllerItem()
// -----------------------------------------------------------------------
void SvxReloadControllerItem::StateChanged(
- USHORT , SfxItemState eState, const SfxPoolItem* pState )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState )
{
SfxBoolItem* pItem = PTR_CAST( SfxBoolItem, pState );
ToolBox& rBox = GetToolBox();
@@ -2787,7 +2787,7 @@ void SvxReloadControllerItem::StateChanged(
// class SvxSimpleUndoRedoController -------------------------------------
//========================================================================
-SvxSimpleUndoRedoController::SvxSimpleUndoRedoController( USHORT nSlotId, USHORT nId, ToolBox& rTbx )
+SvxSimpleUndoRedoController::SvxSimpleUndoRedoController( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
:SfxToolBoxControl( nSlotId, nId, rTbx )
{
aDefaultText = rTbx.GetItemText( nId );
@@ -2801,7 +2801,7 @@ SvxSimpleUndoRedoController::~SvxSimpleUndoRedoController()
// -----------------------------------------------------------------------
-void SvxSimpleUndoRedoController::StateChanged( USHORT, SfxItemState eState, const SfxPoolItem* pState )
+void SvxSimpleUndoRedoController::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState )
{
SfxStringItem* pItem = PTR_CAST( SfxStringItem, pState );
ToolBox& rBox = GetToolBox();
@@ -2837,7 +2837,7 @@ void lcl_CalcSizeValueSet( Window &rWin, ValueSet &rValueSet, const Size &aItemS
// -----------------------------------------------------------------------
-BOOL lcl_FontChangedHint( const SfxHint &rHint )
+sal_Bool lcl_FontChangedHint( const SfxHint &rHint )
{
SfxPoolItemHint *pItemHint = PTR_CAST(SfxPoolItemHint, &rHint);
if ( pItemHint )