summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-02-08 11:49:29 +0100
committerMathias Bauer <mba@openoffice.org>2011-02-08 11:49:29 +0100
commit40953e8bab7710063353f70ffd4d66a4782b5425 (patch)
tree7575a84f0d2e6a7110e64b45d999dff045b23d3f /uui
parentb31ae53bd29953d09dbda1e37e3ec8aeec81807b (diff)
parent642c1ee8fac66996d2c500c5e247d17c198c6405 (diff)
CWS gnumake3: pull in cws removetooltypes01
Diffstat (limited to 'uui')
-rw-r--r--uui/source/cookiedg.cxx12
-rw-r--r--uui/source/fltdlg.cxx6
-rw-r--r--uui/source/iahndl-errorhandler.cxx8
-rwxr-xr-xuui/source/iahndl.cxx10
-rwxr-xr-xuui/source/iahndl.hxx2
-rw-r--r--[-rwxr-xr-x]uui/source/logindlg.cxx30
-rw-r--r--[-rwxr-xr-x]uui/source/logindlg.hxx14
-rw-r--r--[-rwxr-xr-x]uui/source/loginerr.hxx50
-rw-r--r--[-rwxr-xr-x]uui/source/passworddlg.cxx14
-rw-r--r--[-rwxr-xr-x]uui/source/passworddlg.hxx4
10 files changed, 75 insertions, 75 deletions
diff --git a/uui/source/cookiedg.cxx b/uui/source/cookiedg.cxx
index a806ff4e59e8..c75d32699a73 100644
--- a/uui/source/cookiedg.cxx
+++ b/uui/source/cookiedg.cxx
@@ -80,7 +80,7 @@ CookiesDialog::CookiesDialog( Window* pParent,
maCookieFB.SetPosSizePixel( LogicToPixel( aPoint ), aSize );
maCookieFB.Show();
- USHORT nOffset = CNTHTTP_COOKIE_REQUEST_RECV == mpCookieRequest->m_eType
+ sal_uInt16 nOffset = CNTHTTP_COOKIE_REQUEST_RECV == mpCookieRequest->m_eType
? 0 : STR_COOKIES_SEND_START - STR_COOKIES_RECV_START;
INetURLObject aObj( mpCookieRequest->m_rURL );
SetText( String( ResId( STR_COOKIES_RECV_TITLE + nOffset, *pResMgr ) ) );
@@ -91,7 +91,7 @@ CookiesDialog::CookiesDialog( Window* pParent,
List& rList =mpCookieRequest->m_rCookieList;
String aPair, aCookie;
- for ( USHORT i = (USHORT)rList.Count(); i--; )
+ for ( sal_uInt16 i = (sal_uInt16)rList.Count(); i--; )
{
CntHTTPCookie* pCookie = (CntHTTPCookie*)rList.GetObject(i);
@@ -107,7 +107,7 @@ CookiesDialog::CookiesDialog( Window* pParent,
aMsg += aCookie;
}
}
- maInFutureInteractiveBtn.Check( TRUE );
+ maInFutureInteractiveBtn.Check( sal_True );
maCookieFT.SetText( aMsg );
}
@@ -117,7 +117,7 @@ short CookiesDialog::Execute()
{
maSendBtn.GrabFocus();
short nRet = ModalDialog::Execute();
- USHORT nStatus = CNTHTTP_COOKIE_POLICY_INTERACTIVE;
+ sal_uInt16 nStatus = CNTHTTP_COOKIE_POLICY_INTERACTIVE;
if ( maInFutureSendBtn.IsChecked() )
nStatus = CNTHTTP_COOKIE_POLICY_ACCEPTED;
@@ -126,9 +126,9 @@ short CookiesDialog::Execute()
nStatus = CNTHTTP_COOKIE_POLICY_BANNED;
List& rList = mpCookieRequest->m_rCookieList;
- for ( USHORT i = (USHORT)rList.Count(); i--; )
+ for ( sal_uInt16 i = (sal_uInt16)rList.Count(); i--; )
{
- USHORT& rStatus = ( (CntHTTPCookie*)rList.GetObject(i) )->m_nPolicy;
+ sal_uInt16& rStatus = ( (CntHTTPCookie*)rList.GetObject(i) )->m_nPolicy;
if ( rStatus == CNTHTTP_COOKIE_POLICY_INTERACTIVE )
rStatus = nStatus;
diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx
index 4bda9fb9e579..55be2298abbd 100644
--- a/uui/source/fltdlg.cxx
+++ b/uui/source/fltdlg.cxx
@@ -140,15 +140,15 @@ void FilterDialog::ChangeFilters( const FilterNameList* pFilterNames )
/*-************************************************************************************************************//**
@short ask user for his decision
@descr We show the dialog and if user finish it with "OK" - we try to find selected item in internal saved
- name list (which you must set in "ChangeFilters()"!). If we return TRUE as result, you can use out
+ name list (which you must set in "ChangeFilters()"!). If we return sal_True as result, you can use out
parameter "pSelectedItem" as pointer into your FilterNameList to get selected item realy ...
- but if we return FALSE ... user hsa cancel the dialog ... you shouldnt do that. pSelectedItem isnt
+ but if we return sal_False ... user hsa cancel the dialog ... you shouldnt do that. pSelectedItem isnt
set to any valid value then. We don't change them ...
@seealso method ChangeFilters()
@param "pSelectedItem", returns result of selection as pointer into set list of filter names
- (valid for function return TRUE only!)
+ (valid for function return sal_True only!)
@return true => pSelectedItem parameter points into name list and represent use decision
false => use has cancelled dialog (pSelectedItem isnt valid then!)
diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx
index 3176171c4865..0e5b011c7bf2 100644
--- a/uui/source/iahndl-errorhandler.cxx
+++ b/uui/source/iahndl-errorhandler.cxx
@@ -48,7 +48,7 @@ using namespace com::sun::star;
namespace {
-USHORT
+sal_uInt16
executeErrorDialog(
Window * pParent,
task::InteractionClassification eClassification,
@@ -112,7 +112,7 @@ executeErrorDialog(
uno::Reference< uno::XInterface >());
}
- USHORT aResult = xBox->Execute();
+ sal_uInt16 aResult = xBox->Execute();
switch( aResult )
{
case BUTTONID_OK:
@@ -164,7 +164,7 @@ UUIInteractionHelper::handleErrorHandlerRequest(
CREATEVERSIONRESMGR_NAME(cnt),
CREATEVERSIONRESMGR_NAME(svx),
CREATEVERSIONRESMGR_NAME(uui) };
- static USHORT const aId[4]
+ static sal_uInt16 const aId[4]
= { RID_ERRHDL,
RID_CHAOS_START + 12,
// cf. chaos/source/inc/cntrids.hrc, where
@@ -276,7 +276,7 @@ UUIInteractionHelper::handleErrorHandlerRequest(
}
}
- USHORT nResult = executeErrorDialog(
+ sal_uInt16 nResult = executeErrorDialog(
getParentProperty(), eClassification, aContext, aMessage, nButtonMask );
switch (nResult)
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index ee233f5ac9de..a872f7843706 100755
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -186,7 +186,7 @@ UUIInteractionHelper::handleRequest(
HandleData aHD(rRequest);
Link aLink(&aHD,handlerequest);
pApp->PostUserEvent(aLink,this);
- ULONG locks = Application::ReleaseSolarMutex();
+ sal_uLong locks = Application::ReleaseSolarMutex();
aHD.wait();
Application::AcquireSolarMutex(locks);
return aHD.bHandled;
@@ -247,7 +247,7 @@ UUIInteractionHelper::getStringFromRequest(
HandleData aHD(rRequest);
Link aLink(&aHD,getstringfromrequest);
pApp->PostUserEvent(aLink,this);
- ULONG locks = Application::ReleaseSolarMutex();
+ sal_uLong locks = Application::ReleaseSolarMutex();
aHD.wait();
Application::AcquireSolarMutex(locks);
return aHD.m_aResult;
@@ -1152,7 +1152,7 @@ UUIInteractionHelper::getInteractionHandler()
namespace {
-USHORT
+sal_uInt16
executeMessageBox(
Window * pParent,
rtl::OUString const & rTitle,
@@ -1164,7 +1164,7 @@ executeMessageBox(
MessBox xBox( pParent, nButtonMask, rTitle, rMessage );
- USHORT aResult = xBox.Execute();
+ sal_uInt16 aResult = xBox.Execute();
switch( aResult )
{
case BUTTONID_OK:
@@ -1576,7 +1576,7 @@ ErrorResource::getString(ErrCode nErrorCode, rtl::OUString * pString)
const SAL_THROW(())
{
OSL_ENSURE(pString, "specification violation");
- ResId aResId(static_cast< USHORT >(nErrorCode & ERRCODE_RES_MASK),
+ ResId aResId(static_cast< sal_uInt16 >(nErrorCode & ERRCODE_RES_MASK),
*m_pResMgr);
aResId.SetRT(RSC_STRING);
if (!IsAvailableRes(aResId))
diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx
index b0630a5514b2..c1489cd13704 100755
--- a/uui/source/iahndl.hxx
+++ b/uui/source/iahndl.hxx
@@ -39,7 +39,7 @@
#include "com/sun/star/beans/Optional.hpp"
#include "com/sun/star/task/InteractionClassification.hpp"
-#include "tools/solar.h" // USHORT
+#include "tools/solar.h" // sal_uInt16
#include "tools/errcode.hxx" // ErrCode
#include "tools/rc.hxx" // Resource
#include "tools/wintypes.hxx" // WinBits
diff --git a/uui/source/logindlg.cxx b/uui/source/logindlg.cxx
index d7ded58b5dde..ccf2b4806d26 100755..100644
--- a/uui/source/logindlg.cxx
+++ b/uui/source/logindlg.cxx
@@ -55,24 +55,24 @@ static void lcl_Move( Window &rWin, long nOffset )
}
-void LoginDialog::HideControls_Impl( USHORT nFlags )
+void LoginDialog::HideControls_Impl( sal_uInt16 nFlags )
{
- bool bPathHide = FALSE;
- bool bErrorHide = FALSE;
- bool bAccountHide = FALSE;
- bool bUseSysCredsHide = FALSE;
+ bool bPathHide = sal_False;
+ bool bErrorHide = sal_False;
+ bool bAccountHide = sal_False;
+ bool bUseSysCredsHide = sal_False;
if ( ( nFlags & LF_NO_PATH ) == LF_NO_PATH )
{
aPathFT.Hide();
aPathED.Hide();
aPathBtn.Hide();
- bPathHide = TRUE;
+ bPathHide = sal_True;
}
else if ( ( nFlags & LF_PATH_READONLY ) == LF_PATH_READONLY )
{
- aPathED.Enable( FALSE );
- aPathBtn.Enable( FALSE );
+ aPathED.Enable( sal_False );
+ aPathBtn.Enable( sal_False );
}
if ( ( nFlags & LF_NO_USERNAME ) == LF_NO_USERNAME )
@@ -82,7 +82,7 @@ void LoginDialog::HideControls_Impl( USHORT nFlags )
}
else if ( ( nFlags & LF_USERNAME_READONLY ) == LF_USERNAME_READONLY )
{
- aNameED.Enable( FALSE );
+ aNameED.Enable( sal_False );
}
if ( ( nFlags & LF_NO_PASSWORD ) == LF_NO_PASSWORD )
@@ -99,20 +99,20 @@ void LoginDialog::HideControls_Impl( USHORT nFlags )
aErrorInfo.Hide();
aErrorFT.Hide();
aLogin1FL.Hide();
- bErrorHide = TRUE;
+ bErrorHide = sal_True;
}
if ( ( nFlags & LF_NO_ACCOUNT ) == LF_NO_ACCOUNT )
{
aAccountFT.Hide();
aAccountED.Hide();
- bAccountHide = TRUE;
+ bAccountHide = sal_True;
}
if ( ( nFlags & LF_NO_USESYSCREDS ) == LF_NO_USESYSCREDS )
{
aUseSysCredsCB.Hide();
- bUseSysCredsHide = TRUE;
+ bUseSysCredsHide = sal_True;
}
if ( bErrorHide )
@@ -196,7 +196,7 @@ void LoginDialog::HideControls_Impl( USHORT nFlags )
};
// -----------------------------------------------------------------------
-void LoginDialog::EnableUseSysCredsControls_Impl( BOOL bUseSysCredsEnabled )
+void LoginDialog::EnableUseSysCredsControls_Impl( sal_Bool bUseSysCredsEnabled )
{
aErrorInfo.Enable( !bUseSysCredsEnabled );
aErrorFT.Enable( !bUseSysCredsEnabled );
@@ -252,7 +252,7 @@ IMPL_LINK( LoginDialog, UseSysCredsHdl_Impl, CheckBox *, EMPTYARG )
LoginDialog::LoginDialog
(
Window* pParent,
- USHORT nFlags,
+ sal_uInt16 nFlags,
const String& rServer,
const String* pRealm,
ResMgr* pResMgr
@@ -317,7 +317,7 @@ LoginDialog::~LoginDialog()
// -----------------------------------------------------------------------
-void LoginDialog::SetUseSystemCredentials( BOOL bUse )
+void LoginDialog::SetUseSystemCredentials( sal_Bool bUse )
{
if ( aUseSysCredsCB.IsVisible() )
{
diff --git a/uui/source/logindlg.hxx b/uui/source/logindlg.hxx
index 05ba8e8d55d4..c05bb00e6997 100755..100644
--- a/uui/source/logindlg.hxx
+++ b/uui/source/logindlg.hxx
@@ -74,15 +74,15 @@ class LoginDialog : public ModalDialog
CancelButton aCancelBtn;
HelpButton aHelpBtn;
- void HideControls_Impl( USHORT nFlags );
- void EnableUseSysCredsControls_Impl( BOOL bUseSysCredsEnabled );
+ void HideControls_Impl( sal_uInt16 nFlags );
+ void EnableUseSysCredsControls_Impl( sal_Bool bUseSysCredsEnabled );
DECL_LINK( OKHdl_Impl, OKButton * );
DECL_LINK( PathHdl_Impl, PushButton * );
DECL_LINK( UseSysCredsHdl_Impl, CheckBox * );
public:
- LoginDialog( Window* pParent, USHORT nFlags,
+ LoginDialog( Window* pParent, sal_uInt16 nFlags,
const String& rServer, const String* pRealm,
ResMgr * pResMgr );
virtual ~LoginDialog();
@@ -95,11 +95,11 @@ public:
void SetPassword( const String& rNew ) { aPasswordED.SetText( rNew ); }
String GetAccount() const { return aAccountED.GetText(); }
void SetAccount( const String& rNew ) { aAccountED.SetText( rNew ); }
- BOOL IsSavePassword() const { return aSavePasswdBtn.IsChecked(); }
- void SetSavePassword( BOOL bSave ) { aSavePasswdBtn.Check( bSave ); }
+ sal_Bool IsSavePassword() const { return aSavePasswdBtn.IsChecked(); }
+ void SetSavePassword( sal_Bool bSave ) { aSavePasswdBtn.Check( bSave ); }
void SetSavePasswordText( const String& rTxt ) { aSavePasswdBtn.SetText( rTxt ); }
- BOOL IsUseSystemCredentials() const { return aUseSysCredsCB.IsChecked(); }
- void SetUseSystemCredentials( BOOL bUse );
+ sal_Bool IsUseSystemCredentials() const { return aUseSysCredsCB.IsChecked(); }
+ void SetUseSystemCredentials( sal_Bool bUse );
void SetErrorText( const String& rTxt ) { aErrorInfo.SetText( rTxt ); }
void SetLoginRequestText( const String& rTxt ) { aRequestInfo.SetText( rTxt ); }
void ClearPassword();
diff --git a/uui/source/loginerr.hxx b/uui/source/loginerr.hxx
index 39bbfb7d820c..208228eef131 100755..100644
--- a/uui/source/loginerr.hxx
+++ b/uui/source/loginerr.hxx
@@ -51,8 +51,8 @@ private:
String m_aPasswordToModify;
String m_aPath;
String m_aErrorText;
- BYTE m_nFlags;
- USHORT m_nRet;
+ sal_uInt8 m_nFlags;
+ sal_uInt16 m_nRet;
bool m_bRecommendToOpenReadonly;
public:
@@ -71,17 +71,17 @@ public:
bool IsRecommendToOpenReadonly() const { return m_bRecommendToOpenReadonly; }
const String& GetPath() const { return m_aPath; }
const String& GetErrorText() const { return m_aErrorText; }
- BOOL GetCanRememberPassword() const { return ( m_nFlags & LOGINERROR_FLAG_CAN_REMEMBER_PASSWORD ); }
- BOOL GetIsRememberPersistent() const { return ( m_nFlags & LOGINERROR_FLAG_REMEMBER_PERSISTENT ); }
- BOOL GetIsRememberPassword() const { return ( m_nFlags & LOGINERROR_FLAG_IS_REMEMBER_PASSWORD ); }
+ sal_Bool GetCanRememberPassword() const { return ( m_nFlags & LOGINERROR_FLAG_CAN_REMEMBER_PASSWORD ); }
+ sal_Bool GetIsRememberPersistent() const { return ( m_nFlags & LOGINERROR_FLAG_REMEMBER_PERSISTENT ); }
+ sal_Bool GetIsRememberPassword() const { return ( m_nFlags & LOGINERROR_FLAG_IS_REMEMBER_PASSWORD ); }
- BOOL GetCanUseSystemCredentials() const
+ sal_Bool GetCanUseSystemCredentials() const
{ return ( m_nFlags & LOGINERROR_FLAG_CAN_USE_SYSCREDS ); }
- BOOL GetIsUseSystemCredentials() const
+ sal_Bool GetIsUseSystemCredentials() const
{ return ( m_nFlags & LOGINERROR_FLAG_IS_USE_SYSCREDS ) ==
LOGINERROR_FLAG_IS_USE_SYSCREDS; }
- BYTE GetFlags() const { return m_nFlags; }
- USHORT GetResult() const { return m_nRet; }
+ sal_uInt8 GetFlags() const { return m_nFlags; }
+ sal_uInt16 GetResult() const { return m_nRet; }
void SetTitle( const String& aTitle )
{ m_aTitle = aTitle; }
@@ -101,23 +101,23 @@ public:
{ m_aPath = aPath; }
void SetErrorText( const String& aErrorText )
{ m_aErrorText = aErrorText; }
- void SetFlags( BYTE nFlags )
+ void SetFlags( sal_uInt8 nFlags )
{ m_nFlags = nFlags; }
- inline void SetCanRememberPassword( BOOL bSet );
- inline void SetIsRememberPassword( BOOL bSet );
- inline void SetIsRememberPersistent( BOOL bSet );
+ inline void SetCanRememberPassword( sal_Bool bSet );
+ inline void SetIsRememberPassword( sal_Bool bSet );
+ inline void SetIsRememberPersistent( sal_Bool bSet );
- inline void SetCanUseSystemCredentials( BOOL bSet );
- inline void SetIsUseSystemCredentials( BOOL bSet );
- inline void SetModifyAccount( BOOL bSet );
- inline void SetModifyUserName( BOOL bSet );
+ inline void SetCanUseSystemCredentials( sal_Bool bSet );
+ inline void SetIsUseSystemCredentials( sal_Bool bSet );
+ inline void SetModifyAccount( sal_Bool bSet );
+ inline void SetModifyUserName( sal_Bool bSet );
- void SetResult( USHORT nRet )
+ void SetResult( sal_uInt16 nRet )
{ m_nRet = nRet; }
};
-inline void LoginErrorInfo::SetCanRememberPassword( BOOL bSet )
+inline void LoginErrorInfo::SetCanRememberPassword( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_CAN_REMEMBER_PASSWORD;
@@ -125,7 +125,7 @@ inline void LoginErrorInfo::SetCanRememberPassword( BOOL bSet )
m_nFlags &= ~LOGINERROR_FLAG_CAN_REMEMBER_PASSWORD;
}
-inline void LoginErrorInfo::SetIsRememberPassword( BOOL bSet )
+inline void LoginErrorInfo::SetIsRememberPassword( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_IS_REMEMBER_PASSWORD;
@@ -133,7 +133,7 @@ inline void LoginErrorInfo::SetIsRememberPassword( BOOL bSet )
m_nFlags &= ~LOGINERROR_FLAG_IS_REMEMBER_PASSWORD;
}
-inline void LoginErrorInfo::SetIsRememberPersistent( BOOL bSet )
+inline void LoginErrorInfo::SetIsRememberPersistent( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_REMEMBER_PERSISTENT;
@@ -141,7 +141,7 @@ inline void LoginErrorInfo::SetIsRememberPersistent( BOOL bSet )
m_nFlags &= ~LOGINERROR_FLAG_REMEMBER_PERSISTENT;
}
-inline void LoginErrorInfo::SetCanUseSystemCredentials( BOOL bSet )
+inline void LoginErrorInfo::SetCanUseSystemCredentials( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_CAN_USE_SYSCREDS;
@@ -149,7 +149,7 @@ inline void LoginErrorInfo::SetCanUseSystemCredentials( BOOL bSet )
m_nFlags &= ~LOGINERROR_FLAG_CAN_USE_SYSCREDS;
}
-inline void LoginErrorInfo::SetIsUseSystemCredentials( BOOL bSet )
+inline void LoginErrorInfo::SetIsUseSystemCredentials( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_IS_USE_SYSCREDS;
@@ -157,7 +157,7 @@ inline void LoginErrorInfo::SetIsUseSystemCredentials( BOOL bSet )
m_nFlags &= ~LOGINERROR_FLAG_IS_USE_SYSCREDS;
}
-inline void LoginErrorInfo::SetModifyAccount( BOOL bSet )
+inline void LoginErrorInfo::SetModifyAccount( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_MODIFY_ACCOUNT;
@@ -165,7 +165,7 @@ inline void LoginErrorInfo::SetModifyAccount( BOOL bSet )
m_nFlags &= ~LOGINERROR_FLAG_MODIFY_ACCOUNT;
}
-inline void LoginErrorInfo::SetModifyUserName( BOOL bSet )
+inline void LoginErrorInfo::SetModifyUserName( sal_Bool bSet )
{
if ( bSet )
m_nFlags |= LOGINERROR_FLAG_MODIFY_USER_NAME;
diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx
index 348d2f833e15..a6fa5134c277 100755..100644
--- a/uui/source/passworddlg.cxx
+++ b/uui/source/passworddlg.cxx
@@ -71,8 +71,8 @@ PasswordDialog::PasswordDialog(
{
if( nDialogMode == task::PasswordRequestMode_PASSWORD_REENTER )
{
- const USHORT nOpenToModifyErrStrId = bOpenToModify ? STR_ERROR_PASSWORD_TO_MODIFY_WRONG : STR_ERROR_PASSWORD_TO_OPEN_WRONG;
- const USHORT nErrStrId = bIsSimplePasswordRequest ? STR_ERROR_SIMPLE_PASSWORD_WRONG : nOpenToModifyErrStrId;
+ const sal_uInt16 nOpenToModifyErrStrId = bOpenToModify ? STR_ERROR_PASSWORD_TO_MODIFY_WRONG : STR_ERROR_PASSWORD_TO_OPEN_WRONG;
+ const sal_uInt16 nErrStrId = bIsSimplePasswordRequest ? STR_ERROR_SIMPLE_PASSWORD_WRONG : nOpenToModifyErrStrId;
String aErrorMsg( ResId( nErrStrId, *pResourceMgr ));
ErrorBox aErrorBox( this, WB_OK, aErrorMsg );
aErrorBox.Execute();
@@ -82,8 +82,8 @@ PasswordDialog::PasswordDialog(
String aTitle( ResId( STR_TITLE_ENTER_PASSWORD, *pResourceMgr ) );
aFTConfirmPassword.Hide();
aEDConfirmPassword.Hide();
- aFTConfirmPassword.Enable( FALSE );
- aEDConfirmPassword.Enable( FALSE );
+ aFTConfirmPassword.Enable( sal_False );
+ aEDConfirmPassword.Enable( sal_False );
// settings for create password
if (nDialogMode == task::PasswordRequestMode_PASSWORD_CREATE)
@@ -94,8 +94,8 @@ PasswordDialog::PasswordDialog(
aFTConfirmPassword.Show();
aEDConfirmPassword.Show();
- aFTConfirmPassword.Enable( TRUE );
- aEDConfirmPassword.Enable( TRUE );
+ aFTConfirmPassword.Enable( sal_True );
+ aEDConfirmPassword.Enable( sal_True );
}
else
{
@@ -115,7 +115,7 @@ PasswordDialog::PasswordDialog(
SetText( aTitle );
- USHORT nStrId = bOpenToModify ? STR_ENTER_PASSWORD_TO_MODIFY : STR_ENTER_PASSWORD_TO_OPEN;
+ sal_uInt16 nStrId = bOpenToModify ? STR_ENTER_PASSWORD_TO_MODIFY : STR_ENTER_PASSWORD_TO_OPEN;
aFTPassword.SetText( String( ResId( nStrId, *pResourceMgr ) ) );
aFTPassword.SetText( aFTPassword.GetText() + aDocURL );
if (bIsSimplePasswordRequest)
diff --git a/uui/source/passworddlg.hxx b/uui/source/passworddlg.hxx
index b94dbab82444..b35514dae651 100755..100644
--- a/uui/source/passworddlg.hxx
+++ b/uui/source/passworddlg.hxx
@@ -48,7 +48,7 @@ class PasswordDialog : public ModalDialog
CancelButton aCancelBtn;
HelpButton aHelpBtn;
FixedLine aFixedLine1;
- USHORT nMinLen;
+ sal_uInt16 nMinLen;
String aPasswdMismatch;
@@ -58,7 +58,7 @@ public:
PasswordDialog( Window* pParent, ::com::sun::star::task::PasswordRequestMode nDlgMode, ResMgr * pResMgr, ::rtl::OUString& aDocURL,
bool bOpenToModify = false, bool bIsSimplePasswordRequest = false );
- void SetMinLen( USHORT nMin ) { nMinLen = nMin; }
+ void SetMinLen( sal_uInt16 nMin ) { nMinLen = nMin; }
String GetPassword() const { return aEDPassword.GetText(); }
private: