Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef ACCESSIBILITY_HELPER_COMBOLISTBOXHELPER_HXX
29 : : #define ACCESSIBILITY_HELPER_COMBOLISTBOXHELPER_HXX
30 : :
31 : : #include <com/sun/star/uno/Reference.hxx>
32 : :
33 : : #include <tools/string.hxx>
34 : : #include <tools/wintypes.hxx>
35 : :
36 : : namespace com { namespace sun { namespace star { namespace datatransfer { namespace clipboard {
37 : : class XClipboard;
38 : : } } } } }
39 : :
40 : : class Point;
41 : : class Rectangle;
42 : : class Window;
43 : : namespace accessibility
44 : : {
45 : 16 : class IComboListBoxHelper
46 : : {
47 : : public:
48 : : virtual ~IComboListBoxHelper() = 0;
49 : :
50 : : virtual String GetEntry( sal_uInt16 nPos ) const = 0;
51 : : virtual Rectangle GetDropDownPosSizePixel( ) const = 0;
52 : : virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
53 : : virtual Rectangle GetWindowExtentsRelative( Window* pRelativeWindow ) = 0;
54 : : virtual sal_Bool IsActive() const = 0;
55 : : virtual sal_Bool IsEntryVisible( sal_uInt16 nPos ) const = 0;
56 : : virtual sal_uInt16 GetDisplayLineCount() const = 0;
57 : : virtual void GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines ) const = 0;
58 : : virtual WinBits GetStyle() const = 0;
59 : : virtual sal_Bool IsMultiSelectionEnabled() const = 0;
60 : : virtual sal_uInt16 GetTopEntry() const = 0;
61 : : virtual sal_Bool IsEntryPosSelected( sal_uInt16 nPos ) const = 0;
62 : : virtual sal_uInt16 GetEntryCount() const = 0;
63 : : virtual void Select() = 0;
64 : : virtual void SelectEntryPos( sal_uInt16 nPos, sal_Bool bSelect = sal_True ) = 0;
65 : : virtual sal_uInt16 GetSelectEntryCount() const = 0;
66 : : virtual void SetNoSelection() = 0;
67 : : virtual sal_uInt16 GetSelectEntryPos( sal_uInt16 nSelIndex = 0 ) const = 0;
68 : : virtual sal_Bool IsInDropDown() const = 0;
69 : : virtual Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const = 0;
70 : : virtual long GetIndexForPoint( const Point& rPoint, sal_uInt16& nPos ) const = 0;
71 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >
72 : : GetClipboard() = 0;
73 : : };
74 : : }
75 : : #endif // ACCESSIBILITY_HELPER_COMBOLISTBOXHELPER_HXX
76 : :
77 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
78 : :
|