]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/stattext.h
we don't need reserved virtual functions on HEAD
[wxWidgets.git] / include / wx / stattext.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: stattext.h
3// Purpose: wxStaticText base header
4// Author: Julian Smart
5// Modified by:
6// Created:
7// Copyright: (c) Julian Smart
8// RCS-ID: $Id$
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATTEXT_H_BASE_
13#define _WX_STATTEXT_H_BASE_
14
15#include "wx/defs.h"
16
17#if wxUSE_STATTEXT
18
19#include "wx/control.h"
20
21extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[];
22
23class WXDLLEXPORT wxStaticTextBase : public wxControl
24{
25public:
26 wxStaticTextBase() { }
27
28 // in wxGTK wxStaticText doesn't derive from wxStaticTextBase so we have to
29 // declare this function directly in gtk header
30#if !defined(__WXGTK__) || defined(__WXUNIVERSAL__)
31 // wrap the text of the control so that no line is longer than the given
32 // width (if possible: this function won't break words)
33 //
34 // NB: implemented in dlgcmn.cpp for now
35 void Wrap(int width);
36#endif // ! native __WXGTK__
37
38 // overriden base virtuals
39 virtual bool AcceptsFocus() const { return false; }
40 virtual bool HasTransparentBackground() { return true; }
41
42private:
43 DECLARE_NO_COPY_CLASS(wxStaticTextBase)
44};
45
46#if defined(__WXUNIVERSAL__)
47 #include "wx/univ/stattext.h"
48#elif defined(__WXMSW__)
49 #include "wx/msw/stattext.h"
50#elif defined(__WXMOTIF__)
51 #include "wx/motif/stattext.h"
52#elif defined(__WXGTK20__)
53 #include "wx/gtk/stattext.h"
54#elif defined(__WXGTK__)
55 #include "wx/gtk1/stattext.h"
56#elif defined(__WXMAC__)
57 #include "wx/mac/stattext.h"
58#elif defined(__WXCOCOA__)
59 #include "wx/cocoa/stattext.h"
60#elif defined(__WXPM__)
61 #include "wx/os2/stattext.h"
62#elif defined(__WXPALMOS__)
63 #include "wx/palmos/stattext.h"
64#endif
65
66#endif // wxUSE_STATTEXT
67
68#endif
69 // _WX_STATTEXT_H_BASE_