update dev300-m57
[ooovba.git] / sysui / source / win32 / misc / WinImplHelper.hxx
blobc9aa069f38ea6b5394628bc9af3e2e2979af35ca
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: WinImplHelper.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #ifndef _WINIMPLHELPER_HXX_
33 #define _WINIMPLHELPER_HXX_
35 //------------------------------------------------------------------------
36 // includes
37 //------------------------------------------------------------------------
39 #include <sal/types.h>
41 #ifndef _RTL_USTRING_HXX_
42 #include <rtl/ustring>
43 #endif
45 #include <windows.h>
46 #include <com/sun/star/uno/Any.hxx>
47 #include <com/sun/star/lang/IllegalArgumentException.hpp>
49 //------------------------------------------------------------------------
50 // deklarations
51 //------------------------------------------------------------------------
53 sal_Bool SAL_CALL IsWin2000( );
55 // set actions
56 void SAL_CALL ListboxAddItem(
57 HWND hwnd, const ::com::sun::star::uno::Any& aItem, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
58 throw( ::com::sun::star::lang::IllegalArgumentException );
60 void SAL_CALL ListboxAddItems(
61 HWND hwnd, const ::com::sun::star::uno::Any& aItemList, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
62 throw( ::com::sun::star::lang:: IllegalArgumentException );
64 void SAL_CALL ListboxDeleteItem(
65 HWND hwnd, const ::com::sun::star::uno::Any& aPosition, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
66 throw( ::com::sun::star::lang::IllegalArgumentException );
68 void SAL_CALL ListboxDeleteItems(
69 HWND hwnd, const ::com::sun::star::uno::Any& aUnused, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
70 throw( ::com::sun::star::lang::IllegalArgumentException );
72 void SAL_CALL ListboxSetSelectedItem(
73 HWND hwnd, const ::com::sun::star::uno::Any& aPosition, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
74 throw( ::com::sun::star::lang::IllegalArgumentException );
76 // get actions
77 ::com::sun::star::uno::Any SAL_CALL ListboxGetItems( HWND hwnd );
78 ::com::sun::star::uno::Any SAL_CALL ListboxGetSelectedItem( HWND hwnd );
80 // checkbox helper functions
81 ::com::sun::star::uno::Any SAL_CALL CheckboxGetState( HWND hwnd );
83 void SAL_CALL CheckboxSetState(
84 HWND hwnd, const ::com::sun::star::uno::Any& aState, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rXInterface, sal_Int16 aArgPos )
85 throw( ::com::sun::star::lang::IllegalArgumentException );
87 // calculates the length of '\0' separated and '\0\0'
88 // ending strings used in some Win32 functions
89 // e.g. Filter\0*.txt\0\0
90 // the returned length excludes the last '\0'
91 sal_uInt32 SAL_CALL _wcslenex( const sal_Unicode* pStr );
93 #endif