Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / sw / inc / shellres.hxx
blobafa66c112acb65a5992cba4d0daac17fd8e64cfc
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_SW_INC_SHELLRES_HXX
20 #define INCLUDED_SW_INC_SHELLRES_HXX
22 #include <memory>
23 #include <swdllapi.h>
24 #include <rtl/ustring.hxx>
25 #include <vcl/bitmap.hxx>
27 struct SW_DLLPUBLIC ShellResource
29 OUString aPostItAuthor;
30 OUString aPostItPage;
31 OUString aPostItLine;
33 // Calc error-strings.
34 OUString aCalc_Syntax;
35 OUString aCalc_ZeroDiv;
36 OUString aCalc_Brack;
37 OUString aCalc_Pow;
38 OUString aCalc_Overflow;
39 OUString aCalc_Default;
40 OUString aCalc_Error;
42 // For GetRefField - referenced item not found.
43 OUString aGetRefField_RefItemNotFound;
44 // For some list boxes - string "none"
45 OUString aStrNone;
46 // For fixed fields.
47 OUString aFixedStr;
48 // Custom fields of type css::util::Duration.
49 OUString sDurationFormat;
51 //Names of TOXs.
52 OUString aTOXIndexName;
53 OUString aTOXUserName;
54 OUString aTOXContentName;
55 OUString aTOXIllustrationsName;
56 OUString aTOXObjectsName;
57 OUString aTOXTablesName;
58 OUString aTOXAuthoritiesName;
59 OUString aTOXCitationName;
61 OUString aLinkCtrlClick;
62 OUString aLinkClick;
64 std::vector<OUString> aDocInfoLst;
66 // The autoFormat-Redline comments.
67 inline const std::vector<OUString>& GetAutoFormatNameLst() const;
69 enum PageNameMode
71 NORMAL_PAGE,
72 FIRST_PAGE,
73 FOLLOW_PAGE
75 // Returns for the specific filter the new names of pagedescs
76 // This method is for the old code of the specific filters with
77 // now localized names.
78 OUString GetPageDescName(sal_uInt16 nNo, PageNameMode eMode);
80 ShellResource();
82 private:
83 void GetAutoFormatNameLst_() const;
84 mutable std::unique_ptr<std::vector<OUString>> pAutoFormatNameLst;
85 OUString sPageDescFirstName;
86 OUString sPageDescFollowName;
87 OUString sPageDescName;
90 inline const std::vector<OUString>& ShellResource::GetAutoFormatNameLst() const
92 if( !pAutoFormatNameLst )
93 GetAutoFormatNameLst_();
94 return *pAutoFormatNameLst;
97 #endif // INCLUDED_SW_INC_SHELLRES_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */