]> git.saurik.com Git - wxWidgets.git/blame - src/common/headerctrlcmn.cpp
no changes, just remove trailing whitespace
[wxWidgets.git] / src / common / headerctrlcmn.cpp
CommitLineData
56873923
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: src/common/headerctrlcmn.cpp
3// Purpose: implementation of wxHeaderCtrlBase
4// Author: Vadim Zeitlin
5// Created: 2008-12-02
6// RCS-ID: $Id$
7// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// for compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26#ifndef WX_PRECOMP
27#endif // WX_PRECOMP
28
29#include "wx/headerctrl.h"
30
31// ============================================================================
32// wxHeaderCtrlBase implementation
33// ============================================================================
34
9a382f1f 35extern WXDLLIMPEXP_DATA_CORE(const char) wxHeaderCtrlNameStr[] = "wxHeaderCtrl";
56873923
VZ
36
37void wxHeaderCtrlBase::DeleteAllColumns()
38{
39 const unsigned count = GetColumnCount();
40 for ( unsigned n = 0; n < count; n++ )
41 DeleteColumn(0);
42}
43
44
d8fc3398
VZ
45void wxHeaderCtrlBase::ScrollWindow(int dx,
46 int WXUNUSED_UNLESS_DEBUG(dy),
47 const wxRect * WXUNUSED_UNLESS_DEBUG(rect))
48
49{
50 // this doesn't make sense at all
51 wxASSERT_MSG( !dy, "header window can't be scrolled vertically" );
52
53 // this would actually be nice to support for "frozen" headers but it isn't
54 // supported currently
55 wxASSERT_MSG( !rect, "header window can't be scrolled partially" );
56
57 DoScrollHorz(dx);
58}
59