diff options
author | Michael Brauer <mib@openoffice.org> | 2001-05-22 11:40:41 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-05-22 11:40:41 +0000 |
commit | 2b05c4fae18cfd749b1a47e813ac5a71fec9e1a5 (patch) | |
tree | 63dda348fcc85006bcc1b4902f566937dba23341 /sw | |
parent | ddeae22b51fa356310154b1dafb92fca82526e35 (diff) |
#87291#: reenabled ChangesProtectionKey
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 9adbc9830bdc..5cae4d428e3c 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unotxdoc.cxx,v $ * - * $Revision: 1.39 $ + * $Revision: 1.40 $ * - * last change: $Author: pl $ $Date: 2001-05-14 09:31:52 $ + * last change: $Author: mib $ $Date: 2001-05-22 12:40:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1907,6 +1907,22 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, pDocShell->GetDoc()->SetRedlineMode( eMode ); } break; + case WID_DOC_CHANGES_PASSWORD: + { + Sequence <sal_Int8> aNew; + if(aValue >>= aNew) + { + SwDoc* pDoc = pDocShell->GetDoc(); + pDoc->SetRedlinePasswd(aNew); + if(aNew.getLength()) + { + sal_uInt16 eMode = pDoc->GetRedlineMode(); + eMode = eMode|REDLINE_ON; + pDoc->SetRedlineMode( eMode ); + } + } + } + break; case WID_DOC_AUTO_MARK_URL : { OUString sURL; @@ -2011,6 +2027,12 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName) aAny.setValue(&bSet, ::getBooleanCppuType()); } break; + case WID_DOC_CHANGES_PASSWORD: + { + SwDoc* pDoc = pDocShell->GetDoc(); + aAny <<= pDoc->GetRedlinePasswd(); + } + break; case WID_DOC_AUTO_MARK_URL : aAny <<= OUString(pDocShell->GetDoc()->GetTOIAutoMarkURL()); break; |