00001 #include "stdafx.h" 00002 00003 #include "BON.h" 00004 #include "BONImpl.h" 00005 00006 #include "AtomRep.h" 00007 #include "logger.h" 00008 #include "ConstraintRep.h" 00009 #include "ConstraintFuncRep.h" 00010 00011 extern int ind; 00012 00013 AtomRep::AtomRep( BON::FCO& ptr, BON::FCO& resp_ptr) 00014 : FCO( ptr, resp_ptr) 00015 { 00016 } 00017 00018 00019 std::string AtomRep::doDump() 00020 { 00021 std::string m_ref = askMetaRef(); 00022 00023 std::string mmm = indStr() + "<atom name = \"" + getName() + "\" metaref = \"" + m_ref + "\" "; 00024 00025 mmm += dumpAttributeList(); 00026 mmm += ">\n"; 00027 ++ind; 00028 mmm += dumpDispName(); 00029 ++ind; 00030 mmm += dumpNamePosition(); 00031 mmm += dumpGeneralPref(); 00032 --ind; 00033 mmm += dumpConstraints(); 00034 mmm += dumpAttributes(); 00035 ++ind; 00036 mmm += dumpIcon(); 00037 mmm += dumpPortIcon(); 00038 mmm += dumpDecorator(); 00039 mmm += dumpHotspotEnabled(); 00040 mmm += dumpTypeShown(); 00041 mmm += dumpSubTypeIcon(); 00042 mmm += dumpInstanceIcon(); 00043 mmm += dumpNameWrap(); 00044 mmm += dumpNameEnabled(); 00045 mmm += dumpResizable(); 00046 mmm += dumpAutoRouterPref(); 00047 mmm += dumpHelpURL(); 00048 00049 mmm += dumpGradientFillEnabled(); 00050 mmm += dumpGradientFillColor(); 00051 mmm += dumpGradientFillDirection(); 00052 mmm += dumpShadowCastEnabled(); 00053 mmm += dumpShadowColor(); 00054 mmm += dumpShadowThickness(); 00055 mmm += dumpShadowDirection(); 00056 mmm += dumpRoundRectangleEnabled(); 00057 mmm += dumpRoundRectangleRadius(); 00058 00059 --ind; 00060 --ind; 00061 mmm += indStr() + "</atom>\n"; 00062 return mmm; 00063 }