LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - QueryPropertiesDialog.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 2 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             : 
      10             : #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
      11             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
      12             : 
      13             : #include <vcl/dialog.hxx>
      14             : #include <vcl/button.hxx>
      15             : #include <rtl/ustring.hxx>
      16             : #include "LimitBox.hxx"
      17             : 
      18             : namespace dbaui
      19             : {
      20             : 
      21             : /**
      22             :  * Dialog to set such properties of a query as distinct values and limit
      23             :  * It can be opened form Edit menu in Query Design View
      24             :  */
      25             : class QueryPropertiesDialog : public ModalDialog
      26             : {
      27             : 
      28             : public:
      29             : 
      30             :     QueryPropertiesDialog(
      31             :         vcl::Window* pParent, const bool bDistinct, const sal_Int64 nLimit );
      32             :     virtual ~QueryPropertiesDialog();
      33             :     virtual void dispose() SAL_OVERRIDE;
      34             :     bool getDistinct() const;
      35             :     sal_Int64 getLimit() const;
      36             : 
      37             : private:
      38             : 
      39             :     VclPtr<RadioButton> m_pRB_Distinct;
      40             :     VclPtr<RadioButton> m_pRB_NonDistinct;
      41             : 
      42             :     VclPtr<LimitBox> m_pLB_Limit;
      43             : 
      44             : };
      45             : 
      46             : 
      47           0 : inline bool QueryPropertiesDialog::getDistinct() const
      48             : {
      49           0 :     return m_pRB_Distinct->IsChecked();
      50             : }
      51             : 
      52           0 : inline sal_Int64 QueryPropertiesDialog::getLimit() const
      53             : {
      54           0 :     return m_pLB_Limit->GetValue();
      55             : }
      56             : 
      57             : 
      58             : } ///dbaui namespace
      59             : 
      60             : #endif /// INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYPROPERTIESDIALOG_HXX
      61             : 
      62             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11