Files
Leviathan/Library/External/XTToolkitPro/include/DockingPane/Themes/XTPDockingPaneThemeOffice2007Word.h
T
2026-06-01 12:46:52 +02:00

81 lines
3.6 KiB
C++

//===========================================================================
// Summary:
// CXTPDockingPaneOffice2007WordTheme is CXTPDockingPaneOffice2003Theme derived class, represents
// Office Word 2007 theme for docking panes.
// Remarks:
// Call CXTPDockingPaneManager::SetTheme(xtpPaneThemeOffice2007Word); to set this theme.
//===========================================================================
class _XTP_EXT_CLASS CXTPDockingPaneOffice2007WordTheme : public CXTPDockingPaneOffice2003Theme
{
public:
//-------------------------------------------------------------------------
// Summary:
// Constructs a CXTPDockingPaneOffice2007WordTheme object.
//-------------------------------------------------------------------------
CXTPDockingPaneOffice2007WordTheme();
public:
//-----------------------------------------------------------------------
// Summary:
// This method is called to refresh the visual metrics of the pane.
//-----------------------------------------------------------------------
void RefreshMetrics();
//-----------------------------------------------------------------------
// Summary:
// Override this member function to draw a caption.
// Parameters:
// pDC - Reference to the device context in which to draw.
// pPane - Pointer to the tabbed container.
// rc - Client rectangle of the tabbed container.
//-----------------------------------------------------------------------
void DrawCaption(CDC *pDC, CXTPDockingPaneTabbedContainer *pPane, CRect rc);
//-----------------------------------------------------------------------
// Summary:
// Draw common part of tabbed and floating caption.
// Parameters:
// pDC - Reference to the device context in which to draw.
// pPane - Container which caption need to draw.
// rcCaption - Caption bounding rectangle
// strTitle - Caption text.
// bActive - TRUE if caption is active.
// bVertical - TRUE to draw caption vertically
//-----------------------------------------------------------------------
void DrawCaptionPart(CDC* pDC, CXTPDockingPaneBase* pPane, CRect rcCaption, const CString& strTitle, BOOL bActive, BOOL bVertical);
//-----------------------------------------------------------------------
// Summary:
// Override this member to change the client rectangle of the child
// docking pane.
// Parameters:
// pPane - Pointer to the tabbed container.
// rect - Client rectangle to be changed.
// bApply - TRUE to update tabs inside client area.
//-----------------------------------------------------------------------
void AdjustClientRect(CXTPDockingPaneTabbedContainer* pPane, CRect& rect, BOOL bApply);
//-----------------------------------------------------------------------
// Summary:
// Override this member function to draw a tabbed container.
// Parameters:
// pDC - Reference to the device context in which to draw.
// pPane - Pointer to the tabbed container.
// rc - Client rectangle of the tabbed container.
//-----------------------------------------------------------------------
void DrawPane(CDC* pDC, CXTPDockingPaneTabbedContainer* pPane, CRect rc);
//-----------------------------------------------------------------------
// Summary:
// Determines if a pane has borders (if title is visible).
// Parameters:
// pPane - Pointer to the tabbed container.
// Returns:
// TRUE if the pane has borders (title visible), FALSE otherwise.
//-----------------------------------------------------------------------
BOOL PaneHasBorders(CXTPDockingPaneTabbedContainer* pPane) const;
protected:
BOOL m_bOffice2010Style;
};