20#ifndef INCLUDED_SFX2_DOCMACROMODE_HXX
21#define INCLUDED_SFX2_DOCMACROMODE_HXX
26#include <com/sun/star/uno/Reference.hxx>
131 virtual css::uno::Reference< css::document::XEmbeddedScripts >
167 struct DocumentMacroMode_Data;
191 bool allowMacroExecution();
200 bool disallowMacroExecution();
225 bool adjustMacroMode(
226 const css::uno::Reference< css::task::XInteractionHandler >& _rxInteraction,
227 bool bHasValidContentSignature =
false
248 bool isMacroExecutionDisallowed()
const;
256 bool hasMacroLibrary()
const;
258 bool hasUnsignedContentError()
const;
267 static bool storageHasMacros(
const css::uno::Reference< css::embed::XStorage >& _rxStorage );
269 static bool containerHasBasicMacros(
const css::uno::Reference< css::script::XLibraryContainer >& xContainer );
294 checkMacrosOnLoading(
295 const css::uno::Reference< css::task::XInteractionHandler >& _rxInteraction,
296 bool bHasValidContentSignature =
false
300 std::shared_ptr< DocumentMacroMode_Data >
m_xData;
encapsulates handling the macro mode of a document
std::shared_ptr< DocumentMacroMode_Data > m_xData
provides access to several settings of a document, which are needed by ->DocumentMacroMode to properl...
virtual OUString getDocumentLocation() const =0
returns the origin of the document
virtual bool documentStorageHasMacros() const =0
checks whether the document's storage contains sub storages with macros or scripts
virtual void setCurrentMacroExecMode(sal_uInt16)=0
sets the MacroExecutionMode of the document, as calculated by the DocumentMacroMode class.
virtual bool macroCallsSeenWhileLoading() const =0
checks whether the document's contained calls to macros or scripts after loading
virtual sal_Int16 getCurrentMacroExecMode() const =0
retrieves the current MacroExecutionMode.
virtual css::uno::Reference< css::document::XEmbeddedScripts > getEmbeddedDocumentScripts() const =0
provides access to the XEmbeddedScripts interface of the document
virtual SignatureState getScriptingSignatureState()=0
returns the state of the signatures for the scripts embedded in the document
virtual bool hasTrustedScriptingSignature(bool bAllowUIToAddAuthor)=0
allows to detect whether there is a trusted scripting signature
Implementation of the interface com.sun.star.rdf.XDocumentMetadataAccess.