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