diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-30 09:11:22 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-30 09:11:22 +0000 |
commit | 275300624b4a84021712923618f894b8d3a856b7 (patch) | |
tree | d7eebbfb99c3207352c90932a655f2837c4df0bb /framework/source/accelerators | |
parent | f381dae7eda9dd2a86c5840218ca524d31223bc5 (diff) |
INTEGRATION: CWS fwk21 (1.10.20); FILE MERGED
2005/08/10 10:57:48 as 1.10.20.1: #i51881# user layer is the only valid layer for documents; allow fallback to READONLY mode in case storage could not be opened READWRITE
Diffstat (limited to 'framework/source/accelerators')
-rw-r--r-- | framework/source/accelerators/presethandler.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx index e5cf10430f26..c30ca7882b24 100644 --- a/framework/source/accelerators/presethandler.cxx +++ b/framework/source/accelerators/presethandler.cxx @@ -4,9 +4,9 @@ * * $RCSfile: presethandler.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2005-09-09 01:05:03 $ + * last change: $Author: hr $ $Date: 2005-09-30 10:11:22 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -441,14 +441,18 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType case E_DOCUMENT : { + // A document does not have a share layer in real. + // It has one layer only, and this one should be opened READ_WRITE. + // So we open the user layer here only and set the share layer equals to it .-) + sRelPathBuf.append(sResource); - sRelPathShare = sRelPathBuf.makeStringAndClear(); - sRelPathUser = sRelPathShare; + sRelPathUser = sRelPathBuf.makeStringAndClear(); + sRelPathShare = sRelPathUser; try { - xUser = m_lDocumentStorages.openPath(sRelPathUser, eUserMode); - xShare = xUser; // !!! + xUser = m_lDocumentStorages.openPath(sRelPathUser , eUserMode ); + xShare = xUser; } catch(const css::uno::RuntimeException& exRun) { throw exRun; } |