From 95aae0e8bab268ab9c03d1e5ba6393de2f7dce14 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Wed, 17 Mar 2004 12:42:51 +0000 Subject: INTEGRATION: CWS jl5vba (1.7.14); FILE MERGED 2004/01/21 14:36:26 ab 1.7.14.1: #111934# Merge to src680, #110009# Added library preload flag --- xmlscript/source/xmllib_imexp/xmllib_import.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xmllib_imexp/xmllib_import.cxx b/xmlscript/source/xmllib_imexp/xmllib_import.cxx index d8335c421991..08d99cf819dc 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.7 $ + * $Revision: 1.8 $ * - * last change: $Author: obo $ $Date: 2003-09-04 09:20:09 $ + * last change: $Author: obo $ $Date: 2004-03-17 13:42:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -223,7 +223,7 @@ Reference< xml::input::XElement > LibraryImport::startRootElement( else if (mpLibDesc && rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("library") )) { LibDescriptor& aDesc = *mpLibDesc; - aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = sal_False; + aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = aDesc.bPreload = sal_False; aDesc.aName = xAttributes->getValueByUidName( XMLNS_LIBRARY_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("name") ) ); @@ -235,6 +235,10 @@ Reference< xml::input::XElement > LibraryImport::startRootElement( &aDesc.bPasswordProtected, OUString( RTL_CONSTASCII_USTRINGPARAM("passwordprotected") ), xAttributes, XMLNS_LIBRARY_UID ); + getBoolAttr( + &aDesc.bPreload, + OUString( RTL_CONSTASCII_USTRINGPARAM("preload") ), + xAttributes, XMLNS_LIBRARY_UID ); return new LibraryElement( rLocalName, xAttributes, 0, this ); } @@ -274,7 +278,7 @@ Reference< xml::input::XElement > LibrariesElement::startChildElement( else if (rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("library") )) { LibDescriptor aDesc; - aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = sal_False; + aDesc.bLink = aDesc.bReadOnly = aDesc.bPasswordProtected = aDesc.bPreload = sal_False; aDesc.aName = xAttributes->getValueByUidName( _pImport->XMLNS_LIBRARY_UID, -- cgit v1.2.3