Kaydet (Commit) 0ea32acf authored tarafından Caolán McNamara's avatar Caolán McNamara

move security options dialog to cui and adapt code

Change-Id: Ie1f5c5eb437c55844a524c1219b1e30e5f07b3c3
üst c163123e
......@@ -45,6 +45,7 @@ $(eval $(call gb_UI_add_uifiles,cui,\
cui/uiconfig/ui/pickoutlinepage \
cui/uiconfig/ui/positionpage \
cui/uiconfig/ui/scriptorganizer \
cui/uiconfig/ui/securityoptionsdialog \
cui/uiconfig/ui/select_persona_dialog \
cui/uiconfig/ui/specialcharacters \
cui/uiconfig/ui/spellingdialog \
......
......@@ -45,7 +45,6 @@
#define HID_SVXPAGE_JSEARCH_OPTIONS "CUI_HID_SVXPAGE_JSEARCH_OPTIONS"
#define HID_SVXDLG_FILTER_WARNING "CUI_HID_SVXDLG_FILTER_WARNING"
#define HID_SVX_OPTIONS_ONLINEUPDATE "CUI_HID_SVX_OPTIONS_ONLINEUPDATE"
#define HID_DLG_SECURITY_OPTIONS "CUI_HID_DLG_SECURITY_OPTIONS"
#define HID_OFADLG_OPTIONS_TREE "CUI_HID_OFADLG_OPTIONS_TREE"
#define HID_OFA_CONNPOOL_DRIVERLIST "CUI_HID_OFA_CONNPOOL_DRIVERLIST"
#define UID_OFA_CONNPOOL_DRIVERLIST_BACK "CUI_UID_OFA_CONNPOOL_DRIVERLIST_BACK"
......
......@@ -43,10 +43,9 @@ namespace svx
{
//........................................................................
SecurityOptionsDialog::SecurityOptionsDialog( Window* pParent, SvtSecurityOptions* pOptions ) :
ModalDialog( pParent, CUI_RES( RID_SVXDLG_SECURITY_OPTIONS ) )
,m_aWarningsFL ( this, CUI_RES( FL_WARNINGS ) )
,m_aWarningsFI ( this, CUI_RES( FI_WARNINGS ) )
SecurityOptionsDialog::SecurityOptionsDialog(Window* pParent, SvtSecurityOptions* pOptions)
: ModalDialog(pParent, "SecurityOptionsDialog", "cui/ui/securityoptionsdialog.ui")
,m_aSaveOrSendDocsFI( this, CUI_RES( FI_SAVESENDDOCS ) )
,m_aSaveOrSendDocsCB( this, CUI_RES( CB_SAVESENDDOCS ) )
,m_aSignDocsFI ( this, CUI_RES( FI_SIGNDOCS ) )
......@@ -55,7 +54,6 @@ SecurityOptionsDialog::SecurityOptionsDialog( Window* pParent, SvtSecurityOption
,m_aPrintDocsCB ( this, CUI_RES( CB_PRINTDOCS ) )
,m_aCreatePdfFI ( this, CUI_RES( FI_CREATEPDF ) )
,m_aCreatePdfCB ( this, CUI_RES( CB_CREATEPDF ) )
,m_aOptionsFL ( this, CUI_RES( FL_OPTIONS ) )
,m_aRemovePersInfoFI( this, CUI_RES( FI_REMOVEINFO ) )
,m_aRemovePersInfoCB( this, CUI_RES( CB_REMOVEINFO ) )
,m_aRecommPasswdFI ( this, CUI_RES( FI_RECOMMENDPWD ) )
......@@ -63,13 +61,7 @@ SecurityOptionsDialog::SecurityOptionsDialog( Window* pParent, SvtSecurityOption
,m_aCtrlHyperlinkFI ( this, CUI_RES( FI_CTRLHYPERLINK ) )
,m_aCtrlHyperlinkCB ( this, CUI_RES( CB_CTRLHYPERLINK ) )
,m_aButtonsFL ( this, CUI_RES( FL_BUTTONS ) )
,m_aOKBtn ( this, CUI_RES( PB_OK ) )
,m_aCancelBtn ( this, CUI_RES( PB_CANCEL ) )
,m_aHelpBtn ( this, CUI_RES( PB_HELP ) )
{
FreeResource();
DBG_ASSERT( pOptions, "SecurityOptionsDialog::SecurityOptionsDialog(): invalid SvtSecurityOptions" );
enableAndSet( *pOptions, SvtSecurityOptions::E_DOCWARN_SAVEORSEND, m_aSaveOrSendDocsCB, m_aSaveOrSendDocsFI );
......
......@@ -38,8 +38,6 @@ namespace svx
class SecurityOptionsDialog : public ModalDialog
{
private:
FixedLine m_aWarningsFL;
FixedInfo m_aWarningsFI;
ReadOnlyImage m_aSaveOrSendDocsFI;
CheckBox m_aSaveOrSendDocsCB;
ReadOnlyImage m_aSignDocsFI;
......@@ -49,7 +47,6 @@ namespace svx
ReadOnlyImage m_aCreatePdfFI;
CheckBox m_aCreatePdfCB;
FixedLine m_aOptionsFL;
ReadOnlyImage m_aRemovePersInfoFI;
CheckBox m_aRemovePersInfoCB;
ReadOnlyImage m_aRecommPasswdFI;
......@@ -57,10 +54,6 @@ namespace svx
ReadOnlyImage m_aCtrlHyperlinkFI;
CheckBox m_aCtrlHyperlinkCB;
FixedLine m_aButtonsFL;
OKButton m_aOKBtn;
CancelButton m_aCancelBtn;
HelpButton m_aHelpBtn;
public:
SecurityOptionsDialog( Window* pParent, SvtSecurityOptions* pOptions );
......
......@@ -23,7 +23,6 @@
ModalDialog RID_SVXDLG_SECURITY_OPTIONS
{
HelpID = HID_DLG_SECURITY_OPTIONS ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( DLG_WIDTH , ROW_10 ) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment