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