svtools: sal_Bool->bool
Change-Id: Ia0280d3d4f2d5b8a93a37a93847951391e928028
This commit is contained in:
@@ -88,7 +88,7 @@ CreationWizard::CreationWizard( Window* pParent, const uno::Reference< frame::XM
|
|||||||
, WZS_INVALID_STATE
|
, WZS_INVALID_STATE
|
||||||
);
|
);
|
||||||
this->SetRoadmapHelpId( HID_SCH_WIZARD_ROADMAP );
|
this->SetRoadmapHelpId( HID_SCH_WIZARD_ROADMAP );
|
||||||
this->SetRoadmapInteractive( sal_True );
|
this->SetRoadmapInteractive( true );
|
||||||
Size aAdditionalRoadmapSize( LogicToPixel( Size( 85, 0 ), MAP_APPFONT ) );
|
Size aAdditionalRoadmapSize( LogicToPixel( Size( 85, 0 ), MAP_APPFONT ) );
|
||||||
Size aSize( this->GetSizePixel() );
|
Size aSize( this->GetSizePixel() );
|
||||||
aSize.Width() += aAdditionalRoadmapSize.Width();
|
aSize.Width() += aAdditionalRoadmapSize.Width();
|
||||||
|
@@ -181,7 +181,7 @@ ODbTypeWizDialogSetup::ODbTypeWizDialogSetup(Window* _pParent
|
|||||||
m_pCancel->SetHelpId(HID_DBWIZ_CANCEL);
|
m_pCancel->SetHelpId(HID_DBWIZ_CANCEL);
|
||||||
m_pFinish->SetHelpId(HID_DBWIZ_FINISH);
|
m_pFinish->SetHelpId(HID_DBWIZ_FINISH);
|
||||||
m_pHelp->SetUniqueId(UID_DBWIZ_HELP);
|
m_pHelp->SetUniqueId(UID_DBWIZ_HELP);
|
||||||
SetRoadmapInteractive( sal_True );
|
SetRoadmapInteractive( true );
|
||||||
ActivatePage();
|
ActivatePage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -59,28 +59,28 @@ namespace svt
|
|||||||
ORoadmap( Window* _pParent, WinBits _nWinStyle = 0 );
|
ORoadmap( Window* _pParent, WinBits _nWinStyle = 0 );
|
||||||
~ORoadmap( );
|
~ORoadmap( );
|
||||||
|
|
||||||
void SetRoadmapBitmap( const BitmapEx& maBitmap, sal_Bool _bInvalidate = sal_True );
|
void SetRoadmapBitmap( const BitmapEx& maBitmap, bool _bInvalidate = true );
|
||||||
|
|
||||||
void EnableRoadmapItem( ItemId _nItemId, sal_Bool _bEnable, ItemIndex _nStartIndex = 0 );
|
void EnableRoadmapItem( ItemId _nItemId, bool _bEnable, ItemIndex _nStartIndex = 0 );
|
||||||
|
|
||||||
void ChangeRoadmapItemLabel( ItemId _nID, const OUString& sLabel, ItemIndex _nStartIndex = 0 );
|
void ChangeRoadmapItemLabel( ItemId _nID, const OUString& sLabel, ItemIndex _nStartIndex = 0 );
|
||||||
void ChangeRoadmapItemID( ItemId _nID, ItemId _NewID, ItemIndex _nStartIndex = 0 );
|
void ChangeRoadmapItemID( ItemId _nID, ItemId _NewID, ItemIndex _nStartIndex = 0 );
|
||||||
|
|
||||||
void SetRoadmapInteractive( sal_Bool _bInteractive );
|
void SetRoadmapInteractive( bool _bInteractive );
|
||||||
sal_Bool IsRoadmapInteractive();
|
bool IsRoadmapInteractive();
|
||||||
|
|
||||||
void SetRoadmapComplete( sal_Bool _bComplete );
|
void SetRoadmapComplete( bool _bComplete );
|
||||||
sal_Bool IsRoadmapComplete() const;
|
bool IsRoadmapComplete() const;
|
||||||
|
|
||||||
ItemIndex GetItemCount() const;
|
ItemIndex GetItemCount() const;
|
||||||
ItemId GetItemID( ItemIndex _nIndex ) const;
|
ItemId GetItemID( ItemIndex _nIndex ) const;
|
||||||
|
|
||||||
void InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, sal_Bool _bEnabled = sal_True );
|
void InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, bool _bEnabled = true );
|
||||||
void ReplaceRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, sal_Bool _bEnabled );
|
void ReplaceRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, bool _bEnabled );
|
||||||
void DeleteRoadmapItem( ItemIndex _nIndex );
|
void DeleteRoadmapItem( ItemIndex _nIndex );
|
||||||
|
|
||||||
ItemId GetCurrentRoadmapItemID() const;
|
ItemId GetCurrentRoadmapItemID() const;
|
||||||
sal_Bool SelectRoadmapItemByID( ItemId _nItemID );
|
bool SelectRoadmapItemByID( ItemId _nItemID );
|
||||||
|
|
||||||
void SetItemSelectHdl( const Link& _rHdl );
|
void SetItemSelectHdl( const Link& _rHdl );
|
||||||
Link GetItemSelectHdl( ) const;
|
Link GetItemSelectHdl( ) const;
|
||||||
@@ -110,7 +110,7 @@ namespace svt
|
|||||||
ItemId GetNextAvailableItemId( ItemIndex _NewIndex );
|
ItemId GetNextAvailableItemId( ItemIndex _NewIndex );
|
||||||
ItemId GetPreviousAvailableItemId( ItemIndex _NewIndex );
|
ItemId GetPreviousAvailableItemId( ItemIndex _NewIndex );
|
||||||
RoadmapItem* GetByPointer(Window* pWindow);
|
RoadmapItem* GetByPointer(Window* pWindow);
|
||||||
RoadmapItem* InsertHyperLabel( ItemIndex _Index, const OUString& _aStr, ItemId _RMID, sal_Bool _bEnabled = sal_True );
|
RoadmapItem* InsertHyperLabel( ItemIndex _Index, const OUString& _aStr, ItemId _RMID, bool _bEnabled = true );
|
||||||
void UpdatefollowingHyperLabels( ItemIndex _Index );
|
void UpdatefollowingHyperLabels( ItemIndex _Index );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -81,7 +81,7 @@ namespace svt
|
|||||||
|
|
||||||
void SetRoadmapHelpId( const OString& _rId );
|
void SetRoadmapHelpId( const OString& _rId );
|
||||||
|
|
||||||
void SetRoadmapInteractive( sal_Bool _bInteractive );
|
void SetRoadmapInteractive( bool _bInteractive );
|
||||||
virtual void Resize();
|
virtual void Resize();
|
||||||
virtual void StateChanged( StateChangedType nStateChange );
|
virtual void StateChanged( StateChangedType nStateChange );
|
||||||
|
|
||||||
|
@@ -36,10 +36,10 @@ public:
|
|||||||
static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
|
static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
|
||||||
int *pUCMode,
|
int *pUCMode,
|
||||||
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
|
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
|
||||||
sal_Bool bWriteHelpFile = sal_False );
|
bool bWriteHelpFile = false );
|
||||||
static SvStream& Out_String( SvStream&, const rtl::OUString&,
|
static SvStream& Out_String( SvStream&, const rtl::OUString&,
|
||||||
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
|
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
|
||||||
sal_Bool bWriteHelpFile = sal_False );
|
bool bWriteHelpFile = false );
|
||||||
|
|
||||||
static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen );
|
static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen );
|
||||||
};
|
};
|
||||||
|
@@ -645,13 +645,13 @@ private:
|
|||||||
MapUnit meSourceUnit;
|
MapUnit meSourceUnit;
|
||||||
FieldUnit meUnit;
|
FieldUnit meUnit;
|
||||||
Fraction maZoom;
|
Fraction maZoom;
|
||||||
sal_Bool mbCalc;
|
bool mbCalc;
|
||||||
sal_Bool mbFormat;
|
bool mbFormat;
|
||||||
sal_Bool mbDrag;
|
bool mbDrag;
|
||||||
sal_Bool mbDragDelete;
|
bool mbDragDelete;
|
||||||
sal_Bool mbDragCanceled;
|
bool mbDragCanceled;
|
||||||
sal_Bool mbAutoWinWidth;
|
bool mbAutoWinWidth;
|
||||||
sal_Bool mbActive;
|
bool mbActive;
|
||||||
sal_uInt8 mnUpdateFlags;
|
sal_uInt8 mnUpdateFlags;
|
||||||
|
|
||||||
RulerSelection maHoverSelection;
|
RulerSelection maHoverSelection;
|
||||||
@@ -681,22 +681,22 @@ private:
|
|||||||
|
|
||||||
using Window::ImplInit;
|
using Window::ImplInit;
|
||||||
SVT_DLLPRIVATE void ImplInit( WinBits nWinBits );
|
SVT_DLLPRIVATE void ImplInit( WinBits nWinBits );
|
||||||
SVT_DLLPRIVATE void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground );
|
SVT_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
|
||||||
SVT_DLLPRIVATE void ImplCalc();
|
SVT_DLLPRIVATE void ImplCalc();
|
||||||
SVT_DLLPRIVATE void ImplFormat();
|
SVT_DLLPRIVATE void ImplFormat();
|
||||||
SVT_DLLPRIVATE void ImplInitExtraField( sal_Bool bUpdate );
|
SVT_DLLPRIVATE void ImplInitExtraField( bool bUpdate );
|
||||||
SVT_DLLPRIVATE void ImplInvertLines( sal_Bool bErase = sal_False );
|
SVT_DLLPRIVATE void ImplInvertLines( bool bErase = false );
|
||||||
SVT_DLLPRIVATE void ImplDraw();
|
SVT_DLLPRIVATE void ImplDraw();
|
||||||
SVT_DLLPRIVATE void ImplDrawExtra( sal_Bool bPaint = sal_False );
|
SVT_DLLPRIVATE void ImplDrawExtra( bool bPaint = false );
|
||||||
SVT_DLLPRIVATE void ImplUpdate( sal_Bool bMustCalc = sal_False );
|
SVT_DLLPRIVATE void ImplUpdate( bool bMustCalc = false );
|
||||||
|
|
||||||
using Window::ImplHitTest;
|
using Window::ImplHitTest;
|
||||||
SVT_DLLPRIVATE sal_Bool ImplHitTest( const Point& rPosition,
|
SVT_DLLPRIVATE bool ImplHitTest( const Point& rPosition,
|
||||||
RulerSelection* pHitTest,
|
RulerSelection* pHitTest,
|
||||||
sal_Bool bRequiredStyle = sal_False,
|
bool bRequiredStyle = false,
|
||||||
sal_uInt16 nRequiredStyle = 0 ) const;
|
sal_uInt16 nRequiredStyle = 0 ) const;
|
||||||
SVT_DLLPRIVATE sal_Bool ImplDocHitTest( const Point& rPos, RulerType eDragType, RulerSelection* pHitTest ) const;
|
SVT_DLLPRIVATE bool ImplDocHitTest( const Point& rPos, RulerType eDragType, RulerSelection* pHitTest ) const;
|
||||||
SVT_DLLPRIVATE sal_Bool ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier );
|
SVT_DLLPRIVATE bool ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier );
|
||||||
SVT_DLLPRIVATE void ImplDrag( const Point& rPos );
|
SVT_DLLPRIVATE void ImplDrag( const Point& rPos );
|
||||||
SVT_DLLPRIVATE void ImplEndDrag();
|
SVT_DLLPRIVATE void ImplEndDrag();
|
||||||
|
|
||||||
@@ -732,7 +732,7 @@ public:
|
|||||||
|
|
||||||
void Activate();
|
void Activate();
|
||||||
void Deactivate();
|
void Deactivate();
|
||||||
sal_Bool IsActive() const { return mbActive; }
|
bool IsActive() const { return mbActive; }
|
||||||
|
|
||||||
void SetWinPos( long nOff = 0, long nWidth = 0 );
|
void SetWinPos( long nOff = 0, long nWidth = 0 );
|
||||||
long GetWinOffset() const { return mnWinOff; }
|
long GetWinOffset() const { return mnWinOff; }
|
||||||
@@ -757,17 +757,17 @@ public:
|
|||||||
sal_uInt16 GetExtraClicks() const { return mnExtraClicks; }
|
sal_uInt16 GetExtraClicks() const { return mnExtraClicks; }
|
||||||
sal_uInt16 GetExtraModifier() const { return mnExtraModifier; }
|
sal_uInt16 GetExtraModifier() const { return mnExtraModifier; }
|
||||||
|
|
||||||
sal_Bool StartDocDrag( const MouseEvent& rMEvt,
|
bool StartDocDrag( const MouseEvent& rMEvt,
|
||||||
RulerType eDragType = RULER_TYPE_DONTKNOW );
|
RulerType eDragType = RULER_TYPE_DONTKNOW );
|
||||||
RulerType GetDragType() const { return meDragType; }
|
RulerType GetDragType() const { return meDragType; }
|
||||||
long GetDragPos() const { return mnDragPos; }
|
long GetDragPos() const { return mnDragPos; }
|
||||||
sal_uInt16 GetDragAryPos() const { return mnDragAryPos; }
|
sal_uInt16 GetDragAryPos() const { return mnDragAryPos; }
|
||||||
sal_uInt16 GetDragSize() const { return mnDragSize; }
|
sal_uInt16 GetDragSize() const { return mnDragSize; }
|
||||||
sal_Bool IsDragDelete() const { return mbDragDelete; }
|
bool IsDragDelete() const { return mbDragDelete; }
|
||||||
sal_Bool IsDragCanceled() const { return mbDragCanceled; }
|
bool IsDragCanceled() const { return mbDragCanceled; }
|
||||||
sal_uInt16 GetDragScroll() const { return mnDragScroll; }
|
sal_uInt16 GetDragScroll() const { return mnDragScroll; }
|
||||||
sal_uInt16 GetDragModifier() const { return mnDragModifier; }
|
sal_uInt16 GetDragModifier() const { return mnDragModifier; }
|
||||||
sal_Bool IsDrag() const { return mbDrag; }
|
bool IsDrag() const { return mbDrag; }
|
||||||
void CancelDrag();
|
void CancelDrag();
|
||||||
long GetClickPos() const { return mnDragPos; }
|
long GetClickPos() const { return mnDragPos; }
|
||||||
RulerType GetClickType() const { return meDragType; }
|
RulerType GetClickType() const { return meDragType; }
|
||||||
@@ -816,7 +816,7 @@ public:
|
|||||||
void SetExtraDownHdl( const Link& rLink ) { maExtraDownHdl = rLink; }
|
void SetExtraDownHdl( const Link& rLink ) { maExtraDownHdl = rLink; }
|
||||||
const Link& GetExtraDownHdl() const { return maExtraDownHdl; }
|
const Link& GetExtraDownHdl() const { return maExtraDownHdl; }
|
||||||
|
|
||||||
void SetTextRTL(sal_Bool bRTL);
|
void SetTextRTL(bool bRTL);
|
||||||
bool GetTextRTL();
|
bool GetTextRTL();
|
||||||
void SetCharWidth( long nWidth ) { mnCharWidth = nWidth ; }
|
void SetCharWidth( long nWidth ) { mnCharWidth = nWidth ; }
|
||||||
void SetLineHeight( long nHeight ) { mnLineHeight = nHeight ; }
|
void SetLineHeight( long nHeight ) { mnLineHeight = nHeight ; }
|
||||||
|
@@ -98,11 +98,11 @@ namespace svt
|
|||||||
void SetPosition( RoadmapItem* OldHyperLabel );
|
void SetPosition( RoadmapItem* OldHyperLabel );
|
||||||
|
|
||||||
void ToggleBackgroundColor( const Color& _rGBColor );
|
void ToggleBackgroundColor( const Color& _rGBColor );
|
||||||
void SetInteractive( sal_Bool _bInteractive );
|
void SetInteractive( bool _bInteractive );
|
||||||
|
|
||||||
void SetClickHdl( const Link& rLink );
|
void SetClickHdl( const Link& rLink );
|
||||||
void Enable( sal_Bool bEnable = sal_True);
|
void Enable( bool bEnable = true);
|
||||||
sal_Bool IsEnabled() const;
|
bool IsEnabled() const;
|
||||||
void GrabFocus();
|
void GrabFocus();
|
||||||
|
|
||||||
bool Contains( const Window* _pWindow ) const;
|
bool Contains( const Window* _pWindow ) const;
|
||||||
@@ -125,16 +125,16 @@ namespace svt
|
|||||||
BitmapEx m_aPicture;
|
BitmapEx m_aPicture;
|
||||||
HL_Vector m_aRoadmapSteps;
|
HL_Vector m_aRoadmapSteps;
|
||||||
ItemId m_iCurItemID;
|
ItemId m_iCurItemID;
|
||||||
sal_Bool m_bInteractive;
|
bool m_bInteractive;
|
||||||
sal_Bool m_bComplete;
|
bool m_bComplete;
|
||||||
Size m_aItemSizePixel;
|
Size m_aItemSizePixel;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RoadmapImpl( const ORoadmap& _rAntiImpl )
|
RoadmapImpl( const ORoadmap& _rAntiImpl )
|
||||||
:m_rAntiImpl( _rAntiImpl )
|
:m_rAntiImpl( _rAntiImpl )
|
||||||
,m_iCurItemID( -1 )
|
,m_iCurItemID( -1 )
|
||||||
,m_bInteractive( sal_True )
|
,m_bInteractive( true )
|
||||||
,m_bComplete( sal_True )
|
,m_bComplete( true )
|
||||||
,InCompleteHyperLabel ( NULL )
|
,InCompleteHyperLabel ( NULL )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -153,11 +153,11 @@ namespace svt
|
|||||||
void setCurItemID( ItemId i ) {m_iCurItemID = i; }
|
void setCurItemID( ItemId i ) {m_iCurItemID = i; }
|
||||||
ItemId getCurItemID() const { return m_iCurItemID; }
|
ItemId getCurItemID() const { return m_iCurItemID; }
|
||||||
|
|
||||||
void setInteractive(const sal_Bool _bInteractive) {m_bInteractive = _bInteractive; }
|
void setInteractive(const bool _bInteractive) {m_bInteractive = _bInteractive; }
|
||||||
sal_Bool isInteractive() const { return m_bInteractive; };
|
bool isInteractive() const { return m_bInteractive; };
|
||||||
|
|
||||||
void setComplete(const sal_Bool _bComplete) {m_bComplete = _bComplete; }
|
void setComplete(const bool _bComplete) {m_bComplete = _bComplete; }
|
||||||
sal_Bool isComplete() const { return m_bComplete; };
|
bool isComplete() const { return m_bComplete; };
|
||||||
|
|
||||||
void setPicture( const BitmapEx& _rPic ) { m_aPicture = _rPic; }
|
void setPicture( const BitmapEx& _rPic ) { m_aPicture = _rPic; }
|
||||||
const BitmapEx& getPicture( ) const { return m_aPicture; }
|
const BitmapEx& getPicture( ) const { return m_aPicture; }
|
||||||
@@ -212,7 +212,7 @@ namespace svt
|
|||||||
SetBackground( Wallpaper( rStyleSettings.GetFieldColor() ) );
|
SetBackground( Wallpaper( rStyleSettings.GetFieldColor() ) );
|
||||||
m_pImpl->InCompleteHyperLabel = NULL;
|
m_pImpl->InCompleteHyperLabel = NULL;
|
||||||
m_pImpl->setCurItemID(-1 );
|
m_pImpl->setCurItemID(-1 );
|
||||||
m_pImpl->setComplete( sal_True );
|
m_pImpl->setComplete( true );
|
||||||
|
|
||||||
// Roadmap control should be reachable as one unit with a Tab key
|
// Roadmap control should be reachable as one unit with a Tab key
|
||||||
// the next Tab key should spring out of the control.
|
// the next Tab key should spring out of the control.
|
||||||
@@ -264,7 +264,7 @@ namespace svt
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
RoadmapItem* ORoadmap::InsertHyperLabel( ItemIndex _Index, const OUString& _sLabel, ItemId _RMID, sal_Bool _bEnabled)
|
RoadmapItem* ORoadmap::InsertHyperLabel( ItemIndex _Index, const OUString& _sLabel, ItemId _RMID, bool _bEnabled)
|
||||||
{
|
{
|
||||||
if ( m_pImpl->getItemCount() == 0 )
|
if ( m_pImpl->getItemCount() == 0 )
|
||||||
m_pImpl->initItemSize();
|
m_pImpl->initItemSize();
|
||||||
@@ -280,7 +280,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pItem->SetInteractive( sal_False );
|
pItem->SetInteractive( false );
|
||||||
}
|
}
|
||||||
pItem->SetPosition( pOldItem );
|
pItem->SetPosition( pOldItem );
|
||||||
pItem->Update( _Index, _sLabel );
|
pItem->Update( _Index, _sLabel );
|
||||||
@@ -293,7 +293,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ORoadmap::SetRoadmapBitmap( const BitmapEx& _rBmp, sal_Bool _bInvalidate )
|
void ORoadmap::SetRoadmapBitmap( const BitmapEx& _rBmp, bool _bInvalidate )
|
||||||
{
|
{
|
||||||
m_pImpl->setPicture( _rBmp );
|
m_pImpl->setPicture( _rBmp );
|
||||||
if ( _bInvalidate )
|
if ( _bInvalidate )
|
||||||
@@ -301,7 +301,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ORoadmap::SetRoadmapInteractive( sal_Bool _bInteractive )
|
void ORoadmap::SetRoadmapInteractive( bool _bInteractive )
|
||||||
{
|
{
|
||||||
m_pImpl->setInteractive( _bInteractive );
|
m_pImpl->setInteractive( _bInteractive );
|
||||||
|
|
||||||
@@ -316,15 +316,15 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sal_Bool ORoadmap::IsRoadmapInteractive()
|
bool ORoadmap::IsRoadmapInteractive()
|
||||||
{
|
{
|
||||||
return m_pImpl->isInteractive();
|
return m_pImpl->isInteractive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ORoadmap::SetRoadmapComplete( sal_Bool _bComplete )
|
void ORoadmap::SetRoadmapComplete( bool _bComplete )
|
||||||
{
|
{
|
||||||
sal_Bool bWasComplete = m_pImpl->isComplete();
|
bool bWasComplete = m_pImpl->isComplete();
|
||||||
m_pImpl->setComplete( _bComplete );
|
m_pImpl->setComplete( _bComplete );
|
||||||
if ( _bComplete )
|
if ( _bComplete )
|
||||||
{
|
{
|
||||||
@@ -365,7 +365,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ORoadmap::ReplaceRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _RMID, sal_Bool _bEnabled )
|
void ORoadmap::ReplaceRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _RMID, bool _bEnabled )
|
||||||
{
|
{
|
||||||
RoadmapItem* pItem = GetByIndex( _Index);
|
RoadmapItem* pItem = GetByIndex( _Index);
|
||||||
if ( pItem != NULL )
|
if ( pItem != NULL )
|
||||||
@@ -392,7 +392,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ORoadmap::InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, sal_Bool _bEnabled )
|
void ORoadmap::InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, bool _bEnabled )
|
||||||
{
|
{
|
||||||
InsertHyperLabel( _Index, _RoadmapItem, _nUniqueId, _bEnabled );
|
InsertHyperLabel( _Index, _RoadmapItem, _nUniqueId, _bEnabled );
|
||||||
// Todo: YPos is superfluous, if items are always appended
|
// Todo: YPos is superfluous, if items are always appended
|
||||||
@@ -410,13 +410,13 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sal_Bool ORoadmap::IsRoadmapComplete( ) const
|
bool ORoadmap::IsRoadmapComplete( ) const
|
||||||
{
|
{
|
||||||
return m_pImpl->isComplete();
|
return m_pImpl->isComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ORoadmap::EnableRoadmapItem( ItemId _nItemId, sal_Bool _bEnable, ItemIndex _nStartIndex )
|
void ORoadmap::EnableRoadmapItem( ItemId _nItemId, bool _bEnable, ItemIndex _nStartIndex )
|
||||||
{
|
{
|
||||||
RoadmapItem* pItem = GetByID( _nItemId, _nStartIndex );
|
RoadmapItem* pItem = GetByID( _nItemId, _nStartIndex );
|
||||||
if ( pItem != NULL )
|
if ( pItem != NULL )
|
||||||
@@ -564,7 +564,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sal_Bool ORoadmap::SelectRoadmapItemByID( ItemId _nNewID )
|
bool ORoadmap::SelectRoadmapItemByID( ItemId _nNewID )
|
||||||
{
|
{
|
||||||
DeselectOldRoadmapItems();
|
DeselectOldRoadmapItems();
|
||||||
RoadmapItem* pItem = GetByID( _nNewID );
|
RoadmapItem* pItem = GetByID( _nNewID );
|
||||||
@@ -579,10 +579,10 @@ namespace svt
|
|||||||
m_pImpl->setCurItemID(_nNewID);
|
m_pImpl->setCurItemID(_nNewID);
|
||||||
|
|
||||||
Select();
|
Select();
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -676,9 +676,9 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
IMPL_LINK(ORoadmap, ImplClickHdl, HyperLabel*, _CurHyperLabel)
|
IMPL_LINK(ORoadmap, ImplClickHdl, HyperLabel*, _CurHyperLabel)
|
||||||
{
|
{
|
||||||
return SelectRoadmapItemByID( _CurHyperLabel->GetID() );
|
return SelectRoadmapItemByID( _CurHyperLabel->GetID() ) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -732,7 +732,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RoadmapItem::SetInteractive( sal_Bool _bInteractive )
|
void RoadmapItem::SetInteractive( bool _bInteractive )
|
||||||
{
|
{
|
||||||
if ( mpDescription )
|
if ( mpDescription )
|
||||||
mpDescription->SetInteractive(_bInteractive);
|
mpDescription->SetInteractive(_bInteractive);
|
||||||
@@ -802,14 +802,14 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RoadmapItem::Enable( sal_Bool _bEnable)
|
void RoadmapItem::Enable( bool _bEnable)
|
||||||
{
|
{
|
||||||
mpID->Enable(_bEnable);
|
mpID->Enable(_bEnable);
|
||||||
mpDescription->Enable(_bEnable);
|
mpDescription->Enable(_bEnable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sal_Bool RoadmapItem::IsEnabled() const
|
bool RoadmapItem::IsEnabled() const
|
||||||
{
|
{
|
||||||
return mpID->IsEnabled();
|
return mpID->IsEnabled();
|
||||||
}
|
}
|
||||||
|
@@ -240,13 +240,13 @@ void Ruler::ImplInit( WinBits nWinBits )
|
|||||||
mnExtraModifier = 0; // Modifier key at click in extra field
|
mnExtraModifier = 0; // Modifier key at click in extra field
|
||||||
mnCharWidth = 371;
|
mnCharWidth = 371;
|
||||||
mnLineHeight = 551;
|
mnLineHeight = 551;
|
||||||
mbCalc = sal_True; // Should recalculate page width
|
mbCalc = true; // Should recalculate page width
|
||||||
mbFormat = sal_True; // Should redraw
|
mbFormat = true; // Should redraw
|
||||||
mbDrag = sal_False; // Currently at dragging
|
mbDrag = false; // Currently at dragging
|
||||||
mbDragDelete = sal_False; // Has mouse left the dragging area
|
mbDragDelete = false; // Has mouse left the dragging area
|
||||||
mbDragCanceled = sal_False; // Dragging cancelled?
|
mbDragCanceled = false; // Dragging cancelled?
|
||||||
mbAutoWinWidth = sal_True; // EditWinWidth == RulerWidth
|
mbAutoWinWidth = true; // EditWinWidth == RulerWidth
|
||||||
mbActive = sal_True; // Is ruler active
|
mbActive = true; // Is ruler active
|
||||||
mnUpdateFlags = 0; // What needs to be updated
|
mnUpdateFlags = 0; // What needs to be updated
|
||||||
mpData = mpSaveData; // Pointer to normal data
|
mpData = mpSaveData; // Pointer to normal data
|
||||||
meExtraType = RULER_EXTRA_DONTKNOW; // What is in extra field
|
meExtraType = RULER_EXTRA_DONTKNOW; // What is in extra field
|
||||||
@@ -265,7 +265,7 @@ void Ruler::ImplInit( WinBits nWinBits )
|
|||||||
mnBorderWidth = 0;
|
mnBorderWidth = 0;
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
ImplInitSettings( sal_True, sal_True, sal_True );
|
ImplInitSettings( true, true, true );
|
||||||
|
|
||||||
// Setup the default size
|
// Setup the default size
|
||||||
Rectangle aRect;
|
Rectangle aRect;
|
||||||
@@ -364,7 +364,7 @@ void Ruler::ImplVDrawText( long nX, long nY, const OUString& rText, long nMin, l
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplInvertLines( sal_Bool bErase )
|
void Ruler::ImplInvertLines( bool bErase )
|
||||||
{
|
{
|
||||||
// Position lines
|
// Position lines
|
||||||
if ( !mpData->pLines.empty() &&
|
if ( !mpData->pLines.empty() &&
|
||||||
@@ -991,7 +991,7 @@ void Ruler::ImplDrawTabs( long nMin, long nMax, long nVirTop, long nVirBottom )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground )
|
void Ruler::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
|
||||||
{
|
{
|
||||||
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
|
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
|
||||||
|
|
||||||
@@ -1080,7 +1080,7 @@ void Ruler::ImplCalc()
|
|||||||
mpData->nRulWidth = mnHeight-nRulWinOff;
|
mpData->nRulWidth = mnHeight-nRulWinOff;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbCalc = sal_False;
|
mbCalc = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplFormat()
|
void Ruler::ImplFormat()
|
||||||
@@ -1244,10 +1244,10 @@ void Ruler::ImplFormat()
|
|||||||
if ( !mpData->pTabs.empty() )
|
if ( !mpData->pTabs.empty() )
|
||||||
ImplDrawTabs( nVirLeft, nP2, nVirTop-1, nVirBottom+1 );
|
ImplDrawTabs( nVirLeft, nP2, nVirTop-1, nVirBottom+1 );
|
||||||
|
|
||||||
mbFormat = sal_False;
|
mbFormat = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplInitExtraField( sal_Bool bUpdate )
|
void Ruler::ImplInitExtraField( bool bUpdate )
|
||||||
{
|
{
|
||||||
Size aWinSize = GetOutputSizePixel();
|
Size aWinSize = GetOutputSizePixel();
|
||||||
|
|
||||||
@@ -1291,8 +1291,8 @@ void Ruler::ImplInitExtraField( sal_Bool bUpdate )
|
|||||||
|
|
||||||
if ( bUpdate )
|
if ( bUpdate )
|
||||||
{
|
{
|
||||||
mbCalc = sal_True;
|
mbCalc = true;
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1324,11 +1324,11 @@ void Ruler::ImplDraw()
|
|||||||
DrawOutDev( aOffPos, aVirDevSize, Point(), aVirDevSize, maVirDev );
|
DrawOutDev( aOffPos, aVirDevSize, Point(), aVirDevSize, maVirDev );
|
||||||
|
|
||||||
// redraw positionlines
|
// redraw positionlines
|
||||||
ImplInvertLines( sal_True );
|
ImplInvertLines( true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplDrawExtra( sal_Bool bPaint )
|
void Ruler::ImplDrawExtra( bool bPaint )
|
||||||
{
|
{
|
||||||
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
|
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
|
||||||
Rectangle aRect = maExtraRect;
|
Rectangle aRect = maExtraRect;
|
||||||
@@ -1393,7 +1393,7 @@ void Ruler::ImplDrawExtra( sal_Bool bPaint )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplUpdate( sal_Bool bMustCalc )
|
void Ruler::ImplUpdate( bool bMustCalc )
|
||||||
{
|
{
|
||||||
// clear lines in this place so they aren't considered at recalculation
|
// clear lines in this place so they aren't considered at recalculation
|
||||||
if ( !mbFormat )
|
if ( !mbFormat )
|
||||||
@@ -1401,8 +1401,8 @@ void Ruler::ImplUpdate( sal_Bool bMustCalc )
|
|||||||
|
|
||||||
// set flags
|
// set flags
|
||||||
if ( bMustCalc )
|
if ( bMustCalc )
|
||||||
mbCalc = sal_True;
|
mbCalc = true;
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
|
|
||||||
// abort if we are dragging as drag-handler will update the ruler after drag is finished
|
// abort if we are dragging as drag-handler will update the ruler after drag is finished
|
||||||
if ( mbDrag )
|
if ( mbDrag )
|
||||||
@@ -1417,8 +1417,8 @@ void Ruler::ImplUpdate( sal_Bool bMustCalc )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
||||||
sal_Bool bRequireStyle, sal_uInt16 nRequiredStyle ) const
|
bool bRequireStyle, sal_uInt16 nRequiredStyle ) const
|
||||||
{
|
{
|
||||||
sal_Int32 i;
|
sal_Int32 i;
|
||||||
sal_uInt16 nStyle;
|
sal_uInt16 nStyle;
|
||||||
@@ -1429,10 +1429,10 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
long n2;
|
long n2;
|
||||||
|
|
||||||
if ( !mbActive )
|
if ( !mbActive )
|
||||||
return sal_False;
|
return false;
|
||||||
|
|
||||||
// determine positions
|
// determine positions
|
||||||
sal_Bool bIsHori = 0 != (mnWinStyle & WB_HORZ);
|
bool bIsHori = 0 != (mnWinStyle & WB_HORZ);
|
||||||
if ( bIsHori )
|
if ( bIsHori )
|
||||||
{
|
{
|
||||||
nX = rPos.X();
|
nX = rPos.X();
|
||||||
@@ -1468,7 +1468,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->nPos = 0;
|
pHitTest->nPos = 0;
|
||||||
pHitTest->eType = RULER_TYPE_OUTSIDE;
|
pHitTest->eType = RULER_TYPE_OUTSIDE;
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
nX -= mpData->nNullVirOff;
|
nX -= mpData->nNullVirOff;
|
||||||
@@ -1514,7 +1514,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->eType = RULER_TYPE_TAB;
|
pHitTest->eType = RULER_TYPE_TAB;
|
||||||
pHitTest->nAryPos = i;
|
pHitTest->nAryPos = i;
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1555,7 +1555,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->eType = RULER_TYPE_INDENT;
|
pHitTest->eType = RULER_TYPE_INDENT;
|
||||||
pHitTest->nAryPos = i-1;
|
pHitTest->nAryPos = i-1;
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1566,7 +1566,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->nPos = 0;
|
pHitTest->nPos = 0;
|
||||||
pHitTest->eType = RULER_TYPE_OUTSIDE;
|
pHitTest->eType = RULER_TYPE_OUTSIDE;
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// test the borders
|
// test the borders
|
||||||
@@ -1639,7 +1639,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1654,7 +1654,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->eType = RULER_TYPE_MARGIN1;
|
pHitTest->eType = RULER_TYPE_MARGIN1;
|
||||||
pHitTest->bSize = true;
|
pHitTest->bSize = true;
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( (mpData->nMargin2Style & (RULER_MARGIN_SIZEABLE | RULER_STYLE_INVISIBLE)) == RULER_MARGIN_SIZEABLE )
|
if ( (mpData->nMargin2Style & (RULER_MARGIN_SIZEABLE | RULER_STYLE_INVISIBLE)) == RULER_MARGIN_SIZEABLE )
|
||||||
@@ -1664,7 +1664,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->eType = RULER_TYPE_MARGIN2;
|
pHitTest->eType = RULER_TYPE_MARGIN2;
|
||||||
pHitTest->bSize = true;
|
pHitTest->bSize = true;
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1709,26 +1709,26 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
|
|||||||
{
|
{
|
||||||
pHitTest->eType = RULER_TYPE_TAB;
|
pHitTest->eType = RULER_TYPE_TAB;
|
||||||
pHitTest->nAryPos = i;
|
pHitTest->nAryPos = i;
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType,
|
bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType,
|
||||||
RulerSelection* pHitTest ) const
|
RulerSelection* pHitTest ) const
|
||||||
{
|
{
|
||||||
Point aPos = rPos;
|
Point aPos = rPos;
|
||||||
sal_Bool bRequiredStyle = sal_False;
|
bool bRequiredStyle = false;
|
||||||
sal_uInt16 nRequiredStyle = 0;
|
sal_uInt16 nRequiredStyle = 0;
|
||||||
|
|
||||||
if (eDragType == RULER_TYPE_INDENT)
|
if (eDragType == RULER_TYPE_INDENT)
|
||||||
{
|
{
|
||||||
bRequiredStyle = sal_True;
|
bRequiredStyle = true;
|
||||||
nRequiredStyle = RULER_INDENT_BOTTOM;
|
nRequiredStyle = RULER_INDENT_BOTTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1747,7 +1747,7 @@ sal_Bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType,
|
|||||||
if ( ImplHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) )
|
if ( ImplHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) )
|
||||||
{
|
{
|
||||||
if ( (pHitTest->eType == eDragType) || (eDragType == RULER_TYPE_DONTKNOW) )
|
if ( (pHitTest->eType == eDragType) || (eDragType == RULER_TYPE_DONTKNOW) )
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1763,7 +1763,7 @@ sal_Bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType,
|
|||||||
if ( ImplHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) )
|
if ( ImplHitTest( aPos, pHitTest, bRequiredStyle, nRequiredStyle ) )
|
||||||
{
|
{
|
||||||
if ( (pHitTest->eType == eDragType) || (eDragType == RULER_TYPE_DONTKNOW) )
|
if ( (pHitTest->eType == eDragType) || (eDragType == RULER_TYPE_DONTKNOW) )
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1778,21 +1778,21 @@ sal_Bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType,
|
|||||||
if ( ImplHitTest( aPos, pHitTest ) )
|
if ( ImplHitTest( aPos, pHitTest ) )
|
||||||
{
|
{
|
||||||
if ( (pHitTest->eType == eDragType) || (eDragType == RULER_TYPE_DONTKNOW) )
|
if ( (pHitTest->eType == eDragType) || (eDragType == RULER_TYPE_DONTKNOW) )
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pHitTest->eType = RULER_TYPE_DONTKNOW;
|
pHitTest->eType = RULER_TYPE_DONTKNOW;
|
||||||
|
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
|
bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
|
||||||
{
|
{
|
||||||
// don't trigger drag if a border that was clicked can not be changed
|
// don't trigger drag if a border that was clicked can not be changed
|
||||||
if ( (pHitTest->eType == RULER_TYPE_BORDER) &&
|
if ( (pHitTest->eType == RULER_TYPE_BORDER) &&
|
||||||
!pHitTest->bSize && !pHitTest->bSizeBar )
|
!pHitTest->bSize && !pHitTest->bSizeBar )
|
||||||
return sal_False;
|
return false;
|
||||||
|
|
||||||
// Set drag data
|
// Set drag data
|
||||||
meDragType = pHitTest->eType;
|
meDragType = pHitTest->eType;
|
||||||
@@ -1808,10 +1808,10 @@ sal_Bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
|
|||||||
{
|
{
|
||||||
// if the handler allows dragging, initialize dragging
|
// if the handler allows dragging, initialize dragging
|
||||||
ImplInvertLines();
|
ImplInvertLines();
|
||||||
mbDrag = sal_True;
|
mbDrag = true;
|
||||||
mnStartDragPos = mnDragPos;
|
mnStartDragPos = mnDragPos;
|
||||||
StartTracking();
|
StartTracking();
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1824,7 +1824,7 @@ sal_Bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
|
|||||||
mpData = mpSaveData;
|
mpData = mpSaveData;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::ImplDrag( const Point& rPos )
|
void Ruler::ImplDrag( const Point& rPos )
|
||||||
@@ -1861,18 +1861,18 @@ void Ruler::ImplDrag( const Point& rPos )
|
|||||||
nX -= mpData->nNullVirOff;
|
nX -= mpData->nNullVirOff;
|
||||||
|
|
||||||
// if upper or left from ruler, then consider old values
|
// if upper or left from ruler, then consider old values
|
||||||
mbDragDelete = sal_False;
|
mbDragDelete = false;
|
||||||
if ( nY < 0 )
|
if ( nY < 0 )
|
||||||
{
|
{
|
||||||
if ( !mbDragCanceled )
|
if ( !mbDragCanceled )
|
||||||
{
|
{
|
||||||
// reset the data
|
// reset the data
|
||||||
mbDragCanceled = sal_True;
|
mbDragCanceled = true;
|
||||||
ImplRulerData aTempData;
|
ImplRulerData aTempData;
|
||||||
aTempData = *mpDragData;
|
aTempData = *mpDragData;
|
||||||
*mpDragData = *mpSaveData;
|
*mpDragData = *mpSaveData;
|
||||||
mbCalc = sal_True;
|
mbCalc = true;
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
|
|
||||||
// call handler
|
// call handler
|
||||||
mnDragPos = mnStartDragPos;
|
mnDragPos = mnStartDragPos;
|
||||||
@@ -1887,11 +1887,11 @@ void Ruler::ImplDrag( const Point& rPos )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mbDragCanceled = sal_False;
|
mbDragCanceled = false;
|
||||||
|
|
||||||
// +2, so the tabs are not cleared too quickly
|
// +2, so the tabs are not cleared too quickly
|
||||||
if ( nY > nOutHeight + 2 )
|
if ( nY > nOutHeight + 2 )
|
||||||
mbDragDelete = sal_True;
|
mbDragDelete = true;
|
||||||
|
|
||||||
mnDragPos = nX;
|
mnDragPos = nX;
|
||||||
|
|
||||||
@@ -1915,7 +1915,7 @@ void Ruler::ImplEndDrag()
|
|||||||
*mpSaveData = *mpDragData;
|
*mpSaveData = *mpDragData;
|
||||||
|
|
||||||
mpData = mpSaveData;
|
mpData = mpSaveData;
|
||||||
mbDrag = sal_False;
|
mbDrag = false;
|
||||||
|
|
||||||
// call handler
|
// call handler
|
||||||
EndDrag();
|
EndDrag();
|
||||||
@@ -1925,8 +1925,8 @@ void Ruler::ImplEndDrag()
|
|||||||
mnDragPos = 0;
|
mnDragPos = 0;
|
||||||
mnDragAryPos = 0;
|
mnDragAryPos = 0;
|
||||||
mnDragSize = 0;
|
mnDragSize = 0;
|
||||||
mbDragCanceled = sal_False;
|
mbDragCanceled = false;
|
||||||
mbDragDelete = sal_False;
|
mbDragDelete = false;
|
||||||
mnDragModifier = 0;
|
mnDragModifier = 0;
|
||||||
mnDragScroll = 0;
|
mnDragScroll = 0;
|
||||||
mnStartDragPos = 0;
|
mnStartDragPos = 0;
|
||||||
@@ -2086,8 +2086,8 @@ void Ruler::Tracking( const TrackingEvent& rTEvt )
|
|||||||
// reset the old state at cancel
|
// reset the old state at cancel
|
||||||
if ( rTEvt.IsTrackingCanceled() )
|
if ( rTEvt.IsTrackingCanceled() )
|
||||||
{
|
{
|
||||||
mbDragCanceled = sal_True;
|
mbDragCanceled = true;
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImplEndDrag();
|
ImplEndDrag();
|
||||||
@@ -2102,7 +2102,7 @@ void Ruler::Paint( const Rectangle& )
|
|||||||
|
|
||||||
// consider extra field
|
// consider extra field
|
||||||
if ( mnWinStyle & WB_EXTRAFIELD )
|
if ( mnWinStyle & WB_EXTRAFIELD )
|
||||||
ImplDrawExtra( sal_True );
|
ImplDrawExtra( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::Resize()
|
void Ruler::Resize()
|
||||||
@@ -2126,7 +2126,7 @@ void Ruler::Resize()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// clear lines
|
// clear lines
|
||||||
sal_Bool bVisible = IsReallyVisible();
|
bool bVisible = IsReallyVisible();
|
||||||
if ( bVisible && !mpData->pLines.empty() )
|
if ( bVisible && !mpData->pLines.empty() )
|
||||||
{
|
{
|
||||||
ImplInvertLines();
|
ImplInvertLines();
|
||||||
@@ -2134,22 +2134,22 @@ void Ruler::Resize()
|
|||||||
if ( !mnUpdateEvtId )
|
if ( !mnUpdateEvtId )
|
||||||
mnUpdateEvtId = Application::PostUserEvent( LINK( this, Ruler, ImplUpdateHdl ), NULL );
|
mnUpdateEvtId = Application::PostUserEvent( LINK( this, Ruler, ImplUpdateHdl ), NULL );
|
||||||
}
|
}
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
|
|
||||||
// recalculate some values if the height/width changes
|
// recalculate some values if the height/width changes
|
||||||
// extra field should always be updated
|
// extra field should always be updated
|
||||||
ImplInitExtraField( mpData->bTextRTL );
|
ImplInitExtraField( mpData->bTextRTL );
|
||||||
if ( nNewHeight )
|
if ( nNewHeight )
|
||||||
{
|
{
|
||||||
mbCalc = sal_True;
|
mbCalc = true;
|
||||||
mnVirHeight = nNewHeight - mnBorderWidth - (RULER_OFF*2);
|
mnVirHeight = nNewHeight - mnBorderWidth - (RULER_OFF*2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( mpData->bAutoPageWidth )
|
if ( mpData->bAutoPageWidth )
|
||||||
ImplUpdate( sal_True );
|
ImplUpdate( true );
|
||||||
else if ( mbAutoWinWidth )
|
else if ( mbAutoWinWidth )
|
||||||
mbCalc = sal_True;
|
mbCalc = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear part of the border
|
// clear part of the border
|
||||||
@@ -2205,17 +2205,17 @@ void Ruler::StateChanged( StateChangedType nType )
|
|||||||
else if ( (nType == STATE_CHANGE_ZOOM) ||
|
else if ( (nType == STATE_CHANGE_ZOOM) ||
|
||||||
(nType == STATE_CHANGE_CONTROLFONT) )
|
(nType == STATE_CHANGE_CONTROLFONT) )
|
||||||
{
|
{
|
||||||
ImplInitSettings( sal_True, sal_False, sal_False );
|
ImplInitSettings( true, false, false );
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
|
else if ( nType == STATE_CHANGE_CONTROLFOREGROUND )
|
||||||
{
|
{
|
||||||
ImplInitSettings( sal_False, sal_True, sal_False );
|
ImplInitSettings( false, true, false );
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
|
else if ( nType == STATE_CHANGE_CONTROLBACKGROUND )
|
||||||
{
|
{
|
||||||
ImplInitSettings( sal_False, sal_False, sal_True );
|
ImplInitSettings( false, false, true );
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2230,8 +2230,8 @@ void Ruler::DataChanged( const DataChangedEvent& rDCEvt )
|
|||||||
((rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
|
((rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
|
||||||
(rDCEvt.GetFlags() & SETTINGS_STYLE)) )
|
(rDCEvt.GetFlags() & SETTINGS_STYLE)) )
|
||||||
{
|
{
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
ImplInitSettings( sal_True, sal_True, sal_True );
|
ImplInitSettings( true, true, true );
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2271,7 +2271,7 @@ void Ruler::ExtraDown()
|
|||||||
|
|
||||||
void Ruler::Activate()
|
void Ruler::Activate()
|
||||||
{
|
{
|
||||||
mbActive = sal_True;
|
mbActive = true;
|
||||||
|
|
||||||
// update positionlies - draw is delayed
|
// update positionlies - draw is delayed
|
||||||
mnUpdateFlags |= RULER_UPDATE_LINES;
|
mnUpdateFlags |= RULER_UPDATE_LINES;
|
||||||
@@ -2284,10 +2284,10 @@ void Ruler::Deactivate()
|
|||||||
// clear positionlines
|
// clear positionlines
|
||||||
ImplInvertLines();
|
ImplInvertLines();
|
||||||
|
|
||||||
mbActive = sal_False;
|
mbActive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
|
bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
|
||||||
{
|
{
|
||||||
if ( !mbDrag )
|
if ( !mbDrag )
|
||||||
{
|
{
|
||||||
@@ -2345,11 +2345,11 @@ sal_Bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
|
|||||||
mnDragPos = 0;
|
mnDragPos = 0;
|
||||||
mnDragAryPos = 0;
|
mnDragAryPos = 0;
|
||||||
|
|
||||||
return sal_True;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::CancelDrag()
|
void Ruler::CancelDrag()
|
||||||
@@ -2384,13 +2384,13 @@ void Ruler::SetWinPos( long nNewOff, long nNewWidth )
|
|||||||
{
|
{
|
||||||
// should widths be automatically calculated
|
// should widths be automatically calculated
|
||||||
if ( !nNewWidth )
|
if ( !nNewWidth )
|
||||||
mbAutoWinWidth = sal_True;
|
mbAutoWinWidth = true;
|
||||||
else
|
else
|
||||||
mbAutoWinWidth = sal_False;
|
mbAutoWinWidth = false;
|
||||||
|
|
||||||
mnWinOff = nNewOff;
|
mnWinOff = nNewOff;
|
||||||
mnWinWidth = nNewWidth;
|
mnWinWidth = nNewWidth;
|
||||||
ImplUpdate( sal_True );
|
ImplUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::SetPagePos( long nNewOff, long nNewWidth )
|
void Ruler::SetPagePos( long nNewOff, long nNewWidth )
|
||||||
@@ -2407,7 +2407,7 @@ void Ruler::SetPagePos( long nNewOff, long nNewWidth )
|
|||||||
|
|
||||||
mpData->nPageOff = nNewOff;
|
mpData->nPageOff = nNewOff;
|
||||||
mpData->nPageWidth = nNewWidth;
|
mpData->nPageWidth = nNewWidth;
|
||||||
ImplUpdate( sal_True );
|
ImplUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ruler::SetBorderPos( long nOff )
|
void Ruler::SetBorderPos( long nOff )
|
||||||
@@ -2494,7 +2494,7 @@ void Ruler::SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle )
|
|||||||
meExtraType = eNewExtraType;
|
meExtraType = eNewExtraType;
|
||||||
mnExtraStyle = nStyle;
|
mnExtraStyle = nStyle;
|
||||||
if ( IsReallyVisible() && IsUpdateMode() )
|
if ( IsReallyVisible() && IsUpdateMode() )
|
||||||
ImplDrawExtra( sal_False );
|
ImplDrawExtra( false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2731,7 +2731,7 @@ void Ruler::SetStyle( WinBits nStyle )
|
|||||||
if ( mnWinStyle != nStyle )
|
if ( mnWinStyle != nStyle )
|
||||||
{
|
{
|
||||||
mnWinStyle = nStyle;
|
mnWinStyle = nStyle;
|
||||||
ImplInitExtraField( sal_True );
|
ImplInitExtraField( true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2747,13 +2747,14 @@ void Ruler::DrawTab( OutputDevice* pDevice, const Color &rFillColor, const Point
|
|||||||
ImplDrawRulerTab( pDevice, aPos, nTabStyle, nStyle );
|
ImplDrawRulerTab( pDevice, aPos, nTabStyle, nStyle );
|
||||||
pDevice->Pop();
|
pDevice->Pop();
|
||||||
}
|
}
|
||||||
void Ruler::SetTextRTL(sal_Bool bRTL)
|
|
||||||
|
void Ruler::SetTextRTL(bool bRTL)
|
||||||
{
|
{
|
||||||
if(mpData->bTextRTL != (bool) bRTL)
|
if(mpData->bTextRTL != (bool) bRTL)
|
||||||
{
|
{
|
||||||
mpData->bTextRTL = bRTL;
|
mpData->bTextRTL = bRTL;
|
||||||
if ( IsReallyVisible() && IsUpdateMode() )
|
if ( IsReallyVisible() && IsUpdateMode() )
|
||||||
ImplInitExtraField( sal_True );
|
ImplInitExtraField( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2795,7 +2796,7 @@ RulerUnitData Ruler::GetCurrentRulerUnit() const
|
|||||||
|
|
||||||
void Ruler::DrawTicks()
|
void Ruler::DrawTicks()
|
||||||
{
|
{
|
||||||
mbFormat = sal_True;
|
mbFormat = true;
|
||||||
Paint(Rectangle());
|
Paint(Rectangle());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -219,7 +219,7 @@ namespace svt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RoadmapWizard::SetRoadmapInteractive( sal_Bool _bInteractive )
|
void RoadmapWizard::SetRoadmapInteractive( bool _bInteractive )
|
||||||
{
|
{
|
||||||
m_pImpl->pRoadmap->SetRoadmapInteractive( _bInteractive );
|
m_pImpl->pRoadmap->SetRoadmapInteractive( _bInteractive );
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
#include <svtools/rtfout.hxx>
|
#include <svtools/rtfout.hxx>
|
||||||
|
|
||||||
SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
|
SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
|
||||||
int *pUCMode, rtl_TextEncoding eDestEnc, sal_Bool bWriteHelpFile)
|
int *pUCMode, rtl_TextEncoding eDestEnc, bool bWriteHelpFile)
|
||||||
{
|
{
|
||||||
const sal_Char* pStr = 0;
|
const sal_Char* pStr = 0;
|
||||||
switch (c)
|
switch (c)
|
||||||
@@ -148,7 +148,7 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SvStream& RTFOutFuncs::Out_String( SvStream& rStream, const OUString& rStr,
|
SvStream& RTFOutFuncs::Out_String( SvStream& rStream, const OUString& rStr,
|
||||||
rtl_TextEncoding eDestEnc, sal_Bool bWriteHelpFile)
|
rtl_TextEncoding eDestEnc, bool bWriteHelpFile)
|
||||||
{
|
{
|
||||||
int nUCMode = 1;
|
int nUCMode = 1;
|
||||||
for (sal_Int32 n = 0; n < rStr.getLength(); ++n)
|
for (sal_Int32 n = 0; n < rStr.getLength(); ++n)
|
||||||
|
Reference in New Issue
Block a user