]> git.saurik.com Git - wxWidgets.git/blob - src/common/archive.cpp
Set solid colour for whole control, not pages
[wxWidgets.git] / src / common / archive.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: archive.cpp
3 // Purpose: Streams for archive formats
4 // Author: Mike Wetherell
5 // RCS-ID: $Id$
6 // Copyright: (c) Mike Wetherell
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
11 #pragma implementation "archive.h"
12 #endif
13
14 // For compilers that support precompilation, includes "wx.h".
15 #include "wx/wxprec.h"
16
17 #ifdef __BORLANDC__
18 #pragma hdrstop
19 #endif
20
21 #ifndef WX_PRECOMP
22 #include "wx/defs.h"
23 #endif
24
25 #if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
26
27 #include "wx/archive.h"
28 #include "wx/html/forcelnk.h"
29
30 IMPLEMENT_ABSTRACT_CLASS(wxArchiveEntry, wxObject)
31 IMPLEMENT_ABSTRACT_CLASS(wxArchiveClassFactory, wxObject)
32
33 FORCE_LINK(zipstrm)
34
35
36 /////////////////////////////////////////////////////////////////////////////
37 // wxArchiveInputStream
38
39 wxArchiveInputStream::wxArchiveInputStream(wxInputStream& stream,
40 wxMBConv& conv)
41 : wxFilterInputStream(stream),
42 m_conv(conv)
43 {
44 }
45
46
47 /////////////////////////////////////////////////////////////////////////////
48 // wxArchiveOutputStream
49
50 wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream& stream,
51 wxMBConv& conv)
52 : wxFilterOutputStream(stream),
53 m_conv(conv)
54 {
55 }
56
57
58 /////////////////////////////////////////////////////////////////////////////
59 // wxArchiveEntry
60
61 void wxArchiveEntry::SetNotifier(wxArchiveNotifier& notifier)
62 {
63 UnsetNotifier();
64 m_notifier = &notifier;
65 m_notifier->OnEntryUpdated(*this);
66 }
67
68 wxArchiveEntry& wxArchiveEntry::operator=(const wxArchiveEntry& WXUNUSED(e))
69 {
70 m_notifier = NULL;
71 return *this;
72 }
73
74 #endif