LibreOffice Module sw (master) 1
shellres.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_SW_INC_SHELLRES_HXX
20#define INCLUDED_SW_INC_SHELLRES_HXX
21
22#include <memory>
23#include <optional>
24#include <vector>
25#include "swdllapi.h"
26#include <rtl/ustring.hxx>
27
29{
30 OUString aPostItAuthor;
31 OUString aPostItPage;
32 OUString aPostItLine;
33
34 // Calc error-strings.
35 OUString aCalc_Syntax;
36 OUString aCalc_ZeroDiv;
37 OUString aCalc_Brack;
38 OUString aCalc_Pow;
40 OUString aCalc_Default;
41 OUString aCalc_Error;
42
43 // For GetRefField - referenced item not found.
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.
51
52 //Names of TOXs.
53 OUString aTOXIndexName;
54 OUString aTOXUserName;
61
62 std::vector<OUString> aDocInfoLst;
63
64 // The autoFormat-Redline comments.
65 inline const std::vector<OUString>& GetAutoFormatNameLst() const;
66
68 {
71 FOLLOW_PAGE
72 };
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);
77
79
80private:
81 void GetAutoFormatNameLst_() const;
82 mutable std::optional<std::vector<OUString>> mxAutoFormatNameLst;
85 OUString sPageDescName;
86};
87
88inline const std::vector<OUString>& ShellResource::GetAutoFormatNameLst() const
89{
92 return *mxAutoFormatNameLst;
93}
94
95#endif // INCLUDED_SW_INC_SHELLRES_HXX
96
97/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString sPageDescFirstName
Definition: shellres.hxx:83
OUString sPageDescFollowName
Definition: shellres.hxx:84
OUString aTOXCitationName
Definition: shellres.hxx:60
OUString sDurationFormat
Definition: shellres.hxx:50
OUString aTOXIndexName
Definition: shellres.hxx:53
OUString aPostItLine
Definition: shellres.hxx:32
OUString aPostItPage
Definition: shellres.hxx:31
OUString aFixedStr
Definition: shellres.hxx:48
OUString aCalc_Syntax
Definition: shellres.hxx:35
OUString aGetRefField_RefItemNotFound
Definition: shellres.hxx:44
OUString aTOXUserName
Definition: shellres.hxx:54
void GetAutoFormatNameLst_() const
Definition: initui.cxx:182
OUString aCalc_Pow
Definition: shellres.hxx:38
OUString aPostItAuthor
Definition: shellres.hxx:30
OUString aStrNone
Definition: shellres.hxx:46
OUString sPageDescName
Definition: shellres.hxx:85
const std::vector< OUString > & GetAutoFormatNameLst() const
Definition: shellres.hxx:88
std::vector< OUString > aDocInfoLst
Definition: shellres.hxx:62
OUString aCalc_ZeroDiv
Definition: shellres.hxx:36
OUString aCalc_Default
Definition: shellres.hxx:40
OUString aTOXIllustrationsName
Definition: shellres.hxx:56
std::optional< std::vector< OUString > > mxAutoFormatNameLst
Definition: shellres.hxx:82
OUString aTOXTablesName
Definition: shellres.hxx:58
OUString aTOXObjectsName
Definition: shellres.hxx:57
OUString aTOXContentName
Definition: shellres.hxx:55
OUString aCalc_Overflow
Definition: shellres.hxx:39
OUString aTOXAuthoritiesName
Definition: shellres.hxx:59
OUString aCalc_Brack
Definition: shellres.hxx:37
OUString aCalc_Error
Definition: shellres.hxx:41
#define SW_DLLPUBLIC
Definition: swdllapi.h:28