X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd59841c337611841bf6e9317f2730d48163b08c..3b4470ba7a39529306c7610ec1667c5aff35cf7a:/user/wxLayout/wxlparser.h diff --git a/user/wxLayout/wxlparser.h b/user/wxLayout/wxlparser.h index 2ccb5eeba8..571a8749d9 100644 --- a/user/wxLayout/wxlparser.h +++ b/user/wxLayout/wxlparser.h @@ -52,21 +52,15 @@ struct wxLayoutExportObject } }; + struct wxLayoutExportStatus { - wxLayoutExportStatus(wxLayoutList *list) - { - list->GetDefaults()->GetStyle(&m_si); - m_line = list->GetFirstLine(); - m_iterator = m_line->GetFirstObject(); - } - + wxLayoutExportStatus(wxLayoutList *list); wxLayoutLine * m_line; wxLOiterator m_iterator; wxLayoutStyleInfo m_si; }; - #ifdef OS_WIN /// import text into a wxLayoutList (including linefeeds): void wxLayoutImportText(wxLayoutList *list, wxString const &str, @@ -74,7 +68,8 @@ void wxLayoutImportText(wxLayoutList *list, wxString const &str, wxLayoutExportObject *wxLayoutExport(wxLayoutExportStatus *status, int mode = WXLO_EXPORT_AS_TEXT, - int flags = WXLO_EXPORT_WITH_CRLF); + int flags = + WXLO_EXPORT_WITH_CRLF); #else /// import text into a wxLayoutList (including linefeeds): void wxLayoutImportText(wxLayoutList *list, wxString const &str, @@ -83,8 +78,8 @@ void wxLayoutImportText(wxLayoutList *list, wxString const &str, /// export text in a given format wxLayoutExportObject *wxLayoutExport(wxLayoutExportStatus *status, int mode = WXLO_EXPORT_AS_TEXT, - int flags = WXLO_EXPORT_WITH_LF_ONLY - ); + int flags = + WXLO_EXPORT_WITH_LF_ONLY); #endif #endif //WXLPARSER_H