summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorTobias Krause <tkr@openoffice.org>2011-02-17 10:40:12 +0100
committerTobias Krause <tkr@openoffice.org>2011-02-17 10:40:12 +0100
commit802934dd907be2a60adaa2ba0fe47506c168230b (patch)
treeb65c78bdb989a752aa7f76796e23033e3ad6fe46 /uui
parent8d18e66adf16cd8167caed5c28be8927a3d9b1ec (diff)
parentaed6bcebef74ed9b4260aca16e20586babef45ca (diff)
tkr38: m100 merge
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-x[-rw-r--r--]uui/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--uui/source/loginerr.hxx50
-rw-r--r--uui/source/passworddlg.cxx14
-rw-r--r--uui/source/passworddlg.hxx4
10 files changed, 75 insertions, 75 deletions
diff --git a/uui/source/cookiedg.cxx b/uui/source/cookiedg.cxx
index fea8b9a274..5e3e338e28 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 3c09d66767..9afae25cf4 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 6388a900cf..588c011414 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 7cfcc3688b..4bf169e626 100644..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 4acc3ebb31..93e70c19f7 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 efb0b77fea..5901790eff 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 a349929ce7..fea12e76e0 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 39bbfb7d82..208228eef1 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 5c584a559f..f38d6c55f2 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 9e959a6aba..3a180597c1 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: