LCOV - code coverage report
Current view: top level - sc/source/ui/inc - condformatmgr.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 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             : 
      10             : #ifndef INCLUDED_SC_SOURCE_UI_INC_CONDFORMATMGR_HXX
      11             : #define INCLUDED_SC_SOURCE_UI_INC_CONDFORMATMGR_HXX
      12             : 
      13             : #include "sc.hrc"
      14             : 
      15             : #include <vcl/dialog.hxx>
      16             : #include <vcl/layout.hxx>
      17             : #include <svtools/svtabbx.hxx>
      18             : #include <vcl/button.hxx>
      19             : #include <vcl/fixed.hxx>
      20             : #include <svtools/simptabl.hxx>
      21             : 
      22             : #include "conditio.hxx"
      23             : 
      24             : #include <map>
      25             : 
      26             : class ScDocument;
      27             : 
      28           0 : class ScCondFormatManagerWindow : public SvSimpleTable
      29             : {
      30             : private:
      31             :     void Init();
      32             :     OUString createEntryString(const ScConditionalFormat& rFormat);
      33             :     void setColSizes();
      34             : 
      35             :     ScDocument* mpDoc;
      36             :     ScConditionalFormatList* mpFormatList;
      37             :     std::map<SvTreeListEntry*, sal_Int32> maMapLBoxEntryToCondIndex;
      38             : 
      39             : public:
      40             :     ScCondFormatManagerWindow(SvSimpleTableContainer& rParent, ScDocument* pDoc, ScConditionalFormatList* pFormatList);
      41             : 
      42             :     void DeleteSelection();
      43             :     ScConditionalFormat* GetSelection();
      44             :     void Update();
      45             :     virtual void Resize() SAL_OVERRIDE;
      46             : };
      47             : 
      48             : class ScCondFormatManagerDlg : public ModalDialog
      49             : {
      50             : public:
      51             :     ScCondFormatManagerDlg(vcl::Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList, const ScAddress& rPos);
      52             :     virtual ~ScCondFormatManagerDlg();
      53             : 
      54             :     ScConditionalFormatList* GetConditionalFormatList();
      55             : 
      56           0 :     bool CondFormatsChanged() { return mbModified;}
      57             : 
      58             :     virtual bool IsInRefMode() const;
      59             : 
      60             : private:
      61             :     PushButton *m_pBtnAdd;
      62             :     PushButton *m_pBtnRemove;
      63             :     PushButton *m_pBtnEdit;
      64             :     ScConditionalFormatList* mpFormatList;
      65             :     ScCondFormatManagerWindow *m_pCtrlManager;
      66             : 
      67             :     ScDocument* mpDoc;
      68             :     ScAddress maPos;
      69             : 
      70             :     DECL_LINK(RemoveBtnHdl, void*);
      71             :     DECL_LINK(EditBtnHdl, void*);
      72             :     DECL_LINK(AddBtnHdl, void*);
      73             : 
      74             :     bool mbModified;
      75             : };
      76             : 
      77             : #endif
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10