LCOV - code coverage report
Current view: top level - sw/source/ui/envelp - swuilabimp.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 6 0.0 %
Date: 2014-04-11 Functions: 0 9 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             : #ifndef INCLUDED_SW_SOURCE_UI_ENVELP_SWUILABIMP_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_ENVELP_SWUILABIMP_HXX
      21             : #include "../../core/uibase/envelp/labimp.hxx"
      22             : #include <com/sun/star/text/XAutoTextContainer2.hpp>
      23             : #include <vcl/layout.hxx>
      24             : 
      25           0 : class SwLabPage : public SfxTabPage
      26             : {
      27             :     SwNewDBMgr*   pNewDBMgr;
      28             :     OUString      sActDBName;
      29             :     SwLabItem     aItem;
      30             : 
      31             :     VclContainer* m_pAddressFrame;
      32             : 
      33             :     CheckBox*         m_pAddrBox;
      34             :     VclMultiLineEdit* m_pWritingEdit;
      35             :     ListBox*          m_pDatabaseLB;
      36             :     ListBox*          m_pTableLB;
      37             :     PushButton*       m_pInsertBT;
      38             :     ListBox*          m_pDBFieldLB;
      39             : 
      40             :     RadioButton*      m_pContButton;
      41             :     RadioButton*      m_pSheetButton;
      42             :     ListBox*          m_pMakeBox;
      43             :     ListBox*          m_pTypeBox;
      44             :     ListBox*          m_pHiddenSortTypeBox;
      45             :     FixedText*        m_pFormatInfo;
      46             : 
      47             :     sal_Bool        m_bLabel;
      48             : 
      49             :     SwLabPage(Window* pParent, const SfxItemSet& rSet);
      50             : 
      51             :     DECL_LINK(AddrHdl, void *);
      52             :     DECL_LINK( DatabaseHdl, ListBox *pListBox );
      53             :     DECL_LINK(FieldHdl, void *);
      54             :     DECL_LINK(PageHdl, void *);
      55             :     DECL_LINK(MakeHdl, void *);
      56             :     DECL_LINK(TypeHdl, void *);
      57             : 
      58             :     void DisplayFormat  ();
      59             :     SwLabRec* GetSelectedEntryPos();
      60             : 
      61             :     using TabPage::ActivatePage;
      62             :     using TabPage::DeactivatePage;
      63             : 
      64             : public:
      65             : 
      66             :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
      67             : 
      68             :     virtual void ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
      69             :     virtual int  DeactivatePage(SfxItemSet* pSet = 0) SAL_OVERRIDE;
      70             :             void FillItem(SwLabItem& rItem);
      71             :     virtual bool FillItemSet(SfxItemSet& rSet) SAL_OVERRIDE;
      72             :     virtual void Reset(const SfxItemSet& rSet) SAL_OVERRIDE;
      73             : 
      74           0 :     SwLabDlg* GetParentSwLabDlg() {return (SwLabDlg*) GetParentDialog();}
      75             : 
      76             :     void    SetToBusinessCard();
      77             : 
      78             :     void InitDatabaseBox();
      79           0 :     inline void SetNewDBMgr(SwNewDBMgr* pDBMgr) { pNewDBMgr = pDBMgr; }
      80           0 :     inline SwNewDBMgr* GetNewDBMgr() const { return pNewDBMgr; }
      81             : };
      82             : 
      83             : class SwOneExampleFrame;
      84             : class SwVisitingCardPage : public SfxTabPage
      85             : {
      86             :     SvTreeListBox*  m_pAutoTextLB;
      87             :     ListBox*        m_pAutoTextGroupLB;
      88             :     Window*         m_pExampleWIN;
      89             : 
      90             :     OUString        sTempURL;
      91             : 
      92             :     SwLabItem       aLabItem;
      93             : 
      94             :     SwOneExampleFrame*  pExampleFrame;
      95             :     ::com::sun::star::uno::Reference< ::com::sun::star::text::XAutoTextContainer2 > m_xAutoText;
      96             : 
      97             :     DECL_LINK( AutoTextSelectHdl, void* );
      98             :     DECL_LINK( FrameControlInitializedHdl, void* );
      99             : 
     100             :     void            InitFrameControl();
     101             :     void            UpdateFields();
     102             : 
     103             :     void            ClearUserData();
     104             : 
     105             :     using SfxTabPage::SetUserData;
     106             :     void            SetUserData( sal_uInt32 nCnt,
     107             :                                     const OUString* pNames,
     108             :                                     const OUString* pValues );
     109             : 
     110             :     SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet);
     111             :     virtual ~SwVisitingCardPage();
     112             : 
     113             :     using TabPage::ActivatePage;
     114             :     using TabPage::DeactivatePage;
     115             : 
     116             : public:
     117             : 
     118             :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
     119             : 
     120             :     virtual void ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
     121             :     virtual int  DeactivatePage(SfxItemSet* pSet = 0) SAL_OVERRIDE;
     122             :     virtual bool FillItemSet(SfxItemSet& rSet) SAL_OVERRIDE;
     123             :     virtual void Reset(const SfxItemSet& rSet) SAL_OVERRIDE;
     124             : };
     125             : 
     126           0 : class SwPrivateDataPage : public SfxTabPage
     127             : {
     128             :     Edit* m_pFirstNameED;
     129             :     Edit* m_pNameED;
     130             :     Edit* m_pShortCutED;
     131             : 
     132             :     Edit* m_pFirstName2ED;
     133             :     Edit* m_pName2ED;
     134             :     Edit* m_pShortCut2ED;
     135             : 
     136             :     Edit* m_pStreetED;
     137             :     Edit* m_pZipED;
     138             :     Edit* m_pCityED;
     139             :     Edit* m_pCountryED;
     140             :     Edit* m_pStateED;
     141             :     Edit* m_pTitleED;
     142             :     Edit* m_pProfessionED;
     143             :     Edit* m_pPhoneED;
     144             :     Edit* m_pMobilePhoneED;
     145             :     Edit* m_pFaxED;
     146             :     Edit* m_pHomePageED;
     147             :     Edit* m_pMailED;
     148             : 
     149             :     SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet);
     150             : 
     151             :     using TabPage::ActivatePage;
     152             :     using TabPage::DeactivatePage;
     153             : 
     154             : public:
     155             : 
     156             :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
     157             : 
     158             :     virtual void ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
     159             :     virtual int  DeactivatePage(SfxItemSet* pSet = 0) SAL_OVERRIDE;
     160             :     virtual bool FillItemSet(SfxItemSet& rSet) SAL_OVERRIDE;
     161             :     virtual void Reset(const SfxItemSet& rSet) SAL_OVERRIDE;
     162             : };
     163             : 
     164           0 : class SwBusinessDataPage : public SfxTabPage
     165             : {
     166             :     Edit* m_pCompanyED;
     167             :     Edit* m_pCompanyExtED;
     168             :     Edit* m_pSloganED;
     169             : 
     170             :     Edit* m_pStreetED;
     171             :     Edit* m_pZipED;
     172             :     Edit* m_pCityED;
     173             :     Edit* m_pCountryED;
     174             :     Edit* m_pStateED;
     175             : 
     176             :     Edit* m_pPositionED;
     177             : 
     178             :     Edit* m_pPhoneED;
     179             :     Edit* m_pMobilePhoneED;
     180             :     Edit* m_pFaxED;
     181             : 
     182             :     Edit* m_pHomePageED;
     183             :     Edit* m_pMailED;
     184             : 
     185             :     SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet);
     186             : 
     187             :     using TabPage::ActivatePage;
     188             :     using TabPage::DeactivatePage;
     189             : 
     190             : public:
     191             : 
     192             :     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
     193             : 
     194             :     virtual void ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
     195             :     virtual int  DeactivatePage(SfxItemSet* pSet = 0) SAL_OVERRIDE;
     196             :     virtual bool FillItemSet(SfxItemSet& rSet) SAL_OVERRIDE;
     197             :     virtual void Reset(const SfxItemSet& rSet) SAL_OVERRIDE;
     198             : };
     199             : 
     200             : #endif
     201             : 
     202             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10