Tag: cws_src680_qiq User: fs Date: 06/05/10 03:57:01 Modified: /dba/dbaccess/source/ui/inc/ TableWindow.hxx
Log: #i51143# allow to hold a query, not only a table File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: TableWindow.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/TableWindow.hxx?r1=1.13&r2=1.13.122.1 Delta lines: +25 -8 -------------------- --- TableWindow.hxx 8 Sep 2005 15:38:04 -0000 1.13 +++ TableWindow.hxx 10 May 2006 10:56:58 -0000 1.13.122.1 @@ -4,9 +4,9 @@ * * $RCSfile: TableWindow.hxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.13.122.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 15:38:04 $ + * last change: $Author: fs $ $Date: 2006/05/10 10:56:58 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -89,8 +89,8 @@ private: // the columns of the table - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xTable; - ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xColumns; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xTableOrQuery; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xColumns; OTableWindowData* m_pData; ::rtl::OUString m_strInitialWinName; @@ -98,6 +98,7 @@ sal_Int32 m_nMoveIncrement; // how many pixel we should move UINT16 m_nSizingFlags; BOOL m_bActive; + bool m_bIsQuery; void Draw3DBorder( const Rectangle& rRect ); @@ -143,7 +144,12 @@ ::com::sun::star::beans::XPropertySet>& _xColumn, bool _bPrimaryKey); - OTableWindow( Window* pParent, OTableWindowData* pTabWinData); + /** determines whether the classes Init method should accept a query name, or only table names + */ + virtual bool allowQueries() const = 0; + + OTableWindow( Window* pParent, OTableWindowData* pTabWinData ); + public: TYPEINFO(); @@ -179,8 +185,19 @@ The composed name or the window name. */ virtual ::rtl::OUString GetName() const = 0; - ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> GetOriginalColumns() const { ::osl::MutexGuard aGuard( m_aMutex ); return m_xColumns; } - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> GetTable() const { ::osl::MutexGuard aGuard( m_aMutex ); return m_xTable; } + + inline ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > + GetOriginalColumns() const + { ::osl::MutexGuard aGuard( m_aMutex ); return m_xColumns; } + + inline ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > + GetTableOrQuery() const + { ::osl::MutexGuard aGuard( m_aMutex ); return m_xTableOrQuery; } + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > + GetTable() const; + + inline bool isQuery() const { return m_bIsQuery; } UINT16 GetSizingFlags() const { return m_nSizingFlags; } /** set the sizing flag to the direction --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
