]>
git.saurik.com Git - wxWidgets.git/blob - src/common/nbkbase.cpp
   1 /////////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/common/nbkbase.cpp 
   3 // Purpose:     common wxNotebook methods 
   4 // Author:      Vadim Zeitlin 
   8 // Copyright:   (c) 2001 Vadim Zeitlin 
   9 // Licence:     wxWindows licence 
  10 /////////////////////////////////////////////////////////////////////////////// 
  12 // ============================================================================ 
  14 // ============================================================================ 
  16 // ---------------------------------------------------------------------------- 
  18 // ---------------------------------------------------------------------------- 
  20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) 
  21     #pragma implementation "notebookbase.h" 
  24 // For compilers that support precompilation, includes "wx.h". 
  25 #include "wx/wxprec.h" 
  36 #include "wx/notebook.h" 
  38 // ============================================================================ 
  40 // ============================================================================ 
  42 // ---------------------------------------------------------------------------- 
  44 // ---------------------------------------------------------------------------- 
  46 wxSize 
wxNotebookBase::CalcSizeFromPage(const wxSize
& sizePage
) const 
  48     // this is, of course, totally bogus -- but we must do something by 
  49     // default because not all ports implement this 
  50     wxSize sizeTotal 
= sizePage
; 
  52     if ( HasFlag(wxNB_LEFT
) || HasFlag(wxNB_RIGHT
) ) 
  57     else // tabs on top/bottom side 
  66 #endif // wxUSE_NOTEBOOK