LibreOffice Module svx (master) 1
svxerr.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SVX_SVXERR_HXX
20#define INCLUDED_SVX_SVXERR_HXX
21
23#include <svtools/ehdl.hxx>
24#include <svx/svxdllapi.h>
25
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 )
33#define ERRCODE_SVX_WRONGPASS ErrCode( ErrCodeArea::Svx, ErrCodeClass::NONE, 15)
35#define ERRCODE_SVX_READ_FILTER_CRYPT ErrCode( ErrCodeArea::Svx, ErrCodeClass::Read, 16)
37#define ERRCODE_SVX_READ_FILTER_PPOINT ErrCode( ErrCodeArea::Svx, ErrCodeClass::Read, 17)
39#define ERRCODE_SVX_EXPORT_FILTER_CRYPT ErrCode( WarningFlag::Yes, ErrCodeArea::Svx, ErrCodeClass::Export, 18)
40
41
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
49
51{
52public:
54 static void ensure();
55};
56
59
60#endif
61
62/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::pair< TranslateId, ErrCode > ErrMsgCode
void ensure()
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
SVX_DLLPUBLIC const ErrMsgCode RID_SVXERRCTX[]
SVX_DLLPUBLIC const ErrMsgCode RID_SVXERRCODE[]