User: vg      
Date: 2008-01-29 08:51:07+0000
Modified:
   dba/dbaccess/source/core/dataaccess/ModelImpl.hxx

Log:
 INTEGRATION: CWS dba24e_SRC680 (1.16.4); FILE MERGED
 2008/01/07 21:04:03 fs 1.16.4.1: #152837# 
+m_bHasAnyObjectwithMacros/hasAnyObjectWithMacros()

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: ModelImpl.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/ModelImpl.hxx?r1=1.16&r2=1.17
Delta lines:  +13 -2
--------------------
--- ModelImpl.hxx       2007-11-21 15:36:22+0000        1.16
+++ ModelImpl.hxx       2008-01-29 08:51:05+0000        1.17
@@ -171,6 +171,10 @@
 
     /// the URL the document was loaded from
        ::rtl::OUString                                                         
                m_sFileURL;
+
+    /// do we have any object (forms/reports) which contains macros?
+    bool                                                
m_bHasAnyObjectWithMacros;
+
     /** the URL which the document should report as it's URL
 
         This might differ from ->m_sFileURL in case the document was loaded
@@ -353,6 +357,13 @@
     static ::rtl::OUString
                     getObjectContainerStorageName( const ObjectType _eType );
 
+    /** determines whether the database document has any object (form/report) 
which contains macros
+
+        In such a case, *all* objects in the document keep the macro 
capability, and the database document
+        itself does *not* allow embedding macros.
+    */
+    bool    hasAnyObjectWithMacros() const { return m_bHasAnyObjectWithMacros; 
}
+
     /** checks our document's macro execution mode, using the interaction 
handler as supplied with our
         load arguments
     */
@@ -374,7 +385,7 @@
     */
     void            resetMacroExecutionMode();
 
-private:
+public:
     // IMacroDocumentAccess overridables
     virtual sal_Int16 getImposedMacroExecMode() const;
     virtual ::rtl::OUString getDocumentLocation() const;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to