summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/control/opendoccontrols.cxx
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2011-01-14 15:00:11 +0100
committerMikhail Voytenko <mav@openoffice.org>2011-01-14 15:00:11 +0100
commit7450cf343d9b86bb985f5f8787d9069f902335d5 (patch)
tree4dfe653f1745f850cb7e16a34b220b8aa0baecc3 /dbaccess/source/ui/control/opendoccontrols.cxx
parent54c2ecedc7d83498428678b4f7f0a25372e82f0d (diff)
removetooltypes01: #i112600# remove tooltypes from dbaccess
Diffstat (limited to 'dbaccess/source/ui/control/opendoccontrols.cxx')
-rw-r--r--dbaccess/source/ui/control/opendoccontrols.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/ui/control/opendoccontrols.cxx b/dbaccess/source/ui/control/opendoccontrols.cxx
index 4e76e0e06..58b98dd81 100644
--- a/dbaccess/source/ui/control/opendoccontrols.cxx
+++ b/dbaccess/source/ui/control/opendoccontrols.cxx
@@ -227,8 +227,8 @@ namespace dbaui
// Place icon left of text and both centered in the button.
SetModeImage( GetCommandIcon( ".uno:Open", m_sModule ), BMP_COLOR_NORMAL );
- EnableImageDisplay( TRUE );
- EnableTextDisplay( TRUE );
+ EnableImageDisplay( sal_True );
+ EnableTextDisplay( sal_True );
SetImageAlign( IMAGEALIGN_LEFT );
SetStyle( GetStyle() | WB_CENTER );
}
@@ -287,7 +287,7 @@ namespace dbaui
String sDecodedURL = aURL.GetMainURL( INetURLObject::NO_DECODE );
- USHORT nPos = InsertEntry( sTitle );
+ sal_uInt16 nPos = InsertEntry( sTitle );
m_aURLs.insert( MapIndexToStringPair::value_type( nPos, StringPair( sDecodedURL, sFilter ) ) );
}
}
@@ -302,7 +302,7 @@ namespace dbaui
String OpenDocumentListBox::GetSelectedDocumentURL() const
{
String sURL;
- USHORT nSelected = GetSelectEntryPos();
+ sal_uInt16 nSelected = GetSelectEntryPos();
if ( LISTBOX_ENTRY_NOTFOUND != GetSelectEntryPos() )
sURL = impl_getDocumentAtIndex( nSelected ).first;
return sURL;
@@ -312,14 +312,14 @@ namespace dbaui
String OpenDocumentListBox::GetSelectedDocumentFilter() const
{
String sFilter;
- USHORT nSelected = GetSelectEntryPos();
+ sal_uInt16 nSelected = GetSelectEntryPos();
if ( LISTBOX_ENTRY_NOTFOUND != GetSelectEntryPos() )
sFilter = impl_getDocumentAtIndex( nSelected ).second;
return sFilter;
}
//--------------------------------------------------------------------
- OpenDocumentListBox::StringPair OpenDocumentListBox::impl_getDocumentAtIndex( USHORT _nListIndex, bool _bSystemNotation ) const
+ OpenDocumentListBox::StringPair OpenDocumentListBox::impl_getDocumentAtIndex( sal_uInt16 _nListIndex, bool _bSystemNotation ) const
{
MapIndexToStringPair::const_iterator pos = m_aURLs.find( _nListIndex );
DBG_ASSERT( pos != m_aURLs.end(), "OpenDocumentListBox::impl_getDocumentAtIndex: invalid index!" );
@@ -346,7 +346,7 @@ namespace dbaui
return;
Point aRequestPos( ScreenToOutputPixel( _rHEvt.GetMousePosPixel() ) );
- USHORT nItemIndex = LISTBOX_ENTRY_NOTFOUND;
+ sal_uInt16 nItemIndex = LISTBOX_ENTRY_NOTFOUND;
if ( GetIndexForPoint( aRequestPos, nItemIndex ) != -1 )
{
Rectangle aItemRect( GetBoundingRectangle( nItemIndex ) );