LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/ui/inc - scuitphfedit.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2013-07-09 Functions: 0 8 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 SCUI_TPHFEDIT_HXX
      21             : #define SCUI_TPHFEDIT_HXX
      22             : 
      23             : #include "tphfedit.hxx"
      24             : //#include <boost/graph/graph_concepts.hpp>
      25             : 
      26             : //===================================================================
      27             : enum ScHFEntryId
      28             : {
      29             :     eNoneEntry  ,
      30             :     ePageEntry  ,
      31             :     ePagesEntry ,
      32             :     eSheetEntry ,
      33             :     eConfidentialEntry ,
      34             :     eFileNamePageEntry ,
      35             :     eExtFileNameEntry ,
      36             :     ePageSheetEntry  ,
      37             :     ePageFileNameEntry  ,
      38             :     ePageExtFileNameEntry  ,
      39             :     eUserNameEntry  ,
      40             :     eCreatedByEntry ,
      41             :     eEntryCount
      42             : };
      43             : 
      44             : class EditTextObject;
      45             : 
      46             : 
      47             : class ScHFEditPage : public SfxTabPage
      48             : {
      49             : public:
      50             :     virtual sal_Bool    FillItemSet ( SfxItemSet& rCoreSet );
      51             :     virtual void        Reset       ( const SfxItemSet& rCoreSet );
      52             : 
      53             :     void            SetNumType(SvxNumType eNumType);
      54             :     void            ClearTextAreas();
      55             : 
      56             : protected:
      57             :                 ScHFEditPage( Window*           pParent,
      58             :                               const SfxItemSet& rCoreSet,
      59             :                               sal_uInt16        nWhich,
      60             :                               bool              bHeader );
      61             :     virtual     ~ScHFEditPage();
      62             : 
      63             : private:
      64             :     ScEditWindow*    m_pWndLeft;
      65             :     ScEditWindow*    m_pWndCenter;
      66             :     ScEditWindow*    m_pWndRight;
      67             :     FixedText*       m_pFtDefinedHF;
      68             :     ListBox*         m_pLbDefined;
      69             :     FixedText*       m_pFtCustomHF;
      70             :     PushButton*      m_pBtnText;
      71             :     ScExtIButton*    m_pBtnFile;
      72             :     PushButton*      m_pBtnTable;
      73             :     PushButton*      m_pBtnPage;
      74             :     PushButton*      m_pBtnLastPage;
      75             :     PushButton*      m_pBtnDate;
      76             :     PushButton*      m_pBtnTime;
      77             : 
      78             :     FixedText*       m_pFtConfidential;
      79             :     FixedText*       m_pFtPage;
      80             :     FixedText*       m_pFtOfQuestion;
      81             :     FixedText*       m_pFtOf;
      82             :     FixedText*       m_pFtNone;
      83             :     FixedText*       m_pFtCreatedBy;
      84             :     FixedText*       m_pFtCustomized;
      85             : 
      86             :     sal_uInt16       nWhich;
      87             :     OUString         aCmdArr[6];
      88             : 
      89             : private:
      90             : #ifdef _TPHFEDIT_CXX
      91             :     void FillCmdArr();
      92             :     void InitPreDefinedList();
      93             :     void ProcessDefinedListSel(ScHFEntryId eSel, bool bTravelling = false);
      94             :     void InsertToDefinedList();
      95             :     void RemoveFromDefinedList();
      96             :     void SetSelectDefinedList();
      97             :     bool IsPageEntry(EditEngine*pEngine, EditTextObject* pTextObj);
      98             :     bool IsDateEntry(EditTextObject* pTextObj);
      99             :     bool IsExtFileNameEntry(EditTextObject* pTextObj);
     100             :     DECL_LINK( ListHdl_Impl, ListBox* );
     101             :     DECL_LINK( ClickHdl,  PushButton* );
     102             :     DECL_LINK( MenuHdl, ScExtIButton* );
     103             : #endif
     104             : };
     105             : 
     106             : //===================================================================
     107             : 
     108           0 : class ScRightHeaderEditPage : public ScHFEditPage
     109             : {
     110             : public:
     111             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     112             : 
     113             : private:
     114             :     ScRightHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
     115             : };
     116             : 
     117             : //===================================================================
     118             : 
     119           0 : class ScLeftHeaderEditPage : public ScHFEditPage
     120             : {
     121             : public:
     122             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     123             : 
     124             : private:
     125             :     ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
     126             : };
     127             : 
     128             : //===================================================================
     129             : 
     130           0 : class ScRightFooterEditPage : public ScHFEditPage
     131             : {
     132             : public:
     133             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     134             : 
     135             : private:
     136             :     ScRightFooterEditPage( Window* pParent, const SfxItemSet& rSet );
     137             : };
     138             : 
     139             : //===================================================================
     140             : 
     141           0 : class ScLeftFooterEditPage : public ScHFEditPage
     142             : {
     143             : public:
     144             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     145             : 
     146             : private:
     147             :     ScLeftFooterEditPage( Window* pParent, const SfxItemSet& rSet );
     148             : };
     149             : 
     150             : #endif
     151             : 
     152             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10