1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SVX_SVXERR_HXX
20 #define INCLUDED_SVX_SVXERR_HXX
22 #include <vcl/errcode.hxx>
23 #include <svtools/ehdl.hxx>
24 #include <svx/svxdllapi.h>
26 #define ERRCODE_SVX_LINGU_LINGUNOTEXISTS ErrCode( ErrCodeArea::Svx, ErrCodeClass::NotExists, 3 )
27 #define ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE ErrCode( ErrCodeArea::Svx, ErrCodeClass::Write, 6 )
28 #define ERRCODE_SVX_GRAPHIC_NOTREADABLE ErrCode( ErrCodeArea::Svx, ErrCodeClass::Read, 7 )
29 #define ERRCODE_SVX_LINGU_NOLANGUAGE ErrCode( ErrCodeArea::Svx, ErrCodeClass::NotExists, 9 )
30 #define ERRCODE_SVX_MODIFIED_VBASIC_STORAGE ErrCode( WarningFlag::Yes, ErrCodeArea::Svx, ErrCodeClass::Write, 13 )
31 #define ERRCODE_SVX_VBASIC_STORAGE_EXIST ErrCode( WarningFlag::Yes, ErrCodeArea::Svx, ErrCodeClass::Write, 14 )
32 /** Error message: "Wrong password." */
33 #define ERRCODE_SVX_WRONGPASS ErrCode( ErrCodeArea::Svx, ErrCodeClass::NONE, 15)
34 /** Error message: "Read error. Unsupported encryption method." */
35 #define ERRCODE_SVX_READ_FILTER_CRYPT ErrCode( ErrCodeArea::Svx, ErrCodeClass::Read, 16)
36 /** Error message: "Read error. Passwort encrypted Powerpoint documents..." */
37 #define ERRCODE_SVX_READ_FILTER_PPOINT ErrCode( ErrCodeArea::Svx, ErrCodeClass::Read, 17)
38 /** Error message: "Warning. Passwort protection is not supported when..." */
39 #define ERRCODE_SVX_EXPORT_FILTER_CRYPT ErrCode( WarningFlag::Yes, ErrCodeArea::Svx, ErrCodeClass::Export, 18)
42 // both codes will be used twice : with ErrCodeClass::Read- and ErrCodeClass::Write-bits
43 #define ERRCTX_SVX_LINGU_THESAURUS 1
44 #define ERRCTX_SVX_LINGU_SPELLING 2
45 #define ERRCTX_SVX_LINGU_HYPHENATION 3
46 #define ERRCTX_SVX_LINGU_DICTIONARY 4
47 #define ERRCTX_SVX_BACKGROUND 5
48 #define ERRCTX_SVX_IMPORT_GRAPHIC 6
50 class SVX_DLLPUBLIC SvxErrorHandler final
: private SfxErrorHandler
57 SVX_DLLPUBLIC
extern const ErrMsgCode RID_SVXERRCODE
[];
58 SVX_DLLPUBLIC
extern const ErrMsgCode RID_SVXERRCTX
[];
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */