1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SVXERR_HXX 24 #define _SVXERR_HXX 25 26 // include --------------------------------------------------------------- 27 28 #include <tools/errcode.hxx> 29 30 // define ---------------------------------------------------------------- 31 32 #define ERRCODE_SVX_LINGU_THESAURUSNOTEXISTS (1UL | ERRCODE_AREA_SVX | \ 33 ERRCODE_CLASS_NOTEXISTS) 34 35 // moved to editeng lib 36 //#define ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS (2UL | ERRCODE_AREA_SVX) 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 // moved to editeng lib 50 //#define ERRCODE_SVX_GRAPHIC_WRONG_FILEFORMAT (8UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ ) 51 52 #define ERRCODE_SVX_LINGU_NOLANGUAGE (9UL | ERRCODE_AREA_SVX | \ 53 ERRCODE_CLASS_NOTEXISTS ) 54 #define ERRCODE_SVX_FORMS_NOIOSERVICES (10UL | ERRCODE_AREA_SVX ) 55 #define ERRCODE_SVX_FORMS_READWRITEFAILED (11UL | ERRCODE_AREA_SVX ) 56 57 #define ERRCODE_SVX_BULLETITEM_NOBULLET (12UL | ERRCODE_AREA_SVX ) 58 59 #define ERRCODE_SVX_MODIFIED_VBASIC_STORAGE (13UL | ERRCODE_AREA_SVX \ 60 | ERRCODE_WARNING_MASK \ 61 | ERRCODE_CLASS_WRITE ) 62 63 #define ERRCODE_SVX_VBASIC_STORAGE_EXIST (14UL | ERRCODE_AREA_SVX \ 64 | ERRCODE_WARNING_MASK \ 65 | ERRCODE_CLASS_WRITE ) 66 67 /** Error message: "Wrong password." */ 68 #define ERRCODE_SVX_WRONGPASS (15UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_NONE) 69 70 /** Error message: "Read error. Unsupported encryption method." */ 71 #define ERRCODE_SVX_READ_FILTER_CRYPT (16UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ) 72 73 /** Error message: "Read error. Password encrypted PowerPoint documents..." */ 74 #define ERRCODE_SVX_READ_FILTER_PPOINT (17UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_READ) 75 76 /** Error message: "Warning. Passwort protection is not suppported when ..." */ 77 #define ERRCODE_SVX_EXPORT_FILTER_CRYPT (18UL | ERRCODE_AREA_SVX | ERRCODE_CLASS_EXPORT | ERRCODE_WARNING_MASK) 78 79 80 // both codes will be used twice : with ERRCODE_CLASS_READ- and ERRCODE_CLASS_WRITE-bits 81 #define ERRCTX_SVX_LINGU_THESAURUS 1 82 #define ERRCTX_SVX_LINGU_SPELLING 2 83 #define ERRCTX_SVX_LINGU_HYPHENATION 3 84 #define ERRCTX_SVX_LINGU_DICTIONARY 4 85 #define ERRCTX_SVX_BACKGROUND 5 86 #define ERRCTX_SVX_IMPORT_GRAPHIC 6 87 88 // class SvxErrorHandler ------------------------------------------------- 89 90 #ifndef __RSC 91 92 #include <svtools/ehdl.hxx> 93 #include "svx/svxdllapi.h" 94 95 class SVX_DLLPUBLIC SvxErrorHandler : private SfxErrorHandler 96 { 97 public: 98 SvxErrorHandler(); 99 static void Get(); 100 }; 101 102 #endif 103 104 105 #endif 106 107