Re: guidance to write a unit test for SetMacroSecurityLevel()

2014-11-28 Thread Michael Meeks
On Fri, 2014-11-28 at 09:04 -0500, nicholas ferguson wrote: > People who work with VB code in spreadsheets understand that enabling macros > is essential. > open up an excel with macros enabled. > open up an excel s.h ...macros were not enabled. Enable them, without > closing the

RE: guidance to write a unit test for SetMacroSecurityLevel()

2014-11-28 Thread nicholas ferguson
> [nicholas ferguson] > in sc/qa/.../qahelper.cxx > line 544 >SfxItemSet* pSet = pSrcMed->GetItemSet(); >pSet->Put(SfxUInt16Item(SID_MACROEXECMODE,::com::sun::star::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN)); > >and add include >#include > This does work. But someone needs to write a CPP

Re: guidance to write a unit test for SetMacroSecurityLevel()

2014-11-27 Thread Stephan Bergmann
On 11/27/2014 01:54 AM, nicholas ferguson wrote: I can do Line 544 SfxItemSet* pSet = pSrcMed->GetItemSet(); pSet->Put(SfxUInt16Item(SID_MACROEXECMODE,::com::sun::star::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN)); and add include #include [nicholas ferguson] This does work. But someo

RE: guidance to write a unit test for SetMacroSecurityLevel()

2014-11-26 Thread nicholas ferguson
>> I can do >> Line 544 >> SfxItemSet* pSet = pSrcMed->GetItemSet(); >> pSet->Put(SfxUInt16Item(SID_MACROEXECMODE,::com::sun::star::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN)); >> and add include >> #include [nicholas ferguson] This does work. But someone needs to write a CPP Unit test

RE: guidance to write a unit test for SetMacroSecurityLevel()

2014-11-26 Thread nicholas ferguson
] > the MacroSecurityLevel is just a configuration entry, see officecfg/registry/schema/org/openoffice/Office/Common.xcs. ] > there is already one unit test that sets the MacroSecurityLevel: ] > dbaccess/qa/complex/dbaccess/DatabaseDocument.java (from JunitTest_dbaccess_complex) [nicholas ferg

Re: guidance to write a unit test for SetMacroSecurityLevel()

2014-11-26 Thread Michael Stahl
On 18.11.2014 23:21, ad...@wingarch.xohost.com wrote: > > > Hi, > Can anyone send me how to access and change a level of the > MacroSecurityLevel? > In > > qa\xmlsecurity\qa\certext\SanCertExt.cxx there is an example of security > for certificates? > > How do I write someting s

guidance to write a unit test for SetMacroSecurityLevel()

2014-11-21 Thread admin
Hi, Can anyone send me how to access and change a level of the MacroSecurityLevel? In   qa\xmlsecurity\qa\certext\SanCertExt.cxx  there is an example of security for certificates?   How do I write someting similar for chaning a Macro Security Level?     _