/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" #ifdef SW_DLLIMPLEMENTATION #undef SW_DLLIMPLEMENTATION #endif #define _SVSTDARR_STRINGSSORTDTOR #define _SVSTDARR_USHORTSSORT #define _SVSTDARR_USHORTS #include #include #include #ifndef _SVSTDARR_HXX #include #endif #include #include #include #include #include #include #include #ifndef _VIEW_HXX #include #endif #include #include #include #ifndef _HELPID_H #include #endif #ifndef _CMDID_H #include #endif #ifndef _MISC_HRC #include #endif #ifndef _REDLNDLG_HRC #include #endif #ifndef _SHELLS_HRC #include #endif #include #ifndef _REDLNDLG_HXX #define _REDLNACCEPTDLG #include #endif #include "swmodalredlineacceptdlg.hxx" #include SwModalRedlineAcceptDlg::SwModalRedlineAcceptDlg(Window *pParent) : SfxModalDialog(pParent, SW_RES(DLG_MOD_REDLINE_ACCEPT)) { pImplDlg = new SwRedlineAcceptDlg(this, sal_True); pImplDlg->Initialize(GetExtraData()); pImplDlg->Activate(); // Zur Initialisierung der Daten FreeResource(); } /*------------------------------------------------------------------------ Beschreibung: ------------------------------------------------------------------------*/ SwModalRedlineAcceptDlg::~SwModalRedlineAcceptDlg() { AcceptAll(sal_False); // Alles uebriggebliebene ablehnen pImplDlg->FillInfo(GetExtraData()); delete pImplDlg; } /*-------------------------------------------------------------------- Beschreibung: --------------------------------------------------------------------*/ void SwModalRedlineAcceptDlg::Activate() { } /*------------------------------------------------------------------------ Beschreibung: ------------------------------------------------------------------------*/ void SwModalRedlineAcceptDlg::Resize() { pImplDlg->Resize(); SfxModalDialog::Resize(); } /*------------------------------------------------------------------------ Beschreibung: ------------------------------------------------------------------------*/ void SwModalRedlineAcceptDlg::AcceptAll( sal_Bool bAccept ) { SvxTPFilter* pFilterTP = pImplDlg->GetChgCtrl()->GetFilterPage(); if (pFilterTP->IsDate() || pFilterTP->IsAuthor() || pFilterTP->IsRange() || pFilterTP->IsAction()) { pFilterTP->CheckDate(sal_False); // Alle Filter abschalten pFilterTP->CheckAuthor(sal_False); pFilterTP->CheckRange(sal_False); pFilterTP->CheckAction(sal_False); pImplDlg->FilterChangedHdl(); } pImplDlg->CallAcceptReject( sal_False, bAccept ); }