#include "../vcard/vcard34conv.h"
void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
- wxString OldSID, std::map<wxString, wxString> *MemoryFSList, wxString backgroundColour){
+ wxString OldSID, std::map<wxString, wxString> *MemoryFSList, wxColour backgroundColour){
// Load the vCard contact data into the wxHTMLWindow given.
}
- if (!backgroundColour.IsEmpty()){
+ if (backgroundColour != wxTransparentColour){
PageData.append("<table CELLPADDING=4 style=\"{background-color: ");
- PageData.append(backgroundColour);
+ PageData.append(backgroundColour.GetAsString(wxC2S_CSS_SYNTAX));
PageData.append("; width: 100%;}\"><tr><td>");
} else {
PageData.append("<table CELLPADDING=4 style=\"{width: 100%;}\"><tr><td>");
#define GETCONTACTINFO_H
void LoadContactData(vCard *vCardObj, wxHtmlWindow *HTMLObj, wxString SID,
- wxString OldSID, std::map<wxString, wxString> *MemoryFSList, wxString backgroundColour);
+ wxString OldSID, std::map<wxString, wxString> *MemoryFSList, wxColour backgroundColour);
void ProcessIMPPType(wxString *PageData, wxString *IMPPType, bool PreferredContact);
void SplitPropertyData(wxString *PropertyLine, std::map<int,int> *SplitPoints, std::map<int,int> *SplitLength,
int intSize, std::map<wxString,wxString> *SplitData);
OldSessionID = SessionID;
SessionID = wxString::Format(wxT("%i"), rand() % 32768);
- LoadContactData(vCardObj, htmContactData, SessionID, OldSessionID, MemoryFSListPtr, backgroundColour);
+ wxColour formattedBackgroundColour;
+ if (backgroundColour.IsEmpty())
+ {
+
+ formattedBackgroundColour = wxTransparentColour;
+
+ }
+ else
+ {
+
+ formattedBackgroundColour.Set(backgroundColour);
+
+ }
+
+
+ LoadContactData(vCardObj, htmContactData, SessionID, OldSessionID, MemoryFSListPtr, formattedBackgroundColour);
ArrayvCardOutData FNList;
FNList = vCardObj->GetByPartial(wxT("FN"));
OldSessionID = SessionID;
SessionID = wxString::Format(wxT("%i"), rand() % 32768);
- LoadContactData(&Person, htmContactData, SessionID, OldSessionID, &MemoryFileList, ContactBackgroundColour.GetAsString(wxC2S_CSS_SYNTAX));
+ LoadContactData(&Person, htmContactData, SessionID, OldSessionID, &MemoryFileList, ContactBackgroundColour);
ActiveFilename = ContactsFileIndex[ContactSeekNum];
}