/** * @file XTPMarkupResourceDictionary.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(__XTPMARKUPRESOURCEDICTIONARY_H__) # define __XTPMARKUPRESOURCEDICTIONARY_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPMarkupObject; class CXTPMarkupBuilder; class _XTP_EXT_CLASS CXTPMarkupResourceDictionary : public CXTPMarkupObject { DECLARE_MARKUPCLASS(CXTPMarkupResourceDictionary); public: CXTPMarkupResourceDictionary(); virtual ~CXTPMarkupResourceDictionary(); public: void Add(CXTPMarkupObject* pKey, CXTPMarkupObject* pValue); CXTPMarkupObject* operator[](LPCWSTR lpszKey) const; CXTPMarkupObject* Lookup(LPCWSTR lpszKey) const; CXTPMarkupObject* Lookup(const CXTPMarkupObject* pKey) const; static CXTPMarkupObject* AFX_CDECL FindResource(const CXTPMarkupObject* pElement, const CXTPMarkupObject* pKey); protected: void SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent); CXTPMarkupObject* GetObjectKey(CXTPMarkupObject* pContent) const; protected: CMap m_mapDictionary; }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPRESOURCEDICTIONARY_H__) /** @endcond */