LCOV - code coverage report
Current view: top level - sw/source/ui/misc - swmodalredlineacceptdlg.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 28 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 8 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             : 
      20             : #include <redline.hxx>
      21             : #include <vcl/layout.hxx>
      22             : #include <vcl/msgbox.hxx>
      23             : #include <svl/eitem.hxx>
      24             : #include <sfx2/viewfrm.hxx>
      25             : #include <sfx2/dispatch.hxx>
      26             : #include <svx/ctredlin.hxx>
      27             : #include <svx/postattr.hxx>
      28             : #include <swtypes.hxx>
      29             : #include <wrtsh.hxx>
      30             : #include <view.hxx>
      31             : #include <swmodule.hxx>
      32             : #include <swwait.hxx>
      33             : #include <uitool.hxx>
      34             : 
      35             : #include <helpid.h>
      36             : #include <cmdid.h>
      37             : #include <misc.hrc>
      38             : #include <shells.hrc>
      39             : 
      40             : #include <vector>
      41             : #include <redlndlg.hxx>
      42             : #include "swmodalredlineacceptdlg.hxx"
      43             : 
      44             : #include <unomid.h>
      45             : 
      46           0 : SwModalRedlineAcceptDlg::SwModalRedlineAcceptDlg(vcl::Window *pParent)
      47             :     : SfxModalDialog(pParent,
      48           0 :         "AcceptRejectChangesDialog", "svx/ui/acceptrejectchangesdialog.ui")
      49             : {
      50           0 :     pImplDlg = new SwRedlineAcceptDlg(this, this, get_content_area(), true);
      51             : 
      52           0 :     pImplDlg->Initialize(GetExtraData());
      53           0 :     pImplDlg->Activate();   // for data's initialisation
      54           0 : }
      55             : 
      56           0 : SwModalRedlineAcceptDlg::~SwModalRedlineAcceptDlg()
      57             : {
      58           0 :     disposeOnce();
      59           0 : }
      60             : 
      61           0 : void SwModalRedlineAcceptDlg::dispose()
      62             : {
      63           0 :     AcceptAll(false);   // refuse everything remaining
      64           0 :     pImplDlg->FillInfo(GetExtraData());
      65             : 
      66           0 :     delete pImplDlg;
      67           0 :     SfxModalDialog::dispose();
      68           0 : }
      69             : 
      70           0 : void SwModalRedlineAcceptDlg::Activate()
      71             : {
      72           0 : }
      73             : 
      74           0 : void SwModalRedlineAcceptDlg::AcceptAll( bool bAccept )
      75             : {
      76           0 :     SvxTPFilter* pFilterTP = pImplDlg->GetChgCtrl().GetFilterPage();
      77             : 
      78           0 :     if (pFilterTP->IsDate() || pFilterTP->IsAuthor() ||
      79           0 :         pFilterTP->IsRange() || pFilterTP->IsAction())
      80             :     {
      81           0 :         pFilterTP->CheckDate(false);    // turn off all filters
      82           0 :         pFilterTP->CheckAuthor(false);
      83           0 :         pFilterTP->CheckRange(false);
      84           0 :         pFilterTP->CheckAction(false);
      85           0 :         pImplDlg->FilterChangedHdl();
      86             :     }
      87             : 
      88           0 :     pImplDlg->CallAcceptReject( false, bAccept );
      89           0 : }
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11