LCOV - code coverage report
Current view: top level - sc/source/ui/inc - scuitphfedit.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-08-25 Functions: 0 8 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef SCUI_TPHFEDIT_HXX
      30                 :            : #define SCUI_TPHFEDIT_HXX
      31                 :            : 
      32                 :            : #include "tphfedit.hxx"
      33                 :            : 
      34                 :            : //===================================================================
      35                 :            : enum ScHFEntryId
      36                 :            : {
      37                 :            :     eNoneEntry  ,
      38                 :            :     ePageEntry  ,
      39                 :            :     ePagesEntry ,
      40                 :            :     eSheetEntry ,
      41                 :            :     eConfidentialEntry ,
      42                 :            :     eFileNamePageEntry ,
      43                 :            :     eExtFileNameEntry ,
      44                 :            :     ePageSheetEntry  ,
      45                 :            :     ePageFileNameEntry  ,
      46                 :            :     ePageExtFileNameEntry  ,
      47                 :            :     eUserNameEntry  ,
      48                 :            :     eCreatedByEntry ,
      49                 :            :     eEntryCount
      50                 :            : };
      51                 :            : 
      52                 :            : class EditTextObject;
      53                 :            : 
      54                 :            : 
      55                 :            : class ScHFEditPage : public SfxTabPage
      56                 :            : {
      57                 :            : public:
      58                 :            :     virtual sal_Bool    FillItemSet ( SfxItemSet& rCoreSet );
      59                 :            :     virtual void    Reset       ( const SfxItemSet& rCoreSet );
      60                 :            : 
      61                 :            :     void            SetNumType(SvxNumType eNumType);
      62                 :            :     void            ClearTextAreas();
      63                 :            : 
      64                 :            : protected:
      65                 :            :                 ScHFEditPage( Window*           pParent,
      66                 :            :                               sal_uInt16            nResId,
      67                 :            :                               const SfxItemSet& rCoreSet,
      68                 :            :                               sal_uInt16            nWhich, bool bHeader );
      69                 :            :     virtual     ~ScHFEditPage();
      70                 :            : 
      71                 :            : private:
      72                 :            :     FixedText       aFtLeft;
      73                 :            :     ScEditWindow    aWndLeft;
      74                 :            :     FixedText       aFtCenter;
      75                 :            :     ScEditWindow    aWndCenter;
      76                 :            :     FixedText       aFtRight;
      77                 :            :     ScEditWindow    aWndRight;
      78                 :            :     FixedText       maFtDefinedHF;
      79                 :            :         ListBox                 maLbDefined;
      80                 :            :     FixedText       maFtCustomHF;
      81                 :            :     ImageButton     aBtnText;
      82                 :            :     ScExtIButton    aBtnFile;
      83                 :            :     ImageButton     aBtnTable;
      84                 :            :     ImageButton     aBtnPage;
      85                 :            :     ImageButton     aBtnLastPage;
      86                 :            :     ImageButton     aBtnDate;
      87                 :            :     ImageButton     aBtnTime;
      88                 :            :     FixedLine       aFlInfo;
      89                 :            :     FixedInfo       aFtInfo;
      90                 :            :     ScPopupMenu     aPopUpFile;
      91                 :            : 
      92                 :            :     sal_uInt16          nWhich;
      93                 :            :     String          aCmdArr[6];
      94                 :            : 
      95                 :            : private:
      96                 :            : #ifdef _TPHFEDIT_CXX
      97                 :            :     void FillCmdArr();
      98                 :            :     void InitPreDefinedList();
      99                 :            :     void ProcessDefinedListSel(ScHFEntryId eSel, bool bTravelling = false);
     100                 :            :     void InsertToDefinedList();
     101                 :            :     void RemoveFromDefinedList();
     102                 :            :     void SetSelectDefinedList();
     103                 :            :     bool IsPageEntry(EditEngine*pEngine, EditTextObject* pTextObj);
     104                 :            :     bool IsDateEntry(EditTextObject* pTextObj);
     105                 :            :     bool IsExtFileNameEntry(EditTextObject* pTextObj);
     106                 :            :     DECL_LINK( ListHdl_Impl, ListBox* );
     107                 :            :     DECL_LINK( ClickHdl, ImageButton* );
     108                 :            :     DECL_LINK( MenuHdl, ScExtIButton* );
     109                 :            : #endif
     110                 :            : };
     111                 :            : 
     112                 :            : //===================================================================
     113                 :            : 
     114                 :          0 : class ScRightHeaderEditPage : public ScHFEditPage
     115                 :            : {
     116                 :            : public:
     117                 :            :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     118                 :            : 
     119                 :            : private:
     120                 :            :     ScRightHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
     121                 :            : };
     122                 :            : 
     123                 :            : //===================================================================
     124                 :            : 
     125                 :          0 : class ScLeftHeaderEditPage : public ScHFEditPage
     126                 :            : {
     127                 :            : public:
     128                 :            :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     129                 :            : 
     130                 :            : private:
     131                 :            :     ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
     132                 :            : };
     133                 :            : 
     134                 :            : //===================================================================
     135                 :            : 
     136                 :          0 : class ScRightFooterEditPage : public ScHFEditPage
     137                 :            : {
     138                 :            : public:
     139                 :            :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     140                 :            : 
     141                 :            : private:
     142                 :            :     ScRightFooterEditPage( Window* pParent, const SfxItemSet& rSet );
     143                 :            : };
     144                 :            : 
     145                 :            : //===================================================================
     146                 :            : 
     147                 :          0 : class ScLeftFooterEditPage : public ScHFEditPage
     148                 :            : {
     149                 :            : public:
     150                 :            :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rCoreSet );
     151                 :            : 
     152                 :            : private:
     153                 :            :     ScLeftFooterEditPage( Window* pParent, const SfxItemSet& rSet );
     154                 :            : };
     155                 :            : 
     156                 :            : #endif
     157                 :            : 
     158                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10