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

Generated by: LCOV version 1.10