summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh5.cxx
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2010-01-26 13:49:49 +0100
committerDaniel Rentz <dr@openoffice.org>2010-01-26 13:49:49 +0100
commit84e57ce731b48c69b8f826007d4fffd67972560f (patch)
treebb20efbc4838e9c250d97a9cf3169ccf3014a90a /sc/source/ui/docshell/docsh5.cxx
parent60fdd54890f04949f1b82d4f7a4903e65f165a7c (diff)
#i108547# allow modifications in readonly document when loading msooxml
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r--sc/source/ui/docshell/docsh5.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index b4b5f4721900..fa52bd5871e3 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -100,8 +100,9 @@ void ScDocShell::ErrorMessage( USHORT nGlobStrId )
BOOL ScDocShell::IsEditable() const
{
// import into read-only document is possible - must be extended if other filters use api
+ // #i108547# MSOOXML filter uses "IsChangeReadOnlyEnabled" property
- return !IsReadOnly() || aDocument.IsImportingXML();
+ return !IsReadOnly() || aDocument.IsImportingXML() || aDocument.IsChangeReadOnlyEnabled();
}
void ScDocShell::DBAreaDeleted( SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW /* nY2 */ )