Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / redcom.hxx
blobdd48d92d8fc8cc277475e08f1fe4611299d5bfd4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef SC_REDCOM_HXX
21 #define SC_REDCOM_HXX
23 #include "chgtrack.hxx"
25 class ScDocShell;
26 class AbstractSvxPostItDialog;
28 class ScRedComDialog
30 private:
32 ScChangeAction *pChangeAction;
33 ScDocShell *pDocShell;
34 OUString aComment;
35 AbstractSvxPostItDialog* pDlg;
37 DECL_LINK( PrevHdl, AbstractSvxPostItDialog* );
38 DECL_LINK( NextHdl, AbstractSvxPostItDialog* );
40 protected:
42 void ReInit(ScChangeAction *);
43 void SelectCell();
45 ScChangeAction *FindPrev(ScChangeAction *pAction);
46 ScChangeAction *FindNext(ScChangeAction *pAction);
48 public:
50 ScRedComDialog( Window* pParent, const SfxItemSet& rCoreSet,
51 ScDocShell *,ScChangeAction *,sal_Bool bPrevNext = false);
52 ~ScRedComDialog();
54 short Execute();
57 #endif
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */