Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / inc / shellres.hxx
blob6cbcd91e8ab081a5ca986a51cbbd3837ba7fa30b
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 <optional>
24 #include <vector>
25 #include "swdllapi.h"
26 #include <rtl/ustring.hxx>
28 struct SW_DLLPUBLIC ShellResource
30 OUString aPostItAuthor;
31 OUString aPostItPage;
32 OUString aPostItLine;
34 // Calc error-strings.
35 OUString aCalc_Syntax;
36 OUString aCalc_ZeroDiv;
37 OUString aCalc_Brack;
38 OUString aCalc_Pow;
39 OUString aCalc_Overflow;
40 OUString aCalc_Default;
41 OUString aCalc_Error;
43 // For GetRefField - referenced item not found.
44 OUString aGetRefField_RefItemNotFound;
45 // For some list boxes - string "none"
46 OUString aStrNone;
47 // For fixed fields.
48 OUString aFixedStr;
49 // Custom fields of type css::util::Duration.
50 OUString sDurationFormat;
52 //Names of TOXs.
53 OUString aTOXIndexName;
54 OUString aTOXUserName;
55 OUString aTOXContentName;
56 OUString aTOXIllustrationsName;
57 OUString aTOXObjectsName;
58 OUString aTOXTablesName;
59 OUString aTOXAuthoritiesName;
60 OUString aTOXCitationName;
62 std::vector<OUString> aDocInfoLst;
64 // The autoFormat-Redline comments.
65 inline const std::vector<OUString>& GetAutoFormatNameLst() const;
67 enum PageNameMode
69 NORMAL_PAGE,
70 FIRST_PAGE,
71 FOLLOW_PAGE
73 // Returns for the specific filter the new names of pagedescs
74 // This method is for the old code of the specific filters with
75 // now localized names.
76 OUString GetPageDescName(sal_uInt16 nNo, PageNameMode eMode);
78 ShellResource();
80 private:
81 void GetAutoFormatNameLst_() const;
82 mutable std::optional<std::vector<OUString>> mxAutoFormatNameLst;
83 OUString sPageDescFirstName;
84 OUString sPageDescFollowName;
85 OUString sPageDescName;
88 inline const std::vector<OUString>& ShellResource::GetAutoFormatNameLst() const
90 if( !mxAutoFormatNameLst )
91 GetAutoFormatNameLst_();
92 return *mxAutoFormatNameLst;
95 #endif // INCLUDED_SW_INC_SHELLRES_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */