| 808 | } |
| 809 | |
| 810 | BOOL CDocTemplate0CC::GetDocString(CStringW &rString, DocStringIndex i) const |
| 811 | { |
| 812 | CStringW strTemp, strLeft, strRight; |
| 813 | int nFindPos; |
| 814 | AfxExtractSubString(strTemp, m_strDocStrings, (int)i); |
| 815 | if (i == CDocTemplate::filterExt) { |
| 816 | nFindPos = strTemp.Find(';'); |
| 817 | if (-1 != nFindPos) { |
| 818 | //string contains two extensions |
| 819 | strLeft = strTemp.Left(nFindPos + 1); |
| 820 | strRight = strTemp.Right(strTemp.GetLength() - nFindPos - 1); |
| 821 | strTemp = strLeft + strRight; |
| 822 | } |
| 823 | } |
| 824 | rString = strTemp; |
| 825 | return TRUE; |
| 826 | } |
| 827 | |
| 828 | CDocTemplate::Confidence CDocTemplate0CC::MatchDocType(LPCWSTR lpszPathName, CDocument *&rpDocMatch) |
| 829 | { |
no test coverage detected