summaryrefslogtreecommitdiff
path: root/fluid/file.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-10-24 14:28:56 +0200
committerMatthias Melcher <github@matthiasm.com>2023-10-24 14:29:01 +0200
commite8d218109e246b14df0cdf2d818e2575c8108e9f (patch)
tree64c3f3ae1acd99f81fd54d6391591663981c9b23 /fluid/file.cxx
parent5a8a28cbb5fd627dfd032b996cd83d0965d9ac5e (diff)
FLUID: Adds much more detailed CodeView
in preparation for "find" and "reveal"
Diffstat (limited to 'fluid/file.cxx')
-rw-r--r--fluid/file.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/fluid/file.cxx b/fluid/file.cxx
index a62294203..fdfc203a7 100644
--- a/fluid/file.cxx
+++ b/fluid/file.cxx
@@ -73,9 +73,9 @@ int read_file(const char *filename, int merge, Strategy strategy) {
is used to implement copy and paste.
\return 0 if the operation failed, 1 if it succeeded
*/
-int write_file(const char *filename, int selected_only) {
+int write_file(const char *filename, int selected_only, bool to_sourceview) {
Fd_Project_Writer out;
- return out.write_project(filename, selected_only);
+ return out.write_project(filename, selected_only, to_sourceview);
}
/**
@@ -718,7 +718,8 @@ void Fd_Project_Reader::read_fdesign() {
/** \brief Construct local project writer. */
Fd_Project_Writer::Fd_Project_Writer()
: fout(NULL),
- needspace(0)
+ needspace(0),
+ write_sourceview_(false)
{
}
@@ -763,7 +764,8 @@ int Fd_Project_Writer::close_write() {
is used to implement copy and paste.
\return 0 if the operation failed, 1 if it succeeded
*/
-int Fd_Project_Writer::write_project(const char *filename, int selected_only) {
+int Fd_Project_Writer::write_project(const char *filename, int selected_only, bool sv) {
+ write_sourceview_ = sv;
undo_suspend();
if (!open_write(filename)) {
undo_resume();