26#include <osl/diagnose.h>
31 using ::com::sun::star::uno::Reference;
32 using ::com::sun::star::frame::XModel;
47 if ( pShell->
GetModel() == xDocument )
61 OSL_PRECOND(
supportsSignatures(),
"DocumentSignature::signScriptingContent: signatures not supported by this document!" );
70 return SignatureState::NOSIGNATURES;
static SAL_WARN_UNUSED_RESULT SfxObjectShell * GetNext(const SfxObjectShell &rPrev, const std::function< bool(const SfxObjectShell *)> &isObjectShell=nullptr, bool bOnlyVisible=true)
css::uno::Reference< css::frame::XModel3 > GetModel() const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * GetFirst(const std::function< bool(const SfxObjectShell *)> &isObjectShell=nullptr, bool bOnlyVisible=true)
SignatureState GetScriptingSignatureState()
bool SignScriptingContent(weld::Window *pDialogParent)
DocumentSignature()=delete
bool supportsSignatures() const
determines whether the instance is valid
SignatureState getScriptingSignatureState() const
retrieves the state of the signature of the scripting content inside the document
void signScriptingContent(weld::Window *pDialogParent) const
signs the scripting content inside the document
SfxObjectShell * m_pShell
encapsulates a document which contains Basic scripts and dialogs
css::uno::Reference< css::frame::XModel > getDocument() const
returns the UNO component representing the document which the instance operates on
bool isDocument() const
determines whether the ScriptDocument instance operates on a real document, as opposed to the whole a...