/** * @file XTPCommandBarsOffice2007SystemTheme.cpp * * @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 * */ #include "StdAfx.h" #include "GraphicLibrary/unzip/unzip.h" #include "Common/XTPTypeId.h" #include "Common/XTPFramework.h" #include "Common/XTPMarkupTheme.h" #include "Common/XTPSystemHelpers.h" #include "Common/XTPSynchro.h" #include "Common/XTPApplication.h" #include "Common/XTPSingleton.h" #include "Common/XTPGdiObjects.h" #include "Common/XTPColorManager.h" #include "Common/XTPMarkupRender.h" #include "CommandBars/XTPCommandBarsDefines.h" #include "CommandBars/XTPPaintManager.h" // Frame #include "CommandBars/Frame/XTPFramePaintManager.h" #ifdef _XTP_INCLUDE_RIBBON # include "Ribbon/XTPRibbonMarkupFrameTheme.h" #endif #include "CommandBars/Frame/XTPFrameThemeOffice2007System.h" // CommandBars #include "CommandBars/Themes/XTPCommandBarsOfficeXPTheme.h" #include "CommandBars/Themes/XTPCommandBarsOffice2007SystemTheme.h" #ifdef _XTP_INCLUDE_RIBBON // Ribbon # include "Ribbon/XTPRibbonPaintManager.h" # include "Ribbon/XTPRibbonMarkupTheme.h" # include "Ribbon/Themes/XTPRibbonThemeOffice2007System.h" # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" # ifdef _DEBUG # define new DEBUG_NEW # undef THIS_FILE static char THIS_FILE[] = __FILE__; # endif #endif ////////////////////////////////////////////////////////////////////// // CXTPCommandBarsOffice2007SystemTheme IMPLEMENT_DYNAMIC(CXTPCommandBarsOffice2007SystemTheme, CXTPCommandBarsOfficeXPTheme) CXTPCommandBarsOffice2007SystemTheme::CXTPCommandBarsOffice2007SystemTheme() { m_pMarkupContext = XTPMarkupCreateContext(NULL, TRUE); // Frame paint manager CXTPFrameThemeOffice2007System* pFramePaintManager = new CXTPFrameThemeOffice2007System(this); SAFE_DELETE(m_pFramePaintManager); m_pFramePaintManager = pFramePaintManager; // Ribbon paint manager CXTPRibbonThemeOffice2007System* pRibbonPaintManager = new CXTPRibbonThemeOffice2007System( this); SAFE_DELETE(m_pRibbonPaintManager); m_pRibbonPaintManager = pRibbonPaintManager; } CXTPCommandBarsOffice2007SystemTheme::~CXTPCommandBarsOffice2007SystemTheme() { XTPMarkupReleaseContext(m_pMarkupContext, TRUE); } CXTPFramePaintManager* CXTPCommandBarsOffice2007SystemTheme::GetFramePaintManager() { return m_pFramePaintManager; } CXTPRibbonPaintManager* CXTPCommandBarsOffice2007SystemTheme::GetRibbonPaintManager() { return m_pRibbonPaintManager; } void CXTPCommandBarsOffice2007SystemTheme::RefreshMetrics() { CXTPCommandBarsOfficeXPTheme::RefreshMetrics(); }