LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - paramdialog.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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             : 
      20             : #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_PARAMDIALOG_HXX
      21             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_PARAMDIALOG_HXX
      22             : 
      23             : #include "commontypes.hxx"
      24             : 
      25             : #include <vcl/dialog.hxx>
      26             : #include <vcl/button.hxx>
      27             : #include <vcl/fixed.hxx>
      28             : #include <vcl/edit.hxx>
      29             : #include <vcl/group.hxx>
      30             : #include <vcl/lstbox.hxx>
      31             : 
      32             : #include <com/sun/star/util/XNumberFormatter.hpp>
      33             : #include <com/sun/star/container/XIndexAccess.hpp>
      34             : #include <com/sun/star/sdbc/XConnection.hpp>
      35             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      36             : #include <com/sun/star/beans/PropertyValue.hpp>
      37             : #include <connectivity/predicateinput.hxx>
      38             : #include "svx/ParseContext.hxx"
      39             : 
      40             : namespace connectivity
      41             : {
      42             :     class OSQLParseNode;
      43             : }
      44             : 
      45             : namespace dbaui
      46             : {
      47             : 
      48             :     // OParameterDialog
      49             :     class OParameterDialog
      50             :             :public ModalDialog
      51             :             ,public ::svxform::OParseContextClient
      52             :     {
      53             :     protected:
      54             :         // the controls
      55             :         VclPtr<ListBox>        m_pAllParams;
      56             :         VclPtr<Edit>           m_pParam;
      57             :         VclPtr<PushButton>     m_pTravelNext;
      58             :         VclPtr<OKButton>       m_pOKBtn;
      59             :         VclPtr<CancelButton>   m_pCancelBtn;
      60             : 
      61             :         sal_Int32       m_nCurrentlySelected;
      62             : 
      63             :         ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >
      64             :                         m_xParams;
      65             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >
      66             :                         m_xConnection;
      67             :         ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >
      68             :                         m_xFormatter;
      69             :         ::dbtools::OPredicateInputController
      70             :                         m_aPredicateInput;
      71             : 
      72             :         ByteVector      m_aVisitedParams;
      73             :         Timer       m_aResetVisitFlag;
      74             :             // we reset the "visited flag" 1 second after and entry has been selected
      75             : 
      76             :         bool    m_bNeedErrorOnCurrent;
      77             : 
      78             :         ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
      79             :                     m_aFinalValues;     /// the final values as entered by the user
      80             : 
      81             :     public:
      82             :         OParameterDialog(vcl::Window* _pParent,
      83             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > & _rParamContainer,
      84             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > & _rxConnection,
      85             :             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext);
      86             :         virtual ~OParameterDialog();
      87             :         virtual void dispose() SAL_OVERRIDE;
      88             : 
      89             :         ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
      90           0 :                     getValues() const { return m_aFinalValues; }
      91             : 
      92             :     protected:
      93             :         void Construct();
      94             : 
      95             :         ::connectivity::OSQLParseNode* implPredicateTree(OUString& _rErrorMessage, const OUString& _rStatement, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & _rxField);
      96             : 
      97             :     private:
      98             :         DECL_LINK_TYPED(OnVisitedTimeout, Timer*, void);
      99             :         DECL_LINK(OnValueModified, Control*);
     100             :         DECL_LINK(OnEntrySelected, ListBox*);
     101             :         DECL_LINK(OnButtonClicked, PushButton*);
     102             :         DECL_LINK(OnValueLoseFocus, Control*);
     103             :     };
     104             : 
     105             : }   // namespace dbaui
     106             : 
     107             : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_PARAMDIALOG_HXX
     108             : 
     109             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11