LCOV - code coverage report
Current view: top level - sw/source/ui/envelp - swuilabimp.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-08-25 Functions: 0 3 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                 :            : #ifndef _SWUILABIMP_HXX
      29                 :            : #define _SWUILABIMP_HXX
      30                 :            : #include "labimp.hxx"
      31                 :            : 
      32                 :            : class SwLabPage : public SfxTabPage
      33                 :            : {
      34                 :            :     SwNewDBMgr*   pNewDBMgr;
      35                 :            :     String        sActDBName;
      36                 :            :     SwLabItem     aItem;
      37                 :            : 
      38                 :            :     FixedLine     aWritingFL;
      39                 :            :     FixedText     aWritingText;
      40                 :            :     CheckBox      aAddrBox;
      41                 :            :     MultiLineEdit aWritingEdit;
      42                 :            :     FixedText     aDatabaseFT;
      43                 :            :     ListBox       aDatabaseLB;
      44                 :            :     FixedText     aTableFT;
      45                 :            :     ListBox       aTableLB;
      46                 :            :     ImageButton   aInsertBT;
      47                 :            :     FixedText     aDBFieldFT;
      48                 :            :     ListBox       aDBFieldLB;
      49                 :            : //  PushButton    aDatabaseButton;
      50                 :            : 
      51                 :            :     FixedLine     aFormatFL;
      52                 :            :     RadioButton   aContButton;
      53                 :            :     RadioButton   aSheetButton;
      54                 :            :     FixedText     aMakeText;
      55                 :            :     ListBox       aMakeBox;
      56                 :            :     FixedText     aTypeText;
      57                 :            :     ListBox       aTypeBox;
      58                 :            :     ListBox       aHiddenSortTypeBox;
      59                 :            :     FixedInfo     aFormatInfo;
      60                 :            : 
      61                 :            :     sal_Bool        m_bLabel;
      62                 :            : 
      63                 :            :      SwLabPage(Window* pParent, const SfxItemSet& rSet);
      64                 :            :     ~SwLabPage();
      65                 :            : 
      66                 :            :     DECL_LINK(AddrHdl, void *);
      67                 :            :     DECL_LINK( DatabaseHdl, ListBox *pListBox );
      68                 :            : //    DECL_LINK( DatabaseButtonHdl, Button * );
      69                 :            :     DECL_LINK(FieldHdl, void *);
      70                 :            :     DECL_LINK(PageHdl, void *);
      71                 :            :     DECL_LINK(MakeHdl, void *);
      72                 :            :     DECL_LINK(TypeHdl, void *);
      73                 :            : 
      74                 :            :     void DisplayFormat  ();
      75                 :            :     SwLabRec* GetSelectedEntryPos();
      76                 :            : 
      77                 :            :     using TabPage::ActivatePage;
      78                 :            :     using TabPage::DeactivatePage;
      79                 :            :     using Window::GetParent;
      80                 :            : 
      81                 :            : public:
      82                 :            : 
      83                 :            :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
      84                 :            : 
      85                 :            :     virtual void ActivatePage(const SfxItemSet& rSet);
      86                 :            :     virtual int  DeactivatePage(SfxItemSet* pSet = 0);
      87                 :            :             void FillItem(SwLabItem& rItem);
      88                 :            :     virtual sal_Bool FillItemSet(SfxItemSet& rSet);
      89                 :            :     virtual void Reset(const SfxItemSet& rSet);
      90                 :            : 
      91                 :          0 :     SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
      92                 :            : 
      93                 :            :     void    SetToBusinessCard();
      94                 :            : 
      95                 :            :     void InitDatabaseBox();
      96                 :          0 :     inline void SetNewDBMgr(SwNewDBMgr* pDBMgr) { pNewDBMgr = pDBMgr; }
      97                 :          0 :     inline SwNewDBMgr* GetNewDBMgr() const { return pNewDBMgr; }
      98                 :            : };
      99                 :            : 
     100                 :            : class SwOneExampleFrame;
     101                 :            : class SwVisitingCardPage : public SfxTabPage
     102                 :            : {
     103                 :            :     FixedLine       aContentFL;
     104                 :            :     SvTreeListBox   aAutoTextLB;
     105                 :            :     FixedText       aAutoTextGroupFT;
     106                 :            :     ListBox         aAutoTextGroupLB;
     107                 :            : 
     108                 :            :     Window          aExampleWIN;
     109                 :            : 
     110                 :            :     String          sVisCardGroup;
     111                 :            :     String          sTempURL;
     112                 :            : 
     113                 :            :     SwLabItem       aLabItem;
     114                 :            : 
     115                 :            :     SwOneExampleFrame*  pExampleFrame;
     116                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >    _xAutoText;
     117                 :            : 
     118                 :            : 
     119                 :            :     DECL_LINK( AutoTextSelectHdl, void* );
     120                 :            :     DECL_LINK( FrameControlInitializedHdl, void* );
     121                 :            : 
     122                 :            :     void            InitFrameControl();
     123                 :            :     void            UpdateFields();
     124                 :            : 
     125                 :            :     void            ClearUserData();
     126                 :            : 
     127                 :            :     using SfxTabPage::SetUserData;
     128                 :            :     void            SetUserData( sal_uInt32 nCnt,
     129                 :            :                                     const rtl::OUString* pNames,
     130                 :            :                                     const rtl::OUString* pValues );
     131                 :            : 
     132                 :            :     SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet);
     133                 :            :     ~SwVisitingCardPage();
     134                 :            : 
     135                 :            :     using TabPage::ActivatePage;
     136                 :            :     using TabPage::DeactivatePage;
     137                 :            : 
     138                 :            : public:
     139                 :            : 
     140                 :            :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
     141                 :            : 
     142                 :            :     virtual void ActivatePage(const SfxItemSet& rSet);
     143                 :            :     virtual int  DeactivatePage(SfxItemSet* pSet = 0);
     144                 :            :     virtual sal_Bool FillItemSet(SfxItemSet& rSet);
     145                 :            :     virtual void Reset(const SfxItemSet& rSet);
     146                 :            : };
     147                 :            : 
     148                 :            : class SwPrivateDataPage : public SfxTabPage
     149                 :            : {
     150                 :            :     FixedLine       aDataFL;
     151                 :            : 
     152                 :            :     FixedText       aNameFT;
     153                 :            :     Edit            aFirstNameED;
     154                 :            :     Edit            aNameED;
     155                 :            :     Edit            aShortCutED;
     156                 :            : 
     157                 :            :     FixedText       aName2FT;
     158                 :            :     Edit            aFirstName2ED;
     159                 :            :     Edit            aName2ED;
     160                 :            :     Edit            aShortCut2ED;
     161                 :            : 
     162                 :            :     FixedText       aStreetFT;
     163                 :            :     Edit            aStreetED;
     164                 :            :     FixedText       aZipCityFT;
     165                 :            :     Edit            aZipED;
     166                 :            :     Edit            aCityED;
     167                 :            :     FixedText       aCountryStateFT;
     168                 :            :     Edit            aCountryED;
     169                 :            :     Edit            aStateED;
     170                 :            :     FixedText       aTitleProfessionFT;
     171                 :            :     Edit            aTitleED;
     172                 :            :     Edit            aProfessionED;
     173                 :            :     FixedText       aPhoneFT;
     174                 :            :     Edit            aPhoneED;
     175                 :            :     Edit            aMobilePhoneED;
     176                 :            :     FixedText       aFaxFT;
     177                 :            :     Edit            aFaxED;
     178                 :            :     FixedText       aWWWMailFT;
     179                 :            :     Edit            aHomePageED;
     180                 :            :     Edit            aMailED;
     181                 :            : 
     182                 :            :     SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet);
     183                 :            :     ~SwPrivateDataPage();
     184                 :            : 
     185                 :            :     using TabPage::ActivatePage;
     186                 :            :     using TabPage::DeactivatePage;
     187                 :            : 
     188                 :            : public:
     189                 :            : 
     190                 :            :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
     191                 :            : 
     192                 :            :     virtual void ActivatePage(const SfxItemSet& rSet);
     193                 :            :     virtual int  DeactivatePage(SfxItemSet* pSet = 0);
     194                 :            :     virtual sal_Bool FillItemSet(SfxItemSet& rSet);
     195                 :            :     virtual void Reset(const SfxItemSet& rSet);
     196                 :            : };
     197                 :            : 
     198                 :            : class SwBusinessDataPage : public SfxTabPage
     199                 :            : {
     200                 :            :     FixedLine       aDataFL;
     201                 :            :     FixedText       aCompanyFT;
     202                 :            :     Edit            aCompanyED;
     203                 :            :     FixedText       aCompanyExtFT;
     204                 :            :     Edit            aCompanyExtED;
     205                 :            :     FixedText       aSloganFT;
     206                 :            :     Edit            aSloganED;
     207                 :            : 
     208                 :            :     FixedText       aStreetFT;
     209                 :            :     Edit            aStreetED;
     210                 :            :     FixedText       aZipCityFT;
     211                 :            :     Edit            aZipED;
     212                 :            :     Edit            aCityED;
     213                 :            :     FixedText       aCountryStateFT;
     214                 :            :     Edit            aCountryED;
     215                 :            :     Edit            aStateED;
     216                 :            : 
     217                 :            :     FixedText       aPositionFT;
     218                 :            :     Edit            aPositionED;
     219                 :            : 
     220                 :            :     FixedText       aPhoneFT;
     221                 :            :     Edit            aPhoneED;
     222                 :            :     Edit            aMobilePhoneED;
     223                 :            :     FixedText       aFaxFT;
     224                 :            :     Edit            aFaxED;
     225                 :            : 
     226                 :            :     FixedText       aWWWMailFT;
     227                 :            :     Edit            aHomePageED;
     228                 :            :     Edit            aMailED;
     229                 :            : 
     230                 :            :     SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet);
     231                 :            :     ~SwBusinessDataPage();
     232                 :            : 
     233                 :            :     using TabPage::ActivatePage;
     234                 :            :     using TabPage::DeactivatePage;
     235                 :            : 
     236                 :            : public:
     237                 :            : 
     238                 :            :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
     239                 :            : 
     240                 :            :     virtual void ActivatePage(const SfxItemSet& rSet);
     241                 :            :     virtual int  DeactivatePage(SfxItemSet* pSet = 0);
     242                 :            :     virtual sal_Bool FillItemSet(SfxItemSet& rSet);
     243                 :            :     virtual void Reset(const SfxItemSet& rSet);
     244                 :            : };
     245                 :            : 
     246                 :            : #endif
     247                 :            : 
     248                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10