bool CanGetPageSource();
wxString GetPageSource();
void SetPageSource(const wxString& source, const wxString& baseUrl = wxEmptyString);
- wxString GetPageURL(){ return m_currentURL; }
+ wxString GetPageURL(){ return m_currentURL; }
void SetPageTitle(const wxString& title) { m_pageTitle = title; }
- wxString GetPageTitle(){ return m_pageTitle; }
+ wxString GetPageTitle(){ return m_pageTitle; }
// since these worked in 2.6, add wrappers
void SetTitle(const wxString& title) { SetPageTitle(title); }
#define wxMessageDialog wxGenericMessageDialog
#elif defined(__WXCOCOA__)
- #include "wx/cocoa/msgdlg.h"
+ #include "wx/cocoa/msgdlg.h"
#elif defined(__WXPALMOS__)
#include "wx/palmos/msgdlg.h"
#elif defined(__WXMSW__)
protected:
void Init()
{
- m_pCanvas = NULL;
- m_hOldBitmap = 0;
- m_hOldPen = 0;
- m_hOldBrush = 0;
- m_hOldFont = 0;
+ m_pCanvas = NULL;
+ m_hOldBitmap = 0;
+ m_hOldPen = 0;
+ m_hOldBrush = 0;
+ m_hOldFont = 0;
#if wxUSE_PALETTE
m_hOldPalette = 0;
#endif // wxUSE_PALETTE
- m_bOwnsDC = false;
- m_hDC = 0;
- m_hOldPS = NULL;
- m_hPS = NULL;
- m_bIsPaintTime = false; // True at Paint Time
+ m_bOwnsDC = false;
+ m_hDC = 0;
+ m_hOldPS = NULL;
+ m_hPS = NULL;
+ m_bIsPaintTime = false; // True at Paint Time
- m_pen.SetColour(*wxBLACK);
- m_brush.SetColour(*wxWHITE);
+ m_pen.SetColour(*wxBLACK);
+ m_brush.SetColour(*wxWHITE);
}
// create an uninitialized DC: this should be only used by the derived
// Supply origin and extent (recommended).
// Then don't need to supply them to wxMakeMetaFilePlaceable.
wxMetafileDC(const wxString& file, int xext, int yext, int xorg, int yorg)
- : wxDC(new wxMetafileDCImpl( this, file, xext, yext, xorg, yorg ))
+ : wxDC(new wxMetafileDCImpl( this, file, xext, yext, xorg, yorg ))
{ }
- wxMetafile *GetMetafile() const
+ wxMetafile *GetMetafile() const
{ return ((wxMetafileDCImpl*)m_pimpl)->GetMetaFile(); }
virtual ~wxMetafileDC(void)
wxTlsKey()
{
APIRET rc = ::DosAllocThreadLocalMemory(1, &m_slot);
- if (rc != NO_ERROR)
- m_slot = NULL;
+ if (rc != NO_ERROR)
+ m_slot = NULL;
}
// return true if the key was successfully allocated
bool Set(void *value)
{
m_slot = (ULONG*)value;
- return true;
+ return true;
}
// free the key
wxWindowDCImpl( wxDC *owner );
wxWindowDCImpl( wxDC *owner, wxWindow *window );
virtual ~wxWindowDCImpl();
-
+
virtual void DoGetSize( int *width, int *height ) const;
- virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
+ virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
protected:
bool m_release;
- int m_width;
- int m_height;
+ int m_width;
+ int m_height;
DECLARE_CLASS(wxWindowDCImpl)
DECLARE_NO_COPY_CLASS(wxWindowDCImpl)
wxClientDCImpl( wxDC *owner );
wxClientDCImpl( wxDC *owner, wxWindow *window );
virtual ~wxClientDCImpl();
-
+
private:
DECLARE_CLASS(wxClientDCImpl)
DECLARE_NO_COPY_CLASS(wxClientDCImpl)
// Author: Stefan Csomor
// Modified by:
// Created: 03/02/99
-// RCS-ID: $Id:
+// RCS-ID: $Id:
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
virtual int GetLineLength(long lineNo) const ;
virtual wxString GetLineText(long lineNo) const ;
virtual void CheckSpelling(bool WXUNUSED(check)) { }
- virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle );
-} ;
+ virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle );
+};
class wxMacUnicodeTextControl : public wxMacTextControl
{
virtual void WriteText(const wxString& str) ;
protected :
- virtual void CreateControl( wxTextCtrl* peer, const Rect* bounds, CFStringRef cfr );
+ virtual void CreateControl( wxTextCtrl* peer, const Rect* bounds, CFStringRef cfr );
// contains the tag for the content (is different for password and non-password controls)
OSType m_valueTag ;
virtual wxSize DoGetBestSize() const;
virtual void CreatePeer(const wxString& str, const wxPoint& pos, const wxSize& size, long style );
-
+
virtual void DoSetValue(const wxString& value, int flags = 0);
bool m_editable;
# elif defined(TARGET_OS_MAC) && TARGET_OS_MAC
# undef __WXOSX_IPHONE__
# define __WXOSX_MAC__
-# else
-# error "unknown SDK, neither TARGET_OS_MAC nor TARGET_OS_IPHONE set in <TargetConditionals.h>"
+# else
+# error "unknown SDK, neither TARGET_OS_MAC nor TARGET_OS_IPHONE set in <TargetConditionals.h>"
# endif
#endif
#if (__VMS_VER < 80200000)
# define SetReqLen(req,n,badlen) \
if ((req->length + n) > (unsigned)65535) { \
- n = badlen; \
- req->length += n; \
+ n = badlen; \
+ req->length += n; \
} else \
- req->length += n
+ req->length += n
#endif
#ifdef __cplusplus