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_SW_INC_SHELLRES_HXX
20 #define INCLUDED_SW_INC_SHELLRES_HXX
26 #include <rtl/ustring.hxx>
28 struct SW_DLLPUBLIC ShellResource
30 OUString aPostItAuthor
;
34 // Calc error-strings.
35 OUString aCalc_Syntax
;
36 OUString aCalc_ZeroDiv
;
39 OUString aCalc_Overflow
;
40 OUString aCalc_Default
;
43 // For GetRefField - referenced item not found.
44 OUString aGetRefField_RefItemNotFound
;
45 // For some list boxes - string "none"
49 // Custom fields of type css::util::Duration.
50 OUString sDurationFormat
;
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;
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
);
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: */