summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-01-29 10:55:26 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-01-29 10:57:17 +0900
commit6db0a5f381f206801035ab1d786dbac8c31cc5eb (patch)
tree60af9a26ece33d72960f00b4995564637cdff205
parentab8e37573628f2e5863e7fc0252103ab32203fc2 (diff)
sal_Bool to bool
Change-Id: Iae6343a71137c5ffbc9d38f56c01d5b182975912
-rw-r--r--sw/source/core/layout/calcmove.cxx4
-rw-r--r--sw/source/core/layout/tabfrm.cxx4
-rw-r--r--sw/source/filter/html/htmlatr.cxx4
-rw-r--r--sw/source/ui/inc/conrect.hxx6
-rw-r--r--sw/source/ui/inc/content.hxx16
-rw-r--r--sw/source/ui/inc/conttree.hxx56
-rw-r--r--sw/source/ui/misc/glosbib.cxx6
-rw-r--r--sw/source/ui/ribbar/conrect.cxx14
-rw-r--r--sw/source/ui/uno/unomailmerge.cxx10
-rw-r--r--sw/source/ui/utlui/content.cxx221
-rw-r--r--sw/source/ui/utlui/glbltree.cxx24
11 files changed, 183 insertions, 182 deletions
diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx
index 86fe38e85b5a..f4a2c3af0a85 100644
--- a/sw/source/core/layout/calcmove.cxx
+++ b/sw/source/core/layout/calcmove.cxx
@@ -1155,7 +1155,7 @@ void SwCntntFrm::MakeAll()
// this flag is set. If it turns out that it
// didn't keep it's promise, we can act in a
// controlled fashion.
- sal_Bool bMoveable;
+ bool bMoveable;
const sal_Bool bFly = IsInFly();
const sal_Bool bTab = IsInTab();
const sal_Bool bFtn = IsInFtn();
@@ -1265,7 +1265,7 @@ void SwCntntFrm::MakeAll()
// - loop prevention
SwRect aOldFrm_StopFormat( Frm() );
SwRect aOldPrt_StopFormat( Prt() );
- if ( sal_True == (bMoveable = IsMoveable()) )
+ if ( (bMoveable = IsMoveable()) )
{
SwFrm *pPre = GetIndPrev();
if ( CheckMoveFwd( bMakePage, bKeep, bMovedBwd ) )
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 394538384079..27ad754b24b4 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -1858,7 +1858,7 @@ void SwTabFrm::MakeAll()
// gets set to true when the Frm is split
bool bSplit = false;
const bool bFtnsInDoc = !GetFmt()->GetDoc()->GetFtnIdxs().empty();
- sal_Bool bMoveable;
+ bool bMoveable;
const sal_Bool bFly = IsInFly();
SwBorderAttrAccess *pAccess= new SwBorderAttrAccess( SwFrm::GetCache(), this );
@@ -1943,7 +1943,7 @@ void SwTabFrm::MakeAll()
SWRECTFN( this )
while ( !bValidPos || !bValidSize || !bValidPrtArea )
{
- if ( sal_True == (bMoveable = IsMoveable()) )
+ if ( (bMoveable = IsMoveable()) )
if ( CheckMoveFwd( bMakePage, bKeep && KEEPTAB, bMovedBwd ) )
{
bMovedFwd = true;
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index 9e84dc3239bd..7c0c227f9bbc 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -1579,14 +1579,14 @@ void HTMLEndPosLst::SplitItem( const SfxPoolItem& rItem, xub_StrLen nStart,
if( pItem->Which() == nWhich &&
HTML_ON_VALUE == GetHTMLItemState( *pItem ) )
{
- sal_Bool bDelete = sal_True;
+ bool bDelete = true;
if( nTestStart < nStart )
{
// der Start des neuen Attribut entspricht
// dem neuen Ende des Attribts
FixSplittedItem( pTest, nStart, i );
- bDelete = sal_False;
+ bDelete = false;
}
else
{
diff --git a/sw/source/ui/inc/conrect.hxx b/sw/source/ui/inc/conrect.hxx
index c87056c168e7..f382d73668de 100644
--- a/sw/source/ui/inc/conrect.hxx
+++ b/sw/source/ui/inc/conrect.hxx
@@ -30,11 +30,11 @@
class ConstRectangle : public SwDrawBase
{
- sal_Bool bMarquee;
- sal_Bool bCapVertical;
+ bool bMarquee;
+ bool bCapVertical;
// #93382#
- sal_Bool mbVertical;
+ bool mbVertical;
public:
ConstRectangle(SwWrtShell* pSh, SwEditWin* pWin, SwView* pView);
diff --git a/sw/source/ui/inc/content.hxx b/sw/source/ui/inc/content.hxx
index 8cdf135f0ce6..57c292748db0 100644
--- a/sw/source/ui/inc/content.hxx
+++ b/sw/source/ui/inc/content.hxx
@@ -55,20 +55,20 @@ class SwOutlineContent : public SwContent
{
sal_uInt16 nOutlinePos;
sal_uInt8 nOutlineLevel;
- sal_Bool bIsMoveable;
+ bool bIsMoveable;
public:
SwOutlineContent( const SwContentType* pCnt,
const String& rName,
sal_uInt16 nArrPos,
sal_uInt8 nLevel,
- sal_Bool bMove,
+ bool bMove,
long nYPos) :
SwContent(pCnt, rName, nYPos),
nOutlinePos(nArrPos), nOutlineLevel(nLevel), bIsMoveable(bMove) {}
sal_uInt16 GetPos(){return nOutlinePos;}
sal_uInt8 GetOutlineLevel(){return nOutlineLevel;}
- sal_Bool IsMoveable(){return bIsMoveable;};
+ bool IsMoveable(){return bIsMoveable;};
};
//----------------------------------------------------------------------------
@@ -177,9 +177,9 @@ class SwContentType : public SwTypeNumber
sal_uInt16 nMemberCount; // content count
sal_uInt16 nContentType; // content type's Id
sal_uInt8 nOutlineLevel;
- sal_Bool bDataValid : 1; //
- sal_Bool bEdit: 1; // can this type be edited?
- sal_Bool bDelete: 1; // can this type be deleted?
+ bool bDataValid : 1; //
+ bool bEdit: 1; // can this type be edited?
+ bool bDelete: 1; // can this type be deleted?
protected:
void RemoveNewline(String&);
public:
@@ -204,8 +204,8 @@ public:
void Invalidate(); // only nMemberCount is read again
- sal_Bool IsEditable() const {return bEdit;}
- sal_Bool IsDeletable() const {return bDelete;}
+ bool IsEditable() const {return bEdit;}
+ bool IsDeletable() const {return bDelete;}
};
#endif
diff --git a/sw/source/ui/inc/conttree.hxx b/sw/source/ui/inc/conttree.hxx
index 9101d0fc7da3..1ef4253c6fd8 100644
--- a/sw/source/ui/inc/conttree.hxx
+++ b/sw/source/ui/inc/conttree.hxx
@@ -69,7 +69,7 @@ class SwContentTree : public SvTreeListBox
SwWrtShell* pActiveShell; // the active or a const. open view
SwNavigationConfig* pConfig;
- std::map< void*, sal_Bool > mOutLineNodeMap;
+ std::map< void*, bool > mOutLineNodeMap;
sal_Int32 nActiveBlock;
sal_uInt16 nHiddenBlock;
@@ -77,19 +77,19 @@ class SwContentTree : public SvTreeListBox
sal_uInt16 nLastSelType;
sal_uInt8 nOutlineLevel;
- sal_Bool bIsActive :1;
- sal_Bool bIsConstant :1;
- sal_Bool bIsHidden :1;
- sal_Bool bDocChgdInDragging :1;
- sal_Bool bIsInternalDrag :1;
- sal_Bool bIsRoot :1;
- sal_Bool bIsIdleClear :1;
+ bool bIsActive :1;
+ bool bIsConstant :1;
+ bool bIsHidden :1;
+ bool bDocChgdInDragging :1;
+ bool bIsInternalDrag :1;
+ bool bIsRoot :1;
+ bool bIsIdleClear :1;
sal_Bool bIsLastReadOnly :1;
- sal_Bool bIsOutlineMoveable :1;
- sal_Bool bViewHasChanged :1;
- sal_Bool bIsImageListInitialized : 1;
+ bool bIsOutlineMoveable :1;
+ bool bViewHasChanged :1;
+ bool bIsImageListInitialized : 1;
- static sal_Bool bIsInDrag;
+ static bool bIsInDrag;
void FindActiveTypeAndRemoveUserData();
@@ -113,9 +113,9 @@ protected:
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
- sal_Bool FillTransferData( TransferDataContainer& rTransfer,
+ bool FillTransferData( TransferDataContainer& rTransfer,
sal_Int8& rDragMode );
- sal_Bool HasContentChanged();
+ bool HasContentChanged();
virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData,
SvTreeListEntry* );
@@ -136,7 +136,7 @@ protected:
void EditEntry( SvTreeListEntry* pEntry, sal_uInt8 nMode );
void GotoContent(SwContent* pCnt);
- static void SetInDrag(sal_Bool bSet) {bIsInDrag = bSet;}
+ static void SetInDrag(bool bSet) {bIsInDrag = bSet;}
virtual PopupMenu* CreateContextMenu( void );
virtual void ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry );
@@ -145,11 +145,11 @@ public:
SwContentTree(Window* pParent, const ResId& rResId);
~SwContentTree();
- sal_Bool ToggleToRoot();
- sal_Bool IsRoot() const {return bIsRoot;}
+ bool ToggleToRoot();
+ bool IsRoot() const {return bIsRoot;}
sal_uInt16 GetRootType() const {return nRootType;}
void SetRootType(sal_uInt16 nType);
- void Display( sal_Bool bActiveView );
+ void Display( bool bActiveView );
void Clear();
void SetHiddenShell(SwWrtShell* pSh);
void ShowHiddenShell();
@@ -162,8 +162,8 @@ public:
pActiveShell :
pHiddenShell;}
- static sal_Bool IsInDrag() {return bIsInDrag;}
- sal_Bool IsInternalDrag() const {return bIsInternalDrag != 0;}
+ static bool IsInDrag() {return bIsInDrag;}
+ bool IsInternalDrag() const {return bIsInternalDrag;}
sal_Int32 GetActiveBlock() const {return nActiveBlock;}
@@ -179,9 +179,9 @@ public:
void ShowTree();
void HideTree();
- sal_Bool IsConstantView() {return bIsConstant;}
- sal_Bool IsActiveView() {return bIsActive;}
- sal_Bool IsHiddenView() {return bIsHidden;}
+ bool IsConstantView() {return bIsConstant;}
+ bool IsActiveView() {return bIsActive;}
+ bool IsHiddenView() {return bIsHidden;}
const SwWrtShell* GetActiveWrtShell() {return pActiveShell;}
SwWrtShell* GetHiddenWrtShell() {return pHiddenShell;}
@@ -236,9 +236,9 @@ private:
SwGlblDocContent* pDocContent;
sfx2::DocumentInserter* pDocInserter;
- sal_Bool bIsInternalDrag :1;
- sal_Bool bLastEntryEmphasis :1; // Drag'n Drop
- sal_Bool bIsImageListInitialized : 1;
+ bool bIsInternalDrag :1;
+ bool bLastEntryEmphasis :1; // Drag'n Drop
+ bool bIsImageListInitialized : 1;
static const SfxObjectShell* pShowShell;
@@ -292,7 +292,7 @@ protected:
DECL_LINK( Timeout, void* );
DECL_LINK( DoubleClickHdl, void* );
- sal_Bool IsInternalDrag() const {return bIsInternalDrag != 0;}
+ bool IsInternalDrag() const {return bIsInternalDrag;}
SwNavigationPI* GetParentWindow()
{ return (SwNavigationPI*)Window::GetParent(); }
@@ -321,7 +321,7 @@ public:
void ExecCommand(sal_uInt16 nCmd);
- void Display(sal_Bool bOnlyUpdateUserData = sal_False);
+ void Display(bool bOnlyUpdateUserData = false);
sal_Bool Update(sal_Bool bHard);
};
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index e0b4756abb9d..41ece7dd6814 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -241,14 +241,14 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton )
GlosBibUserData* pUserData = (GlosBibUserData*)pEntry->GetUserData();
::rtl::OUString const sEntry(pUserData->sGroupName);
// if the name to be deleted is among the new ones - get rid of it
- sal_Bool bDelete = sal_True;
+ bool bDelete = true;
for (OUVector_t::iterator it(m_InsertedArr.begin());
it != m_InsertedArr.end(); ++it)
{
if (*it == sEntry)
{
m_InsertedArr.erase(it);
- bDelete = sal_False;
+ bDelete = false;
break;
}
@@ -263,7 +263,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton )
== sEntry)
{
m_RenamedArr.erase(it);
- bDelete = sal_False;
+ bDelete = false;
break;
}
}
diff --git a/sw/source/ui/ribbar/conrect.cxx b/sw/source/ui/ribbar/conrect.cxx
index bb3cf919a27e..b5f61868b1d0 100644
--- a/sw/source/ui/ribbar/conrect.cxx
+++ b/sw/source/ui/ribbar/conrect.cxx
@@ -43,9 +43,9 @@
ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin,
SwView* pSwView )
: SwDrawBase( pWrtShell, pEditWin, pSwView ),
- bMarquee(sal_False),
+ bMarquee(false),
// #93382#
- mbVertical(sal_False)
+ mbVertical(false)
{
}
@@ -151,8 +151,8 @@ sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt)
*/
void ConstRectangle::Activate(const sal_uInt16 nSlotId)
{
- bMarquee = bCapVertical = sal_False;
- mbVertical = sal_False;
+ bMarquee = bCapVertical = false;
+ mbVertical = false;
switch (nSlotId)
{
@@ -169,12 +169,12 @@ void ConstRectangle::Activate(const sal_uInt16 nSlotId)
break;
case SID_DRAW_TEXT_MARQUEE:
- bMarquee = sal_True;
+ bMarquee = true;
m_pWin->SetSdrDrawMode(OBJ_TEXT);
break;
case SID_DRAW_TEXT_VERTICAL:
- mbVertical = sal_True;
+ mbVertical = true;
m_pWin->SetSdrDrawMode(OBJ_TEXT);
break;
@@ -183,7 +183,7 @@ void ConstRectangle::Activate(const sal_uInt16 nSlotId)
break;
case SID_DRAW_CAPTION_VERTICAL:
- bCapVertical = sal_True;
+ bCapVertical = true;
// no break
case SID_DRAW_CAPTION:
m_pWin->SetSdrDrawMode(OBJ_CAPTION);
diff --git a/sw/source/ui/uno/unomailmerge.cxx b/sw/source/ui/uno/unomailmerge.cxx
index 91aaa50f58f0..f182849df84d 100644
--- a/sw/source/ui/uno/unomailmerge.cxx
+++ b/sw/source/ui/uno/unomailmerge.cxx
@@ -354,15 +354,15 @@ namespace
////////////////////////////////////////////////////////////
-static sal_Bool DeleteTmpFile_Impl(
+static bool DeleteTmpFile_Impl(
Reference< frame::XModel > &rxModel,
SfxObjectShellRef &rxDocSh,
const String &rTmpFileURL )
{
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (rTmpFileURL.Len())
{
- sal_Bool bDelete = sal_True;
+ bool bDelete = true;
if ( eVetoed == CloseModelAndDocSh( rxModel, rxDocSh ) )
{
// somebody vetoed the closing, and took the ownership of the document
@@ -370,7 +370,7 @@ static sal_Bool DeleteTmpFile_Impl(
Reference< XEventListener > xEnsureDelete( new DelayedFileDeletion( rxModel, rTmpFileURL ) );
// note: as soon as #106931# is fixed, the whole DelayedFileDeletion is to be superseeded by
// a better solution
- bDelete = sal_False;
+ bDelete = false;
}
rxModel = 0;
@@ -385,7 +385,7 @@ static sal_Bool DeleteTmpFile_Impl(
}
}
else
- bRes = sal_True; // file will be deleted delayed
+ bRes = true; // file will be deleted delayed
}
return bRes;
}
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx
index 2495a1f2fea9..50e40897908c 100644
--- a/sw/source/ui/utlui/content.cxx
+++ b/sw/source/ui/utlui/content.cxx
@@ -104,29 +104,29 @@ public:
~SwContentArr() { DeleteAndDestroyAll(); }
};
-sal_Bool SwContentTree::bIsInDrag = sal_False;
+bool SwContentTree::bIsInDrag = false;
namespace
{
- static sal_Bool lcl_IsContent(const SvTreeListEntry* pEntry)
+ static bool lcl_IsContent(const SvTreeListEntry* pEntry)
{
return ((const SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CNT;
}
- static sal_Bool lcl_IsContentType(const SvTreeListEntry* pEntry)
+ static bool lcl_IsContentType(const SvTreeListEntry* pEntry)
{
return ((const SwTypeNumber*)pEntry->GetUserData())->GetTypeId() == CTYPE_CTT;
}
- static sal_Bool lcl_FindShell(SwWrtShell* pShell)
+ static bool lcl_FindShell(SwWrtShell* pShell)
{
- sal_Bool bFound = sal_False;
+ bool bFound = false;
SwView *pView = SwModule::GetFirstView();
while (pView)
{
if(pShell == &pView->GetWrtShell())
{
- bFound = sal_True;
+ bFound = true;
break;
}
pView = SwModule::GetNextView(pView);
@@ -201,9 +201,9 @@ SwContentType::SwContentType(SwWrtShell* pShell, sal_uInt16 nType, sal_uInt8 nLe
nMemberCount(0),
nContentType(nType),
nOutlineLevel(nLevel),
- bDataValid(sal_False),
- bEdit(sal_False),
- bDelete(sal_True)
+ bDataValid(false),
+ bEdit(false),
+ bDelete(true)
{
Init();
}
@@ -232,14 +232,14 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
nMemberCount --;
}
}
- bDelete = sal_False;
+ bDelete = false;
}
break;
case CONTENT_TYPE_TABLE :
sTypeToken = rtl::OUString::createFromAscii(pMarkToTable);
nMemberCount = pWrtShell->GetTblFrmFmtCount(true);
- bEdit = sal_True;
+ bEdit = true;
break;
case CONTENT_TYPE_FRAME :
@@ -259,7 +259,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
sTypeToken = rtl::OUString::createFromAscii(pMarkToGraphic);
}
nMemberCount = pWrtShell->GetFlyCount(eType);
- bEdit = sal_True;
+ bEdit = true;
}
break;
case CONTENT_TYPE_BOOKMARK:
@@ -270,7 +270,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
pMarkAccess->getBookmarksEnd(),
&lcl_IsUiVisibleBookmark));
sTypeToken = aEmptyStr;
- bEdit = sal_True;
+ bEdit = true;
}
break;
case CONTENT_TYPE_REGION :
@@ -325,8 +325,8 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
}
nMemberCount = pMember->size();
sTypeToken = rtl::OUString::createFromAscii(pMarkToRegion);
- bEdit = sal_True;
- bDelete = sal_False;
+ bEdit = true;
+ bDelete = false;
if(pOldMember)
{
pOldMember->DeleteAndDestroyAll();
@@ -339,14 +339,14 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
case CONTENT_TYPE_INDEX:
{
nMemberCount = pWrtShell->GetTOXCount();
- bEdit = sal_True;
- bDelete = sal_False;
+ bEdit = true;
+ bDelete = false;
}
break;
case CONTENT_TYPE_REFERENCE:
{
nMemberCount = pWrtShell->GetRefMarks( 0 );
- bDelete = sal_False;
+ bDelete = false;
}
break;
case CONTENT_TYPE_URLFIELD:
@@ -374,9 +374,9 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
n );
pMember->insert( pCnt );
}
- bEdit = sal_True;
+ bEdit = true;
nOldMemberCount = nMemberCount;
- bDelete = sal_False;
+ bDelete = false;
}
break;
case CONTENT_TYPE_POSTIT:
@@ -412,7 +412,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
}
}
sTypeToken = aEmptyStr;
- bEdit = sal_True;
+ bEdit = true;
nOldMemberCount = nMemberCount;
}
break;
@@ -440,7 +440,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
// abgesehen von denen, die schon korrigiert wurden, dann ist
// nOldMemberCount doch nicht so old
if( nOldMemberCount != nMemberCount )
- bDataValid = sal_False;
+ bDataValid = false;
}
SwContentType::~SwContentType()
@@ -467,7 +467,7 @@ const SwContent* SwContentType::GetMember(sal_uInt16 nIndex)
void SwContentType::Invalidate()
{
- bDataValid = sal_False;
+ bDataValid = false;
}
/***************************************************************************
@@ -785,7 +785,7 @@ void SwContentType::FillMemberList(sal_Bool* pbLevelOrVisibilityChanged)
}
break;
}
- bDataValid = sal_True;
+ bDataValid = true;
if(pOldMember)
pOldMember->DeleteAndDestroyAll();
@@ -822,17 +822,17 @@ SwContentTree::SwContentTree(Window* pParent, const ResId& rResId) :
nLastSelType(USHRT_MAX),
nOutlineLevel(MAXLEVEL),
- bIsActive(sal_True),
- bIsConstant(sal_False),
- bIsHidden(sal_False),
- bDocChgdInDragging(sal_False),
- bIsInternalDrag(sal_False),
- bIsRoot(sal_False),
- bIsIdleClear(sal_False),
+ bIsActive(true),
+ bIsConstant(false),
+ bIsHidden(false),
+ bDocChgdInDragging(false),
+ bIsInternalDrag(false),
+ bIsRoot(false),
+ bIsIdleClear(false),
bIsLastReadOnly(sal_False),
- bIsOutlineMoveable(sal_True),
- bViewHasChanged(sal_False),
- bIsImageListInitialized(sal_False)
+ bIsOutlineMoveable(true),
+ bViewHasChanged(false),
+ bIsImageListInitialized(false)
{
sal_uInt16 i;
@@ -861,7 +861,7 @@ SwContentTree::SwContentTree(Window* pParent, const ResId& rResId) :
SwContentTree::~SwContentTree()
{
Clear(); // vorher gfs. Inhaltstypen loeschen
- bIsInDrag = sal_False;
+ bIsInDrag = false;
}
/***************************************************************************
@@ -880,7 +880,7 @@ void SwContentTree::StartDrag( sal_Int8 nAction, const Point& rPosPixel )
sal_Int8 nDragMode = DND_ACTION_COPYMOVE | DND_ACTION_LINK;
if( FillTransferData( *pContainer, nDragMode ))
{
- SwContentTree::SetInDrag(sal_True);
+ SwContentTree::SetInDrag(true);
pContainer->StartDrag( this, nDragMode, GetDragFinishedHdl() );
}
}
@@ -893,8 +893,8 @@ void SwContentTree::DragFinished( sal_Int8 nAction )
//to prevent the removing of the selected entry in external drag and drop
// the drag action mustn't be MOVE
SvTreeListBox::DragFinished( bIsInternalDrag ? nAction : DND_ACTION_COPY );
- SwContentTree::SetInDrag(sal_False);
- bIsInternalDrag = sal_False;
+ SwContentTree::SetInDrag(false);
+ bIsInternalDrag = false;
}
/***************************************************************************
@@ -1032,11 +1032,11 @@ PopupMenu* SwContentTree::CreateContextMenu( void )
sal_Bool bReadonly = pActiveShell->GetView().GetDocShell()->IsReadOnly();
sal_Bool bVisible = !((SwContent*)pEntry->GetUserData())->IsInvisible();
sal_Bool bProtected = ((SwContent*)pEntry->GetUserData())->IsProtect();
- sal_Bool bEditable = pContType->IsEditable() &&
+ bool bEditable = pContType->IsEditable() &&
((bVisible && !bProtected) ||CONTENT_TYPE_REGION == nContentType);
- sal_Bool bDeletable = pContType->IsDeletable() &&
+ bool bDeletable = pContType->IsDeletable() &&
((bVisible && !bProtected) ||CONTENT_TYPE_REGION == nContentType);
- sal_Bool bRenamable = bEditable && !bReadonly &&
+ bool bRenamable = bEditable && !bReadonly &&
(CONTENT_TYPE_TABLE == nContentType ||
CONTENT_TYPE_FRAME == nContentType ||
CONTENT_TYPE_GRAPHIC == nContentType ||
@@ -1047,10 +1047,10 @@ PopupMenu* SwContentTree::CreateContextMenu( void )
if(!bReadonly && (bEditable || bDeletable))
{
- sal_Bool bSubPop4 = sal_False;
+ bool bSubPop4 = false;
if(CONTENT_TYPE_INDEX == nContentType)
{
- bSubPop4 = sal_True;
+ bSubPop4 = true;
pSubPop4->InsertItem(401, sRemoveIdx);
pSubPop4->InsertItem(402, sUpdateIdx);
@@ -1064,7 +1064,7 @@ PopupMenu* SwContentTree::CreateContextMenu( void )
}
else if(CONTENT_TYPE_TABLE == nContentType && !bReadonly)
{
- bSubPop4 = sal_True;
+ bSubPop4 = true;
pSubPop4->InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
pSubPop4->InsertItem(404, sUnprotTbl);
sal_Bool bFull = sal_False;
@@ -1081,7 +1081,7 @@ PopupMenu* SwContentTree::CreateContextMenu( void )
{
pSubPop4->InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
pSubPop4->InsertItem(501, aContextStrings[ST_DELETE_ENTRY - ST_CONTEXT_FIRST]);
- bSubPop4 = sal_True;
+ bSubPop4 = true;
}
else if(bEditable)
pPop->InsertItem(403, aContextStrings[ST_EDIT_ENTRY - ST_CONTEXT_FIRST]);
@@ -1246,7 +1246,7 @@ sal_Bool SwContentTree::Expand( SvTreeListEntry* pParent )
nHiddenBlock |= nOr;
if((pCntType->GetType() == CONTENT_TYPE_OUTLINE))
{
- std::map< void*, sal_Bool > mCurrOutLineNodeMap;
+ std::map< void*, bool > mCurrOutLineNodeMap;
SwWrtShell* pShell = GetWrtShell();
sal_Bool bBool = SvTreeListBox::Expand(pParent);
@@ -1257,11 +1257,11 @@ sal_Bool SwContentTree::Expand( SvTreeListEntry* pParent )
{
sal_Int32 nPos = ((SwContent*)pChild->GetUserData())->GetYPos();
void* key = (void*)pShell->getIDocumentOutlineNodesAccess()->getOutlineNode( nPos );
- mCurrOutLineNodeMap.insert(std::map<void*, sal_Bool>::value_type( key, sal_False ) );
- std::map<void*,sal_Bool>::iterator iter = mOutLineNodeMap.find( key );
+ mCurrOutLineNodeMap.insert(std::map<void*, bool>::value_type( key, false ) );
+ std::map<void*, bool>::iterator iter = mOutLineNodeMap.find( key );
if( iter != mOutLineNodeMap.end() && mOutLineNodeMap[key])
{
- mCurrOutLineNodeMap[key] = sal_True;
+ mCurrOutLineNodeMap[key] = true;
SvTreeListBox::Expand(pChild);
}
}
@@ -1277,7 +1277,7 @@ sal_Bool SwContentTree::Expand( SvTreeListEntry* pParent )
SwWrtShell* pShell = GetWrtShell();
sal_Int32 nPos = ((SwContent*)pParent->GetUserData())->GetYPos();
void* key = (void*)pShell->getIDocumentOutlineNodesAccess()->getOutlineNode( nPos );
- mOutLineNodeMap[key] = sal_True;
+ mOutLineNodeMap[key] = true;
}
}
return SvTreeListBox::Expand(pParent);
@@ -1312,7 +1312,7 @@ sal_Bool SwContentTree::Collapse( SvTreeListEntry* pParent )
SwWrtShell* pShell = GetWrtShell();
sal_Int32 nPos = ((SwContent*)pParent->GetUserData())->GetYPos();
void* key = (void*)pShell->getIDocumentOutlineNodesAccess()->getOutlineNode( nPos );
- mOutLineNodeMap[key] = sal_False;
+ mOutLineNodeMap[key] = false;
}
bRet = SvTreeListBox::Collapse(pParent);
}
@@ -1353,12 +1353,12 @@ IMPL_LINK_NOARG(SwContentTree, ContentDoubleClickHdl)
/***************************************************************************
Beschreibung: Anzeigen der Datei
***************************************************************************/
-void SwContentTree::Display( sal_Bool bActive )
+void SwContentTree::Display( bool bActive )
{
if(!bIsImageListInitialized)
{
aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
- bIsImageListInitialized = sal_True;
+ bIsImageListInitialized = true;
}
// erst den selektierten Eintrag auslesen, um ihn spaeter evtl. wieder
// zu selektieren -> die UserDaten sind hier nicht mehr gueltig!
@@ -1558,14 +1558,14 @@ void SwContentTree::Clear()
SetUpdateMode(sal_True);
}
-sal_Bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
+bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
sal_Int8& rDragMode )
{
SwWrtShell* pWrtShell = GetWrtShell();
OSL_ENSURE(pWrtShell, "no Shell!");
SvTreeListEntry* pEntry = GetCurEntry();
if(!pEntry || lcl_IsContentType(pEntry) || !pWrtShell)
- return sal_False;
+ return false;
String sEntry;
SwContent* pCnt = ((SwContent*)pEntry->GetUserData());
@@ -1627,7 +1627,7 @@ sal_Bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
sEntry = GetEntryText(pEntry);
}
- sal_Bool bRet = sal_False;
+ bool bRet = false;
if(sEntry.Len())
{
const SwDocShell* pDocShell = pWrtShell->GetView().GetDocShell();
@@ -1638,14 +1638,14 @@ sal_Bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
SfxMedium* pMedium = pDocShell->GetMedium();
sUrl = pMedium->GetURLObject().GetURLNoMark();
// nur, wenn primaer ein Link eingefuegt werden soll
- bRet = sal_True;
+ bRet = true;
}
else if( nActType == CONTENT_TYPE_REGION ||
nActType == CONTENT_TYPE_BOOKMARK )
{
// fuer Bereich und Textmarken ist ein Link auch ohne
// Dateiname ins eigene Dokument erlaubt
- bRet = sal_True;
+ bRet = true;
}
else if(bIsConstant &&
( !::GetActiveView() ||
@@ -1653,7 +1653,7 @@ sal_Bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
{
// Urls von inaktiven Views ohne Dateinamen koennen auch nicht
// gedraggt werden
- bRet = sal_False;
+ bRet = false;
}
else
{
@@ -1671,7 +1671,7 @@ sal_Bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
}
}
else
- bRet = sal_True;
+ bRet = true;
if( bRet )
{
@@ -1701,7 +1701,7 @@ sal_Bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
/***************************************************************************
Beschreibung: Umschalten der Anzeige auf Root
***************************************************************************/
-sal_Bool SwContentTree::ToggleToRoot()
+bool SwContentTree::ToggleToRoot()
{
if(!bIsRoot)
{
@@ -1714,26 +1714,26 @@ sal_Bool SwContentTree::ToggleToRoot()
else
pCntType = ((SwContent*)pEntry->GetUserData())->GetParent();
nRootType = pCntType->GetType();
- bIsRoot = sal_True;
+ bIsRoot = true;
Display(bIsActive || bIsConstant);
}
}
else
{
nRootType = USHRT_MAX;
- bIsRoot = sal_False;
+ bIsRoot = false;
FindActiveTypeAndRemoveUserData();
Display(bIsActive || bIsConstant);
}
pConfig->SetRootType( nRootType );
- GetParentWindow()->aContentToolBox.CheckItem(FN_SHOW_ROOT, bIsRoot);
+ GetParentWindow()->aContentToolBox.CheckItem(FN_SHOW_ROOT, bIsRoot ? sal_True : sal_False);
return bIsRoot;
}
/***************************************************************************
Beschreibung: Angezeigten Inhalt auf Gueltigkeit pruefen
***************************************************************************/
-sal_Bool SwContentTree::HasContentChanged()
+bool SwContentTree::HasContentChanged()
{
/*
-Parallel durch das lokale Array und die Treelistbox laufen.
@@ -1748,7 +1748,7 @@ sal_Bool SwContentTree::HasContentChanged()
*/
- sal_Bool bRepaint = sal_False;
+ bool bRepaint = false;
sal_Bool bInvalidate = sal_False;
if(!bIsActive && ! bIsConstant)
@@ -1761,17 +1761,17 @@ sal_Bool SwContentTree::HasContentChanged()
}
else if(bIsRoot)
{
- sal_Bool bOutline = sal_False;
+ bool bOutline = false;
SvTreeListEntry* pEntry = First();
if(!pEntry)
- bRepaint = sal_True;
+ bRepaint = true;
else
{
sal_uInt16 nType = ((SwContentType*)pEntry->GetUserData())->GetType();
bOutline = nRootType == CONTENT_TYPE_OUTLINE;
SwContentType* pArrType = aActiveContentArr[nType];
if(!pArrType)
- bRepaint = sal_True;
+ bRepaint = true;
else
{
sal_uInt16 nSelLevel = USHRT_MAX;
@@ -1784,8 +1784,9 @@ sal_Bool SwContentTree::HasContentChanged()
nSelLevel = ((SwOutlineContent*)pFirstSel->GetUserData())->GetOutlineLevel();
SwWrtShell* pSh = GetWrtShell();
sal_uInt16 nOutlinePos = pSh->GetOutlinePos(MAXLEVEL);
- bRepaint |= nOutlinePos != USHRT_MAX &&
- pSh->getIDocumentOutlineNodesAccess()->getOutlineLevel(nOutlinePos) != nSelLevel;
+ if (nOutlinePos != USHRT_MAX &&
+ pSh->getIDocumentOutlineNodesAccess()->getOutlineLevel(nOutlinePos) != nSelLevel)
+ bRepaint = true;
}
pArrType->Init(&bInvalidate);
@@ -1794,7 +1795,7 @@ sal_Bool SwContentTree::HasContentChanged()
if(!bRepaint)
{
if(GetChildCount(pEntry) != pArrType->GetMemberCount())
- bRepaint = sal_True;
+ bRepaint = true;
else
{
sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry);
@@ -1806,7 +1807,7 @@ sal_Bool SwContentTree::HasContentChanged()
String sEntryText = GetEntryText(pEntry);
if( sEntryText != pCnt->GetName() &&
!(sEntryText == sSpace && !pCnt->GetName().Len()))
- bRepaint = sal_True;
+ bRepaint = true;
}
}
}
@@ -1838,13 +1839,13 @@ sal_Bool SwContentTree::HasContentChanged()
SvTreeListEntry* pEntry = First();
while ( pEntry )
{
- sal_Bool bNext = sal_True; // mindestens ein Next muss sein
+ bool bNext = true; // mindestens ein Next muss sein
SwContentType* pTreeType = (SwContentType*)pEntry->GetUserData();
sal_uInt16 nType = pTreeType->GetType();
sal_uInt16 nTreeCount = pTreeType->GetMemberCount();
SwContentType* pArrType = aActiveContentArr[nType];
if(!pArrType)
- bRepaint = sal_True;
+ bRepaint = true;
else
{
pArrType->Init(&bInvalidate);
@@ -1858,24 +1859,24 @@ sal_Bool SwContentTree::HasContentChanged()
pArrType->FillMemberList(&bLevelOrVisibiblityChanged);
sal_uInt16 nChildCount = (sal_uInt16)GetChildCount(pEntry);
if((nType == CONTENT_TYPE_OUTLINE) && bLevelOrVisibiblityChanged)
- bRepaint = sal_True;
+ bRepaint = true;
if(bLevelOrVisibiblityChanged)
bInvalidate = sal_True;
if(nChildCount != pArrType->GetMemberCount())
- bRepaint = sal_True;
+ bRepaint = true;
else
{
for(sal_uInt16 j = 0; j < nChildCount; j++)
{
pEntry = Next(pEntry);
- bNext = sal_False;
+ bNext = false;
const SwContent* pCnt = pArrType->GetMember(j);
pEntry->SetUserData((void*)pCnt);
String sEntryText = GetEntryText(pEntry);
if( sEntryText != pCnt->GetName() &&
!(sEntryText == sSpace && !pCnt->GetName().Len()))
- bRepaint = sal_True;
+ bRepaint = true;
}
}
@@ -1931,14 +1932,14 @@ sal_Bool SwContentTree::HasContentChanged()
else if((nTreeCount != 0)
!= (pArrType->GetMemberCount()!=0))
{
- bRepaint = sal_True;
+ bRepaint = true;
}
}
//hier muss noch der naechste Root-Entry gefunden werden
while( pEntry && (bNext || GetParent(pEntry ) ))
{
pEntry = Next(pEntry);
- bNext = sal_False;
+ bNext = false;
}
}
}
@@ -1980,8 +1981,8 @@ void SwContentTree::FindActiveTypeAndRemoveUserData()
void SwContentTree::SetHiddenShell(SwWrtShell* pSh)
{
pHiddenShell = pSh;
- bIsHidden = sal_True;
- bIsActive = bIsConstant = sal_False;
+ bIsHidden = true;
+ bIsActive = bIsConstant = false;
FindActiveTypeAndRemoveUserData();
for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
{
@@ -1997,7 +1998,7 @@ void SwContentTree::SetHiddenShell(SwWrtShell* pSh)
void SwContentTree::SetActiveShell(SwWrtShell* pSh)
{
if(bIsInternalDrag)
- bDocChgdInDragging = sal_True;
+ bDocChgdInDragging = true;
sal_Bool bClear = pActiveShell != pSh;
if(bIsActive && bClear)
{
@@ -2010,8 +2011,8 @@ void SwContentTree::SetActiveShell(SwWrtShell* pSh)
if(!lcl_FindShell(pActiveShell))
{
pActiveShell = pSh;
- bIsActive = sal_True;
- bIsConstant = sal_False;
+ bIsActive = true;
+ bIsConstant = false;
bClear = sal_True;
}
}
@@ -2024,7 +2025,7 @@ void SwContentTree::SetActiveShell(SwWrtShell* pSh)
{
DELETEZ(aActiveContentArr[i]);
}
- Display(sal_True);
+ Display(true);
}
}
@@ -2034,14 +2035,14 @@ void SwContentTree::SetActiveShell(SwWrtShell* pSh)
void SwContentTree::SetConstantShell(SwWrtShell* pSh)
{
pActiveShell = pSh;
- bIsActive = sal_False;
- bIsConstant = sal_True;
+ bIsActive = false;
+ bIsConstant = true;
FindActiveTypeAndRemoveUserData();
for(sal_uInt16 i=0; i < CONTENT_TYPE_MAX; i++)
{
DELETEZ(aActiveContentArr[i]);
}
- Display(sal_True);
+ Display(true);
}
/***************************************************************************
@@ -2180,7 +2181,7 @@ void SwContentTree::ExecCommand(sal_uInt16 nCmd, sal_Bool bModifier)
pShell->EndAllAction();
if(aActiveContentArr[CONTENT_TYPE_OUTLINE])
aActiveContentArr[CONTENT_TYPE_OUTLINE]->Invalidate();
- Display(sal_True);
+ Display(true);
if(!bIsRoot)
{
const sal_uInt16 nCurrPos = pShell->GetOutlinePos(MAXLEVEL);
@@ -2227,8 +2228,8 @@ IMPL_LINK_NOARG(SwContentTree, TimerUpdate)
!bIsInDrag && !bIsInternalDrag && pView &&
pView->GetWrtShellPtr() && !pView->GetWrtShellPtr()->ActionPend() )
{
- bViewHasChanged = sal_False;
- bIsIdleClear = sal_False;
+ bViewHasChanged = false;
+ bIsIdleClear = false;
SwWrtShell* pActShell = pView->GetWrtShellPtr();
if( bIsConstant && !lcl_FindShell( pActiveShell ) )
{
@@ -2242,7 +2243,7 @@ IMPL_LINK_NOARG(SwContentTree, TimerUpdate)
HasContentChanged())
{
FindActiveTypeAndRemoveUserData();
- Display(sal_True);
+ Display(true);
}
}
else if(!pView && bIsActive && !bIsIdleClear)
@@ -2250,7 +2251,7 @@ IMPL_LINK_NOARG(SwContentTree, TimerUpdate)
if(pActiveShell)
SetActiveShell(0);
Clear();
- bIsIdleClear = sal_True;
+ bIsIdleClear = true;
}
return 0;
}
@@ -2269,8 +2270,8 @@ DragDropMode SwContentTree::NotifyStartDrag(
sal_Int8 nDragMode;
FillTransferData( rContainer, nDragMode );
- bDocChgdInDragging = sal_False;
- bIsInternalDrag = sal_True;
+ bDocChgdInDragging = false;
+ bIsInternalDrag = true;
return eMode;
}
@@ -2307,7 +2308,7 @@ sal_Bool SwContentTree::NotifyMoving( SvTreeListEntry* pTarget,
sal_True);
aActiveContentArr[CONTENT_TYPE_OUTLINE]->Invalidate();
- Display(sal_True);
+ Display(true);
}
//TreeListBox will be reloaded from the document
return sal_False;
@@ -2346,7 +2347,7 @@ sal_Bool SwContentTree::NotifyCopying( SvTreeListEntry* pTarget,
//TreeListBox wird aus dem Dokument neu geladen
aActiveContentArr[CONTENT_TYPE_OUTLINE]->Invalidate();
- Display(sal_True);
+ Display(true);
}
return sal_False;
}
@@ -2392,7 +2393,7 @@ void SwContentTree::GetFocus()
else if( (bIsActive || (bIsConstant && pActShell == GetWrtShell())) &&
HasContentChanged())
{
- Display(sal_True);
+ Display(true);
}
}
else if(bIsActive)
@@ -2440,7 +2441,7 @@ void SwContentTree::KeyInput(const KeyEvent& rEvent)
!pActiveShell->GetView().GetDocShell()->IsReadOnly())
{
EditEntry(pEntry, EDIT_MODE_DELETE);
- bViewHasChanged = sal_True;
+ bViewHasChanged = true;
GetParentWindow()->UpdateListBox();
TimerUpdate(&aUpdTimer);
GrabFocus();
@@ -2648,7 +2649,7 @@ void SwContentTree::ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry
if(nSelectedPopupEntry)
{
bViewHasChanged = bIsActive = nSelectedPopupEntry == 1;
- bIsConstant = sal_False;
+ bIsConstant = false;
Display(nSelectedPopupEntry == 1);
}
}
@@ -2678,9 +2679,9 @@ void SwContentTree::ShowHiddenShell()
{
if(pHiddenShell)
{
- bIsConstant = sal_False;
- bIsActive = sal_False;
- Display(sal_False);
+ bIsConstant = false;
+ bIsActive = false;
+ Display(false);
}
}
@@ -2689,9 +2690,9 @@ void SwContentTree::ShowHiddenShell()
***************************************************************************/
void SwContentTree::ShowActualView()
{
- bIsActive = sal_True;
- bIsConstant = sal_False;
- Display(sal_True);
+ bIsActive = true;
+ bIsConstant = false;
+ Display(true);
GetParentWindow()->UpdateListBox();
}
@@ -2725,7 +2726,7 @@ sal_Bool SwContentTree::Select( SvTreeListEntry* pEntry, sal_Bool bSelect )
void SwContentTree::SetRootType(sal_uInt16 nType)
{
nRootType = nType;
- bIsRoot = sal_True;
+ bIsRoot = true;
pConfig->SetRootType( nRootType );
}
@@ -3164,7 +3165,7 @@ void SwContentTree::DataChanged( const DataChangedEvent& rDCEvt )
{
aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
FindActiveTypeAndRemoveUserData();
- Display(sal_True);
+ Display(true);
}
SvTreeListBox::DataChanged( rDCEvt );
}
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index b1614d851dbe..af393ae8eae1 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -155,9 +155,9 @@ SwGlobalTree::SwGlobalTree(Window* pParent, const ResId& rResId) :
pDocContent ( NULL ),
pDocInserter ( NULL ),
- bIsInternalDrag ( sal_False ),
- bLastEntryEmphasis ( sal_False ),
- bIsImageListInitialized ( sal_False )
+ bIsInternalDrag ( false ),
+ bLastEntryEmphasis ( false ),
+ bIsImageListInitialized ( false )
{
SetDragDropMode(SV_DRAGDROP_APP_COPY |
@@ -258,7 +258,7 @@ sal_Int8 SwGlobalTree::ExecuteDrop( const ExecuteDropEvent& rEvt )
}
}
}
- bLastEntryEmphasis = sal_False;
+ bLastEntryEmphasis = false;
return nRet;
}
@@ -281,7 +281,7 @@ sal_Int8 SwGlobalTree::AcceptDrop( const AcceptDropEvent& rEvt )
{
ImplShowTargetEmphasis( pLast, sal_False);
}
- bLastEntryEmphasis = sal_False;
+ bLastEntryEmphasis = false;
}
else
{
@@ -307,7 +307,7 @@ sal_Int8 SwGlobalTree::AcceptDrop( const AcceptDropEvent& rEvt )
else if(pLast && bLastEntryEmphasis && pDropEntry)
{
ImplShowTargetEmphasis( pLast, sal_False);
- bLastEntryEmphasis = sal_False;
+ bLastEntryEmphasis = false;
}
if(pDropEntry)
@@ -315,7 +315,7 @@ sal_Int8 SwGlobalTree::AcceptDrop( const AcceptDropEvent& rEvt )
else if(pLast)
{
ImplShowTargetEmphasis( pLast, DND_ACTION_NONE != nRet );
- bLastEntryEmphasis = sal_True;
+ bLastEntryEmphasis = true;
}
pEmphasisEntry = pDropEntry;
}
@@ -455,7 +455,7 @@ void SwGlobalTree::RequestHelp( const HelpEvent& rHEvt )
{
sal_Bool bParent = sal_True;
Update(sal_True);
- Display(sal_True);
+ Display(true);
if( rHEvt.GetMode() & HELPMODE_QUICK )
{
Point aPos( ScreenToOutputPixel( rHEvt.GetMousePosPixel() ));
@@ -526,7 +526,7 @@ void SwGlobalTree::DeselectHdl()
DragDropMode SwGlobalTree::NotifyStartDrag( TransferDataContainer& ,
SvTreeListEntry* pEntry )
{
- bIsInternalDrag = sal_True;
+ bIsInternalDrag = true;
pDDSource = pEntry;
return SV_DRAGDROP_CTRL_MOVE;
}
@@ -576,7 +576,7 @@ void SwGlobalTree::StartDrag( sal_Int8 nAction, const Point& rPt )
void SwGlobalTree::DragFinished( sal_Int8 nAction )
{
SvTreeListBox::DragFinished( nAction );
- bIsInternalDrag = sal_False;
+ bIsInternalDrag = false;
}
/***************************************************************************
@@ -623,12 +623,12 @@ void SwGlobalTree::Clear()
SvTreeListBox::Clear();
}
-void SwGlobalTree::Display(sal_Bool bOnlyUpdateUserData)
+void SwGlobalTree::Display(bool bOnlyUpdateUserData)
{
if(!bIsImageListInitialized)
{
aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP));
- bIsImageListInitialized = sal_True;
+ bIsImageListInitialized = true;
}
sal_uInt16 nCount = pSwGlblDocContents->size();
if(bOnlyUpdateUserData && GetEntryCount() == pSwGlblDocContents->size())