Tag: cws_src680_odbmacros2 User: fs Date: 2008-02-14 08:37:43+0000 Modified: dba/dbaccess/source/ui/misc/singledoccontroller.cxx
Log: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate File Changes: Directory: /dba/dbaccess/source/ui/misc/ ======================================== File [changed]: singledoccontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/singledoccontroller.cxx?r1=1.22.98.5&r2=1.22.98.6 Delta lines: +9 -5 ------------------- --- singledoccontroller.cxx 2008-02-11 13:49:01+0000 1.22.98.5 +++ singledoccontroller.cxx 2008-02-14 08:37:41+0000 1.22.98.6 @@ -4,9 +4,9 @@ * * $RCSfile: singledoccontroller.cxx,v $ * - * $Revision: 1.22.98.5 $ + * $Revision: 1.22.98.6 $ * - * last change: $Author: fs $ $Date: 2008/02/11 13:49:01 $ + * last change: $Author: fs $ $Date: 2008/02/14 08:37:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -165,9 +165,13 @@ bool documentHasScriptSupport() const { - OSL_PRECOND( !!m_aDocScriptSupport, - "OSingleDocumentControllerImpl::documentHasScriptSupport: not completely initialized, yet - don't know!?" ); - return !!m_aDocScriptSupport && *m_aDocScriptSupport; + // TODO: revert to the disabled code. The current version is just to be able + // to integrate an intermediate version of the CWS, which should behave as + // if no macros in DB docs are allowed + return false; +// OSL_PRECOND( !!m_aDocScriptSupport, +// "OSingleDocumentControllerImpl::documentHasScriptSupport: not completely initialized, yet - don't know!?" ); +// return !!m_aDocScriptSupport && *m_aDocScriptSupport; } void setDocumentScriptSupport( const bool _bSupport ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
