Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / linkarea.hxx
blob2bf86f07a0ce66e79151aac3f28a1e5351d023fe
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_LINKAREA_HXX
21 #define SC_LINKAREA_HXX
23 #include <vcl/dialog.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/field.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <svtools/stdctrl.hxx>
30 #include <svtools/inettbc.hxx>
32 namespace sfx2 { class DocumentInserter; }
33 namespace sfx2 { class FileDialogHelper; }
35 class ScDocShell;
37 //------------------------------------------------------------------------
39 class ScLinkedAreaDlg : public ModalDialog
41 private:
42 SvtURLBox* m_pCbUrl;
43 PushButton* m_pBtnBrowse;
44 ListBox* m_pLbRanges;
45 CheckBox* m_pBtnReload;
46 NumericField* m_pNfDelay;
47 FixedText* m_pFtSeconds;
48 OKButton* m_pBtnOk;
50 ScDocShell* pSourceShell;
51 sfx2::DocumentInserter* pDocInserter;
53 SfxObjectShellRef aSourceRef;
55 DECL_LINK(FileHdl, void *);
56 DECL_LINK(BrowseHdl, void *);
57 DECL_LINK(RangeHdl, void *);
58 DECL_LINK(ReloadHdl, void *);
59 DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* );
61 void UpdateSourceRanges();
62 void UpdateEnable();
63 void LoadDocument( const OUString& rFile, const OUString& rFilter,
64 const OUString& rOptions );
66 public:
67 ScLinkedAreaDlg( Window* pParent );
68 ~ScLinkedAreaDlg();
70 void InitFromOldLink( const OUString& rFile, const OUString& rFilter,
71 const OUString& rOptions, const OUString& rSource,
72 sal_uLong nRefresh );
74 virtual short Execute(); // overwritten to set dialog parent
76 OUString GetURL();
77 OUString GetFilter(); // may be empty
78 OUString GetOptions(); // filter options
79 OUString GetSource(); // separated by ";"
80 sal_uLong GetRefresh(); // 0 if disabled
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */