diff options
Diffstat (limited to 'sw/source/ui/shells/textglos.cxx')
-rw-r--r-- | sw/source/ui/shells/textglos.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/source/ui/shells/textglos.cxx b/sw/source/ui/shells/textglos.cxx index a1a9f87ca918..fab748cf45f8 100644 --- a/sw/source/ui/shells/textglos.cxx +++ b/sw/source/ui/shells/textglos.cxx @@ -49,28 +49,28 @@ void SwTextShell::ExecGlossary(SfxRequest &rReq) { - USHORT nSlot = rReq.GetSlot(); + sal_uInt16 nSlot = rReq.GetSlot(); ::GetGlossaries()->UpdateGlosPath(!rReq.IsAPI() || FN_GLOSSARY_DLG == nSlot ); SwGlossaryHdl* pGlosHdl = GetView().GetGlosHdl(); // SwGlossaryList updaten? - BOOL bUpdateList = FALSE; + sal_Bool bUpdateList = sal_False; const SfxItemSet *pArgs = rReq.GetArgs(); const SfxPoolItem* pItem = 0; if(pArgs) - pArgs->GetItemState(nSlot, FALSE, &pItem ); + pArgs->GetItemState(nSlot, sal_False, &pItem ); switch( nSlot ) { case FN_GLOSSARY_DLG: pGlosHdl->GlossaryDlg(); - bUpdateList = TRUE; + bUpdateList = sal_True; rReq.Ignore(); break; case FN_EXPAND_GLOSSARY: { - BOOL bReturn; + sal_Bool bReturn; bReturn = pGlosHdl->ExpandGlossary(); rReq.SetReturnValue( SfxBoolItem( nSlot, bReturn ) ); rReq.Done(); @@ -81,10 +81,10 @@ void SwTextShell::ExecGlossary(SfxRequest &rReq) { String aGroup = (( const SfxStringItem *)pItem)->GetValue(); String aName; - if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_1, FALSE, &pItem )) + if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_1, sal_False, &pItem )) aName = (( const SfxStringItem *)pItem)->GetValue(); String aShortName; - if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_2, FALSE, &pItem )) + if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_2, sal_False, &pItem )) aShortName = (( const SfxStringItem *)pItem)->GetValue(); SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); @@ -92,12 +92,12 @@ void SwTextShell::ExecGlossary(SfxRequest &rReq) ::GlossarySetActGroup fnSetActGroup = pFact->SetGlossaryActGroupFunc( DLG_RENAME_GLOS ); if ( fnSetActGroup ) (*fnSetActGroup)( aGroup ); - pGlosHdl->SetCurGroup(aGroup, TRUE); + pGlosHdl->SetCurGroup(aGroup, sal_True); //eingestellte Gruppe muss in NewGlossary ggf. erzeugt werden! - pGlosHdl->NewGlossary( aName, aShortName, TRUE ); + pGlosHdl->NewGlossary( aName, aShortName, sal_True ); rReq.Done(); } - bUpdateList = TRUE; + bUpdateList = sal_True; break; case FN_SET_ACT_GLOSSARY: if(pItem) @@ -117,21 +117,21 @@ void SwTextShell::ExecGlossary(SfxRequest &rReq) { String aGroup = (( const SfxStringItem *)pItem)->GetValue(); String aName; - if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_1, FALSE, &pItem )) + if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_1, sal_False, &pItem )) aName = (( const SfxStringItem *)pItem)->GetValue(); SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); DBG_ASSERT(pFact, "Dialogdiet fail!"); ::GlossarySetActGroup fnSetActGroup = pFact->SetGlossaryActGroupFunc( DLG_RENAME_GLOS ); if ( fnSetActGroup ) (*fnSetActGroup)( aGroup ); - pGlosHdl->SetCurGroup(aGroup, TRUE); + pGlosHdl->SetCurGroup(aGroup, sal_True); rReq.SetReturnValue(SfxBoolItem(nSlot, pGlosHdl->InsertGlossary( aName ))); rReq.Done(); } } break; default: - ASSERT(FALSE, falscher Dispatcher); + ASSERT(sal_False, falscher Dispatcher); return; } if(bUpdateList) |