summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog')
-rwxr-xr-xsfx2/source/dialog/passwd.cxx2
-rwxr-xr-xsfx2/source/dialog/splitwin.cxx2
-rwxr-xr-xsfx2/source/dialog/tabdlg.cxx2
-rwxr-xr-xsfx2/source/dialog/taskpane.cxx2
-rwxr-xr-xsfx2/source/dialog/templdlg.cxx20
5 files changed, 15 insertions, 13 deletions
diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index d3da6de72887..04ee807f988d 100755
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -254,7 +254,7 @@ short SfxPasswordDialog::Execute()
Size a6Size = LogicToPixel( Size( 6, 6 ), MAP_APPFONT );
long nMinHeight = maHelpBtn.GetPosPixel().Y() +
maHelpBtn.GetSizePixel().Height() + a6Size.Height();
- USHORT nRowHided = 1;
+ sal_uInt16 nRowHided = 1;
if ( SHOWEXTRAS_NONE == mnExtras )
{
diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx
index 58535f062b3a..4e56e6bfcbf2 100755
--- a/sfx2/source/dialog/splitwin.cxx
+++ b/sfx2/source/dialog/splitwin.cxx
@@ -606,7 +606,7 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize
// Das Fenster mu\s vor dem ersten Fenster eingef"ugt werden, das die
// gleiche oder eine gr"o\sere Position hat als pDockWin.
sal_uInt16 nCount = pDockArr->Count();
- USHORT nLastWindowIdx(0);
+ sal_uInt16 nLastWindowIdx(0);
// Wenn gar kein Fenster gefunden wird, wird als erstes eingef"ugt
sal_uInt16 nInsertPos = 0;
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 8a10a84137b7..66a4a3623347 100755
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -388,7 +388,7 @@ const SfxPoolItem* SfxTabPage::GetItem( const SfxItemSet& rSet, sal_uInt16 nSlot
const SfxItemPool* pPool = rSet.GetPool();
sal_uInt16 nWh = pPool->GetWhich( nSlot, bDeep );
const SfxPoolItem* pItem = 0;
- rSet.GetItemState( nWh, TRUE, &pItem );
+ rSet.GetItemState( nWh, sal_True, &pItem );
if ( !pItem && nWh != nSlot )
pItem = &pPool->GetDefaultItem( nWh );
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index 4d88ad76a500..32d8a0eee230 100755
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -185,7 +185,7 @@ namespace sfx2
aCommandName.append( sImageURL.copy( nCommandImagePrefixLen ) );
const ::rtl::OUString sCommandName( aCommandName.makeStringAndClear() );
- const Image aPanelImage( GetImage( i_rDocFrame, sCommandName, FALSE ) );
+ const Image aPanelImage( GetImage( i_rDocFrame, sCommandName, sal_False ) );
return aPanelImage.GetXGraphic();
}
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 5e1f75571127..c8665093acc5 100755
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -692,9 +692,10 @@ StyleTreeArr_Impl &MakeTree_Impl(StyleTreeArr_Impl &rArr)
if(pCmp->aName == pEntry->aParent)
{
// initial sortiert einfuegen
- sal_uInt16 ii;
+ sal_uInt16 nPos;
for( nPos = 0 ; nPos < pCmp->Count() &&
- aSorter.compare((*pCmp->pChilds)[nPos]->aName, pEntry->aName) < 0 ; nPos++);
+ aSorter.compare((*pCmp->pChilds)[nPos]->aName, pEntry->aName) < 0 ; nPos++)
+ {};
pCmp->Put(pEntry,nPos);
break;
}
@@ -865,8 +866,8 @@ sal_uInt16 SfxCommonTemplateDialog_Impl::InfoOffsetToStyleNr(sal_uInt16 nId)
void SfxCommonTemplateDialog_Impl::ReadResource()
{
// globale Benutzer-Resource auslesen
- sal_uInt16 i;
- for(i = 0; i < MAX_FAMILIES; ++i)
+
+ for(sal_uInt16 i = 0; i < MAX_FAMILIES; ++i)
pFamilyState[i] = 0;
SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame();
@@ -895,7 +896,7 @@ void SfxCommonTemplateDialog_Impl::ReadResource()
for(i = 0; i < nCount; ++i)
{
sal_uInt16 nSlot = 0;
- switch( (USHORT)pStyleFamilies->at( i )->GetFamily() )
+ switch( (sal_uInt16)pStyleFamilies->at( i )->GetFamily() )
{
case SFX_STYLE_FAMILY_CHAR: nSlot = SID_STYLE_FAMILY1; break;
case SFX_STYLE_FAMILY_PARA: nSlot = SID_STYLE_FAMILY2; break;
@@ -1332,7 +1333,8 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
//Bubblesort
sal_uInt16 nPos;
for( nPos = aStrings.Count() ; nPos &&
- aSorter.compare(*(aStrings[nPos-1]), pStyle->GetName()) > 0 ; nPos--);
+ aSorter.compare(*(aStrings[nPos-1]), pStyle->GetName()) > 0 ; nPos--)
+ {};
aStrings.Insert( new String( pStyle->GetName() ), nPos );
pStyle = pStyleSheetPool->Next();
}
@@ -1356,7 +1358,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
nPos = 0;
for(nPos = 0 ; nPos < nCount ; ++nPos )
{
- aFmtLb.InsertEntry( *aStrings.GetObject( nPos ), 0, FALSE, nPos);
+ aFmtLb.InsertEntry( *aStrings.GetObject( nPos ), 0, sal_False, nPos);
}
aFmtLb.SetUpdateMode(true);
}
@@ -2288,7 +2290,7 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl(
pDlgWindow->FreeResource();
SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame();
pCurObjShell = pViewFrame->GetObjectShell();
- USHORT nSavedFilter = static_cast< USHORT >( LoadFactoryStyleFilter( pCurObjShell ) );
+ sal_uInt16 nSavedFilter = static_cast< sal_uInt16 >( LoadFactoryStyleFilter( pCurObjShell ) );
Initialize();
m_aActionTbL.SetSelectHdl(LINK(this, SfxTemplateDialog_Impl, ToolBoxLSelect));
@@ -2302,7 +2304,7 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl(
m_aActionTbL.SetHelpId( HID_TEMPLDLG_TOOLBOX_LEFT );
if( nSavedFilter == HIERARCHICAL_FILTER_INDEX )
{
- bHierarchical = FALSE; // Force content refresh
+ bHierarchical = sal_False; // Force content refresh
aFilterLb.SelectEntry(String(SfxResId(STR_STYLE_FILTER_HIERARCHICAL)));
FilterSelectHdl(&aFilterLb);
}