fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / DialogListBox.hxx
blob640124ecd0c00d7866656bb11613a097ff5a50dc
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 .
19 #ifndef SD_DIALOGLISTBOX_HXX
20 #define SD_DIALOGLISTBOX_HXX
22 #include <vcl/ctrl.hxx>
23 #include <vcl/scrbar.hxx>
25 namespace sd
28 class DialogListBox : public Control
30 private:
31 ScrollBar* mpHScrollBar;
32 ScrollBar* mpVScrollBar;
33 ScrollBarBox* mpScrollBarBox;
34 ::Window* mpChild;
35 bool mbVScroll;
36 bool mbHScroll;
37 bool mbAutoHScroll;
38 Size maMinSize, maInnerSize;
40 protected:
41 virtual void GetFocus();
42 virtual void StateChanged( StateChangedType nType );
44 long Notify( NotifyEvent& rNEvt );
46 void ImplResizeControls();
47 void ImplCheckScrollBars();
48 void ImplInitScrollBars();
49 void ImplResizeChild();
51 DECL_LINK(ScrollBarHdl, void *);
53 public:
54 DialogListBox( ::Window* pParent, WinBits nWinStyle );
55 ~DialogListBox();
57 void SetChildWindow( ::Window* pChild, const Size& rMinSize );
59 ::Window* GetPreferredKeyInputWindow();
60 void Resize();
64 } // namespace sd
66 // SD_DIALOGLISTBOX_HXX
67 #endif
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */