summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-03-04 16:14:56 +0100
committerThomas Lange [tl] <tl@openoffice.org>2010-03-04 16:14:56 +0100
commit7cd3ea794099e257d99748908855e61aa9df89eb (patch)
tree4395ce632e89661cba0c0cbb34e0f398d3836965 /cui/source/factory
parent5d80039860ebc67494e489137138fbc935089cc0 (diff)
#i109634# password to open/modify dialog
Diffstat (limited to 'cui/source/factory')
-rwxr-xr-xcui/source/factory/dlgfact.cxx10
-rwxr-xr-xcui/source/factory/dlgfact.hxx3
2 files changed, 10 insertions, 3 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 6102a91da836..a1db7ce1bcd4 100755
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -962,6 +962,10 @@ String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const
{
return pDlg->GetPasswordToModify();
}
+bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const
+{
+ return pDlg->IsRecommendToOpenReadonly();
+}
// Create dialogs with simplest interface
VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, sal_uInt32 nResId )
@@ -1916,9 +1920,11 @@ SvxAbstractInsRowColDlg* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Wind
return new SvxInsRowColDlg( pParent, bCol, nHelpId );
}
-AbstractPasswordToOpenModifyDialog * AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog( Window * pParent )
+AbstractPasswordToOpenModifyDialog * AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog(
+ Window * pParent,
+ sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen )
{
- PasswordToOpenModifyDialog * pDlg = new PasswordToOpenModifyDialog( pParent );
+ PasswordToOpenModifyDialog * pDlg = new PasswordToOpenModifyDialog( pParent, nMinPasswdLen, nMaxPasswdLen );
return new AbstractPasswordToOpenModifyDialog_Impl( pDlg );
}
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index 092458ff4027..8b00780feb06 100755
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -583,6 +583,7 @@ class AbstractPasswordToOpenModifyDialog_Impl : public AbstractPasswordToOpenMod
virtual String GetPasswordToOpen() const;
virtual String GetPasswordToModify() const;
+ virtual bool IsRecommendToOpenReadonly() const;
};
//for PasswordToOpenModifyDialog end
@@ -789,7 +790,7 @@ public:
virtual SvxAbstractInsRowColDlg* CreateSvxInsRowColDlg( Window* pParent, bool bCol, ULONG nHelpId );
- virtual AbstractPasswordToOpenModifyDialog * CreatePasswordToOpenModifyDialog( Window * pParent );
+ virtual AbstractPasswordToOpenModifyDialog * CreatePasswordToOpenModifyDialog( Window * pParent, sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen );
};
#endif