LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/querydesign - QTableWindow.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-12-27 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef DBAUI_QUERY_TABLEWINDOW_HXX
      20             : #define DBAUI_QUERY_TABLEWINDOW_HXX
      21             : 
      22             : #include "TableWindow.hxx"
      23             : #include "QTableWindowData.hxx"
      24             : #include "TableFieldDescription.hxx"
      25             : #include <tools/rtti.hxx>
      26             : 
      27             : namespace dbaui
      28             : {
      29             :     //==================================================================
      30             :     class OQueryTableWindow : public OTableWindow
      31             :     {
      32             :         sal_Int32           m_nAliasNum;
      33             :         ::rtl::OUString     m_strInitialAlias;
      34             :     public:
      35             :         OQueryTableWindow( Window* pParent, const TTableWindowData::value_type& pTabWinData, sal_Unicode* pszInitialAlias = NULL );
      36             :         virtual ~OQueryTableWindow();
      37             : 
      38           0 :         ::rtl::OUString GetAliasName() const
      39             :         {
      40           0 :             return static_cast<OQueryTableWindowData*>(GetData().get())->GetAliasName();
      41             :         }
      42           0 :         void            SetAliasName(const ::rtl::OUString& strNewAlias)
      43             :         {
      44           0 :             static_cast<OQueryTableWindowData*>(GetData().get())->SetAliasName(strNewAlias);
      45           0 :         }
      46             : 
      47             :         // late Constructor, the base class CREATES Listbox on first call
      48             :         virtual sal_Bool    Init();
      49             : 
      50             :         inline sal_Int32        GetAliasNum() const { return m_nAliasNum; }
      51             : 
      52             :         sal_Bool            ExistsField(const ::rtl::OUString& strFieldName, OTableFieldDescRef& rInfo);
      53             :         sal_Bool            ExistsAVisitedConn() const;
      54             : 
      55           0 :         virtual ::rtl::OUString     GetName() const { return GetWinName(); }
      56             : 
      57             :     protected:
      58             :         virtual void    KeyInput( const KeyEvent& rEvt );
      59             : 
      60             :         virtual void    OnEntryDoubleClicked(SvTreeListEntry* pEntry);
      61             :             // is called from DoubleClickHdl of the ListBox
      62             :         /** delete the user data with the equal type as created within createUserData
      63             :             @param  _pUserData
      64             :                 The user data store in the listbox entries. Created with a call to createUserData.
      65             :                 _pUserData may be <NULL/>.
      66             :         */
      67             :         virtual void deleteUserData(void*& _pUserData);
      68             : 
      69             :         /** creates user information that will be append at the ListBoxentry
      70             :             @param  _xColumn
      71             :                 The corresponding column, can be <NULL/>.
      72             :             @param  _bPrimaryKey
      73             :                 <TRUE/> when the column belongs to the primary key
      74             :             @return
      75             :                 the user data which will be append at the listbox entry, may be <NULL/>
      76             :         */
      77             :         virtual void* createUserData(const ::com::sun::star::uno::Reference<
      78             :                                     ::com::sun::star::beans::XPropertySet>& _xColumn,
      79             :                                     bool _bPrimaryKey);
      80             :     };
      81             : }
      82             : #endif // DBAUI_QUERY_TABLEWINDOW_HXX
      83             : 
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10