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

Generated by: LCOV version 1.10