13#include <com/sun/star/document/XActionLockable.hpp>
15#include <com/sun/star/uno/Reference.hxx>
17#include <cppunit/TestAssert.h>
25 uno::Reference<document::XActionLockable> xAL(
init(), uno::UNO_QUERY_THROW);
28 CPPUNIT_ASSERT(xAL->isActionLocked());
30 xAL->removeActionLock();
31 CPPUNIT_ASSERT(!xAL->isActionLocked());
36 uno::Reference<document::XActionLockable> xAL(
init(), uno::UNO_QUERY_THROW);
38 CPPUNIT_ASSERT_NO_THROW(xAL->setActionLocks(0));
40 const sal_Int16 nLocks = xAL->resetActionLocks();
41 CPPUNIT_ASSERT_EQUAL(sal_Int16(0), nLocks);
42 CPPUNIT_ASSERT(!xAL->isActionLocked());
void testAddRemoveActionLock()
void testSetResetActionLock()
virtual css::uno::Reference< css::uno::XInterface > init()=0