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 "swdllapi.h"
24 #include <rtl/ustring.hxx>
25 
27 {
28  OUString const aPostItAuthor;
29  OUString const aPostItPage;
30  OUString const aPostItLine;
31 
32  // Calc error-strings.
33  OUString const aCalc_Syntax;
34  OUString const aCalc_ZeroDiv;
35  OUString const aCalc_Brack;
36  OUString const aCalc_Pow;
37  OUString const aCalc_Overflow;
38  OUString const aCalc_Default;
39  OUString const aCalc_Error;
40 
41  // For GetRefField - referenced item not found.
43  // For some list boxes - string "none"
44  OUString const aStrNone;
45  // For fixed fields.
46  OUString const aFixedStr;
47  // Custom fields of type css::util::Duration.
48  OUString const sDurationFormat;
49 
50  //Names of TOXs.
51  OUString const aTOXIndexName;
52  OUString const aTOXUserName;
53  OUString const aTOXContentName;
54  OUString const aTOXIllustrationsName;
55  OUString const aTOXObjectsName;
56  OUString const aTOXTablesName;
57  OUString const aTOXAuthoritiesName;
58  OUString const aTOXCitationName;
59 
60  OUString aLinkCtrlClick;
61  OUString const aLinkClick;
62 
63  std::vector<OUString> aDocInfoLst;
64 
65  // The autoFormat-Redline comments.
66  inline const std::vector<OUString>& GetAutoFormatNameLst() const;
67 
69  {
72  FOLLOW_PAGE
73  };
74  // Returns for the specific filter the new names of pagedescs
75  // This method is for the old code of the specific filters with
76  // now localized names.
77  OUString GetPageDescName(sal_uInt16 nNo, PageNameMode eMode);
78 
79  ShellResource();
80 
81 private:
82  void GetAutoFormatNameLst_() const;
83  mutable std::unique_ptr<std::vector<OUString>> pAutoFormatNameLst;
84  OUString const sPageDescFirstName;
85  OUString const sPageDescFollowName;
86  OUString const sPageDescName;
87 };
88 
89 inline const std::vector<OUString>& ShellResource::GetAutoFormatNameLst() const
90 {
91  if( !pAutoFormatNameLst )
93  return *pAutoFormatNameLst;
94 }
95 
96 #endif // INCLUDED_SW_INC_SHELLRES_HXX
97 
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString const aCalc_Brack
Definition: shellres.hxx:35
OUString const aPostItLine
Definition: shellres.hxx:30
void GetAutoFormatNameLst_() const
Definition: initui.cxx:195
OUString const sPageDescFirstName
Definition: shellres.hxx:84
OUString const aCalc_Overflow
Definition: shellres.hxx:37
OUString const aTOXIndexName
Definition: shellres.hxx:51
OUString const aCalc_Syntax
Definition: shellres.hxx:33
OUString const sDurationFormat
Definition: shellres.hxx:48
OUString const sPageDescFollowName
Definition: shellres.hxx:85
OUString const aStrNone
Definition: shellres.hxx:44
OUString const aTOXUserName
Definition: shellres.hxx:52
OUString aLinkCtrlClick
Definition: shellres.hxx:60
OUString const aPostItPage
Definition: shellres.hxx:29
std::vector< OUString > aDocInfoLst
Definition: shellres.hxx:63
OUString const aTOXObjectsName
Definition: shellres.hxx:55
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
OUString const aTOXTablesName
Definition: shellres.hxx:56
OUString const aGetRefField_RefItemNotFound
Definition: shellres.hxx:42
OUString const aTOXIllustrationsName
Definition: shellres.hxx:54
const std::vector< OUString > & GetAutoFormatNameLst() const
Definition: shellres.hxx:89
OUString const aLinkClick
Definition: shellres.hxx:61
OUString const aCalc_ZeroDiv
Definition: shellres.hxx:34
OUString const aTOXContentName
Definition: shellres.hxx:53
OUString const aTOXCitationName
Definition: shellres.hxx:58
OUString const aFixedStr
Definition: shellres.hxx:46
OUString const aCalc_Default
Definition: shellres.hxx:38
std::unique_ptr< std::vector< OUString > > pAutoFormatNameLst
Definition: shellres.hxx:83
OUString const aPostItAuthor
Definition: shellres.hxx:28
OUString const sPageDescName
Definition: shellres.hxx:86
OUString const aCalc_Error
Definition: shellres.hxx:39
OUString const aTOXAuthoritiesName
Definition: shellres.hxx:57
OUString const aCalc_Pow
Definition: shellres.hxx:36