text: #include "UI/RichContent/UIRichContentComponent.h"
  #include "Engine/Engine.h"
  #include "Entity/ComponentManager.h"
  
  #include "Reflection/ReflectionRegistrator.h"
  
  namespace DAVA
  {
  DAVA_VIRTUAL_REFLECTION_IMPL(UIRichContentComponent)
  {
      ReflectionRegistrator<UIRichContentComponent>::Begin()[M::DisplayName("Rich Content"), M::Group("Content")]
      .ConstructorByPointer()
      .DestructorByPointer([](UIRichContentComponent* o) { o->Release(); })
      .Field("text", &UIRichContentComponent::GetText, &UIRichContentComponent::SetText)[M::DisplayName("Text")]
      .Field("baseClasses", &UIRichContentComponent::GetBaseClasses, &UIRichContentComponent::SetBaseClasses)[M::DisplayName("Base Classes")]
      .Field("classesInheritance", &UIRichContentComponent::GetClassesInheritance, &UIRichContentComponent::SetClassesInheritance)[M::DisplayName("Classes Inheritance")]
      .End();
  }
  
  IMPLEMENT_UI_COMPONENT(UIRichContentComponent);
  
  UIRichContentComponent::UIRichContentComponent(const UIRichContentComponent& src)
      : UIComponent(src)
      , text(src.text)
      , baseClasses(src.baseClasses)
      , classesInheritance(src.classesInheritance)
      , modified(true)
  {
  }
  
  UIRichContentComponent* UIRichContentComponent::Clone() const
  {
      return new UIRichContentComponent(*this);
  }
  
  void UIRichContentComponent::SetText(const String& _text)
  {
      if (text != _text)
      {
          text = _text;
          modified = true;
      }
  }
  
  void UIRichContentComponent::SetBaseClasses(const String& classes)
  {
      if (baseClasses != classes)
      {
          baseClasses = classes;
          modified = true;
      }
  }
  
  void UIRichContentComponent::SetClassesInheritance(bool inheritance)
  {
      if (classesInheritance != inheritance)
      {
          classesInheritance = inheritance;
          modified = true;
      }
  }
  
  void UIRichContentComponent::SetModified(bool _modified)
  {
      modified = _modified;
  }
  }
  