Tag: cws_src680_qiq
User: fs      
Date: 06/05/23 23:47:19

Modified:
 /dba/dbaccess/source/ui/inc/
  defaultobjectnamecheck.hxx

Log:
 parts of this now implemented using XObjectNames from the connection

File Changes:

Directory: /dba/dbaccess/source/ui/inc/
=======================================

File [changed]: defaultobjectnamecheck.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx?r1=1.1.2.2&r2=1.1.2.3
Delta lines:  +3 -74
--------------------
--- defaultobjectnamecheck.hxx  18 May 2006 09:17:04 -0000      1.1.2.2
+++ defaultobjectnamecheck.hxx  24 May 2006 06:47:16 -0000      1.1.2.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: defaultobjectnamecheck.hxx,v $
  *
- *  $Revision: 1.1.2.2 $
+ *  $Revision: 1.1.2.3 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/18 09:17:04 $
+ *  last change: $Author: fs $ $Date: 2006/05/24 06:47:16 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -61,41 +61,6 @@
 //........................................................................
 
     //====================================================================
-    //= PlainNameCheck
-    //====================================================================
-    struct PlainNameCheck_Impl;
-    /** class implementing the IObjectNameCheck interface, and checking given 
object names
-        against a simple name container
-    */
-    class PlainNameCheck :public ::boost::noncopyable
-                         ,public IObjectNameCheck
-    {
-    private:
-        ::std::auto_ptr< PlainNameCheck_Impl >  m_pImpl;
-
-    public:
-        /** constructs a PlainNameCheck instance
-        @param  _rxContainer
-            the name container against which the names should be checked. Must 
not be <NULL/>.
-        @throws ::com::sun::star::lang::IllegalArgumentException
-            if the given container is <NULL/>
-        */
-        PlainNameCheck(
-            const ::com::sun::star::uno::Reference< 
::com::sun::star::container::XNameAccess >& _rxContainer );
-
-        ~PlainNameCheck();
-
-        // IObjectNameCheck overridables
-        virtual bool    isNameValid(
-            const ::rtl::OUString& _rObjectName,
-            ::dbtools::SQLExceptionInfo& _out_rErrorToDisplay
-        ) const;
-
-    private:
-        PlainNameCheck();                                   // never 
implemented
-    };
-
-    //====================================================================
     //= HierarchicalNameCheck
     //====================================================================
     struct HierarchicalNameCheck_Impl;
@@ -136,43 +101,6 @@
     };
 
     //====================================================================
-    //= TablesAndQueriesNameCheck
-    //====================================================================
-    struct TablesAndQueriesNameCheck_Impl;
-    /** class implementing the IObjectNameCheck interface, and checking given 
object names
-        against the tables and queries present at a sdb-level connection
-    */
-    class TablesAndQueriesNameCheck :public ::boost::noncopyable
-                                    ,public IObjectNameCheck
-    {
-    private:
-        std::auto_ptr< TablesAndQueriesNameCheck_Impl > m_pImpl;
-
-    public:
-        /** constructs a TablesAndQueriesNameCheck instance
-        @param _rxSdbLevelConnection
-            a connection supporting the css.sdb.Connection service, in other 
word, it
-            does expose the XTablesSupplier and XQueriesSupplier interfaces.
-        @throws ::com::sun::star::lang::IllegalArgumentException
-            if the given connection is <NULL/>
-        */
-        TablesAndQueriesNameCheck(
-            const ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection >& _rxSdbLevelConnection
-        );
-
-        ~TablesAndQueriesNameCheck();
-
-        // IObjectNameCheck overridables
-        virtual bool    isNameValid(
-            const ::rtl::OUString& _rObjectName,
-            ::dbtools::SQLExceptionInfo& _out_rErrorToDisplay
-        ) const;
-
-    private:
-        TablesAndQueriesNameCheck();                                           
     // never implemented
-    };
-
-    //====================================================================
     //= DynamicTableOrQueryNameCheck
     //====================================================================
     struct DynamicTableOrQueryNameCheck_Impl;
@@ -187,6 +115,7 @@
         or vice versa.
 
         @seealso dbtools::DatabaseMetaData::supportsSubqueriesInFrom
+        @seealso com::sun::star::sdb::tools::XObjectNames::checkNameIsUsed
     */
     class DynamicTableOrQueryNameCheck  :public ::boost::noncopyable
                                         ,public IObjectNameCheck




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

Reply via email to