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

Generated by: LCOV version 1.11