summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-14 23:04:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-15 08:50:08 +0000
commitc163123e1f1ffb7bcaa8f2f09f2830fdfabcaef3 (patch)
tree3b614e9ce8deed886d844799b8c6f73fd59d821f /xmlsecurity/inc
parent62726df969887cf6578a0f69c6c3dc8f689a3b06 (diff)
adapt macro security dialog code to .ui
Change-Id: I0527ff30508bd7fd9182ff0bfec87aef7907f1fb
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/xmlsecurity/global.hrc3
-rw-r--r--xmlsecurity/inc/xmlsecurity/macrosecurity.hxx27
2 files changed, 14 insertions, 16 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/global.hrc b/xmlsecurity/inc/xmlsecurity/global.hrc
index e4393b24f682..4675f7e6e1e3 100644
--- a/xmlsecurity/inc/xmlsecurity/global.hrc
+++ b/xmlsecurity/inc/xmlsecurity/global.hrc
@@ -25,9 +25,6 @@
#define RID_XMLSECTP_GENERAL 1003
#define RID_XMLSECTP_DETAILS 1004
#define RID_XMLSECTP_CERTPATH 1005
-#define RID_XMLSECTP_MACROSEC 1006
-#define RID_XMLSECTP_SECLEVEL 1007
-#define RID_XMLSECTP_TRUSTSOURCES 1008
#define RID_XMLSECTP_MACROWARN 1009
#define RID_XMLSECTP_READONLY_CONFIG_TIP 1010
#define RID_XMLSECTP_LOCK 1011
diff --git a/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx b/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
index 4b500dcda4d1..42cc9a741cbb 100644
--- a/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
+++ b/xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
@@ -58,32 +58,33 @@ private:
friend class MacroSecurityLevelTP;
friend class MacroSecurityTrustedSourcesTP;
- TabControl maTabCtrl;
- OKButton maOkBtn;
- CancelButton maCancelBtn;
- HelpButton maHelpBtn;
- PushButton maResetBtn;
+ TabControl* m_pTabCtrl;
+ OKButton* m_pOkBtn;
+ PushButton* m_pResetBtn;
cssu::Reference< cssu::XComponentContext > mxCtx;
cssu::Reference< dcss::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
SvtSecurityOptions maSecOptions;
+ sal_uInt16 m_nSecLevelId;
+ sal_uInt16 m_nSecTrustId;
+
MacroSecurityTP* mpLevelTP;
MacroSecurityTP* mpTrustSrcTP;
DECL_LINK( OkBtnHdl, void* );
public:
- MacroSecurity( Window* pParent, const cssu::Reference< cssu::XComponentContext>& rxCtx, const cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment );
- virtual ~MacroSecurity();
+ MacroSecurity(Window* pParent,
+ const cssu::Reference< cssu::XComponentContext>& rxCtx,
+ const cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& rxSecurityEnvironment);
+ virtual ~MacroSecurity();
- inline void EnableReset( bool _bEnable = true );
+ inline void EnableReset(bool _bEnable = true)
+ {
+ m_pResetBtn->Enable ( _bEnable );
+ }
};
-inline void MacroSecurity::EnableReset( bool _bEnable )
-{
- maResetBtn.Enable ( _bEnable );
-}
-
class MacroSecurityTP : public TabPage
{
protected: