update credits
[LibreOffice.git] / sw / inc / shellres.hxx
blob253c85de6222e43ad6f3953266faf5b721ae49e9
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 _SHELLRES_HXX
20 #define _SHELLRES_HXX
22 #include <swdllapi.h>
23 #include <tools/string.hxx>
24 #include <tools/rc.hxx>
25 #include <vcl/bitmap.hxx>
27 struct SW_DLLPUBLIC ShellResource : public Resource
29 String aPostItAuthor;
30 String aPostItPage;
31 String aPostItLine;
33 // Calc error-strings.
34 String aCalc_Syntax;
35 String aCalc_ZeroDiv;
36 String aCalc_Brack;
37 String aCalc_Pow;
38 String aCalc_VarNFnd;
39 String aCalc_Overflow;
40 String aCalc_WrongTime;
41 String aCalc_Default;
42 String aCalc_Error;
44 // For GetRefField - up/down.
45 String aGetRefFld_Up;
46 String aGetRefFld_Down;
47 // For GetRefField - referenced item not found.
48 String aGetRefFld_RefItemNotFound;
49 // For dynamic menu - string "all".
50 String aStrAllPageHeadFoot;
51 // For some list boxes - string "none"
52 String aStrNone;
53 // For fixed fields.
54 String aFixedStr;
55 // Custom fields of type css::util::Duration.
56 String sDurationFormat;
58 //Names of TOXs.
59 String aTOXIndexName;
60 String aTOXUserName;
61 String aTOXContentName;
62 String aTOXIllustrationsName;
63 String aTOXObjectsName;
64 String aTOXTablesName;
65 String aTOXAuthoritiesName;
67 String aHyperlinkClick;
69 std::vector<String> aDocInfoLst;
71 // The autoFormat-Redline comments.
72 inline const std::vector<String>& GetAutoFmtNameLst() const;
74 enum PageNameMode
76 NORMAL_PAGE,
77 FIRST_PAGE,
78 FOLLOW_PAGE
80 // Returns for the specific filter the new names of pagedescs
81 // This method is for the old code of the specific filters with
82 // now localized names.
83 String GetPageDescName( sal_uInt16 nNo, PageNameMode eMode );
85 ShellResource();
86 ~ShellResource();
88 private:
89 void _GetAutoFmtNameLst() const;
90 mutable std::vector<String> *pAutoFmtNameLst;
91 String sPageDescFirstName;
92 String sPageDescFollowName;
93 String sPageDescName;
96 inline const std::vector<String>& ShellResource::GetAutoFmtNameLst() const
98 if( !pAutoFmtNameLst )
99 _GetAutoFmtNameLst();
100 return *pAutoFmtNameLst;
103 #endif //_SHELLRES_HXX
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */