lok: use "None" string item in the ListBox control
[LibreOffice.git] / include / svtools / sfxecode.hxx
blob3cdad87f4cd93f27e7ceb79ab72bb40d83a9df71
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_SVTOOLS_SFXECODE_HXX
20 #define INCLUDED_SVTOOLS_SFXECODE_HXX
22 class ErrCode;
24 #define ERRCODE_SFX_NOTATEMPLATE ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Format, 2)
25 #define ERRCODE_SFX_GENERAL ErrCode(ErrCodeArea::Sfx, ErrCodeClass::General, 3)
26 #define ERRCODE_SFX_DOLOADFAILED ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Read, 4)
27 #define ERRCODE_SFX_ALREADYOPEN ErrCode(ErrCodeArea::Sfx, ErrCodeClass::AlreadyExists, 10)
28 #define ERRCODE_SFX_WRONGPASSWORD ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Read, 11)
29 #define ERRCODE_SFX_DOCUMENTREADONLY ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Write, 12)
30 #define ERRCODE_SFX_OLEGENERAL ErrCode(ErrCodeArea::Sfx, ErrCodeClass::NONE, 14)
31 #define ERRCODE_SFX_TEMPLATENOTFOUND ErrCode(ErrCodeArea::Sfx, ErrCodeClass::NotExists, 15)
33 #define ERRCODE_SFX_CANTCREATECONTENT ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Create, 21)
34 #define ERRCODE_SFX_INVALIDSYNTAX ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Path, 36)
35 #define ERRCODE_SFX_CANTGETPASSWD ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Read, 42)
36 #define ERRCODE_SFX_NOMOREDOCUMENTSALLOWED ErrCode(WarningFlag::Yes, ErrCodeArea::Sfx, ErrCodeClass::NONE, 44)
37 #define ERRCODE_SFX_CANTCREATEBACKUP ErrCode(ErrCodeArea::Sfx, ErrCodeClass::Create, 50)
38 #define ERRCODE_SFX_MACROS_SUPPORT_DISABLED ErrCode(WarningFlag::Yes, ErrCodeArea::Sfx, ErrCodeClass::NONE, 51)
39 #define ERRCODE_SFX_DOCUMENT_MACRO_DISABLED ErrCode(WarningFlag::Yes, ErrCodeArea::Sfx, ErrCodeClass::NONE, 52)
40 #define ERRCODE_SFX_SHARED_NOPASSWORDCHANGE ErrCode(WarningFlag::Yes, ErrCodeArea::Sfx, ErrCodeClass::NONE, 54)
41 #define ERRCODE_SFX_INCOMPLETE_ENCRYPTION ErrCode(WarningFlag::Yes, ErrCodeArea::Sfx, ErrCodeClass::NONE, 55)
42 #define ERRCODE_SFX_DOCUMENT_MACRO_DISABLED_MAC \
43 ErrCode(WarningFlag::Yes, ErrCodeArea::Sfx, ErrCodeClass::NONE, 56)
44 #define ERRCODE_SFX_FORMAT_ROWCOL ErrCode(ErrCodeArea::Sfx, ErrCodeClass::NONE, 57)
47 // Various
48 #define ERRCTX_ERROR 21
49 #define ERRCTX_WARNING 22
51 // Document
52 #define ERRCTX_SFX_LOADTEMPLATE 1
53 #define ERRCTX_SFX_SAVEDOC 2
54 #define ERRCTX_SFX_SAVEASDOC 3
55 #define ERRCTX_SFX_DOCINFO 4
56 #define ERRCTX_SFX_DOCTEMPLATE 5
57 #define ERRCTX_SFX_MOVEORCOPYCONTENTS 6
59 // Application
60 #define ERRCTX_SFX_DOCMANAGER 50
61 #define ERRCTX_SFX_OPENDOC 51
62 #define ERRCTX_SFX_NEWDOCDIRECT 52
63 #define ERRCTX_SFX_NEWDOC 53
65 // Organizer
66 #define ERRCTX_SFX_CREATEOBJSH 70
68 // BASIC
69 #define ERRCTX_SFX_LOADBASIC 80
71 // Addressbook
72 #define ERRCTX_SFX_SEARCHADDRESS 90
74 #endif // INCLUDED_SVTOOLS_SFXECODE_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */