Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SHELLRES_HXX
29 : : #define _SHELLRES_HXX
30 : :
31 : : #include <swdllapi.h>
32 : : #include <tools/string.hxx>
33 : : #include <tools/rc.hxx>
34 : : #include <vcl/bitmap.hxx>
35 : :
36 : : struct SW_DLLPUBLIC ShellResource : public Resource
37 : : {
38 : : String aPostItAuthor;
39 : : String aPostItPage;
40 : : String aPostItLine;
41 : :
42 : : // Calc error-strings.
43 : : String aCalc_Syntax;
44 : : String aCalc_ZeroDiv;
45 : : String aCalc_Brack;
46 : : String aCalc_Pow;
47 : : String aCalc_VarNFnd;
48 : : String aCalc_Overflow;
49 : : String aCalc_WrongTime;
50 : : String aCalc_Default;
51 : : String aCalc_Error;
52 : :
53 : : // For GetRefField - up/down.
54 : : String aGetRefFld_Up;
55 : : String aGetRefFld_Down;
56 : : // For GetRefField - referenced item not found.
57 : : String aGetRefFld_RefItemNotFound;
58 : : // For dynamic menu - string "all".
59 : : String aStrAllPageHeadFoot;
60 : : // For some list boxes - string "none"
61 : : String aStrNone;
62 : : // For fixed fields.
63 : : String aFixedStr;
64 : : // Custom fields of type css::util::Duration.
65 : : String sDurationFormat;
66 : :
67 : : //Names of TOXs.
68 : : String aTOXIndexName;
69 : : String aTOXUserName;
70 : : String aTOXContentName;
71 : : String aTOXIllustrationsName;
72 : : String aTOXObjectsName;
73 : : String aTOXTablesName;
74 : : String aTOXAuthoritiesName;
75 : :
76 : : String aHyperlinkClick;
77 : :
78 : : std::vector<String> aDocInfoLst;
79 : :
80 : : // The autoFormat-Redline comments.
81 : : inline const std::vector<String>& GetAutoFmtNameLst() const;
82 : :
83 : : enum PageNameMode
84 : : {
85 : : NORMAL_PAGE,
86 : : FIRST_PAGE,
87 : : FOLLOW_PAGE
88 : : };
89 : : // Returns for the specific filter the new names of pagedescs
90 : : // This method is for the old code of the specific filters with
91 : : // now localized names.
92 : : String GetPageDescName( sal_uInt16 nNo, PageNameMode eMode );
93 : :
94 : : ShellResource();
95 : : ~ShellResource();
96 : :
97 : : private:
98 : : void _GetAutoFmtNameLst() const;
99 : : std::vector<String> *pAutoFmtNameLst;
100 : : String sPageDescFirstName;
101 : : String sPageDescFollowName;
102 : : String sPageDescName;
103 : : };
104 : :
105 : 0 : inline const std::vector<String>& ShellResource::GetAutoFmtNameLst() const
106 : : {
107 [ # # ]: 0 : if( !pAutoFmtNameLst )
108 : 0 : _GetAutoFmtNameLst();
109 : 0 : return *pAutoFmtNameLst;
110 : : }
111 : :
112 : : #endif //_SHELLRES_HXX
113 : :
114 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|