diff options
author | Oliver Specht <os@openoffice.org> | 2001-05-02 11:38:52 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-05-02 11:38:52 +0000 |
commit | 2de5d801c25fea1cb831738b9a783e21fa84d874 (patch) | |
tree | 070833cd3dd1e642ed42c88db93b0ebd1637b430 /sw | |
parent | 92050dfde2d4923cf2817f740a3a459bef7fff8e (diff) |
redline password added
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 138a2eb3230c..312804f945f5 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.35 $ + * $Revision: 1.36 $ * - * last change: $Author: mtg $ $Date: 2001-04-23 11:01:35 $ + * last change: $Author: os $ $Date: 2001-05-02 12:38:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1955,6 +1955,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; @@ -2229,6 +2245,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; |