使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "StdAfx.h"
#include "MBSelDocMgr.h"
 
 
CMBSelDocMgr::CMBSelDocMgr(void)
{
}
 
 
CMBSelDocMgr::~CMBSelDocMgr(void)
{
}
 
bool  CMBSelDocMgr::AddSelDoc(CMBBaseObj *pObj)
{
    return AddDocObj((CMBBaseDocObj*)pObj);
}
 
bool  CMBSelDocMgr::AddDocInfo( CMBDocInfo *pDocInfo )
{
    return AddDocObj(pDocInfo);
}
 
// ÒƳý  
bool  CMBSelDocMgr::RemoveAllSelDoc()
{
    return RemoveAllDocObj();
}
 
 
CString CMBSelDocMgr::GetObjXml()
{
    CString strObjList,strTmpUser;
    CMBBaseDocObjMap::iterator    it;
    CMBBaseDocObj *pDocObj = NULL;
 
    for( it = m_mapDocObj.begin();it != m_mapDocObj.end();it++ )
    {
        pDocObj = it->second;
        strTmpUser.Format(_T("<Doc ID='%s' FileType='%s' FileSize='%I64d'><Name>%s</Name><ThumbURL>%s</ThumbURL><Tags>%s</Tags></Doc>"),pDocObj->m_strID,pDocObj->m_strFileType,pDocObj->m_nFileSize,pDocObj->m_strName,pDocObj->m_strThumbURL,pDocObj->m_strTags);
        strObjList += strTmpUser;
    }
    return strObjList;
}