summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/confuno.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-07 11:23:59 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-07 11:23:59 +0000
commitac78c170751bf72eab6666fbf060b6e06c6fa0f7 (patch)
tree387d2d8ea9a7fa268f2ca36e89182e6d385a26cb /sc/source/ui/unoobj/confuno.cxx
parent18abc83d8198a8dcf314e80e9c3070bd458d97cb (diff)
INTEGRATION: CWS calcshare_DEV300 (1.28.14); FILE MERGED
2008/02/04 10:30:48 tbe 1.28.14.2: RESYNC: (1.28-1.29); FILE MERGED 2007/12/04 13:37:38 tbe 1.28.14.1: #i8811# Allow multiple users to edit the same spreadsheet through workbook sharing
Diffstat (limited to 'sc/source/ui/unoobj/confuno.cxx')
-rw-r--r--sc/source/ui/unoobj/confuno.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx
index 66557608298f..fc7980693265 100644
--- a/sc/source/ui/unoobj/confuno.cxx
+++ b/sc/source/ui/unoobj/confuno.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: confuno.cxx,v $
*
- * $Revision: 1.29 $
+ * $Revision: 1.30 $
*
- * last change: $Author: rt $ $Date: 2008-01-29 16:20:06 $
+ * last change: $Author: kz $ $Date: 2008-03-07 12:23:59 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -104,6 +104,7 @@ const SfxItemPropertyMap* lcl_GetConfigPropertyMap()
// --> PB 2004-08-25 #i33095# Security Options
{MAP_CHAR_LEN(SC_UNO_LOADREADONLY), 0, &getBooleanCppuType(), 0, 0},
// <--
+ {MAP_CHAR_LEN(SC_UNO_SHAREDOC), 0, &getBooleanCppuType(), 0, 0},
{0,0,0,0,0,0}
};
return aConfigPropertyMap_Impl;
@@ -282,6 +283,14 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue(
if ( aValue >>= bTmp )
pDocShell->SetLoadReadonly( bTmp );
}
+ else if ( aPropertyName.compareToAscii( SC_UNO_SHAREDOC ) == 0 )
+ {
+ sal_Bool bDocShared = sal_False;
+ if ( aValue >>= bDocShared )
+ {
+ pDocShell->SetDocShared( bDocShared );
+ }
+ }
else
{
ScGridOptions aGridOpt(aViewOpt.GetGridOptions());
@@ -411,6 +420,10 @@ uno::Any SAL_CALL ScDocumentConfiguration::getPropertyValue( const rtl::OUString
else if ( aPropertyName.compareToAscii( SC_UNO_LOADREADONLY ) == 0 )
aRet <<= pDocShell->IsLoadReadonly();
// <--
+ else if ( aPropertyName.compareToAscii( SC_UNO_SHAREDOC ) == 0 )
+ {
+ ScUnoHelpFunctions::SetBoolInAny( aRet, pDocShell->IsDocShared() );
+ }
else
{
const ScGridOptions& aGridOpt = aViewOpt.GetGridOptions();