diff options
Diffstat (limited to 'ucbhelper/source/client/content.cxx')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 8edaa5a1cd6a..3ee7688646a9 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1096,7 +1096,28 @@ bool Content::isDocument() SAL_WNOUNREACHABLE_CODE_POP +void Content::lock() + throw( CommandAbortedException, RuntimeException, Exception ) +{ + Command aCommand; + aCommand.Name = rtl::OUString::createFromAscii( "lock" ); + aCommand.Handle = -1; // n/a + m_xImpl->executeCommand( aCommand ); + +} + +void Content::unlock() + throw( CommandAbortedException, RuntimeException, Exception ) +{ + + Command aCommand; + aCommand.Name = rtl::OUString::createFromAscii( "unlock" ); + aCommand.Handle = -1; // n/a + + m_xImpl->executeCommand( aCommand ); + +} // Content_Impl Implementation. |