xref: /aoo4110/main/sw/inc/shellres.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SHELLRES_HXX
24 #define _SHELLRES_HXX
25 
26 
27 #include <tools/string.hxx>
28 
29 #ifndef _BITMAP_HXX //autogen
30 #include <vcl/bitmap.hxx>
31 #endif
32 
33 #ifndef _SVSTDARR_HXX
34 #define _SVSTDARR_STRINGSDTOR
35 #include <svl/svstdarr.hxx>
36 #endif
37 
38 struct SW_DLLPUBLIC ShellResource : public Resource
39 {
40 	String			aPostItAuthor;
41 	String 			aPostItPage;
42 	String			aPostItLine;
43 
44 	// Calc Fehlerstrings
45 	String			aCalc_Syntax;
46 	String			aCalc_ZeroDiv;
47 	String			aCalc_Brack;
48 	String			aCalc_Pow;
49 	String			aCalc_VarNFnd;
50 	String			aCalc_Overflow;
51 	String			aCalc_WrongTime;
52 	String			aCalc_Default;
53 	String			aCalc_Error;
54 
55 	// fuers GetRefFeld - oben/unten
56     String          aGetRefFld_Up;
57     String          aGetRefFld_Down;
58     // --> OD 2007-09-13 #i81002#
59     // for GetRefField - referenced item not found
60     String          aGetRefFld_RefItemNotFound;
61     // <--
62 	// fuer dynamisches Menu - String "alle"
63 	String			aStrAllPageHeadFoot;
64 	// fuer einige Listboxen - String "keine"
65 	String			aStrNone;
66 	// fuer Felder, die Fixiert sind
67 	String			aFixedStr;
68     // custom fields of type css::util::Duration
69     String          sDurationFormat;
70 
71 	//names of TOXs
72 	String 			aTOXIndexName;
73 	String          aTOXUserName;
74 	String          aTOXContentName;
75 	String          aTOXIllustrationsName;
76 	String          aTOXObjectsName;
77 	String          aTOXTablesName;
78 	String          aTOXAuthoritiesName;
79 
80     String          aHyperlinkClick;
81 
82 	SvStringsDtor	aDocInfoLst;
83 
84 	// Fly-Anker Bmps
85 //	Bitmap			aAnchorBmp;
86 //	Bitmap			aDragAnchorBmp;
87 
88 	// die AutoFormat-Redline-Kommentare
89 	inline const SvStringsDtor&	GetAutoFmtNameLst() const;
90 
91 	// returns for the specific filter the new names of pagedescs
92 	// This method is for the old code of the specific filters with
93 	// now localized names
94 	String GetPageDescName( sal_uInt16 nNo, sal_Bool bFirst = sal_False,
95 										sal_Bool bFollow = sal_False );
96 
97 	ShellResource();
98 	~ShellResource();
99 
100 private:
101 	void _GetAutoFmtNameLst() const;
102 	SvStringsDtor	*pAutoFmtNameLst;
103     String          sPageDescFirstName;
104     String          sPageDescFollowName;
105     String          sPageDescName;
106 };
107 
GetAutoFmtNameLst() const108 inline const SvStringsDtor& ShellResource::GetAutoFmtNameLst() const
109 {
110 	if( !pAutoFmtNameLst )
111 		_GetAutoFmtNameLst();
112 	return *pAutoFmtNameLst;
113 }
114 
115 
116 #endif //_SHELLRES_HXX
117