&BusinessGeographyListPref, &BusinessGeographyListTokens,
SaveData, "work");
+ // Process RELATED.
+
+ int Moo = 0;
+
+ for (std::map<int, wxString>::iterator RelatedIter = GeneralRelatedList.begin();
+ RelatedIter != GeneralRelatedList.end(); RelatedIter++){
+
+ ProcessData.Append("RELATED");
+
+ // Check if there is a value for TYPE.
+
+ if (GeneralRelatedListRelType[RelatedIter->first].size() > 0){
+
+ wxString RelatedType = "";
+
+ ProcessData.Append(";TYPE=");
+
+ if (GeneralRelatedListRelType[RelatedIter->first] == _("Contact")){
+
+ RelatedType = wxT("contact");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Acquaintance")){
+
+ RelatedType = wxT("acquaintance");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Friend")){
+
+ RelatedType = wxT("friend");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Met")){
+
+ RelatedType = wxT("met");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Co-worker")){
+
+ RelatedType = wxT("co-worker");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Colleague")){
+
+ RelatedType = wxT("colleague");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Co-resident")){
+
+ RelatedType = wxT("co-resident");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Neighbour")){
+
+ RelatedType = wxT("neighbor");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Child")){
+
+ RelatedType = wxT("child");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Parent")){
+
+ RelatedType = wxT("parent");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Sibling")){
+
+ RelatedType = wxT("sibling");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Spouse")){
+
+ RelatedType = wxT("spouse");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Kin")){
+
+ RelatedType = wxT("kin");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Muse")){
+
+ RelatedType = wxT("muse");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Crush")){
+
+ RelatedType = wxT("crush");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Date")){
+
+ RelatedType = wxT("date");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first]== _("Sweetheart")){
+
+ RelatedType = wxT("sweetheart");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Me")){
+
+ RelatedType = wxT("me");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Agent")){
+
+ RelatedType = wxT("agent");
+
+ } else if (GeneralRelatedListRelType[RelatedIter->first] == _("Emergency")){
+
+ RelatedType = wxT("emergency");
+
+ } else {
+
+ RelatedType = GeneralRelatedListRelType[RelatedIter->first];
+
+ }
+
+ ProcessData.Append(RelatedType);
+
+ }
+
+ // Check if there is a value for LANGUAGE.
+
+ if (GeneralRelatedListLanguage[RelatedIter->first].size() > 0){
+
+ ProcessData.Append(";LANGUAGE=");
+ ProcessData.Append(GeneralRelatedListLanguage[RelatedIter->first]);
+
+ }
+
+ // Check if there is a value for ALTID.
+
+ if (GeneralRelatedListAltID[RelatedIter->first].size() > 0){
+
+ ProcessData.Append(";ALTID=");
+ ProcessData.Append(GeneralRelatedListAltID[RelatedIter->first]);
+
+ }
+
+ // Check if there is a value for PID.
+
+ if (GeneralRelatedListPID[RelatedIter->first].size() > 0){
+
+ ProcessData.Append(";PID=");
+ ProcessData.Append(GeneralRelatedListPID[RelatedIter->first]);
+
+ }
+
+ // Check if there is a value for PREF.
+
+ if (GeneralRelatedListPref[RelatedIter->first] > 0){
+
+ ProcessData.Append(";PREF=");
+ ProcessData.Append(wxString::Format("%i", GeneralRelatedListPref[RelatedIter->first]));
+
+ }
+
+ // Check if there is a value for tokens.
+
+ if (GeneralRelatedListTokens[RelatedIter->first].size() > 0){
+
+ ProcessData.Append(";");
+ ProcessData.Append(GeneralRelatedListTokens[RelatedIter->first]);
+
+ }
+
+ ProcessData.Append(":");
+ ProcessData.Append(RelatedIter->second);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
+
// Write the end part of the vCard data file.
SaveData->Append("END:VCARD");