merge the formfield patch from ooo-build
[ooovba.git] / svx / inc / svxerr.hxx
blob41bd5f6d58daf287ae99b0a7bc31b452869cb5b4
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: svxerr.hxx,v $
10 * $Revision: 1.8 $
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 _SVXERR_HXX
31 #define _SVXERR_HXX
33 // include ---------------------------------------------------------------
35 #include <tools/errcode.hxx>
37 // define ----------------------------------------------------------------
39 #define ERRCODE_SVX_LINGU_THESAURUSNOTEXISTS (1UL | ERRCODE_AREA_SVX | \
40 ERRCODE_CLASS_NOTEXISTS)
42 #define ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS (2UL | ERRCODE_AREA_SVX)
44 #define ERRCODE_SVX_LINGU_LINGUNOTEXISTS (3UL | ERRCODE_AREA_SVX | \
45 ERRCODE_CLASS_NOTEXISTS )
46 #define ERRCODE_SVX_LINGU_HYPHENNOTEXISTS (4UL | ERRCODE_AREA_SVX | \
47 ERRCODE_CLASS_NOTEXISTS )
48 #define ERRCODE_SVX_LINGU_DICT_NOTREADABLE (5UL | ERRCODE_AREA_SVX | \
49 ERRCODE_CLASS_READ )
50 #define ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE (6UL | ERRCODE_AREA_SVX | \
51 ERRCODE_CLASS_WRITE )
53 #define ERRCODE_SVX_GRAPHIC_NOTREADABLE (7UL | ERRCODE_AREA_SVX | \
54 ERRCODE_CLASS_READ )
55 #define ERRCODE_SVX_GRAPHIC_WRONG_FILEFORMAT (8UL | ERRCODE_AREA_SVX | \
56 ERRCODE_CLASS_READ )
57 #define ERRCODE_SVX_LINGU_NOLANGUAGE (9UL | ERRCODE_AREA_SVX | \
58 ERRCODE_CLASS_NOTEXISTS )
59 #define ERRCODE_SVX_FORMS_NOIOSERVICES (10UL | ERRCODE_AREA_SVX )
60 #define ERRCODE_SVX_FORMS_READWRITEFAILED (11UL | ERRCODE_AREA_SVX )
62 #define ERRCODE_SVX_BULLETITEM_NOBULLET (12UL | ERRCODE_AREA_SVX )
64 #define ERRCODE_SVX_MODIFIED_VBASIC_STORAGE (13UL | ERRCODE_AREA_SVX \
65 | ERRCODE_WARNING_MASK \
66 | ERRCODE_CLASS_WRITE )
68 #define ERRCODE_SVX_VBASIC_STORAGE_EXIST (14UL | ERRCODE_AREA_SVX \
69 | ERRCODE_WARNING_MASK \
70 | ERRCODE_CLASS_WRITE )
72 /** Error message: "Wrong password." */
73 #define ERRCODE_SVX_WRONGPASS (15UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_NONE)
75 /** Error message: "Read error. Unsupported encryption method." */
76 #define ERRCODE_SVX_READ_FILTER_CRYPT (16UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ)
78 /** Error message: "Read error. Passwort encrypted Powerpoint documents..." */
79 #define ERRCODE_SVX_READ_FILTER_PPOINT (17UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ)
81 /** Error message: "Warning. Passwort protection is not suppported when ..." */
82 #define ERRCODE_SVX_EXPORT_FILTER_CRYPT (18UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_EXPORT | ERRCODE_WARNING_MASK)
85 // both codes will be used twice : with ERRCODE_CLASS_READ- and ERRCODE_CLASS_WRITE-bits
86 #define ERRCTX_SVX_LINGU_THESAURUS 1
87 #define ERRCTX_SVX_LINGU_SPELLING 2
88 #define ERRCTX_SVX_LINGU_HYPHENATION 3
89 #define ERRCTX_SVX_LINGU_DICTIONARY 4
90 #define ERRCTX_SVX_BACKGROUND 5
91 #define ERRCTX_SVX_IMPORT_GRAPHIC 6
93 // class SvxErrorHandler -------------------------------------------------
95 #ifndef __RSC
97 #include <svtools/ehdl.hxx>
98 #include "svx/svxdllapi.h"
100 class SVX_DLLPUBLIC SvxErrorHandler : private SfxErrorHandler
102 public:
103 SvxErrorHandler();
104 static void Get();
107 #endif
110 #endif