Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / sharedocdlg.hxx
blobbd76d8ebae022ecbd6add9b3dd47c1891b4002ec
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_SHAREDOCDLG_HXX
21 #define SC_SHAREDOCDLG_HXX
23 #include <vcl/button.hxx>
24 #include <vcl/dialog.hxx>
25 #include <vcl/fixed.hxx>
26 #include <svtools/simptabl.hxx>
28 class ScViewData;
29 class ScDocShell;
32 //=============================================================================
33 // class ScShareDocumentDlg
34 //=============================================================================
36 class ScShareDocumentDlg : public ModalDialog
38 private:
39 CheckBox* m_pCbShare;
40 FixedText* m_pFtWarning;
41 SvSimpleTable* m_pLbUsers;
43 OUString m_aStrNoUserData;
44 OUString m_aStrUnknownUser;
45 OUString m_aStrExclusiveAccess;
47 ScViewData* mpViewData;
48 ScDocShell* mpDocShell;
50 DECL_LINK( ToggleHandle, void* );
52 public:
53 ScShareDocumentDlg( Window* pParent, ScViewData* pViewData );
54 ~ScShareDocumentDlg();
56 bool IsShareDocumentChecked() const;
57 void UpdateView();
60 #endif
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */