summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-10-23 14:30:18 +0000
committerAndreas Bregas <ab@openoffice.org>2001-10-23 14:30:18 +0000
commiteaf7c71bb6e504cf41e51988860d2398ba9dcfd1 (patch)
tree9b6763e285352ef932f4ac94689fef673e2af769 /xmlscript
parentf6d5274f6dad951cb973ab360d0b3ad2491ff34f (diff)
#92172# Library password flag
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmllib_imexp/xmllib_export.cxx7
-rw-r--r--xmlscript/source/xmllib_imexp/xmllib_import.cxx5
2 files changed, 8 insertions, 4 deletions
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
index f040cfddfb76..1586d83683e0 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmllib_export.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: ab $ $Date: 2001-07-02 12:02:12 $
+ * last change: $Author: ab $ $Date: 2001-10-23 15:25:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -130,6 +130,9 @@ SAL_CALL exportLibraryContainer(
pLibElement->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_LIBRARY_PREFIX ":readonly") ),
rLib.bReadOnly ? aTrueStr : aFalseStr );
+ pLibElement->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_LIBRARY_PREFIX ":passwordprotected") ),
+ rLib.bPasswordProtected ? aTrueStr : aFalseStr );
+
sal_Int32 nElementCount = rLib.aElementNames.getLength();
if( nElementCount )
{
diff --git a/xmlscript/source/xmllib_imexp/xmllib_import.cxx b/xmlscript/source/xmllib_imexp/xmllib_import.cxx
index 04bde7c95548..17b94b1c44ee 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_import.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_import.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmllib_import.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ab $ $Date: 2001-07-02 12:02:12 $
+ * last change: $Author: ab $ $Date: 2001-10-23 15:30:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -250,6 +250,7 @@ Reference< xml::XImportContext > LibrariesElement::createChildContext(
XMLNS_XLINK_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("href") ) );
getBoolAttr( &aDesc.bLink, OUString( RTL_CONSTASCII_USTRINGPARAM("link") ), xAttributes );
getBoolAttr( &aDesc.bReadOnly, OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ), xAttributes );
+ getBoolAttr( &aDesc.bPasswordProtected, OUString( RTL_CONSTASCII_USTRINGPARAM("passwordprotected") ), xAttributes );
mLibDescriptors.push_back( aDesc );
return new LibraryElement( rLocalName, xAttributes, this, _pImport );