#ifndef DM_ATTRIBUTESNORMALT_HPP #define DM_ATTRIBUTESNORMALT_HPP #include "tools/attributes/worker/dm_attributesnormalt.h" #include "ct_global/ct_context.h" template DM_AttributesNormalT::DM_AttributesNormalT() : DM_AbstractAttributesNormal() { m_an = NULL; } template void DM_AttributesNormalT::checkAndSetNecessaryCloudToDoc() { GDocumentViewForGraphics *doc = document(); // TODO /* if(doc->normalCloudRegistered().data() == NULL) doc->setNormalCloudRegistered(PS_REPOSITORY->createNewNormalCloud(this->syncWithCloud())); */ } template bool DM_AttributesNormalT::setTypeAttributes(const Type *ta, const CT_AttributesNormal *an) { if(ta != dynamic_cast(an)) return false; setAttributes(ta); m_an = (CT_AttributesNormal*)an; return true; } template void DM_AttributesNormalT::attributesDeleted() { m_an = NULL; } template CT_AttributesNormal* DM_AttributesNormalT::normalAttributes() const { return m_an; } template Type* DM_AttributesNormalT::abstractTypeAttributes() const { return dynamic_cast(abstractAttributes()); } #endif // DM_ATTRIBUTESNORMALT_HPP