LCOV - code coverage report
Current view: top level - sc/source/ui/inc - sortkeydlg.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 3 0.0 %
Date: 2014-11-03 Functions: 0 4 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_SC_SOURCE_UI_INC_SORTKEYDLG_HXX
      11             : #define INCLUDED_SC_SOURCE_UI_INC_SORTKEYDLG_HXX
      12             : 
      13             : #include <boost/ptr_container/ptr_vector.hpp>
      14             : 
      15             : #include "anyrefdg.hxx"
      16             : 
      17             : #include <vcl/edit.hxx>
      18             : #include <vcl/fixed.hxx>
      19             : #include <vcl/layout.hxx>
      20             : #include <vcl/lstbox.hxx>
      21             : #include <vcl/scrbar.hxx>
      22             : #include <vcl/ctrl.hxx>
      23             : #include <svtools/stdctrl.hxx>
      24             : #include <svx/langbox.hxx>
      25             : 
      26           0 : struct ScSortKeyItem : public VclBuilderContainer
      27             : {
      28             :     VclFrame*       m_pFrame;
      29             :     FixedText*      m_pFlSort;
      30             :     ListBox*        m_pLbSort;
      31             :     RadioButton*    m_pBtnUp;
      32             :     RadioButton*    m_pBtnDown;
      33             : 
      34             :     ScSortKeyItem(vcl::Window* pParent);
      35             : 
      36             :     void DisableField();
      37             :     void EnableField();
      38             : 
      39             :     long getItemHeight() const;
      40             : };
      41             : 
      42             : typedef boost::ptr_vector<ScSortKeyItem> ScSortKeyItems;
      43             : 
      44             : class ScSortKeyWindow
      45             : {
      46             : private:
      47             :     VclBox*         m_pBox;
      48             :     sal_Int32       nItemHeight;
      49             : 
      50             :     ScSortKeyItems& mrSortKeyItems;
      51             : 
      52             : public:
      53             :     ScSortKeyWindow(SfxTabPage* pParent, ScSortKeyItems& mrSortKeyItems);
      54             :     ~ScSortKeyWindow();
      55             : 
      56             :     void AddSortKey( sal_uInt16 nItem );
      57             :     void DoScroll( sal_Int32 nNewPos );
      58           0 :     sal_Int32 GetItemHeight() const { return nItemHeight; }
      59             :     sal_Int32 GetTotalHeight() const { return m_pBox->GetSizePixel().Height(); }
      60             : };
      61             : 
      62           0 : class ScSortKeyCtrl
      63             : {
      64             : private:
      65             :     ScSortKeyWindow  m_aSortWin;
      66             :     VclScrolledWindow& m_rScrolledWindow;
      67             :     ScrollBar&       m_rVertScroll;
      68             : 
      69             :     DECL_LINK(ScrollHdl, ScrollBar*);
      70             : 
      71             :     void checkAutoVScroll();
      72             : 
      73             : public:
      74             :     ScSortKeyCtrl(SfxTabPage* pParent, ScSortKeyItems& mrSortKeyItems);
      75             :     void setScrollRange();
      76             :     void AddSortKey( sal_uInt16 nItem );
      77             : };
      78             : 
      79             : #endif // INCLUDED_SC_SOURCE_UI_INC_SORTKEYDLG_HXX
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10