Commit 85c09e8f authored by Aurimas Černius's avatar Aurimas Černius

Add text_content() to NoteBase

parent a1a4ff74
/*
* gnote
*
* Copyright (C) 2011-2015,2017,2019 Aurimas Cernius
* Copyright (C) 2011-2015,2017,2019-2020 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
......@@ -120,7 +120,7 @@ public:
virtual void set_title(const Glib::ustring & new_title, bool from_user_action) override;
virtual void rename_without_link_update(const Glib::ustring & newTitle) override;
virtual void set_xml_content(const Glib::ustring & xml) override;
Glib::ustring text_content();
virtual Glib::ustring text_content() override;
void set_text_content(const Glib::ustring & text);
const Glib::RefPtr<NoteTagTable> & get_tag_table();
......
......@@ -289,6 +289,11 @@ void NoteBase::set_xml_content(const Glib::ustring & xml)
data_synchronizer().set_text(xml);
}
Glib::ustring NoteBase::text_content()
{
return "";
}
void NoteBase::load_foreign_note_xml(const Glib::ustring & foreignNoteXml, ChangeType changeType)
{
if(foreignNoteXml.empty())
......
......@@ -233,6 +233,7 @@ public:
return data_synchronizer().text();
}
virtual void set_xml_content(const Glib::ustring & xml);
virtual Glib::ustring text_content();
void load_foreign_note_xml(const Glib::ustring & foreignNoteXml, ChangeType changeType);
std::vector<Tag::Ptr> get_tags() const;
const NoteData & data() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment