merge the formfield patch from ooo-build
[ooovba.git] / ucb / source / ucp / file / filerror.hxx
blob3214ffd69bed5e544bec9dc9b3a112dfb060c0ac
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: filerror.hxx,v $
10 * $Revision: 1.10 $
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 ************************************************************************/
30 #ifndef _FILERROR_HXX_
32 namespace fileaccess {
34 // Error codes used to deliver the resulting exceptions
35 #define LOWEST_FREE_ERROR 72
37 #define TASKHANDLER_NO_ERROR 0
38 #define TASKHANDLER_UNSUPPORTED_COMMAND 1
39 #define TASKHANDLING_WRONG_SETPROPERTYVALUES_ARGUMENT 2
40 #define TASKHANDLING_WRONG_GETPROPERTYVALUES_ARGUMENT 3
41 #define TASKHANDLING_WRONG_OPEN_ARGUMENT 4
42 #define TASKHANDLING_WRONG_DELETE_ARGUMENT 5
43 #define TASKHANDLING_WRONG_TRANSFER_ARGUMENT 6
44 #define TASKHANDLING_WRONG_INSERT_ARGUMENT 7
46 #define TASKHANDLING_UNSUPPORTED_OPEN_MODE 8
48 #define TASKHANDLING_DELETED_STATE_IN_OPEN_COMMAND 9
49 #define TASKHANDLING_INSERTED_STATE_IN_OPEN_COMMAND 10
51 #define TASKHANDLING_OPEN_FILE_FOR_PAGING 11
52 #define TASKHANDLING_NOTCONNECTED_FOR_PAGING 12
53 #define TASKHANDLING_BUFFERSIZEEXCEEDED_FOR_PAGING 13
54 #define TASKHANDLING_IOEXCEPTION_FOR_PAGING 14
55 #define TASKHANDLING_READING_FILE_FOR_PAGING 15
57 #define TASKHANDLING_OPEN_FOR_INPUTSTREAM 16
58 #define TASKHANDLING_OPEN_FOR_STREAM 17
59 #define TASKHANDLING_OPEN_FOR_DIRECTORYLISTING 18
61 #define TASKHANDLING_NOFRESHINSERT_IN_INSERT_COMMAND 22
62 #define TASKHANDLING_NONAMESET_INSERT_COMMAND 23
63 #define TASKHANDLING_NOCONTENTTYPE_INSERT_COMMAND 24
65 #define TASKHANDLING_ANYOTHER_WRITE 25 // not used
66 #define TASKHANDLING_NO_OPEN_FILE_FOR_OVERWRITE 26
67 #define TASKHANDLING_NO_OPEN_FILE_FOR_WRITE 27
68 #define TASKHANDLING_NOTCONNECTED_FOR_WRITE 28
69 #define TASKHANDLING_BUFFERSIZEEXCEEDED_FOR_WRITE 29
70 #define TASKHANDLING_IOEXCEPTION_FOR_WRITE 30
71 #define TASKHANDLING_FILEIOERROR_FOR_WRITE 31
72 #define TASKHANDLING_FILEIOERROR_FOR_NO_SPACE 71
73 #define TASKHANDLING_FILESIZE_FOR_WRITE 32
74 #define TASKHANDLING_INPUTSTREAM_FOR_WRITE 33
75 #define TASKHANDLING_NOREPLACE_FOR_WRITE 34
76 #define TASKHANDLING_ENSUREDIR_FOR_WRITE 35
78 #define TASKHANDLING_FOLDER_EXISTS_MKDIR 69
79 #define TASKHANDLING_INVALID_NAME_MKDIR 70
80 #define TASKHANDLING_CREATEDIRECTORY_MKDIR 36
82 #define TASKHANDLING_NOSUCHFILEORDIR_FOR_REMOVE 38
83 #define TASKHANDLING_VALIDFILESTATUS_FOR_REMOVE 39
84 #define TASKHANDLING_OPENDIRECTORY_FOR_REMOVE 40
85 #define TASKHANDLING_DELETEFILE_FOR_REMOVE 41
86 #define TASKHANDLING_DELETEDIRECTORY_FOR_REMOVE 42
87 #define TASKHANDLING_FILETYPE_FOR_REMOVE 43
88 #define TASKHANDLING_VALIDFILESTATUSWHILE_FOR_REMOVE 44
89 #define TASKHANDLING_DIRECTORYEXHAUSTED_FOR_REMOVE 45
91 #define TASKHANDLING_TRANSFER_ACCESSINGROOT 46
92 #define TASKHANDLING_TRANSFER_INVALIDSCHEME 47
93 #define TASKHANDLING_TRANSFER_INVALIDURL 48
94 #define TASKHANDLING_TRANSFER_DESTFILETYPE 50
95 #define TASKHANDLING_TRANSFER_BY_MOVE_SOURCE 51
96 #define TASKHANDLING_TRANSFER_BY_MOVE_SOURCESTAT 52
97 #define TASKHANDLING_KEEPERROR_FOR_MOVE 53
98 #define TASKHANDLING_NAMECLASH_FOR_MOVE 54
99 #define TASKHANDLING_NAMECLASHMOVE_FOR_MOVE 55
100 #define TASKHANDLING_NAMECLASHSUPPORT_FOR_MOVE 56
101 #define TASKHANDLING_OVERWRITE_FOR_MOVE 57
102 #define TASKHANDLING_RENAME_FOR_MOVE 58
103 #define TASKHANDLING_RENAMEMOVE_FOR_MOVE 59
105 #define TASKHANDLING_TRANSFER_BY_COPY_SOURCE 60
106 #define TASKHANDLING_TRANSFER_BY_COPY_SOURCESTAT 61
107 #define TASKHANDLING_KEEPERROR_FOR_COPY 62
108 #define TASKHANDLING_OVERWRITE_FOR_COPY 63
109 #define TASKHANDLING_RENAME_FOR_COPY 64
110 #define TASKHANDLING_RENAMEMOVE_FOR_COPY 65
111 #define TASKHANDLING_NAMECLASH_FOR_COPY 66
112 #define TASKHANDLING_NAMECLASHMOVE_FOR_COPY 67
113 #define TASKHANDLING_NAMECLASHSUPPORT_FOR_COPY 68
117 #endif