diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-10-30 11:06:18 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-10-31 12:03:30 +0100 |
commit | 1a9261124eed5baa04b069a1cb1b51f24423ec9b (patch) | |
tree | 1cb64575ef26bb2790e73b51371eff869f44cc13 /ucbhelper/inc | |
parent | 1eb7a921641107cdd802e8bbc6117d6f303f73f5 (diff) |
CMIS: added cancelCheckOut and checkIn implementations and menu items
Although the implementation is here, the dialogs to show when clicking
on the menu items aren't there yet.
Change-Id: I14886ec8ea8b97a35ca6c8474bc33e30da1a86d3
Diffstat (limited to 'ucbhelper/inc')
-rw-r--r-- | ucbhelper/inc/ucbhelper/content.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ucbhelper/inc/ucbhelper/content.hxx b/ucbhelper/inc/ucbhelper/content.hxx index 259c77292492..16b186c37427 100644 --- a/ucbhelper/inc/ucbhelper/content.hxx +++ b/ucbhelper/inc/ucbhelper/content.hxx @@ -81,7 +81,8 @@ enum InsertOperation { InsertOperation_COPY, // copy source data InsertOperation_MOVE, // move source data - InsertOperation_LINK // create a link to source + InsertOperation_LINK, // create a link to source + InsertOperation_CHECKIN // check-in source data }; //========================================================================= @@ -664,13 +665,21 @@ public: * will overwrite the clashing content and all its data, * NameClash::RENAME will generate and supply a non-clashing title. * @see com/sun/star/ucb/NameClash.idl + * @param rMimeType contains the MIME type of the document to write. + * @param bMajorVersion tells to create a new major version for checkin operations + * @param rCommentVersion contains the comment to use for checkin operations + * @param rResultURL is a hacky way to get the update URL after the operation in + * case there was a change (introduced for the checkin operation) */ sal_Bool transferContent( const Content& rSourceContent, InsertOperation eOperation, const ::rtl::OUString & rTitle, const sal_Int32 nNameClashAction, - const ::rtl::OUString & rMimeType = ::rtl::OUString( ) ) + const ::rtl::OUString & rMimeType = ::rtl::OUString( ), + bool bMajorVersion = false, + const ::rtl::OUString & rCommentVersion = ::rtl::OUString( ), + ::rtl::OUString* pResultURL = NULL ) throw( ::com::sun::star::ucb::CommandAbortedException, ::com::sun::star::uno::RuntimeException, ::com::sun::star::uno::Exception ); |