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 _SVXERR_HXX
29 : : #define _SVXERR_HXX
30 : :
31 : : #include <tools/errcode.hxx>
32 : :
33 : : // define ----------------------------------------------------------------
34 : :
35 : : #define ERRCODE_SVX_LINGU_THESAURUSNOTEXISTS (1UL | ERRCODE_AREA_SVX | \
36 : : ERRCODE_CLASS_NOTEXISTS)
37 : :
38 : : #define ERRCODE_SVX_LINGU_LINGUNOTEXISTS (3UL | ERRCODE_AREA_SVX | \
39 : : ERRCODE_CLASS_NOTEXISTS )
40 : : #define ERRCODE_SVX_LINGU_HYPHENNOTEXISTS (4UL | ERRCODE_AREA_SVX | \
41 : : ERRCODE_CLASS_NOTEXISTS )
42 : : #define ERRCODE_SVX_LINGU_DICT_NOTREADABLE (5UL | ERRCODE_AREA_SVX | \
43 : : ERRCODE_CLASS_READ )
44 : : #define ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE (6UL | ERRCODE_AREA_SVX | \
45 : : ERRCODE_CLASS_WRITE )
46 : :
47 : : #define ERRCODE_SVX_GRAPHIC_NOTREADABLE (7UL | ERRCODE_AREA_SVX | \
48 : : ERRCODE_CLASS_READ )
49 : :
50 : : #define ERRCODE_SVX_LINGU_NOLANGUAGE (9UL | ERRCODE_AREA_SVX | \
51 : : ERRCODE_CLASS_NOTEXISTS )
52 : : #define ERRCODE_SVX_FORMS_NOIOSERVICES (10UL | ERRCODE_AREA_SVX )
53 : : #define ERRCODE_SVX_FORMS_READWRITEFAILED (11UL | ERRCODE_AREA_SVX )
54 : :
55 : : #define ERRCODE_SVX_BULLETITEM_NOBULLET (12UL | ERRCODE_AREA_SVX )
56 : :
57 : : #define ERRCODE_SVX_MODIFIED_VBASIC_STORAGE (13UL | ERRCODE_AREA_SVX \
58 : : | ERRCODE_WARNING_MASK \
59 : : | ERRCODE_CLASS_WRITE )
60 : :
61 : : #define ERRCODE_SVX_VBASIC_STORAGE_EXIST (14UL | ERRCODE_AREA_SVX \
62 : : | ERRCODE_WARNING_MASK \
63 : : | ERRCODE_CLASS_WRITE )
64 : :
65 : : /** Error message: "Wrong password." */
66 : : #define ERRCODE_SVX_WRONGPASS (15UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_NONE)
67 : :
68 : : /** Error message: "Read error. Unsupported encryption method." */
69 : : #define ERRCODE_SVX_READ_FILTER_CRYPT (16UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ)
70 : :
71 : : /** Error message: "Read error. Passwort encrypted Powerpoint documents..." */
72 : : #define ERRCODE_SVX_READ_FILTER_PPOINT (17UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ)
73 : :
74 : : /** Error message: "Warning. Passwort protection is not suppported when ..." */
75 : : #define ERRCODE_SVX_EXPORT_FILTER_CRYPT (18UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_EXPORT | ERRCODE_WARNING_MASK)
76 : :
77 : :
78 : : // both codes will be used twice : with ERRCODE_CLASS_READ- and ERRCODE_CLASS_WRITE-bits
79 : : #define ERRCTX_SVX_LINGU_THESAURUS 1
80 : : #define ERRCTX_SVX_LINGU_SPELLING 2
81 : : #define ERRCTX_SVX_LINGU_HYPHENATION 3
82 : : #define ERRCTX_SVX_LINGU_DICTIONARY 4
83 : : #define ERRCTX_SVX_BACKGROUND 5
84 : : #define ERRCTX_SVX_IMPORT_GRAPHIC 6
85 : :
86 : : // class SvxErrorHandler -------------------------------------------------
87 : :
88 : : #ifndef __RSC
89 : :
90 : : #include <svtools/ehdl.hxx>
91 : : #include "svx/svxdllapi.h"
92 : :
93 [ - + ]: 169 : class SVX_DLLPUBLIC SvxErrorHandler : private SfxErrorHandler
94 : : {
95 : : public:
96 : : SvxErrorHandler();
97 : : static void ensure();
98 : : };
99 : :
100 : : #endif
101 : :
102 : :
103 : : #endif
104 : :
105 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|