merge the formfield patch from ooo-build
[ooovba.git] / registry / source / regkey.hxx
blobb200e692c6c8288680058aa98fc597b0e515c7d9
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: regkey.hxx,v $
10 * $Revision: 1.3 $
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 ************************************************************************/
31 #ifndef INCLUDED_REGISTRY_SOURCE_REGKEY_HXX
32 #define INCLUDED_REGISTRY_SOURCE_REGKEY_HXX
34 #include "sal/config.h"
35 #include "registry/regtype.h"
36 #include "rtl/ustring.h"
37 #include "sal/types.h"
39 extern "C" {
41 void REGISTRY_CALLTYPE acquireKey(RegKeyHandle);
42 void REGISTRY_CALLTYPE releaseKey(RegKeyHandle);
43 sal_Bool REGISTRY_CALLTYPE isKeyReadOnly(RegKeyHandle);
44 RegError REGISTRY_CALLTYPE getKeyName(RegKeyHandle, rtl_uString**);
45 RegError REGISTRY_CALLTYPE createKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
46 RegError REGISTRY_CALLTYPE openKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
47 RegError REGISTRY_CALLTYPE openSubKeys(
48 RegKeyHandle, rtl_uString*, RegKeyHandle**, sal_uInt32*);
49 RegError REGISTRY_CALLTYPE closeSubKeys(RegKeyHandle*, sal_uInt32);
50 RegError REGISTRY_CALLTYPE deleteKey(RegKeyHandle, rtl_uString*);
51 RegError REGISTRY_CALLTYPE closeKey(RegKeyHandle);
52 RegError REGISTRY_CALLTYPE setValue(
53 RegKeyHandle, rtl_uString*, RegValueType, RegValue, sal_uInt32);
54 RegError REGISTRY_CALLTYPE setLongListValue(
55 RegKeyHandle, rtl_uString*, sal_Int32*, sal_uInt32);
56 RegError REGISTRY_CALLTYPE setStringListValue(
57 RegKeyHandle, rtl_uString*, sal_Char**, sal_uInt32);
58 RegError REGISTRY_CALLTYPE setUnicodeListValue(
59 RegKeyHandle, rtl_uString*, sal_Unicode**, sal_uInt32);
60 RegError REGISTRY_CALLTYPE getValueInfo(
61 RegKeyHandle, rtl_uString*, RegValueType*, sal_uInt32*);
62 RegError REGISTRY_CALLTYPE getValue(RegKeyHandle, rtl_uString*, RegValue);
63 RegError REGISTRY_CALLTYPE getLongListValue(
64 RegKeyHandle, rtl_uString*, sal_Int32**, sal_uInt32*);
65 RegError REGISTRY_CALLTYPE getStringListValue(
66 RegKeyHandle, rtl_uString*, sal_Char***, sal_uInt32*);
67 RegError REGISTRY_CALLTYPE getUnicodeListValue(
68 RegKeyHandle, rtl_uString*, sal_Unicode***, sal_uInt32*);
69 RegError REGISTRY_CALLTYPE freeValueList(RegValueType, RegValue, sal_uInt32);
70 RegError REGISTRY_CALLTYPE createLink(RegKeyHandle, rtl_uString*, rtl_uString*);
71 RegError REGISTRY_CALLTYPE deleteLink(RegKeyHandle, rtl_uString*);
72 RegError REGISTRY_CALLTYPE getKeyType(RegKeyHandle, rtl_uString*, RegKeyType*);
73 RegError REGISTRY_CALLTYPE getLinkTarget(
74 RegKeyHandle, rtl_uString*, rtl_uString**);
75 RegError REGISTRY_CALLTYPE getResolvedKeyName(
76 RegKeyHandle, rtl_uString*, sal_Bool, rtl_uString**);
77 RegError REGISTRY_CALLTYPE getKeyNames(
78 RegKeyHandle, rtl_uString*, rtl_uString***, sal_uInt32*);
79 RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString**, sal_uInt32);
83 #endif