summaryrefslogtreecommitdiff
path: root/uui/source/loginerr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/loginerr.hxx')
-rw-r--r--[-rwxr-xr-x]uui/source/loginerr.hxx50
1 files changed, 25 insertions, 25 deletions
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;