/** * @file XTPRibbonThemeOffice2007System.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPRIBBONTHEMEOFFICE2007SYSTEM_H__) # define __XTPRIBBONTHEMEOFFICE2007SYSTEM_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPRibbonThemeOffice2007System is a CXTPRibbonMarkupTheme derived class * used to represent an Office 2007 ribbon theme. */ class _XTP_EXT_CLASS CXTPRibbonThemeOffice2007System : public CXTPRibbonMarkupTheme { public: /** * @brief * Constructs a CXTPRibbonThemeOffice2007System object. * @param pPaintManager A CXTPPaintManager object. */ CXTPRibbonThemeOffice2007System(CXTPPaintManager* pPaintManager); /** * @brief * Destroys a CXTPRibbonThemeOffice2007System object, handles cleanup and deallocation. */ virtual ~CXTPRibbonThemeOffice2007System(); public: /** * @brief * This method is called to refresh the visual metrics of the manager. * @details * Refreshes all of the colors in the ribbon bar. Many of the colors * used are set with the GROUP_COLOR structure. * @see * GROUP_COLOR */ virtual void RefreshMetrics(); /** * @brief * This method is called to draw ribbon Quick Access controls. * @param pDC Pointer to a valid device context. * @param pRibbonBar Pointer to the parent ribbon bar. */ virtual void DrawRibbonQuickAccessControls(CDC* pDC, CXTPRibbonBar* pRibbonBar); public: /** * @brief * Calculates the ribbon caption height. * @param pRibbonBar Pointer to the parent ribbon bar. * @return * The ribbon caption height. */ virtual int GetRibbonCaptionHeight(const CXTPRibbonBar* pRibbonBar) const; /** * @brief * This method is called to draw the Quick Access customize button. * @param pDC Pointer to a valid device context. * @param pControl Pointer to the Quick Access customize button. * @see * DrawRibbonQuickAccessMoreButton */ virtual void DrawRibbonQuickAccessButton(CDC* pDC, CXTPControlPopup* pControl); /** * @brief * Loads markup parts. * @param bReload Re-loads previously loaded parts if TRUE. */ virtual void LoadParts(BOOL bReload = FALSE); protected: /** @cond */ _XTP_DEPRECATED_IN_FAVOR(LoadParts) BOOL LoadResource(); /** @endcond */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPRIBBONTHEMEOFFICE2007SYSTEM_H__) /** @endcond */