summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/fldtdlg.cxx
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2011-01-17 15:06:54 +0100
committerCarsten Driesner <cd@openoffice.org>2011-01-17 15:06:54 +0100
commit7f33ed417b2e29e5470724ea76967f64699a2662 (patch)
treeabfa1432c5ffffe4c7502d4ddcaee918c584c69c /sw/source/ui/fldui/fldtdlg.cxx
parent80731dbfcb48a2ffec30a4b2abe1ba8ada8f0169 (diff)
removetooltypes01: #i112600# Remove tools types from sw
Diffstat (limited to 'sw/source/ui/fldui/fldtdlg.cxx')
-rw-r--r--sw/source/ui/fldui/fldtdlg.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx
index 308bc379d4f4..9efc63519459 100644
--- a/sw/source/ui/fldui/fldtdlg.cxx
+++ b/sw/source/ui/fldui/fldtdlg.cxx
@@ -76,7 +76,7 @@ SwFldDlg::SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent)
: SfxTabDialog( pParent, SW_RES( DLG_FLD_INSERT )),
m_pChildWin(pCW),
m_pBindings(pB),
- m_bDataBaseMode(FALSE)
+ m_bDataBaseMode(sal_False)
{
SetStyle(GetStyle()|WB_STDMODELESS);
m_bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
@@ -142,12 +142,12 @@ SwFldDlg::~SwFldDlg()
Beschreibung:
--------------------------------------------------------------------*/
-BOOL SwFldDlg::Close()
+sal_Bool SwFldDlg::Close()
{
m_pBindings->GetDispatcher()->
Execute(m_bDataBaseMode ? FN_INSERT_FIELD_DATA_ONLY : FN_INSERT_FIELD,
SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD);
- return TRUE;
+ return sal_True;
}
/*--------------------------------------------------------------------
@@ -204,7 +204,7 @@ void SwFldDlg::Initialize(SfxChildWinInfo *pInfo)
Beschreibung:
--------------------------------------------------------------------*/
-SfxItemSet* SwFldDlg::CreateInputItemSet( USHORT nID )
+SfxItemSet* SwFldDlg::CreateInputItemSet( sal_uInt16 nID )
{
if ( nID == TP_FLD_DOKINF )
{
@@ -249,7 +249,7 @@ IMPL_LINK( SwFldDlg, OKHdl, Button *, EMPTYARG )
void SwFldDlg::ReInitDlg()
{
SwDocShell* pDocSh = (SwDocShell*)SfxObjectShell::Current();
- BOOL bNewMode = (::GetHtmlMode(pDocSh) & HTMLMODE_ON) != 0;
+ sal_Bool bNewMode = (::GetHtmlMode(pDocSh) & HTMLMODE_ON) != 0;
if (bNewMode != m_bHtmlMode)
{
@@ -283,7 +283,7 @@ void SwFldDlg::ReInitDlg()
Beschreibung: Nach Dok-Wechsel TabPage neu initialisieren
--------------------------------------------------------------------*/
-void SwFldDlg::ReInitTabPage( USHORT nPageId, BOOL bOnlyActivate )
+void SwFldDlg::ReInitTabPage( sal_uInt16 nPageId, sal_Bool bOnlyActivate )
{
SwFldPage* pPage = (SwFldPage* )GetTabPage(nPageId);
@@ -300,17 +300,17 @@ void SwFldDlg::Activate()
SwView* pView = ::GetActiveView();
if( pView )
{
- BOOL bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
+ sal_Bool bHtmlMode = (::GetHtmlMode((SwDocShell*)SfxObjectShell::Current()) & HTMLMODE_ON) != 0;
const SwWrtShell& rSh = pView->GetWrtShell();
GetOKButton().Enable( !rSh.IsReadOnlyAvailable() ||
!rSh.HasReadonlySel() );
- ReInitTabPage( TP_FLD_VAR, TRUE );
+ ReInitTabPage( TP_FLD_VAR, sal_True );
if( !bHtmlMode )
{
- ReInitTabPage( TP_FLD_REF, TRUE );
- ReInitTabPage( TP_FLD_FUNC, TRUE );
+ ReInitTabPage( TP_FLD_REF, sal_True );
+ ReInitTabPage( TP_FLD_FUNC, sal_True );
}
}
}
@@ -319,7 +319,7 @@ void SwFldDlg::Activate()
Beschreibung:
--------------------------------------------------------------------*/
-void SwFldDlg::EnableInsert(BOOL bEnable)
+void SwFldDlg::EnableInsert(sal_Bool bEnable)
{
if( bEnable )
{
@@ -328,7 +328,7 @@ void SwFldDlg::EnableInsert(BOOL bEnable)
if( !pView ||
(pView->GetWrtShell().IsReadOnlyAvailable() &&
pView->GetWrtShell().HasReadonlySel()) )
- bEnable = FALSE;
+ bEnable = sal_False;
}
GetOKButton().Enable(bEnable);
}
@@ -346,7 +346,7 @@ void SwFldDlg::InsertHdl()
* --------------------------------------------------*/
void SwFldDlg::ActivateDatabasePage()
{
- m_bDataBaseMode = TRUE;
+ m_bDataBaseMode = sal_True;
ShowPage( TP_FLD_DB );
SfxTabPage* pDBPage = GetTabPage( TP_FLD_DB );
if( pDBPage )
@@ -363,7 +363,7 @@ void SwFldDlg::ActivateDatabasePage()
/*-- 07.10.2003 14:01:44---------------------------------------------------
-----------------------------------------------------------------------*/
-void SwFldDlg::PageCreated(USHORT nId, SfxTabPage& rPage)
+void SwFldDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage)
{
if( TP_FLD_DB == nId)
{