// Process the Gender (GENDER) (frmContactEditor-LoadGender.cpp)
LoadGender(&ContactEditorData.Gender, &ContactEditorData.GenderDetails);
+
+ // Process the Name (N) (frmContactEditor-LoadName.cpp)
+
+ LoadName(&ContactEditorData.NameTitle, &ContactEditorData.NameForename,
+ &ContactEditorData.NameSurname, &ContactEditorData.NameOtherNames,
+ &ContactEditorData.NameSuffix);
for (std::map<int,wxString>::iterator iter = ContactFileLines.begin();
iter != ContactFileLines.end(); ++iter){
LoadFN(wxSPropertySeg1, wxSPropertySeg2, &FNCount, &FNProcessed, &ContactData);
- } else if (wxSProperty == wxT("N") && NameProcessed == FALSE){
+ }/* else if (wxSProperty == wxT("N") && NameProcessed == FALSE){
// See frmContactEditor-LoadName.cpp
LoadN(wxSPropertySeg1, wxSPropertySeg2, &NameProcessed, &ContactData);
- } else if (wxSProperty == wxT("NICKNAME")){
+ }*/ else if (wxSProperty == wxT("NICKNAME")){
// See frmContactEditor-LoadNickname.cpp
}
+void frmContactEditor::LoadName(wxString *NameTitle, wxString *NameForename,
+ wxString *NameSurname, wxString *NameOtherNames,
+ wxString *NameSuffix){
+
+ txtTitle->SetValue(*NameTitle);
+ txtForename->SetValue(*NameForename);
+ txtSurname->SetValue(*NameSurname);
+ txtOtherNames->SetValue(*NameOtherNames);
+ txtSuffix->SetValue(*NameSuffix);
+
+}
+
void frmContactEditor::LoadN(wxString wxSPropertySeg1, wxString wxSPropertySeg2, bool *NameProcessed,
vCard *ContactData){
void LoadBirthday(wxString *BirthdayData, bool *BirthdayText);
void LoadAnniversary(wxString *AnniversaryData, bool *AnniversaryText);
void LoadKind(ContactKindType *KindType);
+ void LoadName(wxString *NameTitle, wxString *NameForename,
+ wxString *NameSurname, wxString *NameOtherNames,
+ wxString *NameSuffix);
int intValueSeek = 1;
bool IsGroup = FALSE;