fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sc / source / ui / inc / tpusrlst.hxx
blobe40af4a1addd293ae3492a9964b0486bd2ff7d90
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_TPUSRLST_HXX
21 #define SC_TPUSRLST_HXX
23 #include <sfx2/tabdlg.hxx>
24 #include <vcl/fixed.hxx>
25 #include <vcl/lstbox.hxx>
26 #include <svtools/svmedit.hxx>
28 //========================================================================
30 class ScUserList;
31 class ScDocument;
32 class ScViewData;
33 class ScRangeUtil;
35 class ScTpUserLists : public SfxTabPage
37 public:
38 static SfxTabPage* Create ( Window* pParent,
39 const SfxItemSet& rAttrSet );
40 virtual sal_Bool FillItemSet ( SfxItemSet& rCoreAttrs );
41 virtual void Reset ( const SfxItemSet& rCoreAttrs );
42 using SfxTabPage::DeactivatePage;
43 virtual int DeactivatePage ( SfxItemSet* pSet = NULL );
45 private:
46 ScTpUserLists( Window* pParent,
47 const SfxItemSet& rArgSet );
48 ~ScTpUserLists();
50 private:
51 FixedText aFtLists;
52 ListBox aLbLists;
53 FixedText aFtEntries;
54 MultiLineEdit aEdEntries;
55 FixedText aFtCopyFrom;
56 Edit aEdCopyFrom;
57 PushButton aBtnNew;
58 PushButton aBtnAdd;
59 PushButton aBtnRemove;
60 PushButton aBtnCopy;
62 const String aStrQueryRemove;
63 const String aStrNew;
64 const String aStrCancel;
65 const String aStrAdd;
66 const String aStrModify;
67 const String aStrCopyList;
68 const String aStrCopyFrom;
69 const String aStrCopyErr;
71 const sal_uInt16 nWhichUserLists;
72 ScUserList* pUserLists;
74 ScDocument* pDoc;
75 ScViewData* pViewData;
76 ScRangeUtil* pRangeUtil;
77 String aStrSelectedArea;
79 sal_Bool bModifyMode;
80 sal_Bool bCancelMode;
81 sal_Bool bCopyDone;
82 sal_uInt16 nCancelPos;
84 #ifdef _TPUSRLST_CXX
85 private:
86 void Init ();
87 sal_uInt16 UpdateUserListBox ();
88 void UpdateEntries ( size_t nList );
89 void MakeListStr ( String& rListStr );
90 void AddNewList ( const String& rEntriesStr );
91 void RemoveList ( size_t nList );
92 void ModifyList ( sal_uInt16 nSelList,
93 const String& rEntriesStr );
94 void CopyListFromArea ( const ScRefAddress& rStartPos,
95 const ScRefAddress& rEndPos );
97 // Handler:
98 DECL_LINK( LbSelectHdl, ListBox* );
99 DECL_LINK( BtnClickHdl, PushButton* );
100 DECL_LINK( EdEntriesModHdl, MultiLineEdit* );
101 #endif
106 #endif // SC_TPUSRLST_HXX
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */