LibreOffice Module xmlsecurity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DigitalSignaturesDialog Class Referencefinal

#include <digitalsignaturesdialog.hxx>

Inheritance diagram for DigitalSignaturesDialog:
[legend]
Collaboration diagram for DigitalSignaturesDialog:
[legend]

Public Member Functions

 DigitalSignaturesDialog (weld::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &rxCtx, DocumentSignatureMode eMode, bool bReadOnly, OUString sODFVersion, bool bHasDocumentSignature)
 
virtual ~DigitalSignaturesDialog () override
 
bool Init ()
 
void SetStorage (const css::uno::Reference< css::embed::XStorage > &rxStore)
 
void SetSignatureStream (const css::uno::Reference< css::io::XStream > &rxStream)
 
void beforeRun ()
 
short run () override
 
bool SignaturesChanged () const
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (AdESCompliantCheckBoxHdl, weld::Toggleable &, void)
 
 DECL_LINK (ViewButtonHdl, weld::Button &, void)
 
 DECL_LINK (AddButtonHdl, weld::Button &, void)
 
 DECL_LINK (RemoveButtonHdl, weld::Button &, void)
 
 DECL_LINK (SignatureHighlightHdl, weld::TreeView &, void)
 
 DECL_LINK (SignatureSelectHdl, weld::TreeView &, bool)
 
 DECL_LINK (StartVerifySignatureHdl, LinkParamNone *, bool)
 
 DECL_LINK (OKButtonHdl, weld::Button &, void)
 
 DECL_LINK (CertMgrButtonHdl, weld::Button &, void)
 
void ImplGetSignatureInformations (bool bUseTempStream, bool bCacheLastSignature)
 
void ImplFillSignaturesBox ()
 
void ImplShowSignaturesDetails ()
 
bool IsThereCertificateMgr ()
 
void GetCertificateManager (OUString &aPath, OUString &sExecutable, OUString &sFoundGUIServer)
 
bool GetPathAllOS (OUString &aPath)
 
css::uno::Reference< css::security::XCertificate > getCertificate (const SignatureInformation &rInfo)
 
css::uno::Reference< css::xml::crypto::XSecurityEnvironment > getSecurityEnvironmentForCertificate (const css::uno::Reference< css::security::XCertificate > &xCert)
 
bool canAdd ()
 
bool canRemove ()
 
bool canAddRemove ()
 

Private Attributes

DocumentSignatureManager maSignatureManager
 
bool mbVerifySignatures
 
bool mbSignaturesChanged
 
OUString const m_sODFVersion
 
bool const m_bHasDocumentSignature
 
bool m_bWarningShowSignMacro
 
bool m_bAdESCompliant
 
std::unique_ptr< weld::Labelm_xHintDocFT
 
std::unique_ptr< weld::Labelm_xHintBasicFT
 
std::unique_ptr< weld::Labelm_xHintPackageFT
 
std::unique_ptr< weld::TreeViewm_xSignaturesLB
 
std::unique_ptr< weld::Imagem_xSigsValidImg
 
std::unique_ptr< weld::Labelm_xSigsValidFI
 
std::unique_ptr< weld::Imagem_xSigsInvalidImg
 
std::unique_ptr< weld::Labelm_xSigsInvalidFI
 
std::unique_ptr< weld::Imagem_xSigsNotvalidatedImg
 
std::unique_ptr< weld::Labelm_xSigsNotvalidatedFI
 
std::unique_ptr< weld::Imagem_xSigsOldSignatureImg
 
std::unique_ptr< weld::Labelm_xSigsOldSignatureFI
 
std::unique_ptr< weld::CheckButtonm_xAdESCompliantCB
 
std::unique_ptr< weld::Buttonm_xViewBtn
 
std::unique_ptr< weld::Buttonm_xAddBtn
 
std::unique_ptr< weld::Buttonm_xRemoveBtn
 
std::unique_ptr< weld::Buttonm_xStartCertMgrBtn
 
std::unique_ptr< weld::Buttonm_xCloseBtn
 
std::shared_ptr< CertificateViewerm_xViewer
 
std::shared_ptr< weld::MessageDialogm_xInfoBox
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 42 of file digitalsignaturesdialog.hxx.

Constructor & Destructor Documentation

◆ DigitalSignaturesDialog()

DigitalSignaturesDialog::DigitalSignaturesDialog ( weld::Window pParent,
const css::uno::Reference< css::uno::XComponentContext > &  rxCtx,
DocumentSignatureMode  eMode,
bool  bReadOnly,
OUString  sODFVersion,
bool  bHasDocumentSignature 
)

◆ ~DigitalSignaturesDialog()

DigitalSignaturesDialog::~DigitalSignaturesDialog ( )
overridevirtual

Definition at line 229 of file digitalsignaturesdialog.cxx.

References m_xInfoBox, m_xViewer, and RET_OK.

Member Function Documentation

◆ beforeRun()

void DigitalSignaturesDialog::beforeRun ( )

◆ canAdd()

bool DigitalSignaturesDialog::canAdd ( )
private

Definition at line 329 of file digitalsignaturesdialog.cxx.

References canAddRemove().

◆ canAddRemove()

bool DigitalSignaturesDialog::canAddRemove ( )
private

◆ canRemove()

bool DigitalSignaturesDialog::canRemove ( )
private

◆ DECL_LINK() [1/9]

DigitalSignaturesDialog::DECL_LINK ( AddButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/9]

DigitalSignaturesDialog::DECL_LINK ( AdESCompliantCheckBoxHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/9]

DigitalSignaturesDialog::DECL_LINK ( CertMgrButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/9]

DigitalSignaturesDialog::DECL_LINK ( OKButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/9]

DigitalSignaturesDialog::DECL_LINK ( RemoveButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/9]

DigitalSignaturesDialog::DECL_LINK ( SignatureHighlightHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [7/9]

DigitalSignaturesDialog::DECL_LINK ( SignatureSelectHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [8/9]

DigitalSignaturesDialog::DECL_LINK ( StartVerifySignatureHdl  ,
LinkParamNone ,
bool   
)
private

◆ DECL_LINK() [9/9]

DigitalSignaturesDialog::DECL_LINK ( ViewButtonHdl  ,
weld::Button ,
void   
)
private

◆ getCertificate()

uno::Reference< security::XCertificate > DigitalSignaturesDialog::getCertificate ( const SignatureInformation rInfo)
private

◆ GetCertificateManager()

void DigitalSignaturesDialog::GetCertificateManager ( OUString &  aPath,
OUString &  sExecutable,
OUString &  sFoundGUIServer 
)
private

◆ GetPathAllOS()

bool DigitalSignaturesDialog::GetPathAllOS ( OUString &  aPath)
private

Definition at line 494 of file digitalsignaturesdialog.cxx.

References hr.

Referenced by IsThereCertificateMgr().

◆ getSecurityEnvironmentForCertificate()

uno::Reference< xml::crypto::XSecurityEnvironment > DigitalSignaturesDialog::getSecurityEnvironmentForCertificate ( const css::uno::Reference< css::security::XCertificate > &  xCert)
private

◆ ImplFillSignaturesBox()

void DigitalSignaturesDialog::ImplFillSignaturesBox ( )
private

◆ ImplGetSignatureInformations()

void DigitalSignaturesDialog::ImplGetSignatureInformations ( bool  bUseTempStream,
bool  bCacheLastSignature 
)
private

◆ ImplShowSignaturesDetails()

void DigitalSignaturesDialog::ImplShowSignaturesDetails ( )
private

◆ Init()

bool DigitalSignaturesDialog::Init ( void  )

◆ IsThereCertificateMgr()

bool DigitalSignaturesDialog::IsThereCertificateMgr ( )
private

Definition at line 562 of file digitalsignaturesdialog.cxx.

References GetCertificateManager(), and GetPathAllOS().

Referenced by DigitalSignaturesDialog().

◆ run()

short DigitalSignaturesDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 374 of file digitalsignaturesdialog.cxx.

References beforeRun().

◆ SetSignatureStream()

void DigitalSignaturesDialog::SetSignatureStream ( const css::uno::Reference< css::io::XStream > &  rxStream)

◆ SetStorage()

void DigitalSignaturesDialog::SetStorage ( const css::uno::Reference< css::embed::XStorage > &  rxStore)

◆ SignaturesChanged()

bool DigitalSignaturesDialog::SignaturesChanged ( ) const
inline

Definition at line 126 of file digitalsignaturesdialog.hxx.

References mbSignaturesChanged.

Member Data Documentation

◆ m_bAdESCompliant

bool DigitalSignaturesDialog::m_bAdESCompliant
private

Definition at line 55 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog(), and SetStorage().

◆ m_bHasDocumentSignature

bool const DigitalSignaturesDialog::m_bHasDocumentSignature
private

Definition at line 52 of file digitalsignaturesdialog.hxx.

Referenced by canAddRemove().

◆ m_bWarningShowSignMacro

bool DigitalSignaturesDialog::m_bWarningShowSignMacro
private

Definition at line 53 of file digitalsignaturesdialog.hxx.

Referenced by canAddRemove().

◆ m_sODFVersion

OUString const DigitalSignaturesDialog::m_sODFVersion
private

◆ m_xAddBtn

std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xAddBtn
private

Definition at line 71 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xAdESCompliantCB

std::unique_ptr<weld::CheckButton> DigitalSignaturesDialog::m_xAdESCompliantCB
private

Definition at line 69 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog(), and SetStorage().

◆ m_xCloseBtn

std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xCloseBtn
private

Definition at line 74 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xHintBasicFT

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xHintBasicFT
private

Definition at line 58 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xHintDocFT

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xHintDocFT
private

Definition at line 57 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xHintPackageFT

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xHintPackageFT
private

Definition at line 59 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xInfoBox

std::shared_ptr<weld::MessageDialog> DigitalSignaturesDialog::m_xInfoBox
private

◆ m_xRemoveBtn

std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xRemoveBtn
private

Definition at line 72 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xSignaturesLB

std::unique_ptr<weld::TreeView> DigitalSignaturesDialog::m_xSignaturesLB
private

◆ m_xSigsInvalidFI

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsInvalidFI
private

Definition at line 64 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsInvalidImg

std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsInvalidImg
private

Definition at line 63 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsNotvalidatedFI

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsNotvalidatedFI
private

Definition at line 66 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsNotvalidatedImg

std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsNotvalidatedImg
private

Definition at line 65 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsOldSignatureFI

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsOldSignatureFI
private

Definition at line 68 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsOldSignatureImg

std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsOldSignatureImg
private

Definition at line 67 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsValidFI

std::unique_ptr<weld::Label> DigitalSignaturesDialog::m_xSigsValidFI
private

Definition at line 62 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xSigsValidImg

std::unique_ptr<weld::Image> DigitalSignaturesDialog::m_xSigsValidImg
private

Definition at line 61 of file digitalsignaturesdialog.hxx.

Referenced by ImplFillSignaturesBox().

◆ m_xStartCertMgrBtn

std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xStartCertMgrBtn
private

Definition at line 73 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xViewBtn

std::unique_ptr<weld::Button> DigitalSignaturesDialog::m_xViewBtn
private

Definition at line 70 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog().

◆ m_xViewer

std::shared_ptr<CertificateViewer> DigitalSignaturesDialog::m_xViewer
private

◆ maSignatureManager

DocumentSignatureManager DigitalSignaturesDialog::maSignatureManager
private

◆ mbSignaturesChanged

bool DigitalSignaturesDialog::mbSignaturesChanged
private

Definition at line 47 of file digitalsignaturesdialog.hxx.

Referenced by DigitalSignaturesDialog(), and SignaturesChanged().

◆ mbVerifySignatures

bool DigitalSignaturesDialog::mbVerifySignatures
private

The documentation for this class was generated from the following files: