24#include <ooxml/resourceids.hxx>
32 , m_nCryptProviderType(NS_ooxml::LN_Value_doc_ST_CryptProv_rsaAES)
34 , m_bRecommended(false)
42 int nIntValue = val.
getInt();
47 case NS_ooxml::LN_AG_Password_cryptProviderType:
50 case NS_ooxml::LN_AG_Password_cryptAlgorithmClass:
51 if (nIntValue == NS_ooxml::LN_Value_doc_ST_AlgClass_hash)
54 case NS_ooxml::LN_AG_Password_cryptAlgorithmType:
55 if (nIntValue == NS_ooxml::LN_Value_doc_ST_AlgType_typeAny)
58 case NS_ooxml::LN_AG_Password_cryptAlgorithmSid:
60 sal_Int32 nCryptAlgorithmSid = sStringValue.toInt32();
61 switch (nCryptAlgorithmSid)
100 case NS_ooxml::LN_AG_Password_cryptSpinCount:
103 case NS_ooxml::LN_AG_Password_hash:
106 case NS_ooxml::LN_AG_Password_salt:
109 case NS_ooxml::LN_CT_WriteProtection_recommended:
An SPRM: Section, Paragraph and Run Modifier.
static TagLogger & getInstance()
void element(const std::string &name)
virtual int getInt() const =0
Returns integer representation of the value.
virtual OUString getString() const =0
Returns string representation of the value.
sal_Int32 m_nCryptProviderType
Provider type.
OUString m_sAlgorithmName
virtual ~WriteProtection() override
virtual void lcl_sprm(Sprm &sprm) override
sal_Int32 m_CryptSpinCount
css::uno::Sequence< css::beans::PropertyValue > toSequence() const
OUString m_sCryptAlgorithmType
virtual void lcl_attribute(Id Name, Value &val) override
OUString m_sCryptAlgorithmClass
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)