summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorMalte Timmermann [mt] <malte.timmermann@oracle.com>2011-02-15 17:14:59 +0100
committerMalte Timmermann [mt] <malte.timmermann@oracle.com>2011-02-15 17:14:59 +0100
commit6aa45bbe9dbaa96e1b365f22969e1ad3d7ce9553 (patch)
tree46f9ccd7d99842ee5ed4f3683686783d2e17590d /fpicker
parent72f6e25f3d79a789caaa3ba190a85dbf1b65a693 (diff)
parentcd0d6a5a6775f197fdb7e78b54c8133074a7a236 (diff)
accfixes: merged to m100
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/AquaFilePickerDelegate.hxx2
-rw-r--r--fpicker/source/aqua/AquaFilePickerDelegate.mm2
-rw-r--r--fpicker/source/aqua/ControlHelper.cxx4
-rw-r--r--fpicker/source/aqua/NSURL_OOoAdditions.mm4
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx10
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx8
-rw-r--r--fpicker/source/office/OfficeFilePicker.hxx2
-rw-r--r--fpicker/source/office/OfficeFolderPicker.cxx4
-rw-r--r--fpicker/source/office/iodlg.cxx144
-rw-r--r--fpicker/source/office/iodlg.hxx18
-rw-r--r--fpicker/source/office/iodlgimp.cxx8
-rw-r--r--fpicker/source/office/iodlgimp.hxx2
-rw-r--r--fpicker/source/unx/gnome/SalGtkFilePicker.cxx58
-rw-r--r--fpicker/source/unx/gnome/SalGtkFolderPicker.cxx4
-rw-r--r--fpicker/source/unx/kde4/KDE4FilePicker.cxx6
-rw-r--r--fpicker/source/win32/filepicker/PreviewCtrl.cxx10
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx2
-rw-r--r--fpicker/source/win32/filepicker/WinFileOpenImpl.cxx6
-rw-r--r--fpicker/source/win32/filepicker/WinFileOpenImpl.hxx2
-rw-r--r--fpicker/source/win32/filepicker/asyncrequests.cxx2
-rw-r--r--fpicker/source/win32/filepicker/dialogcustomcontrols.cxx2
-rw-r--r--fpicker/source/win32/filepicker/dibpreview.cxx6
-rw-r--r--fpicker/source/win32/filepicker/getfilenamewrapper.cxx6
-rw-r--r--fpicker/source/win32/filepicker/previewadapter.cxx4
-rw-r--r--fpicker/source/win32/filepicker/workbench/Test_fps.cxx2
-rw-r--r--fpicker/source/win32/folderpicker/MtaFop.cxx4
26 files changed, 161 insertions, 161 deletions
diff --git a/fpicker/source/aqua/AquaFilePickerDelegate.hxx b/fpicker/source/aqua/AquaFilePickerDelegate.hxx
index 9515cdb59aa9..e17defb2b712 100644
--- a/fpicker/source/aqua/AquaFilePickerDelegate.hxx
+++ b/fpicker/source/aqua/AquaFilePickerDelegate.hxx
@@ -45,7 +45,7 @@ class FilterHelper;
- (void)setFilterHelper:(FilterHelper*)filterHelper;
-- (MacOSBOOL)panel:(id)sender shouldShowFilename:(NSString *)filename;
+- (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename;
- (void)panelSelectionDidChange:(id)sender;
- (void)panel:(id)sender directoryDidChange:(NSString *)path;
diff --git a/fpicker/source/aqua/AquaFilePickerDelegate.mm b/fpicker/source/aqua/AquaFilePickerDelegate.mm
index 4266453a7102..d5c906281475 100644
--- a/fpicker/source/aqua/AquaFilePickerDelegate.mm
+++ b/fpicker/source/aqua/AquaFilePickerDelegate.mm
@@ -56,7 +56,7 @@
#pragma mark NSSavePanel delegate methods
-- (MacOSBOOL)panel:(id)sender shouldShowFilename:(NSString *)filename
+- (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename
{
if( filterHelper == NULL )
return true;
diff --git a/fpicker/source/aqua/ControlHelper.cxx b/fpicker/source/aqua/ControlHelper.cxx
index 470c22e09b10..0df9c485f65b 100644
--- a/fpicker/source/aqua/ControlHelper.cxx
+++ b/fpicker/source/aqua/ControlHelper.cxx
@@ -340,8 +340,8 @@ void ControlHelper::createUserPane()
int currentHeight = kAquaSpaceBoxFrameViewDiffTop + kAquaSpaceBoxFrameViewDiffBottom;
int currentWidth = 300;
- BOOL bPopupControlPresent = NO;
- BOOL bButtonControlPresent = NO;
+ sal_Bool bPopupControlPresent = NO;
+ sal_Bool bButtonControlPresent = NO;
int nCheckboxMaxWidth = 0;
int nPopupMaxWidth = 0;
diff --git a/fpicker/source/aqua/NSURL_OOoAdditions.mm b/fpicker/source/aqua/NSURL_OOoAdditions.mm
index ecc38b7e232b..6be80a765228 100644
--- a/fpicker/source/aqua/NSURL_OOoAdditions.mm
+++ b/fpicker/source/aqua/NSURL_OOoAdditions.mm
@@ -92,8 +92,8 @@ NSString* resolveAlias( NSString* i_pSystemPath )
FSRef rFS;
if( CFURLGetFSRef( rUrl, &rFS ) )
{
- MacOSBoolean bIsFolder = false;
- MacOSBoolean bAlias = false;
+ Boolean bIsFolder = false;
+ Boolean bAlias = false;
OSErr err = FSResolveAliasFile( &rFS, true, &bIsFolder, &bAlias);
if( (err == noErr) && bAlias )
{
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx
index 50e99f2b590b..6afe6e509acf 100644
--- a/fpicker/source/office/OfficeControlAccess.cxx
+++ b/fpicker/source/office/OfficeControlAccess.cxx
@@ -537,7 +537,7 @@ namespace svt
{
sal_Int32 nPos = 0;
if ( _rValue >>= nPos )
- _pListbox->RemoveEntry( (USHORT) nPos );
+ _pListbox->RemoveEntry( (sal_uInt16) nPos );
}
break;
@@ -675,7 +675,7 @@ namespace svt
sal_Int32 nPos = 0;
if ( _rValue >>= nPos )
{
- static_cast< ListBox* >( _pControl )->SelectEntryPos( (USHORT) nPos );
+ static_cast< ListBox* >( _pControl )->SelectEntryPos( (sal_uInt16) nPos );
}
else if ( !_bIgnoreIllegalArgument )
{
@@ -737,7 +737,7 @@ namespace svt
Sequence< ::rtl::OUString > aItems( static_cast< ListBox* >( _pControl )->GetEntryCount() );
::rtl::OUString* pItems = aItems.getArray();
- for ( USHORT i=0; i<static_cast< ListBox* >( _pControl )->GetEntryCount(); ++i )
+ for ( sal_uInt16 i=0; i<static_cast< ListBox* >( _pControl )->GetEntryCount(); ++i )
*pItems++ = static_cast< ListBox* >( _pControl )->GetEntry( i );
aReturn <<= aItems;
@@ -749,7 +749,7 @@ namespace svt
DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
- USHORT nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
+ sal_uInt16 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
::rtl::OUString sSelected;
if ( LISTBOX_ENTRY_NOTFOUND != nSelected )
sSelected = static_cast< ListBox* >( _pControl )->GetSelectEntry();
@@ -762,7 +762,7 @@ namespace svt
DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
- USHORT nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
+ sal_uInt16 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
if ( LISTBOX_ENTRY_NOTFOUND != nSelected )
aReturn <<= (sal_Int32)static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
else
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index 516c62fe7580..c7ef19a4dbb8 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -477,7 +477,7 @@ sal_Int16 SvtFilePicker::implExecutePicker( )
prepareExecute();
- getDialog()->EnableAutocompletion( TRUE );
+ getDialog()->EnableAutocompletion( sal_True );
// now we are ready to execute the dialog
sal_Int16 nRet = getDialog()->Execute();
@@ -549,7 +549,7 @@ void SAL_CALL SvtFilePicker::startExecuteModal( const Reference< ::com::sun::sta
m_xDlgClosedListener = xListener;
prepareDialog();
prepareExecute();
- getDialog()->EnableAutocompletion( TRUE );
+ getDialog()->EnableAutocompletion( sal_True );
getDialog()->StartExecuteModal( LINK( this, SvtFilePicker, DialogClosedHdl ) );
}
@@ -625,8 +625,8 @@ Sequence< rtl::OUString > SAL_CALL SvtFilePicker::getFiles() throw( RuntimeExcep
// files first and then the list of the selected entries
SvStringsDtor* pPathList = getDialog()->GetPathList();
- USHORT i, nCount = pPathList->Count();
- USHORT nTotal = nCount > 1 ? nCount+1: nCount;
+ sal_uInt16 i, nCount = pPathList->Count();
+ sal_uInt16 nTotal = nCount > 1 ? nCount+1: nCount;
Sequence< rtl::OUString > aPath( nTotal );
diff --git a/fpicker/source/office/OfficeFilePicker.hxx b/fpicker/source/office/OfficeFilePicker.hxx
index 21839554aefc..c203924f6e51 100644
--- a/fpicker/source/office/OfficeFilePicker.hxx
+++ b/fpicker/source/office/OfficeFilePicker.hxx
@@ -42,7 +42,7 @@
#endif
-#include <vcl/wintypes.hxx>
+#include <tools/wintypes.hxx>
#include "commonpicker.hxx"
#include "pickercallbacks.hxx"
diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx
index 48d3a2b43bad..076635ffa923 100644
--- a/fpicker/source/office/OfficeFolderPicker.cxx
+++ b/fpicker/source/office/OfficeFolderPicker.cxx
@@ -108,7 +108,7 @@ void SAL_CALL SvtFolderPicker::startExecuteModal( const Reference< ::com::sun::s
m_xListener = xListener;
prepareDialog();
prepareExecute();
- getDialog()->EnableAutocompletion( TRUE );
+ getDialog()->EnableAutocompletion( sal_True );
getDialog()->StartExecuteModal( LINK( this, SvtFolderPicker, DialogClosedHdl ) );
}
@@ -124,7 +124,7 @@ sal_Int16 SvtFolderPicker::implExecutePicker( )
prepareExecute();
// now we are ready to execute the dialog
- getDialog()->EnableAutocompletion( FALSE );
+ getDialog()->EnableAutocompletion( sal_False );
sal_Int16 nRet = getDialog()->Execute();
return nRet;
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 0ab0f33db24f..13f427351411 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -411,7 +411,7 @@ struct ControlChain_Impl
{
Window* _pControl;
ControlChain_Impl* _pNext;
- BOOL _bHasOwnerShip;
+ sal_Bool _bHasOwnerShip;
ControlChain_Impl( Window* pControl, ControlChain_Impl* pNext );
~ControlChain_Impl();
@@ -426,7 +426,7 @@ ControlChain_Impl::ControlChain_Impl
)
: _pControl( pControl ),
_pNext( pNext ),
- _bHasOwnerShip( TRUE )
+ _bHasOwnerShip( sal_True )
{
}
@@ -464,7 +464,7 @@ namespace
struct SvtResId : public ResId
{
- SvtResId (USHORT nId) : ResId (nId, *ResMgrHolder::getOrCreate()) {}
+ SvtResId (sal_uInt16 nId) : ResId (nId, *ResMgrHolder::getOrCreate()) {}
};
}
@@ -491,7 +491,7 @@ SvtFileDialog::SvtFileDialog
,_pFileNotifier( NULL )
,_pImp( new SvtExpFileDlg_Impl( nBits ) )
,_nExtraBits( nExtraBits )
- ,_bIsInExecute( FALSE )
+ ,_bIsInExecute( sal_False )
,m_bInExecuteAsync( false )
,m_bHasFilename( false )
{
@@ -514,7 +514,7 @@ SvtFileDialog::SvtFileDialog ( Window* _pParent, WinBits nBits )
,_pFileNotifier( NULL )
,_pImp( new SvtExpFileDlg_Impl( nBits ) )
,_nExtraBits( 0L )
- ,_bIsInExecute( FALSE )
+ ,_bIsInExecute( sal_False )
,m_bHasFilename( false )
{
Init_Impl( nBits );
@@ -641,7 +641,7 @@ void SvtFileDialog::Init_Impl
_pImp->_pBtnStandard->SetAccessibleName( _pImp->_pBtnStandard->GetQuickHelpText() );
if ( ( nStyle & SFXWB_MULTISELECTION ) == SFXWB_MULTISELECTION )
- _pImp->_bMultiSelection = TRUE;
+ _pImp->_bMultiSelection = sal_True;
_pFileView = new SvtFileView( this, SvtResId( CTL_EXPLORERFILE_FILELIST ),
FILEDLG_TYPE_PATHDLG == _pImp->_eDlgType,
@@ -670,7 +670,7 @@ void SvtFileDialog::Init_Impl
LogicToPixel( Size( 3, 0 ), MAP_APPFONT ).Width();
// calculate the length of all buttons
- const USHORT nBtnCount = 3; // "previous level", "new folder" and "standard dir"
+ const sal_uInt16 nBtnCount = 3; // "previous level", "new folder" and "standard dir"
long nDelta = n6AppFontInPixel; // right border
nDelta += ( nBtnCount * aSize.Width() ); // button count * button width
nDelta += ( n3AppFontInPixel + n3AppFontInPixel / 2 ); // spacing 1*big 1*small
@@ -761,8 +761,8 @@ void SvtFileDialog::Init_Impl
SetSizePixel( aSize );
// Beschriftungen dem Modus anpassen.
- USHORT nResId = STR_EXPLORERFILE_OPEN;
- USHORT nButtonResId = 0;
+ sal_uInt16 nResId = STR_EXPLORERFILE_OPEN;
+ sal_uInt16 nButtonResId = 0;
if ( nStyle & WB_SAVEAS )
{
@@ -945,7 +945,7 @@ sal_uInt16 SvtFileDialog::adjustFilter( const String& _rFilter )
sal_Bool bFilterChanged = sal_True;
// search for a corresponding filter
- SvtFileDialogFilter_Impl* pFilter = FindFilter_Impl( _rFilter, FALSE, bFilterChanged );
+ SvtFileDialogFilter_Impl* pFilter = FindFilter_Impl( _rFilter, sal_False, bFilterChanged );
#ifdef AUTOSELECT_USERFILTER
// if we found a filter which without allowing multi-extensions -> select it
@@ -958,7 +958,7 @@ sal_uInt16 SvtFileDialog::adjustFilter( const String& _rFilter )
// look for multi-ext filters if necessary
if ( !pFilter )
- pFilter = FindFilter_Impl( _rFilter, TRUE, bFilterChanged );
+ pFilter = FindFilter_Impl( _rFilter, sal_True, bFilterChanged );
if ( bFilterChanged )
nReturn |= FLT_CHANGED;
@@ -1007,7 +1007,7 @@ IMPL_LINK( SvtFileDialog, CancelHdl_Impl, void*, EMPTYARG )
}
else
{
- EndDialog( FALSE );
+ EndDialog( sal_False );
}
return 1L;
}
@@ -1085,7 +1085,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
return 0;
}
- USHORT nLen = aFileName.Len();
+ sal_uInt16 nLen = aFileName.Len();
if ( !nLen )
{
// if the dialog was opened to select a folder, the last selected folder should be selected
@@ -1127,7 +1127,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
}
// Pr"ufen, ob es sich um einen Ordner handelt.
- BOOL bIsFolder = FALSE;
+ sal_Bool bIsFolder = sal_False;
// first thing before doing anyhing with the content: Reset it. When the user presses "open" (or "save" or "export",
// for that matter), s/he wants the complete handling, including all possible error messages, even if s/he
@@ -1195,7 +1195,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
pThis->_pImp->GetCurFilter()->GetType());
}
- BOOL bOpenFolder = ( FILEDLG_TYPE_PATHDLG == pThis->_pImp->_eDlgType ) &&
+ sal_Bool bOpenFolder = ( FILEDLG_TYPE_PATHDLG == pThis->_pImp->_eDlgType ) &&
!pThis->_pImp->_bDoubleClick && pVoid != pThis->_pImp->_pEdFileName;
if ( bIsFolder )
{
@@ -1270,7 +1270,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
INetURLObject aPathObj = aFileObj;
aPathObj.removeSegment();
// #97148# & #102204# ------------
- BOOL bFolder = pThis->m_aContent.isFolder( aPathObj.GetMainURL( INetURLObject::NO_DECODE ) );
+ sal_Bool bFolder = pThis->m_aContent.isFolder( aPathObj.GetMainURL( INetURLObject::NO_DECODE ) );
if ( !bFolder )
{
ErrorHandler::HandleError( ERRCODE_IO_NOTEXISTSPATH );
@@ -1329,7 +1329,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
if ( nRet )
{
- pThis->EndDialog( TRUE );
+ pThis->EndDialog( sal_True );
}
return nRet;
@@ -1337,7 +1337,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
//*****************************************************************************
-void SvtFileDialog::EnableAutocompletion( BOOL _bEnable )
+void SvtFileDialog::EnableAutocompletion( sal_Bool _bEnable )
{
_pImp->_pEdFileName->EnableAutocompletion( _bEnable );
}
@@ -1398,7 +1398,7 @@ IMPL_STATIC_LINK( SvtFileDialog, FilterSelectHdl_Impl, ListBox*, pBox )
// Ggf. Endung anzeigen.
pThis->SetDefaultExt( pSelectedFilter->GetExtension() );
- USHORT nSepPos = pThis->GetDefaultExt().Search( FILEDIALOG_DEF_EXTSEP );
+ sal_uInt16 nSepPos = pThis->GetDefaultExt().Search( FILEDIALOG_DEF_EXTSEP );
if ( nSepPos != STRING_NOTFOUND )
pThis->EraseDefaultExt( nSepPos );
@@ -1450,9 +1450,9 @@ IMPL_STATIC_LINK( SvtFileDialog, FileNameModifiedHdl_Impl, void*, EMPTYARG )
SvtFileDialogFilter_Impl* SvtFileDialog::FindFilter_Impl
(
const String& _rFilter,
- sal_Bool _bMultiExt,/* TRUE - auch Filter mit mehreren Endungen
+ sal_Bool _bMultiExt,/* sal_True - auch Filter mit mehreren Endungen
beruecksichtigen
- FALSE - keine ...
+ sal_False - keine ...
*/
sal_Bool& _rFilterChanged
)
@@ -1466,7 +1466,7 @@ SvtFileDialogFilter_Impl* SvtFileDialog::FindFilter_Impl
{
SvtFileDialogFilter_Impl* pFoundFilter = NULL;
SvtFileDialogFilterList_Impl* pList = _pImp->_pFilter;
- USHORT nFilter = pList->Count();
+ sal_uInt16 nFilter = pList->Count();
while ( nFilter-- )
{
@@ -1476,7 +1476,7 @@ SvtFileDialogFilter_Impl* SvtFileDialog::FindFilter_Impl
if ( _bMultiExt )
{
- USHORT nIdx = 0;
+ sal_uInt16 nIdx = 0;
while ( !pFoundFilter && nIdx != STRING_NOTFOUND )
{
aSingleType = rType.GetToken( 0, FILEDIALOG_DEF_EXTSEP, nIdx );
@@ -1527,7 +1527,7 @@ void SvtFileDialog::OpenMultiSelection_Impl()
{
String aPath;
- ULONG nCount = _pFileView->GetSelectionCount();
+ sal_uLong nCount = _pFileView->GetSelectionCount();
SvLBoxEntry* pEntry = nCount ? _pFileView->FirstSelected() : NULL;
if ( nCount && pEntry )
@@ -1542,7 +1542,7 @@ void SvtFileDialog::OpenMultiSelection_Impl()
nRet = OK();
if ( nRet )
- EndDialog( TRUE );
+ EndDialog( sal_True );
}
//*****************************************************************************
@@ -1565,7 +1565,7 @@ void SvtFileDialog::UpdateControls( const String& rURL )
{
// no Fsys path for server file system ( only UCB has mountpoints! )
if ( INET_PROT_FILE != aObj.GetProtocol() )
- sText = rURL.Copy( static_cast< USHORT >(
+ sText = rURL.Copy( static_cast< sal_uInt16 >(
INetURLObject::GetScheme( aObj.GetProtocol() ).getLength() ) );
}
@@ -1657,9 +1657,9 @@ IMPL_LINK( SvtFileDialog, SelectHdl_Impl, SvTabListBox*, pBox )
IMPL_LINK( SvtFileDialog, DblClickHdl_Impl, SvTabListBox*, EMPTYARG )
{
- _pImp->_bDoubleClick = TRUE;
+ _pImp->_bDoubleClick = sal_True;
OpenHdl_Impl( this, NULL );
- _pImp->_bDoubleClick = FALSE;
+ _pImp->_bDoubleClick = sal_False;
return 0;
}
@@ -1761,13 +1761,13 @@ long SvtFileDialog::Notify( NotifyEvent& rNEvt )
*/
{
- USHORT nType = rNEvt.GetType();
+ sal_uInt16 nType = rNEvt.GetType();
long nRet = 0;
if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() )
{
const KeyCode& rKeyCode = rNEvt.GetKeyEvent()->GetKeyCode();
- USHORT nCode = rKeyCode.GetCode();
+ sal_uInt16 nCode = rKeyCode.GetCode();
if ( !rKeyCode.GetModifier() &&
KEY_BACKSPACE == nCode && !_pImp->_pEdFileName->HasChildPathFocus() )
@@ -1797,7 +1797,7 @@ long SvtFileDialog::Notify( NotifyEvent& rNEvt )
long SvtFileDialog::OK()
{
- return TRUE;
+ return sal_True;
}
//*****************************************************************************
@@ -1874,7 +1874,7 @@ String SvtFileDialog::implGetInitialURL( const String& _rPath, const String& _rF
INetURLObject aURLParser;
// set the path
- bool bWasAbsolute = FALSE;
+ bool bWasAbsolute = sal_False;
aURLParser = aURLParser.smartRel2Abs( _rPath, bWasAbsolute );
// is it a valid folder?
@@ -1927,9 +1927,9 @@ short SvtFileDialog::Execute()
return 0;
// Start des Dialogs.
- _bIsInExecute = TRUE;
+ _bIsInExecute = sal_True;
short nResult = ModalDialog::Execute();
- _bIsInExecute = FALSE;
+ _bIsInExecute = sal_False;
DBG_ASSERT( !m_pCurrentAsyncAction.is(), "SvtFilePicker::Execute: still running an async action!" );
// the dialog should not be cancellable while an async action is running - firs, the action
@@ -1946,7 +1946,7 @@ short SvtFileDialog::Execute()
sal_Int32 nLevel = aURL.getSegmentCount();
// #97148# & #102204# ------
sal_Bool bDir = m_aContent.isFolder( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
- // BOOL bClassPath = ( ( _pImp->_nStyle & SFXWB_CLASSPATH ) == SFXWB_CLASSPATH );
+ // sal_Bool bClassPath = ( ( _pImp->_nStyle & SFXWB_CLASSPATH ) == SFXWB_CLASSPATH );
if ( nLevel > 1 && ( FILEDLG_TYPE_FILEDLG == _pImp->_eDlgType || !bDir ) )
aURL.removeSegment();
}
@@ -1961,23 +1961,23 @@ void SvtFileDialog::StartExecuteModal( const Link& rEndDialogHdl )
PrepareExecute();
// Start des Dialogs.
-// _bIsInExecute = TRUE;
+// _bIsInExecute = sal_True;
ModalDialog::StartExecuteModal( rEndDialogHdl );
}
//-----------------------------------------------------------------------------
void SvtFileDialog::onAsyncOperationStarted()
{
- EnableUI( FALSE );
+ EnableUI( sal_False );
// the cancel button must be always enabled
- _pImp->_pBtnCancel->Enable( TRUE );
+ _pImp->_pBtnCancel->Enable( sal_True );
_pImp->_pBtnCancel->GrabFocus();
}
//-----------------------------------------------------------------------------
void SvtFileDialog::onAsyncOperationFinished()
{
- EnableUI( TRUE );
+ EnableUI( sal_True );
m_pCurrentAsyncAction = NULL;
if ( !m_bInExecuteAsync )
_pImp->_pEdFileName->GrabFocus();
@@ -2029,7 +2029,7 @@ void SvtFileDialog::displayIOException( const String& _rURL, IOErrorCode _eCode
}
//-----------------------------------------------------------------------------
-void SvtFileDialog::EnableUI( BOOL _bEnable )
+void SvtFileDialog::EnableUI( sal_Bool _bEnable )
{
Enable( _bEnable );
@@ -2040,13 +2040,13 @@ void SvtFileDialog::EnableUI( BOOL _bEnable )
++aLoop
)
{
- (*aLoop)->Enable( FALSE );
+ (*aLoop)->Enable( sal_False );
}
}
}
//-----------------------------------------------------------------------------
-void SvtFileDialog::EnableControl( Control* _pControl, BOOL _bEnable )
+void SvtFileDialog::EnableControl( Control* _pControl, sal_Bool _bEnable )
{
if ( !_pControl )
{
@@ -2179,16 +2179,16 @@ short SvtFileDialog::PrepareExecute()
_pImp->InitFilterList();
// Initialen Filter einstellen.
- USHORT nFilterCount = GetFilterCount();
+ sal_uInt16 nFilterCount = GetFilterCount();
String aAll( SvtResId( STR_FILTERNAME_ALL ) );
- BOOL bHasAll = _pImp->HasFilterListEntry( aAll );
+ sal_Bool bHasAll = _pImp->HasFilterListEntry( aAll );
if ( _pImp->GetCurFilter() || nFilterCount == 1 || ( nFilterCount == 2 && bHasAll ) )
{
// Ggf. einzigen Filter als aktuellen Filter setzen oder den einzigen
// Filter, der nicht auf alle Dateien verweist.
if ( !_pImp->GetCurFilter() )
{
- USHORT nPos = 0;
+ sal_uInt16 nPos = 0;
if ( 2 == nFilterCount && bHasAll )
{
nPos = nFilterCount;
@@ -2206,7 +2206,7 @@ short SvtFileDialog::PrepareExecute()
// Anzeige anpassen.
_pImp->SelectFilterListEntry( _pImp->GetCurFilter()->GetName() );
SetDefaultExt( _pImp->GetCurFilter()->GetExtension() );
- USHORT nSepPos = GetDefaultExt().Search( FILEDIALOG_DEF_EXTSEP );
+ sal_uInt16 nSepPos = GetDefaultExt().Search( FILEDIALOG_DEF_EXTSEP );
if ( nSepPos != STRING_NOTFOUND )
EraseDefaultExt( nSepPos );
}
@@ -2404,7 +2404,7 @@ void SvtFileDialog::OpenURL_Impl( const String& _rURL )
SvtFileDialogFilter_Impl* SvtFileDialog::implAddFilter( const String& _rFilter, const String& _rType )
{
SvtFileDialogFilter_Impl* pNewFilter = new SvtFileDialogFilter_Impl( _rFilter, _rType );
- _pImp->_pFilter->C40_INSERT( SvtFileDialogFilter_Impl, pNewFilter, (USHORT)0 );
+ _pImp->_pFilter->C40_INSERT( SvtFileDialogFilter_Impl, pNewFilter, (sal_uInt16)0 );
if ( !_pImp->GetCurFilter() )
_pImp->SetCurFilter( pNewFilter, _rFilter );
@@ -2440,7 +2440,7 @@ void SvtFileDialog::SetCurFilter( const String& rFilter )
DBG_ASSERT( !IsInExecute(), "SvtFileDialog::SetCurFilter: currently executing!" );
// Entsprechenden Filter suchen.
- USHORT nPos = _pImp->_pFilter->Count();
+ sal_uInt16 nPos = _pImp->_pFilter->Count();
while ( nPos-- )
{
@@ -2473,14 +2473,14 @@ String SvtFileDialog::getCurFilter( ) const
//*****************************************************************************
-USHORT SvtFileDialog::GetFilterCount() const
+sal_uInt16 SvtFileDialog::GetFilterCount() const
{
return _pImp->_pFilter->Count();
}
//*****************************************************************************
-const String& SvtFileDialog::GetFilterName( USHORT nPos ) const
+const String& SvtFileDialog::GetFilterName( sal_uInt16 nPos ) const
{
DBG_ASSERT( nPos < GetFilterCount(), "invalid index" );
return _pImp->_pFilter->GetObject( nPos )->GetName();
@@ -2524,7 +2524,7 @@ void SvtFileDialog::InitSize()
SvStringsDtor* SvtFileDialog::GetPathList() const
{
SvStringsDtor* pList = new SvStringsDtor;
- ULONG nCount = _pFileView->GetSelectionCount();
+ sal_uLong nCount = _pFileView->GetSelectionCount();
SvLBoxEntry* pEntry = nCount ? _pFileView->FirstSelected() : NULL;
if ( ! pEntry )
@@ -2600,12 +2600,12 @@ void SvtFileDialog::implArrangeControls()
//*****************************************************************************
-BOOL SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilter )
+sal_Bool SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilter )
{
String aEmpty;
String aReversePath( rPath );
aReversePath.Reverse();
- USHORT nQuestionMarkPos = rPath.Search( '?' );
+ sal_uInt16 nQuestionMarkPos = rPath.Search( '?' );
if ( nQuestionMarkPos != STRING_NOTFOUND )
{
@@ -2615,12 +2615,12 @@ BOOL SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilter )
if ( INET_PROT_NOT_VALID != eProt && INET_PROT_FILE != eProt )
nQuestionMarkPos = STRING_NOTFOUND;
}
- USHORT nWildCardPos = Min( rPath.Search( FILEDIALOG_DEF_WILDCARD ), nQuestionMarkPos );
+ sal_uInt16 nWildCardPos = Min( rPath.Search( FILEDIALOG_DEF_WILDCARD ), nQuestionMarkPos );
rFilter = aEmpty;
if ( nWildCardPos != STRING_NOTFOUND )
{
- USHORT nPathTokenPos = aReversePath.Search( INET_PATH_TOKEN );
+ sal_uInt16 nPathTokenPos = aReversePath.Search( INET_PATH_TOKEN );
if ( nPathTokenPos == STRING_NOTFOUND )
{
@@ -2653,7 +2653,7 @@ BOOL SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilter )
if ( nPathTokenPos < (rPath.Len() - nWildCardPos - 1) )
{
ErrorHandler::HandleError( ERRCODE_SFX_INVALIDSYNTAX );
- return FALSE;
+ return sal_False;
}
// Filter abschneiden.
@@ -2673,7 +2673,7 @@ BOOL SvtFileDialog::IsolateFilterFromPath_Impl( String& rPath, String& rFilter )
}
}
- return TRUE;
+ return sal_True;
}
//*****************************************************************************
@@ -3022,7 +3022,7 @@ void SvtFileDialog::AddControls_Impl( )
{
_pImp->_pCbAutoExtension = new CheckBox( this, SvtResId( CB_AUTO_EXTENSION ) );
_pImp->_pCbAutoExtension->SetText( SvtResId( STR_SVT_FILEPICKER_AUTO_EXTENSION ) );
- _pImp->_pCbAutoExtension->Check( TRUE );
+ _pImp->_pCbAutoExtension->Check( sal_True );
AddControl( _pImp->_pCbAutoExtension );
ReleaseOwnerShip( _pImp->_pCbAutoExtension );
_pImp->_pCbAutoExtension->SetClickHdl( LINK( this, SvtFileDialog, AutoExtensionHdl_Impl ) );
@@ -3215,7 +3215,7 @@ void SvtFileDialog::ReleaseOwnerShip( Window* pUserControl )
{
if ( pElement->_pControl == pUserControl )
{
- pElement->_bHasOwnerShip = FALSE;
+ pElement->_bHasOwnerShip = sal_False;
break;
}
pElement = pElement->_pNext;
@@ -3224,14 +3224,14 @@ void SvtFileDialog::ReleaseOwnerShip( Window* pUserControl )
//***************************************************************************
-BOOL SvtFileDialog::AddControl( Window* pControl, BOOL bNewLine )
+sal_Bool SvtFileDialog::AddControl( Window* pControl, sal_Bool bNewLine )
{
// control already exists
ControlChain_Impl* pElement = _pUserControls;
while ( pElement )
{
if ( pElement->_pControl == pControl )
- return FALSE;
+ return sal_False;
pElement = pElement->_pNext;
}
@@ -3273,8 +3273,8 @@ BOOL SvtFileDialog::AddControl( Window* pControl, BOOL bNewLine )
}
Point aNewControlPos;
Size* pNewDlgSize = NULL;
- BOOL bNewRow = bNewLine;
- FASTBOOL bFirstNewRow = FALSE;
+ sal_Bool bNewRow = bNewLine;
+ sal_Bool bFirstNewRow = sal_False;
if ( nType == WINDOW_WINDOW )
{
@@ -3301,13 +3301,13 @@ BOOL SvtFileDialog::AddControl( Window* pControl, BOOL bNewLine )
// Check if a new row has to be created.
if ( aNewControlRange.X() > aDlgSize.Width() )
- bNewRow = TRUE;
+ bNewRow = sal_True;
}
else
{
// Create a new row if there was no usercontrol before.
- bNewRow = TRUE;
- bFirstNewRow = TRUE;
+ bNewRow = sal_True;
+ bFirstNewRow = sal_True;
}
// Check if a new row has to be created.
@@ -3347,7 +3347,7 @@ BOOL SvtFileDialog::AddControl( Window* pControl, BOOL bNewLine )
pControl->Show();
_pUserControls = new ControlChain_Impl( pControl, _pUserControls );
- return TRUE;
+ return sal_True;
}
sal_Bool SvtFileDialog::ContentHasParentFolder( const rtl::OUString& rURL )
@@ -3395,14 +3395,14 @@ void SvtFileDialog::appendDefaultExtension(String& _rFileName,
if ( ! aType.EqualsAscii(FILEDIALOG_FILTER_ALL) )
{
- USHORT nWildCard = aType.GetTokenCount( FILEDIALOG_DEF_EXTSEP );
- USHORT nIndex, nPos = 0;
+ sal_uInt16 nWildCard = aType.GetTokenCount( FILEDIALOG_DEF_EXTSEP );
+ sal_uInt16 nIndex, nPos = 0;
for ( nIndex = 0; nIndex < nWildCard; nIndex++ )
{
String aExt(aType.GetToken( 0, FILEDIALOG_DEF_EXTSEP, nPos ));
// take care of a leading *
- USHORT nExtOffset = (aExt.GetBuffer()[0] == '*' ? 1 : 0);
+ sal_uInt16 nExtOffset = (aExt.GetBuffer()[0] == '*' ? 1 : 0);
sal_Unicode* pExt = aExt.GetBufferAccess() + nExtOffset;
xub_StrLen nExtLen = aExt.Len() - nExtOffset;
xub_StrLen nOffset = aTemp.Len() - nExtLen;
@@ -3469,12 +3469,12 @@ IMPL_LINK( QueryFolderNameDialog, NameHdl, Edit *, EMPTYARG )
if ( aName.Len() )
{
if ( !aOKBtn.IsEnabled() )
- aOKBtn.Enable( TRUE );
+ aOKBtn.Enable( sal_True );
}
else
{
if ( aOKBtn.IsEnabled() )
- aOKBtn.Enable( FALSE );
+ aOKBtn.Enable( sal_False );
}
return 0;
diff --git a/fpicker/source/office/iodlg.hxx b/fpicker/source/office/iodlg.hxx
index fbfa9a9355a5..746a6e1d207a 100644
--- a/fpicker/source/office/iodlg.hxx
+++ b/fpicker/source/office/iodlg.hxx
@@ -110,7 +110,7 @@ private:
::svt::IFilePickerListener* _pFileNotifier;
SvtExpFileDlg_Impl* _pImp;
WinBits _nExtraBits;
- BOOL _bIsInExecute : 1;
+ sal_Bool _bIsInExecute : 1;
ImageList m_aImages;
::svt::SmartContent m_aContent;
@@ -163,14 +163,14 @@ private:
DECL_LINK( PlayButtonHdl_Impl, PushButton* );
// entfernt einen Filter mit Wildcards aus dem Path und gibt in zurueck
- BOOL IsolateFilterFromPath_Impl( String& rPath, String& rFilter );
+ sal_Bool IsolateFilterFromPath_Impl( String& rPath, String& rFilter );
void implArrangeControls();
void implUpdateImages( );
protected:
virtual long Notify( NotifyEvent& rNEvt );
- void EnableInternet( BOOL bInternet );
+ void EnableInternet( sal_Bool bInternet );
// originally from VclFileDialog
Link _aOKHdl;
@@ -191,14 +191,14 @@ protected:
This is under the assumption that you'll use EnableControl. Direct access to the control
(such as pControl->Enable()) will break this.
*/
- void EnableUI( BOOL _bEnable );
+ void EnableUI( sal_Bool _bEnable );
/** enables or disables a control
You are strongly encouraged to prefer this method over pControl->Enable( _bEnable ). See
<member>EnableUI</member> for details.
*/
- void EnableControl( Control* _pControl, BOOL _bEnable );
+ void EnableControl( Control* _pControl, sal_Bool _bEnable );
short PrepareExecute();
public:
@@ -228,8 +228,8 @@ public:
void SetCurFilter( const String& rFilter );
String GetCurFilter() const;
- USHORT GetFilterCount() const;
- const String& GetFilterName( USHORT nPos ) const;
+ sal_uInt16 GetFilterCount() const;
+ const String& GetFilterName( sal_uInt16 nPos ) const;
virtual void Resize();
virtual void DataChanged( const DataChangedEvent& _rDCEvt );
@@ -242,7 +242,7 @@ public:
void DisableSaveLastDirectory();
void InitSize();
void UpdateControls( const String& rURL );
- void EnableAutocompletion( BOOL _bEnable = TRUE );
+ void EnableAutocompletion( sal_Bool _bEnable = sal_True );
void SetFileCallback( ::svt::IFilePickerListener *pNotifier ) { _pFileNotifier = pNotifier; }
@@ -267,7 +267,7 @@ public:
}
// originally from VclFileDialog
- virtual BOOL AddControl( Window* pControl, BOOL bNewLine = FALSE );
+ virtual sal_Bool AddControl( Window* pControl, sal_Bool bNewLine = sal_False );
// inline
inline void SetPath( const String& rNewURL );
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index 5e57075a6bb7..41acd84be3e0 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -120,7 +120,7 @@ namespace
struct SvtSimpleResId : public ResId
{
- SvtSimpleResId (USHORT nId) : ResId (nId, *ResMgrHolder::getOrCreate()) {}
+ SvtSimpleResId (sal_uInt16 nId) : ResId (nId, *ResMgrHolder::getOrCreate()) {}
};
}
@@ -315,7 +315,7 @@ void SvtTravelButton_Impl::FillURLMenu( PopupMenu* _pMenu )
sal_Bool bIsHighContrast = GetDialogParent()->GetView()->GetSettings().GetStyleSettings().GetHighContrastMode();
- USHORT nItemId = 1;
+ sal_uInt16 nItemId = 1;
String sDisplayName;
::std::vector< String >::const_iterator aLoop;
@@ -471,7 +471,7 @@ void SvtExpFileDlg_Impl::InsertFilterListEntry( const SvtFileDialogFilter_Impl*
sName = _pFilterDesc->GetName();
// insert an set user data
- USHORT nPos = _pLbFilter->InsertEntry( sName );
+ sal_uInt16 nPos = _pLbFilter->InsertEntry( sName );
_pLbFilter->SetEntryData( nPos, const_cast< void* >( static_cast< const void* >( _pFilterDesc ) ) );
}
@@ -483,7 +483,7 @@ void SvtExpFileDlg_Impl::InitFilterList( )
ClearFilterList( );
// reinit it
- USHORT nPos = _pFilter->Count();
+ sal_uInt16 nPos = _pFilter->Count();
// search for the first entry which is no group separator
while ( nPos-- && _pFilter->GetObject( nPos ) && _pFilter->GetObject( nPos )->isGroupSeparator() )
diff --git a/fpicker/source/office/iodlgimp.hxx b/fpicker/source/office/iodlgimp.hxx
index f7a4f9026388..9826290858c2 100644
--- a/fpicker/source/office/iodlgimp.hxx
+++ b/fpicker/source/office/iodlgimp.hxx
@@ -260,7 +260,7 @@ public:
inline const ::com::sun::star::uno::Sequence< ::rtl::OUString >& GetBlackList() const { return _aBlackList; }
void SetStandardDir( const String& _rDir );
inline const String& GetStandardDir() const { return _aStdDir; }
- inline void DisableFilterBoxAutoWidth() { _pLbFilter->EnableDDAutoWidth( FALSE ); }
+ inline void DisableFilterBoxAutoWidth() { _pLbFilter->EnableDDAutoWidth( sal_False ); }
// ------------------------------------------
// access to the filter listbox only as Control* - we want to maintain the entries/userdata ourself
diff --git a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
index fdf4866daf24..3848ab081186 100644
--- a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
+++ b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
@@ -104,7 +104,7 @@ static void expandexpanders(GtkContainer *pWidget)
if GTK_IS_CONTAINER(GTK_WIDGET(p->data))
expandexpanders(GTK_CONTAINER(GTK_WIDGET(p->data)));
if GTK_IS_EXPANDER(GTK_WIDGET(p->data))
- gtk_expander_set_expanded(GTK_EXPANDER(GTK_WIDGET(p->data)), TRUE);
+ gtk_expander_set_expanded(GTK_EXPANDER(GTK_WIDGET(p->data)), sal_True);
}
g_list_free(pChildren);
}
@@ -189,17 +189,17 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference<lang::XMultiServiceFact
gtk_dialog_set_default_response( GTK_DIALOG (m_pDialog), GTK_RESPONSE_ACCEPT );
- gtk_file_chooser_set_local_only( GTK_FILE_CHOOSER( m_pDialog ), FALSE );
- gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( m_pDialog ), FALSE );
+ gtk_file_chooser_set_local_only( GTK_FILE_CHOOSER( m_pDialog ), sal_False );
+ gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( m_pDialog ), sal_False );
- m_pVBox = gtk_vbox_new( FALSE, 0 );
+ m_pVBox = gtk_vbox_new( sal_False, 0 );
// We don't want clickable items to have a huge hit-area
- GtkWidget *pHBox = gtk_hbox_new( FALSE, 0 );
- GtkWidget *pThinVBox = gtk_vbox_new( FALSE, 0 );
+ GtkWidget *pHBox = gtk_hbox_new( sal_False, 0 );
+ GtkWidget *pThinVBox = gtk_vbox_new( sal_False, 0 );
- gtk_box_pack_end (GTK_BOX( m_pVBox ), pHBox, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX( pHBox ), pThinVBox, FALSE, FALSE, 0);
+ gtk_box_pack_end (GTK_BOX( m_pVBox ), pHBox, sal_False, sal_False, 0);
+ gtk_box_pack_start (GTK_BOX( pHBox ), pThinVBox, sal_False, sal_False, 0);
gtk_widget_show( pHBox );
gtk_widget_show( pThinVBox );
@@ -229,12 +229,12 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference<lang::XMultiServiceFact
break;
}
- gtk_box_pack_end( GTK_BOX( pThinVBox ), m_pToggles[i], FALSE, FALSE, 0 );
+ gtk_box_pack_end( GTK_BOX( pThinVBox ), m_pToggles[i], sal_False, sal_False, 0 );
}
for( i = 0; i < LIST_LAST; i++ )
{
- m_pHBoxs[i] = gtk_hbox_new( FALSE, 0 );
+ m_pHBoxs[i] = gtk_hbox_new( sal_False, 0 );
m_pAligns[i] = gtk_alignment_new(0, 0, 0, 1);
@@ -259,18 +259,18 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference<lang::XMultiServiceFact
}
gtk_container_add( GTK_CONTAINER( m_pAligns[i]), m_pLists[i] );
- gtk_box_pack_end( GTK_BOX( m_pHBoxs[i] ), m_pAligns[i], FALSE, FALSE, 0 );
+ gtk_box_pack_end( GTK_BOX( m_pHBoxs[i] ), m_pAligns[i], sal_False, sal_False, 0 );
- gtk_box_pack_end( GTK_BOX( m_pHBoxs[i] ), m_pListLabels[i], FALSE, FALSE, 0 );
+ gtk_box_pack_end( GTK_BOX( m_pHBoxs[i] ), m_pListLabels[i], sal_False, sal_False, 0 );
- gtk_box_pack_end( GTK_BOX( m_pVBox ), m_pHBoxs[i], FALSE, FALSE, 0 );
+ gtk_box_pack_end( GTK_BOX( m_pVBox ), m_pHBoxs[i], sal_False, sal_False, 0 );
}
aLabel = aResProvider.getResString( FILE_PICKER_FILE_TYPE );
m_pFilterExpander = gtk_expander_new_with_mnemonic(
OUStringToOString( aLabel, RTL_TEXTENCODING_UTF8 ).getStr());
- gtk_box_pack_end( GTK_BOX( m_pVBox ), m_pFilterExpander, FALSE, TRUE, 0 );
+ gtk_box_pack_end( GTK_BOX( m_pVBox ), m_pFilterExpander, sal_False, sal_True, 0 );
GtkWidget *scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
@@ -288,11 +288,11 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference<lang::XMultiServiceFact
case 0:
break;
case 1:
- gtk_expander_set_expanded(GTK_EXPANDER(m_pFilterExpander), TRUE);
+ gtk_expander_set_expanded(GTK_EXPANDER(m_pFilterExpander), sal_True);
break;
case 2:
expandexpanders(GTK_CONTAINER(m_pDialog));
- gtk_expander_set_expanded(GTK_EXPANDER(m_pFilterExpander), TRUE);
+ gtk_expander_set_expanded(GTK_EXPANDER(m_pFilterExpander), sal_True);
break;
}
@@ -309,8 +309,8 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference<lang::XMultiServiceFact
{
column = gtk_tree_view_column_new ();
cell = gtk_cell_renderer_text_new ();
- gtk_tree_view_column_set_expand (column, TRUE);
- gtk_tree_view_column_pack_start (column, cell, FALSE);
+ gtk_tree_view_column_set_expand (column, sal_True);
+ gtk_tree_view_column_pack_start (column, cell, sal_False);
gtk_tree_view_column_set_attributes (column, cell, "text", i, (char *)NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW(m_pFilterView), column);
}
@@ -1366,12 +1366,12 @@ throw( uno::RuntimeException )
if( bEnable )
{
OSL_TRACE( "enable\n" );
- gtk_widget_set_sensitive( pWidget, TRUE );
+ gtk_widget_set_sensitive( pWidget, sal_True );
}
else
{
OSL_TRACE( "disable\n" );
- gtk_widget_set_sensitive( pWidget, FALSE );
+ gtk_widget_set_sensitive( pWidget, sal_False );
}
}
else
@@ -1410,7 +1410,7 @@ void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const ::rtl::OUS
}
else if( tType == GTK_TYPE_TOGGLE_BUTTON || tType == GTK_TYPE_BUTTON || tType == GTK_TYPE_LABEL )
g_object_set( pWidget, "label", aTxt.getStr(),
- "use_underline", TRUE, (char *)NULL );
+ "use_underline", sal_True, (char *)NULL );
else
OSL_TRACE("Can't set label on list\n");
}
@@ -1445,7 +1445,7 @@ uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() t
OSL_ASSERT( m_pDialog != NULL );
// TODO return m_pImpl->getSupportedImageFormats();
- return 0;
+ return uno::Sequence<sal_Int16>();
}
sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() throw( uno::RuntimeException )
@@ -1548,7 +1548,7 @@ void SalGtkFilePicker::update_preview_cb( GtkFileChooser *file_chooser, SalGtkFi
GtkWidget *preview;
char *filename;
GdkPixbuf *pixbuf;
- gboolean have_preview = FALSE;
+ gboolean have_preview = sal_False;
preview = pobjFP->m_pPreview;
filename = gtk_file_chooser_get_preview_filename( file_chooser );
@@ -1865,22 +1865,22 @@ extern "C"
static gboolean
case_insensitive_filter (const GtkFileFilterInfo *filter_info, gpointer data)
{
- gboolean bRetval = FALSE;
+ gboolean bRetval = sal_False;
const char *pFilter = (const char *) data;
- g_return_val_if_fail( data != NULL, FALSE );
- g_return_val_if_fail( filter_info != NULL, FALSE );
+ g_return_val_if_fail( data != NULL, sal_False );
+ g_return_val_if_fail( filter_info != NULL, sal_False );
if( !filter_info->uri )
- return FALSE;
+ return sal_False;
const char *pExtn = strrchr( filter_info->uri, '.' );
if( !pExtn )
- return FALSE;
+ return sal_False;
pExtn++;
if( !g_ascii_strcasecmp( pFilter, pExtn ) )
- bRetval = TRUE;
+ bRetval = sal_True;
#ifdef DEBUG
fprintf( stderr, "'%s' match extn '%s' vs '%s' yeilds %d\n",
diff --git a/fpicker/source/unx/gnome/SalGtkFolderPicker.cxx b/fpicker/source/unx/gnome/SalGtkFolderPicker.cxx
index dd5d30d203a6..e1c98004035b 100644
--- a/fpicker/source/unx/gnome/SalGtkFolderPicker.cxx
+++ b/fpicker/source/unx/gnome/SalGtkFolderPicker.cxx
@@ -97,8 +97,8 @@ SalGtkFolderPicker::SalGtkFolderPicker( const uno::Reference<lang::XMultiService
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, (char *)NULL );
gtk_dialog_set_default_response( GTK_DIALOG (m_pDialog), GTK_RESPONSE_ACCEPT );
- gtk_file_chooser_set_local_only( GTK_FILE_CHOOSER( m_pDialog ), FALSE );
- gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( m_pDialog ), FALSE );
+ gtk_file_chooser_set_local_only( GTK_FILE_CHOOSER( m_pDialog ), sal_False );
+ gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( m_pDialog ), sal_False );
}
// -------------------------------------------------
diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
index eadc255f0ec0..32b26ca02f15 100644
--- a/fpicker/source/unx/kde4/KDE4FilePicker.cxx
+++ b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
@@ -260,7 +260,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL KDE4FilePicker::getFiles()
files.append(dir);
}
- for (USHORT i = 0; i < rawFiles.size(); ++i)
+ for (sal_uInt16 i = 0; i < rawFiles.size(); ++i)
{
// if the raw file is not the base directory (see above kde bug)
// we add the file to list of avail files
@@ -339,8 +339,8 @@ void SAL_CALL KDE4FilePicker::appendFilterGroup( const rtl::OUString& , const un
if (!_filter.isNull())
_filter.append(QString("\n"));
- const USHORT length = filters.getLength();
- for (USHORT i = 0; i < length; ++i)
+ const sal_uInt16 length = filters.getLength();
+ for (sal_uInt16 i = 0; i < length; ++i)
{
beans::StringPair aPair = filters[i];
diff --git a/fpicker/source/win32/filepicker/PreviewCtrl.cxx b/fpicker/source/win32/filepicker/PreviewCtrl.cxx
index 84627a9f3d82..e387d672fd41 100644
--- a/fpicker/source/win32/filepicker/PreviewCtrl.cxx
+++ b/fpicker/source/win32/filepicker/PreviewCtrl.cxx
@@ -393,7 +393,7 @@ void SAL_CALL CFilePreview::enable( sal_Bool bEnable )
m_bEnabled = bEnable;
// force a redraw
- InvalidateRect( m_hwnd, NULL, TRUE );
+ InvalidateRect( m_hwnd, NULL, sal_True );
UpdateWindow( m_hwnd );
}
@@ -435,7 +435,7 @@ sal_Bool SAL_CALL CFilePreview::update( const rtl::OUString& aFileName )
loadFile( aFileName );
// force a complete window redraw
- InvalidateRect( m_hwnd, NULL, TRUE );
+ InvalidateRect( m_hwnd, NULL, sal_True );
UpdateWindow( m_hwnd );
}
}
@@ -548,12 +548,12 @@ sal_Bool CFilePreview::loadFile( const rtl::OUString& aFileName )
goto CLEANUP_AND_EXIT;
hr = CreateStreamOnHGlobal(
- hGlobal, FALSE, &pIStream );
+ hGlobal, sal_False, &pIStream );
if ( SUCCEEDED( hr ) )
{
hr = OleLoadPicture(
- pIStream, fsize, FALSE,
+ pIStream, fsize, sal_False,
__uuidof( IPicture ), (LPVOID*)&m_IPicture );
}
@@ -601,7 +601,7 @@ LRESULT CALLBACK CFilePreview::WndProc(
// a result of handling WM_NCCREATE what
// leads to a failure of CreateWindow[Ex]!!!
case WM_NCCREATE:
- lResult = TRUE;
+ lResult = sal_True;
break;
default:
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index ac59a4f65b99..677c2bdbfa7d 100644
--- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
@@ -1105,7 +1105,7 @@ void VistaFilePickerImpl::impl_sta_GetControlValue(const RequestRef& rRequest)
//case css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_PREVIEW : // can be ignored ... preview is supported native now !
case css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION :
{
- BOOL bValue = sal_False;
+ BOOL bValue = FALSE;
HRESULT hResult = iCustom->GetCheckButtonState(nId, &bValue);
if ( SUCCEEDED(hResult) )
aValue = css::uno::makeAny((sal_Bool)bValue);
diff --git a/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx b/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx
index d5bcce4707f4..9fb13c1a2d5e 100644
--- a/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx
+++ b/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx
@@ -529,7 +529,7 @@ LRESULT CALLBACK CWinFileOpenImpl::SubClassFunc(
reinterpret_cast<WNDPROC>(pImpl->m_pfnOldDlgProc),
hWnd,wMessage,wParam,lParam);
- pImpl->onWMShow((BOOL)wParam);
+ pImpl->onWMShow((sal_Bool)wParam);
break;
case WM_NCDESTROY:
@@ -610,7 +610,7 @@ BOOL CALLBACK CWinFileOpenImpl::EnumChildWndProc(HWND hWnd, LPARAM lParam)
OSL_ASSERT(pImpl);
- BOOL bRet = TRUE;
+ sal_Bool bRet = sal_True;
switch(enumParam->m_action)
{
@@ -843,7 +843,7 @@ void CWinFileOpenImpl::onWMSize()
//
//-----------------------------------------------------------------------------------------
-void CWinFileOpenImpl::onWMShow(BOOL bShow)
+void CWinFileOpenImpl::onWMShow(sal_Bool bShow)
{
m_Preview->notifyParentShow(bShow);
}
diff --git a/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx b/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
index 61d63952f8c7..9429f83cf30c 100644
--- a/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
+++ b/fpicker/source/win32/filepicker/WinFileOpenImpl.hxx
@@ -189,7 +189,7 @@ protected:
void onWMSize();
- void onWMShow(BOOL bShow);
+ void onWMShow(sal_Bool bShow);
void onWMWindowPosChanged();
void onCustomControlHelpRequest(LPHELPINFO lphi);
diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx
index 902160f40005..eb0c9c6b4105 100644
--- a/fpicker/source/win32/filepicker/asyncrequests.cxx
+++ b/fpicker/source/win32/filepicker/asyncrequests.cxx
@@ -43,7 +43,7 @@ namespace css = ::com::sun::star;
void lcl_sleep(::osl::Condition& aCondition ,
::sal_Int32 nMilliSeconds)
{
- ULONG nAcquireCount = Application::ReleaseSolarMutex();
+ sal_uLong nAcquireCount = Application::ReleaseSolarMutex();
if (nMilliSeconds < 1)
aCondition.wait(0);
diff --git a/fpicker/source/win32/filepicker/dialogcustomcontrols.cxx b/fpicker/source/win32/filepicker/dialogcustomcontrols.cxx
index 11c7a414d63b..13b1354902af 100644
--- a/fpicker/source/win32/filepicker/dialogcustomcontrols.cxx
+++ b/fpicker/source/win32/filepicker/dialogcustomcontrols.cxx
@@ -53,7 +53,7 @@ void SAL_CALL CDialogCustomControlBase::SetFont(HFONT hFont)
m_CustomControlHandle,
WM_SETFONT,
(WPARAM)hFont,
- (LPARAM)TRUE);
+ (LPARAM)sal_True);
}
//-----------------------------------
diff --git a/fpicker/source/win32/filepicker/dibpreview.cxx b/fpicker/source/win32/filepicker/dibpreview.cxx
index fcc369972ff8..aa3a5903002e 100644
--- a/fpicker/source/win32/filepicker/dibpreview.cxx
+++ b/fpicker/source/win32/filepicker/dibpreview.cxx
@@ -207,7 +207,7 @@ void SAL_CALL CDIBPreview::setImage(sal_Int16 aImageFormat, const Any& aImage)
aGuard.clear();
- InvalidateRect(m_Hwnd,NULL,FALSE);
+ InvalidateRect(m_Hwnd,NULL,sal_False);
UpdateWindow(m_Hwnd);
}
@@ -248,7 +248,7 @@ void SAL_CALL CDIBPreview::onPaint(HWND hWnd, HDC hDC)
{
BITMAPFILEHEADER* pbmfh;
BITMAPINFO * pbmi;
- BYTE * pBits;
+ sal_uInt8 * pBits;
int cxDib;
int cyDib;
@@ -262,7 +262,7 @@ void SAL_CALL CDIBPreview::onPaint(HWND hWnd, HDC hDC)
(pbmfh->bfType == ('B' | ('M' << 8))) )
{
pbmi = reinterpret_cast<BITMAPINFO*>((pbmfh + 1));
- pBits = reinterpret_cast<BYTE*>(((DWORD)pbmfh) + pbmfh->bfOffBits);
+ pBits = reinterpret_cast<sal_uInt8*>(((DWORD)pbmfh) + pbmfh->bfOffBits);
cxDib = pbmi->bmiHeader.biWidth;
cyDib = abs (pbmi->bmiHeader.biHeight);
diff --git a/fpicker/source/win32/filepicker/getfilenamewrapper.cxx b/fpicker/source/win32/filepicker/getfilenamewrapper.cxx
index 43994393e139..8da6f4014f15 100644
--- a/fpicker/source/win32/filepicker/getfilenamewrapper.cxx
+++ b/fpicker/source/win32/filepicker/getfilenamewrapper.cxx
@@ -54,13 +54,13 @@ namespace /* private */
//-----------------------------------------------
class CurDirGuard
{
- BOOL m_bValid;
+ sal_Bool m_bValid;
wchar_t* m_pBuffer;
DWORD m_nBufLen;
public:
CurDirGuard()
- : m_bValid( FALSE )
+ : m_bValid( sal_False )
, m_pBuffer( NULL )
, m_nBufLen( 0 )
{
@@ -74,7 +74,7 @@ namespace /* private */
~CurDirGuard()
{
- BOOL bDirSet = FALSE;
+ bool bDirSet = false;
if ( m_pBuffer )
{
diff --git a/fpicker/source/win32/filepicker/previewadapter.cxx b/fpicker/source/win32/filepicker/previewadapter.cxx
index d8fee2044115..a145c2af563d 100644
--- a/fpicker/source/win32/filepicker/previewadapter.cxx
+++ b/fpicker/source/win32/filepicker/previewadapter.cxx
@@ -308,7 +308,7 @@ void SAL_CALL CPreviewAdapterImpl::rearrangeLayout()
// style bit of the FileOpen dialog must be set after that
// message
LONG lStyle = GetWindowLong(prvwnd,GWL_STYLE);
- BOOL bIsVisible = (BOOL)(lStyle & WS_VISIBLE);
+ sal_Bool bIsVisible = (sal_Bool)(lStyle & WS_VISIBLE);
int cx = 0;
@@ -318,7 +318,7 @@ void SAL_CALL CPreviewAdapterImpl::rearrangeLayout()
// resize the filelistbox to the half of the
// available space
- BOOL bRet = SetWindowPos(flb_new,
+ bool bRet = SetWindowPos(flb_new,
NULL, 0, 0, cx, height,
SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
diff --git a/fpicker/source/win32/filepicker/workbench/Test_fps.cxx b/fpicker/source/win32/filepicker/workbench/Test_fps.cxx
index 8db37cefd34c..699edc9533a2 100644
--- a/fpicker/source/win32/filepicker/workbench/Test_fps.cxx
+++ b/fpicker/source/win32/filepicker/workbench/Test_fps.cxx
@@ -179,7 +179,7 @@ void SAL_CALL FilePickerListener::fileSelectionChanged( const ::com::sun::star::
Sequence< sal_Int8 > aDIB( dwFileSize );
DWORD dwBytesRead;
- BOOL bSuccess = ReadFile (hFile, aDIB.getArray( ), dwFileSize, &dwBytesRead, NULL) ;
+ sal_Bool bSuccess = ReadFile (hFile, aDIB.getArray( ), dwFileSize, &dwBytesRead, NULL) ;
CloseHandle (hFile);
BITMAPFILEHEADER* pbmfh = (BITMAPFILEHEADER*)aDIB.getConstArray( );
diff --git a/fpicker/source/win32/folderpicker/MtaFop.cxx b/fpicker/source/win32/folderpicker/MtaFop.cxx
index 254887a2a0f1..88523848d872 100644
--- a/fpicker/source/win32/folderpicker/MtaFop.cxx
+++ b/fpicker/source/win32/folderpicker/MtaFop.cxx
@@ -279,7 +279,7 @@ sal_Bool CMtaFolderPicker::browseForFolder( )
while ( bContinue )
{
DWORD dwResult = MsgWaitForMultipleObjects(
- 1, &aReqCtx.hEvent, FALSE, INFINITE, QS_ALLEVENTS );
+ 1, &aReqCtx.hEvent, sal_False, INFINITE, QS_ALLEVENTS );
switch ( dwResult )
{
@@ -546,7 +546,7 @@ void SAL_CALL CMtaFolderPicker::onInitialized( )
SendMessageA(
m_hwnd,
BFFM_SETSELECTION,
- (WPARAM)FALSE,
+ (WPARAM)sal_False,
(LPARAM) lpiidDisplayDir );
releaseItemIdList( lpiidDisplayDir );