summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-02-14 10:27:21 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-02-14 13:12:26 +0100
commitd242d9e1efc7ecd4f9980190bbc53af9630baac7 (patch)
treef2966c3af16b197ed93ad2d7dbb3f919facc7d31 /sfx2/source/view
parent519e576a3954d91b79a7fbb3fec0c2f1c7ed4c4a (diff)
CMIS: made it work with Lotus Live
Making libcmis and LibreOffice work with Lotus Live service needed a few hacks to either better implement CMIS or workaround some bad implementations. As a general improvement, the CheckOut InfoBar isn't shown if the document can't be checked out.
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index f1b2b01bf73b..c97d014aaa2d 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -1439,7 +1439,7 @@ void SfxBaseController::ShowInfoBars( )
{
// CMIS verifications
REFERENCE< document::XCmisDocument > xCmisDoc( m_pData->m_pViewShell->GetObjectShell()->GetModel(), uno::UNO_QUERY );
- if ( xCmisDoc.is( ) )
+ if ( xCmisDoc.is( ) && xCmisDoc->canCheckOut( ) )
{
beans::PropertyValues aCmisProperties = xCmisDoc->getCmisPropertiesValues( );