Loading src/edit.cpp +230 −187 File changed.Preview size limit exceeded, changes collapsed. Show changes src/edit.h +6 −4 Changes for src/edit.h: 6 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -101,8 +101,8 @@ namespace blogi { // Convert CSSDeclaration to property map static std::map<std::string,std::string> declarationToMap(const libhtmlpp::CSSDeclaration &decl); // Recursive helper: converts tinyxml2 HTML element tree to widget XML void htmlElementToWidgetXml(tinyxml2::XMLElement *htmlEl, // Recursive helper: converts libhtmlpp HTML element tree to widget XML void htmlElementToWidgetXml(libhtmlpp::Element *htmlEl, tinyxml2::XMLDocument &doc, tinyxml2::XMLElement *parentXml, const libhtmlpp::CSSStyleSheet &sheet); Loading @@ -110,8 +110,10 @@ namespace blogi { // Helper: extract and remove known CSS props, return remainder as custom_css static std::string extractCustomCss(std::map<std::string,std::string> &props, const std::vector<std::string> &knownKeys); // Helper: serialize an element and its children to HTML string static std::string serializeInnerHtml(tinyxml2::XMLElement *el); // Helper: serialize libhtmlpp element children to HTML string static std::string serializeInnerHtml(libhtmlpp::HtmlElement *el); // Helper: serialize a single libhtmlpp element (outer HTML) to string static std::string serializeElement(const libhtmlpp::Element *el); // Helper: get current XML as string std::string serializeCurrentXml(); Loading Loading
src/edit.h +6 −4 Changes for src/edit.h: 6 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -101,8 +101,8 @@ namespace blogi { // Convert CSSDeclaration to property map static std::map<std::string,std::string> declarationToMap(const libhtmlpp::CSSDeclaration &decl); // Recursive helper: converts tinyxml2 HTML element tree to widget XML void htmlElementToWidgetXml(tinyxml2::XMLElement *htmlEl, // Recursive helper: converts libhtmlpp HTML element tree to widget XML void htmlElementToWidgetXml(libhtmlpp::Element *htmlEl, tinyxml2::XMLDocument &doc, tinyxml2::XMLElement *parentXml, const libhtmlpp::CSSStyleSheet &sheet); Loading @@ -110,8 +110,10 @@ namespace blogi { // Helper: extract and remove known CSS props, return remainder as custom_css static std::string extractCustomCss(std::map<std::string,std::string> &props, const std::vector<std::string> &knownKeys); // Helper: serialize an element and its children to HTML string static std::string serializeInnerHtml(tinyxml2::XMLElement *el); // Helper: serialize libhtmlpp element children to HTML string static std::string serializeInnerHtml(libhtmlpp::HtmlElement *el); // Helper: serialize a single libhtmlpp element (outer HTML) to string static std::string serializeElement(const libhtmlpp::Element *el); // Helper: get current XML as string std::string serializeCurrentXml(); Loading