1*efeef26fSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*efeef26fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*efeef26fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*efeef26fSAndrew Rist * distributed with this work for additional information 6*efeef26fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*efeef26fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*efeef26fSAndrew Rist * "License"); you may not use this file except in compliance 9*efeef26fSAndrew Rist * with the License. You may obtain a copy of the License at 10*efeef26fSAndrew Rist * 11*efeef26fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*efeef26fSAndrew Rist * 13*efeef26fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*efeef26fSAndrew Rist * software distributed under the License is distributed on an 15*efeef26fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*efeef26fSAndrew Rist * KIND, either express or implied. See the License for the 17*efeef26fSAndrew Rist * specific language governing permissions and limitations 18*efeef26fSAndrew Rist * under the License. 19*efeef26fSAndrew Rist * 20*efeef26fSAndrew Rist *************************************************************/ 21*efeef26fSAndrew Rist 22*efeef26fSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_sw.hxx" 26cdf0e10cSrcweir #ifdef SW_DLLIMPLEMENTATION 27cdf0e10cSrcweir #undef SW_DLLIMPLEMENTATION 28cdf0e10cSrcweir #endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir #define _SVSTDARR_STRINGSSORTDTOR 33cdf0e10cSrcweir #define _SVSTDARR_USHORTSSORT 34cdf0e10cSrcweir #define _SVSTDARR_USHORTS 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir #include <redline.hxx> 38cdf0e10cSrcweir #include <tools/datetime.hxx> 39cdf0e10cSrcweir #include <vcl/msgbox.hxx> 40cdf0e10cSrcweir #ifndef _SVSTDARR_HXX 41cdf0e10cSrcweir #include <svl/svstdarr.hxx> 42cdf0e10cSrcweir #endif 43cdf0e10cSrcweir #include <svl/eitem.hxx> 44cdf0e10cSrcweir #include <sfx2/viewfrm.hxx> 45cdf0e10cSrcweir #include <sfx2/dispatch.hxx> 46cdf0e10cSrcweir #include <svx/ctredlin.hxx> 47cdf0e10cSrcweir #include <svx/postattr.hxx> 48cdf0e10cSrcweir #include <swtypes.hxx> 49cdf0e10cSrcweir #include <wrtsh.hxx> 50cdf0e10cSrcweir #ifndef _VIEW_HXX 51cdf0e10cSrcweir #include <view.hxx> 52cdf0e10cSrcweir #endif 53cdf0e10cSrcweir #include <swmodule.hxx> 54cdf0e10cSrcweir #include <swwait.hxx> 55cdf0e10cSrcweir #include <uitool.hxx> 56cdf0e10cSrcweir 57cdf0e10cSrcweir #ifndef _HELPID_H 58cdf0e10cSrcweir #include <helpid.h> 59cdf0e10cSrcweir #endif 60cdf0e10cSrcweir #ifndef _CMDID_H 61cdf0e10cSrcweir #include <cmdid.h> 62cdf0e10cSrcweir #endif 63cdf0e10cSrcweir #ifndef _MISC_HRC 64cdf0e10cSrcweir #include <misc.hrc> 65cdf0e10cSrcweir #endif 66cdf0e10cSrcweir #ifndef _REDLNDLG_HRC 67cdf0e10cSrcweir #include <redlndlg.hrc> 68cdf0e10cSrcweir #endif 69cdf0e10cSrcweir #ifndef _SHELLS_HRC 70cdf0e10cSrcweir #include <shells.hrc> 71cdf0e10cSrcweir #endif 72cdf0e10cSrcweir 73cdf0e10cSrcweir #include <vector> 74cdf0e10cSrcweir #ifndef _REDLNDLG_HXX 75cdf0e10cSrcweir #define _REDLNACCEPTDLG 76cdf0e10cSrcweir #include <redlndlg.hxx> 77cdf0e10cSrcweir #endif 78cdf0e10cSrcweir #include "swmodalredlineacceptdlg.hxx" 79cdf0e10cSrcweir 80cdf0e10cSrcweir #include <unomid.h> 81cdf0e10cSrcweir 82cdf0e10cSrcweir SwModalRedlineAcceptDlg(Window * pParent)83cdf0e10cSrcweirSwModalRedlineAcceptDlg::SwModalRedlineAcceptDlg(Window *pParent) : 84cdf0e10cSrcweir SfxModalDialog(pParent, SW_RES(DLG_MOD_REDLINE_ACCEPT)) 85cdf0e10cSrcweir { 86cdf0e10cSrcweir pImplDlg = new SwRedlineAcceptDlg(this, sal_True); 87cdf0e10cSrcweir 88cdf0e10cSrcweir pImplDlg->Initialize(GetExtraData()); 89cdf0e10cSrcweir pImplDlg->Activate(); // Zur Initialisierung der Daten 90cdf0e10cSrcweir 91cdf0e10cSrcweir FreeResource(); 92cdf0e10cSrcweir } 93cdf0e10cSrcweir 94cdf0e10cSrcweir /*------------------------------------------------------------------------ 95cdf0e10cSrcweir Beschreibung: 96cdf0e10cSrcweir ------------------------------------------------------------------------*/ 97cdf0e10cSrcweir ~SwModalRedlineAcceptDlg()98cdf0e10cSrcweirSwModalRedlineAcceptDlg::~SwModalRedlineAcceptDlg() 99cdf0e10cSrcweir { 100cdf0e10cSrcweir AcceptAll(sal_False); // Alles uebriggebliebene ablehnen 101cdf0e10cSrcweir pImplDlg->FillInfo(GetExtraData()); 102cdf0e10cSrcweir 103cdf0e10cSrcweir delete pImplDlg; 104cdf0e10cSrcweir } 105cdf0e10cSrcweir 106cdf0e10cSrcweir /*-------------------------------------------------------------------- 107cdf0e10cSrcweir Beschreibung: 108cdf0e10cSrcweir --------------------------------------------------------------------*/ 109cdf0e10cSrcweir Activate()110cdf0e10cSrcweirvoid SwModalRedlineAcceptDlg::Activate() 111cdf0e10cSrcweir { 112cdf0e10cSrcweir } 113cdf0e10cSrcweir 114cdf0e10cSrcweir /*------------------------------------------------------------------------ 115cdf0e10cSrcweir Beschreibung: 116cdf0e10cSrcweir ------------------------------------------------------------------------*/ 117cdf0e10cSrcweir Resize()118cdf0e10cSrcweirvoid SwModalRedlineAcceptDlg::Resize() 119cdf0e10cSrcweir { 120cdf0e10cSrcweir pImplDlg->Resize(); 121cdf0e10cSrcweir SfxModalDialog::Resize(); 122cdf0e10cSrcweir } 123cdf0e10cSrcweir 124cdf0e10cSrcweir /*------------------------------------------------------------------------ 125cdf0e10cSrcweir Beschreibung: 126cdf0e10cSrcweir ------------------------------------------------------------------------*/ 127cdf0e10cSrcweir AcceptAll(sal_Bool bAccept)128cdf0e10cSrcweirvoid SwModalRedlineAcceptDlg::AcceptAll( sal_Bool bAccept ) 129cdf0e10cSrcweir { 130cdf0e10cSrcweir SvxTPFilter* pFilterTP = pImplDlg->GetChgCtrl()->GetFilterPage(); 131cdf0e10cSrcweir 132cdf0e10cSrcweir if (pFilterTP->IsDate() || pFilterTP->IsAuthor() || 133cdf0e10cSrcweir pFilterTP->IsRange() || pFilterTP->IsAction()) 134cdf0e10cSrcweir { 135cdf0e10cSrcweir pFilterTP->CheckDate(sal_False); // Alle Filter abschalten 136cdf0e10cSrcweir pFilterTP->CheckAuthor(sal_False); 137cdf0e10cSrcweir pFilterTP->CheckRange(sal_False); 138cdf0e10cSrcweir pFilterTP->CheckAction(sal_False); 139cdf0e10cSrcweir pImplDlg->FilterChangedHdl(); 140cdf0e10cSrcweir } 141cdf0e10cSrcweir 142cdf0e10cSrcweir pImplDlg->CallAcceptReject( sal_False, bAccept ); 143cdf0e10cSrcweir } 144