xref: /trunk/main/sw/inc/shellres.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SHELLRES_HXX
28 #define _SHELLRES_HXX
29 
30 
31 #include <tools/string.hxx>
32 
33 #ifndef _BITMAP_HXX //autogen
34 #include <vcl/bitmap.hxx>
35 #endif
36 
37 #ifndef _SVSTDARR_HXX
38 #define _SVSTDARR_STRINGSDTOR
39 #include <svl/svstdarr.hxx>
40 #endif
41 
42 struct SW_DLLPUBLIC ShellResource : public Resource
43 {
44     String          aPostItAuthor;
45     String          aPostItPage;
46     String          aPostItLine;
47 
48     // Calc Fehlerstrings
49     String          aCalc_Syntax;
50     String          aCalc_ZeroDiv;
51     String          aCalc_Brack;
52     String          aCalc_Pow;
53     String          aCalc_VarNFnd;
54     String          aCalc_Overflow;
55     String          aCalc_WrongTime;
56     String          aCalc_Default;
57     String          aCalc_Error;
58 
59     // fuers GetRefFeld - oben/unten
60     String          aGetRefFld_Up;
61     String          aGetRefFld_Down;
62     // --> OD 2007-09-13 #i81002#
63     // for GetRefField - referenced item not found
64     String          aGetRefFld_RefItemNotFound;
65     // <--
66     // fuer dynamisches Menu - String "alle"
67     String          aStrAllPageHeadFoot;
68     // fuer einige Listboxen - String "keine"
69     String          aStrNone;
70     // fuer Felder, die Fixiert sind
71     String          aFixedStr;
72     // custom fields of type css::util::Duration
73     String          sDurationFormat;
74 
75     //names of TOXs
76     String          aTOXIndexName;
77     String          aTOXUserName;
78     String          aTOXContentName;
79     String          aTOXIllustrationsName;
80     String          aTOXObjectsName;
81     String          aTOXTablesName;
82     String          aTOXAuthoritiesName;
83 
84     String          aHyperlinkClick;
85 
86     SvStringsDtor   aDocInfoLst;
87 
88     // Fly-Anker Bmps
89 //  Bitmap          aAnchorBmp;
90 //  Bitmap          aDragAnchorBmp;
91 
92     // die AutoFormat-Redline-Kommentare
93     inline const SvStringsDtor& GetAutoFmtNameLst() const;
94 
95     // returns for the specific filter the new names of pagedescs
96     // This method is for the old code of the specific filters with
97     // now localized names
98     String GetPageDescName( sal_uInt16 nNo, sal_Bool bFirst = sal_False,
99                                         sal_Bool bFollow = sal_False );
100 
101     ShellResource();
102     ~ShellResource();
103 
104 private:
105     void _GetAutoFmtNameLst() const;
106     SvStringsDtor   *pAutoFmtNameLst;
107     String          sPageDescFirstName;
108     String          sPageDescFollowName;
109     String          sPageDescName;
110 };
111 
112 inline const SvStringsDtor& ShellResource::GetAutoFmtNameLst() const
113 {
114     if( !pAutoFmtNameLst )
115         _GetAutoFmtNameLst();
116     return *pAutoFmtNameLst;
117 }
118 
119 
120 #endif //_SHELLRES_HXX
121