]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/enhmeta.cpp
added wxStaticBoxSizer ctor creating a new static box
[wxWidgets.git] / src / palmos / enhmeta.cpp
CommitLineData
ffecfa5a
JS
1///////////////////////////////////////////////////////////////////////////////
2// Name: palmos/enhmeta.cpp
3// Purpose: implementation of wxEnhMetaFileXXX classes
4// Author: William Osborne
5// Modified by:
6// Created: 10.13.04
7// RCS-ID: $Id:
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "enhmeta.h"
22#endif
23
24// For compilers that support precompilation, includes "wx.h".
25#include "wx/wxprec.h"
26
27#ifdef __BORLANDC__
28 #pragma hdrstop
29#endif
30
31#if wxUSE_ENH_METAFILE
32
33#ifndef WX_PRECOMP
34 #include "wx/string.h"
35 #include "wx/log.h"
36#endif //WX_PRECOMP
37
38#include "wx/metafile.h"
39#include "wx/clipbrd.h"
40
41#include "wx/palmos/private.h"
42
43// ----------------------------------------------------------------------------
44// wxWin macros
45// ----------------------------------------------------------------------------
46
47IMPLEMENT_DYNAMIC_CLASS(wxEnhMetaFile, wxObject)
48IMPLEMENT_ABSTRACT_CLASS(wxEnhMetaFileDC, wxDC)
49
50// ----------------------------------------------------------------------------
51// macros
52// ----------------------------------------------------------------------------
53
54#define GetEMF() ((HENHMETAFILE)m_hMF)
55#define GetEMFOf(mf) ((HENHMETAFILE)((mf).m_hMF))
56
57// ----------------------------------------------------------------------------
58// private functions
59// ----------------------------------------------------------------------------
60
61// we must pass NULL if the string is empty to metafile functions
62static inline const wxChar *GetMetaFileName(const wxString& fn)
63 { return !fn ? (wxChar *)NULL : fn.c_str(); }
64
65// ============================================================================
66// implementation
67// ============================================================================
68
69// ----------------------------------------------------------------------------
70// wxEnhMetaFile
71// ----------------------------------------------------------------------------
72
73void wxEnhMetaFile::Assign(const wxEnhMetaFile& mf)
74{
75}
76
77void wxEnhMetaFile::Free()
78{
79}
80
81bool wxEnhMetaFile::Play(wxDC *dc, wxRect *rectBound)
82{
83 return false;
84}
85
86wxSize wxEnhMetaFile::GetSize() const
87{
88 wxSize size = wxDefaultSize;
89
90 return size;
91}
92
93bool wxEnhMetaFile::SetClipboard(int WXUNUSED(width), int WXUNUSED(height))
94{
95 return false;
96}
97
98// ----------------------------------------------------------------------------
99// wxEnhMetaFileDC
100// ----------------------------------------------------------------------------
101
102wxEnhMetaFileDC::wxEnhMetaFileDC(const wxString& filename,
103 int width, int height,
104 const wxString& description)
105{
106}
107
108wxEnhMetaFile *wxEnhMetaFileDC::Close()
109{
110 return NULL;
111}
112
113wxEnhMetaFileDC::~wxEnhMetaFileDC()
114{
115}
116
117#if wxUSE_DRAG_AND_DROP
118
119// ----------------------------------------------------------------------------
120// wxEnhMetaFileDataObject
121// ----------------------------------------------------------------------------
122
123wxDataFormat
124wxEnhMetaFileDataObject::GetPreferredFormat(Direction WXUNUSED(dir)) const
125{
126 return wxDF_ENHMETAFILE;
127}
128
129size_t wxEnhMetaFileDataObject::GetFormatCount(Direction WXUNUSED(dir)) const
130{
131 // wxDF_ENHMETAFILE and wxDF_METAFILE
132 return 2;
133}
134
135void wxEnhMetaFileDataObject::GetAllFormats(wxDataFormat *formats,
136 Direction WXUNUSED(dir)) const
137{
138}
139
140size_t wxEnhMetaFileDataObject::GetDataSize(const wxDataFormat& format) const
141{
142 return 0u;
143}
144
145bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf) const
146{
147 return false;
148}
149
150bool wxEnhMetaFileDataObject::SetData(const wxDataFormat& format,
151 size_t WXUNUSED(len),
152 const void *buf)
153{
154 return false;
155}
156
157// ----------------------------------------------------------------------------
158// wxEnhMetaFileSimpleDataObject
159// ----------------------------------------------------------------------------
160
161size_t wxEnhMetaFileSimpleDataObject::GetDataSize() const
162{
163 return 0u;
164}
165
166bool wxEnhMetaFileSimpleDataObject::GetDataHere(void *buf) const
167{
168 return false;
169}
170
171bool wxEnhMetaFileSimpleDataObject::SetData(size_t WXUNUSED(len),
172 const void *buf)
173{
174 return false;
175}
176
177
178#endif // wxUSE_DRAG_AND_DROP
179
180#endif // wxUSE_ENH_METAFILE