diff options
Diffstat (limited to 'sw/source/ui/dbui/customizeaddresslistdialog.cxx')
-rw-r--r-- | sw/source/ui/dbui/customizeaddresslistdialog.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/dbui/customizeaddresslistdialog.cxx b/sw/source/ui/dbui/customizeaddresslistdialog.cxx index f5191fe0fe55..d1da798202c0 100644 --- a/sw/source/ui/dbui/customizeaddresslistdialog.cxx +++ b/sw/source/ui/dbui/customizeaddresslistdialog.cxx @@ -107,7 +107,7 @@ IMPL_LINK(SwCustomizeAddressListDialog, ListBoxSelectHdl_Impl, ListBox*, EMPTYAR IMPL_LINK(SwCustomizeAddressListDialog, AddRenameHdl_Impl, PushButton*, pButton) { bool bRename = pButton == &m_aRenamePB; - USHORT nPos = m_aFieldsLB.GetSelectEntryPos(); + sal_uInt16 nPos = m_aFieldsLB.GetSelectEntryPos(); if(nPos == LISTBOX_ENTRY_NOTFOUND) nPos = 0; @@ -152,7 +152,7 @@ IMPL_LINK(SwCustomizeAddressListDialog, AddRenameHdl_Impl, PushButton*, pButton) -----------------------------------------------------------------------*/ IMPL_LINK(SwCustomizeAddressListDialog, DeleteHdl_Impl, PushButton*, EMPTYARG) { - USHORT nPos = m_aFieldsLB.GetSelectEntryPos(); + sal_uInt16 nPos = m_aFieldsLB.GetSelectEntryPos(); m_aFieldsLB.RemoveEntry(m_aFieldsLB.GetSelectEntryPos()); m_aFieldsLB.SelectEntryPos(nPos > m_aFieldsLB.GetEntryCount() - 1 ? nPos - 1 : nPos); @@ -171,8 +171,8 @@ IMPL_LINK(SwCustomizeAddressListDialog, DeleteHdl_Impl, PushButton*, EMPTYARG) -----------------------------------------------------------------------*/ IMPL_LINK(SwCustomizeAddressListDialog, UpDownHdl_Impl, PushButton*, pButton) { - USHORT nPos; - USHORT nOldPos = nPos = m_aFieldsLB.GetSelectEntryPos(); + sal_uInt16 nPos; + sal_uInt16 nOldPos = nPos = m_aFieldsLB.GetSelectEntryPos(); String aTemp = m_aFieldsLB.GetEntry(nPos); m_aFieldsLB.RemoveEntry( nPos ); if(pButton == &m_aUpPB) @@ -201,8 +201,8 @@ IMPL_LINK(SwCustomizeAddressListDialog, UpDownHdl_Impl, PushButton*, pButton) -----------------------------------------------------------------------*/ void SwCustomizeAddressListDialog::UpdateButtons() { - USHORT nPos = m_aFieldsLB.GetSelectEntryPos(); - USHORT nEntries = m_aFieldsLB.GetEntryCount(); + sal_uInt16 nPos = m_aFieldsLB.GetSelectEntryPos(); + sal_uInt16 nEntries = m_aFieldsLB.GetEntryCount(); m_aUpPB.Enable(nPos > 0 && nEntries > 0); m_aDownPB.Enable(nPos < nEntries -1); m_aDeletePB.Enable(nEntries > 0); @@ -255,7 +255,7 @@ SwAddRenameEntryDialog::~SwAddRenameEntryDialog() IMPL_LINK(SwAddRenameEntryDialog, ModifyHdl_Impl, Edit*, pEdit) { ::rtl::OUString sEntry = pEdit->GetText(); - BOOL bFound = sEntry.getLength() ? FALSE : TRUE; + sal_Bool bFound = sEntry.getLength() ? sal_False : sal_True; if(!bFound) { @@ -265,7 +265,7 @@ IMPL_LINK(SwAddRenameEntryDialog, ModifyHdl_Impl, Edit*, pEdit) ++aHeaderIter) if(*aHeaderIter == sEntry) { - bFound = TRUE; + bFound = sal_True; break; } } |