LiFan
2025-02-13 03ef0b51103c735077c784c7df81ae2bcc1599ab
jrj/xframe/devloper/XDevEditXFile.cpp
@@ -26,6 +26,7 @@
   xnode   m_agentNode;   //Agent Condition
   xstring   m_agentCond;   //Agent Node
public:
   int SetAgent()
   {
      /*      xstring xfNodeAgentArea  = L"agentarea";
@@ -181,8 +182,8 @@
         xstring sType = OnGetType();
         if (sType == L"xml.xsd")
         {
            xstring sError;
            x.ValidSchema(content, &sError);
            BSTR sError= nullptr;
            x.ValidSchema((const wchar_t* )content.c_str(), sError);
            trace(sError);
         }
      }
@@ -211,7 +212,7 @@
                              else if (sType == L"xml.xsd")
                              {
                                 xml doc;
                                 x.GetSchemaXml(content,doc);
                                 x.GetSchemaXml((LPTSTR)content.c_str(), doc);
                                 //trace(doc.xml());
                                 auto e = doc.selectSingleNode(L"root/schema");
                                 if (e) {
@@ -244,7 +245,7 @@
      {
         HTREEITEM hP2Item = 0;
         HTREEITEM hDomainItem = 0;
         if (tv_folder.GetParentItem(hItem) <= 0)
         if (!tv_folder.GetParentItem(hItem))
         {
            hDomainItem = hItem;
         }
@@ -302,7 +303,7 @@
   {
      xstring xsd = GetXSD(L"" + filename);
      xml x;
      x.GetSchemaXml(xsd,x);
      x.GetSchemaXml((LPTSTR)xsd.c_str(), x);
      trace(x.xml());
      /*         xml x = new xml;
@@ -337,6 +338,8 @@
      //获取焦点事件,用于重置工具条
      AttachEvent(L"WM_SETFOCUS", (FEvent)&XDevEditXFile::OnSetFocus);
      AttachEvent(L"xreport",L"DWV_DOUBLECLICKED", (FEvent)&XDevEditXFile::OnDoubleClicked);
      return 1;
   }
   int LoadData()