LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - mmgreetingspage.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 4 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_DBUI_MMGREETINGSPAGE_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_DBUI_MMGREETINGSPAGE_HXX
      21             : 
      22             : #include <svtools/wizardmachine.hxx>
      23             : #include <sfx2/basedlgs.hxx>
      24             : #include <vcl/button.hxx>
      25             : #include <vcl/lstbox.hxx>
      26             : #include <vcl/combobox.hxx>
      27             : #include <svtools/stdctrl.hxx>
      28             : #include <mailmergehelper.hxx>
      29             : #include <svtools/svmedit.hxx>
      30             : 
      31             : class SwMailMergeWizard;
      32             : 
      33           0 : class SwGreetingsHandler
      34             : {
      35             : protected:
      36             :     VclPtr<CheckBox>           m_pGreetingLineCB;
      37             : 
      38             :     VclPtr<CheckBox>           m_pPersonalizedCB;
      39             : 
      40             :     VclPtr<FixedText>          m_pFemaleFT;
      41             :     VclPtr<ListBox>            m_pFemaleLB;
      42             :     VclPtr<PushButton>         m_pFemalePB;
      43             : 
      44             :     VclPtr<FixedText>          m_pMaleFT;
      45             :     VclPtr<ListBox>            m_pMaleLB;
      46             :     VclPtr<PushButton>         m_pMalePB;
      47             : 
      48             :     VclPtr<FixedText>          m_pFemaleFI;
      49             :     VclPtr<FixedText>          m_pFemaleColumnFT;
      50             :     VclPtr<ListBox>            m_pFemaleColumnLB;
      51             :     VclPtr<FixedText>          m_pFemaleFieldFT;
      52             :     VclPtr<ComboBox>           m_pFemaleFieldCB;
      53             : 
      54             :     VclPtr<FixedText>          m_pNeutralFT;
      55             :     VclPtr<ComboBox>           m_pNeutralCB;
      56             : 
      57             :     bool                m_bIsTabPage;
      58             : 
      59             :     VclPtr<SwMailMergeWizard>  m_pWizard;
      60             : 
      61           0 :     ~SwGreetingsHandler() {}
      62             : 
      63             :     DECL_LINK(IndividualHdl_Impl, void *);
      64             :     DECL_LINK(GreetingHdl_Impl, PushButton*);
      65             : 
      66             :     void    Contains(bool bContainsGreeting);
      67             :     virtual void    UpdatePreview();
      68             : };
      69             : 
      70             : class SwMailMergeGreetingsPage : public svt::OWizardPage,
      71             :                                     public SwGreetingsHandler
      72             : {
      73             :     VclPtr<FixedText>          m_pPreviewFI;
      74             :     VclPtr<SwAddressPreview>   m_pPreviewWIN;
      75             :     VclPtr<PushButton>         m_pAssignPB;
      76             :     VclPtr<FixedText>          m_pDocumentIndexFI;
      77             :     VclPtr<PushButton>         m_pPrevSetIB;
      78             :     VclPtr<PushButton>         m_pNextSetIB;
      79             : 
      80             :     OUString            m_sDocument;
      81             : 
      82             :     DECL_LINK(ContainsHdl_Impl, CheckBox*);
      83             :     DECL_LINK(InsertDataHdl_Impl, ImageButton*);
      84             :     DECL_LINK(GreetingSelectHdl_Impl, void *);
      85             :     DECL_LINK(AssignHdl_Impl, PushButton*);
      86             : 
      87             :     virtual void        UpdatePreview() SAL_OVERRIDE;
      88             :     virtual void        ActivatePage() SAL_OVERRIDE;
      89             :     virtual bool        commitPage( ::svt::WizardTypes::CommitPageReason _eReason ) SAL_OVERRIDE;
      90             : public:
      91             :         SwMailMergeGreetingsPage( SwMailMergeWizard* _pParent);
      92             :         virtual ~SwMailMergeGreetingsPage();
      93             :     virtual void dispose() SAL_OVERRIDE;
      94             : 
      95             : };
      96             : 
      97             : class SwMailBodyDialog : public SfxModalDialog, public SwGreetingsHandler
      98             : {
      99             :     VclPtr<FixedText>           m_pBodyFT;
     100             :     VclPtr<VclMultiLineEdit>    m_pBodyMLE;
     101             : 
     102             :     VclPtr<OKButton>            m_pOK;
     103             : 
     104             :     DECL_LINK(ContainsHdl_Impl, CheckBox*);
     105             :     DECL_LINK(OKHdl, void *);
     106             : public:
     107             :     SwMailBodyDialog(vcl::Window* pParent, SwMailMergeWizard* pWizard);
     108             :     virtual ~SwMailBodyDialog();
     109             :     virtual void dispose() SAL_OVERRIDE;
     110             : 
     111           0 :     void            SetBody(const OUString& rBody ) {m_pBodyMLE->SetText(rBody);}
     112           0 :     OUString        GetBody() const {return m_pBodyMLE->GetText();}
     113             : };
     114             : #endif
     115             : 
     116             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11