LCOV - code coverage report
Current view: top level - include/svtools - PlaceEditDialog.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             : 
      10             : #ifndef INCLUDED_SVTOOLS_PLACEEDITDIALOG_HXX
      11             : #define INCLUDED_SVTOOLS_PLACEEDITDIALOG_HXX
      12             : 
      13             : #include <svtools/ServerDetailsControls.hxx>
      14             : 
      15             : #include <vcl/button.hxx>
      16             : #include <vcl/dialog.hxx>
      17             : #include <vcl/edit.hxx>
      18             : #include <vcl/fixed.hxx>
      19             : #include <vcl/lstbox.hxx>
      20             : 
      21             : #include <svtools/inettbc.hxx>
      22             : #include <svtools/place.hxx>
      23             : 
      24             : #include <memory>
      25             : #include <vector>
      26             : 
      27             : class SVT_DLLPUBLIC PlaceEditDialog : public ModalDialog
      28             : {
      29             : private :
      30             :     VclPtr<Edit>         m_pEDServerName;
      31             :     VclPtr<ListBox>      m_pLBServerType;
      32             :     std::shared_ptr< DetailsContainer > m_xCurrentDetails;
      33             : 
      34             :     VclPtr<Edit>         m_pEDUsername;
      35             :     VclPtr<OKButton>     m_pBTOk;
      36             :     VclPtr<CancelButton> m_pBTCancel;
      37             : 
      38             :     VclPtr<PushButton>   m_pBTDelete;
      39             : 
      40             :     /** Vector holding the details UI control for each server type.
      41             : 
      42             :         The elements in this vector need to match the order in the type listbox, e.g.
      43             :         the m_aDetailsContainer[0] will be shown for the type corresponding to entry 0
      44             :         in the listbox.
      45             :       */
      46             :     std::vector< std::shared_ptr< DetailsContainer > > m_aDetailsContainers;
      47             : 
      48             : public :
      49             : 
      50             :      PlaceEditDialog( vcl::Window* pParent);
      51             :      PlaceEditDialog(vcl::Window* pParent, const std::shared_ptr<Place> &rPlace );
      52             :      virtual ~PlaceEditDialog();
      53             :      virtual void dispose() SAL_OVERRIDE;
      54             : 
      55             :      // Returns a place instance with given information
      56             :      std::shared_ptr<Place> GetPlace();
      57             : 
      58           0 :      OUString GetServerName() { return m_pEDServerName->GetText(); }
      59             :      OUString GetServerUrl();
      60             : 
      61             : private:
      62             : 
      63             :     void InitDetails( );
      64             : 
      65             :     DECL_LINK ( OKHdl, Button * );
      66             :     DECL_LINK ( DelHdl, Button * );
      67             :     DECL_LINK ( EditHdl, void * );
      68             :     DECL_LINK ( SelectTypeHdl, void * );
      69             :     DECL_LINK ( EditUsernameHdl, void * );
      70             : 
      71             : };
      72             : 
      73             : #endif // INCLUDED_SVTOOLS_PLACEEDITDIALOG_HXX
      74             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11