namespace comphelper
{ // Returns a new context layer that assigns the given boolean value to the name inline css::uno::Reference<css::uno::XCurrentContext> NewFlagContext(const OUString& sName, bool bValue = true)
{ class SetFlagContext : public cppu::WeakImplHelper<css::uno::XCurrentContext>
{ public:
SetFlagContext(const OUString& sName, bool bValue)
: msName(sName)
, mbValue(bValue)
{
}
// A specialization for preventing "Java must be enabled" interaction inline css::uno::Reference<css::uno::XCurrentContext> NoEnableJavaInteractionContext()
{ return NewFlagContext(u"DontEnableJava"_ustr);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.