Commit faf43f2f authored by Tavmjong Bah's avatar Tavmjong Bah

Move some files to 'io' directory.

parent d18c39bc
Pipeline #32852956 failed with stages
in 21 minutes and 1 second
......@@ -19,7 +19,6 @@ set(inkscape_SRC
desktop-style.cpp
desktop.cpp
device-manager.cpp
dir-util.cpp
document-subset.cpp
document-undo.cpp
document.cpp
......@@ -67,7 +66,6 @@ set(inkscape_SRC
pure-transform.cpp
rdf.cpp
removeoverlap.cpp
resource-manager.cpp
rubberband.cpp
satisfied-guide-cns.cpp
selcue.cpp
......@@ -124,7 +122,6 @@ set(inkscape_SRC
desktop-style.h
desktop.h
device-manager.h
dir-util.h
document-private.h
document-subset.h
document-undo.h
......@@ -183,7 +180,6 @@ set(inkscape_SRC
rdf.h
remove-last.h
removeoverlap.h
resource-manager.h
rubberband.h
satisfied-guide-cns.h
selcue.h
......
......@@ -38,7 +38,6 @@
#include "layer-manager.h"
#include "message-context.h"
#include "message-stack.h"
#include "resource-manager.h"
#include "display/canvas-arena.h"
#include "display/canvas-debug.h"
......@@ -55,6 +54,8 @@
#include "helper/action-context.h"
#include "helper/action.h" //sp_action_perform
#include "io/resource-manager.h"
#include "object/sp-namedview.h"
#include "object/sp-root.h"
......
......@@ -42,7 +42,7 @@
#include <2geom/transforms.h>
#include "desktop.h"
#include "dir-util.h"
#include "io/dir-util.h"
#include "document-private.h"
#include "document-undo.h"
#include "file.h"
......
......@@ -54,7 +54,7 @@
#ifdef _WIN32
#include <windows.h>
#include <sys/stat.h>
#include "registrytool.h"
#include "io/registrytool.h"
#endif
/** This is the command buffer that gets allocated from the stack */
......
......@@ -4,7 +4,7 @@
#include <glib/gprintf.h>
#include <glibmm/i18n.h>
#include "dir-util.h"
#include "io/dir-util.h"
#include "display/cairo-utils.h"
#include "document-private.h"
#include "document-undo.h"
......
......@@ -14,7 +14,6 @@
#include <gtkmm.h>
#include "desktop.h"
#include "dir-util.h"
#include "document-undo.h"
#include "document.h"
#include "file.h"
......@@ -36,6 +35,7 @@
#include "extension/output.h"
#include "extension/system.h"
#include "io/dir-util.h"
#include "io/sys.h"
#include "object/persp3d.h"
......
......@@ -46,7 +46,6 @@
#include "path-prefix.h"
#include "print.h"
#include "rdf.h"
#include "resource-manager.h"
#include "selection-chemistry.h"
#include "verbs.h"
......@@ -58,6 +57,7 @@
#include "helper/png-write.h"
#include "io/resource.h"
#include "io/resource-manager.h"
#include "io/sys.h"
#include "object/sp-defs.h"
......
......@@ -25,8 +25,6 @@
#include <gtkmm/cssprovider.h>
#include <gtkmm/icontheme.h>
#include <gtkmm/messagedialog.h>
#include "debug/simple-event.h"
#include "debug/event-tracker.h"
#include <glib/gstdio.h>
#include <glibmm/i18n.h>
......@@ -34,22 +32,30 @@
#include <glibmm/convert.h>
#include "desktop.h"
#include "device-manager.h"
#include "document.h"
#include "inkscape.h"
#include "message-stack.h"
#include "path-prefix.h"
#include "debug/simple-event.h"
#include "debug/event-tracker.h"
#include "extension/db.h"
#include "extension/init.h"
#include "extension/output.h"
#include "extension/system.h"
#include "helper/action-context.h"
#include "inkscape.h"
#include "io/resource.h"
#include "io/resource-manager.h"
#include "io/sys.h"
#include "libnrtype/FontFactory.h"
#include "message-stack.h"
#include "path-prefix.h"
#include "resource-manager.h"
#include "svg/svg-color.h"
#include "ui/dialog/debug.h"
#include "ui/tools/tool-base.h"
......
set(io_SRC
base64stream.cpp
bufferstream.cpp
gzipstream.cpp
inkscapestream.cpp
resource.cpp
stringstream.cpp
sys.cpp
http.cpp
uristream.cpp
xsltstream.cpp
base64stream.cpp
bufferstream.cpp
dir-util.cpp
gzipstream.cpp
inkscapestream.cpp
resource.cpp
resource-manager.cpp
stringstream.cpp
sys.cpp
http.cpp
uristream.cpp
xsltstream.cpp
# -------
# Headers
base64stream.h
bufferstream.h
gzipstream.h
inkscapestream.h
resource.h
stringstream.h
sys.h
http.h
uristream.h
xsltstream.h
# -------
# Headers
base64stream.h
bufferstream.h
dir-util.h
gzipstream.h
inkscapestream.h
resource.h
resource-manager.h
stringstream.h
sys.h
http.h
uristream.h
xsltstream.h
)
if(WIN32)
# Sources for the inkscape executable on Windows.
list(APPEND io_SRC
registrytool.h
registrytool.cpp
)
endif()
# add_inkscape_lib(io_LIB "${io_SRC}")
add_inkscape_source("${io_SRC}")
// Command line export... should be using normal export.
class InkCommandLineExport {
public:
enum {
EXPORT_PLAIN_SVG,
EXPORT_INKSCAPE_SVG,
EXPORT_PNG,
EXPORT_PS,
EXPORT_EPS,
EXPORT_PDF,
EXPORT_LATEX,
EXPORT_EMF,
EXPORT_WMF,
EXPORT_XAML,
EXPORT_PRINT
} ExportType;
InkCommandLineExport(ExportType export_type,
Glib::ustring file_name);
~InkCommandLineExport() {};
do_export();
double export_dpi;
bool export_area;
bool export_area_drawing;
bool export_area_page;
double export_margin;
bool export_snap;
int export_width; // In pixels
int export_hight; // In pixels
Glib::ustring export_id;
bool export_id_only;
bool export_id_hints;
Glib::ustring export_background;
double export_background_opacity;
int export_ps_level;
double export_pdf_level;
bool export_text_to_path;
bool export_ignore_filters;
private:
ExportType export_type;
Glib::ustring file_name;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
// Command line export... should be using normal export.
class InkCommandLineExport {
public:
enum {
EXPORT_PLAIN_SVG,
EXPORT_INKSCAPE_SVG,
EXPORT_PNG,
EXPORT_PS,
EXPORT_EPS,
EXPORT_PDF,
EXPORT_LATEX,
EXPORT_EMF,
EXPORT_WMF,
EXPORT_XAML,
EXPORT_PRINT
} ExportType;
InkCommandLineExport(ExportType export_type,
Glib::ustring file_name);
~InkCommandLineExport() {};
do_export();
double export_dpi;
bool export_area;
bool export_area_drawing;
bool export_area_page;
double export_margin;
bool export_snap;
int export_width; // In pixels
int export_hight; // In pixels
Glib::ustring export_id;
bool export_id_only;
bool export_id_hints;
Glib::ustring export_background;
double export_background_opacity;
int export_ps_level;
double export_pdf_level;
bool export_text_to_path;
bool export_ignore_filters;
private:
ExportType export_type;
Glib::ustring file_name;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
// Command line export... should be using normal export.
class InkCommandLineExport {
public:
enum {
EXPORT_PLAIN_SVG,
EXPORT_INKSCAPE_SVG,
EXPORT_PNG,
EXPORT_PS,
EXPORT_EPS,
EXPORT_PDF,
EXPORT_LATEX,
EXPORT_EMF,
EXPORT_WMF,
EXPORT_XAML,
EXPORT_PRINT
} ExportType;
InkCommandLineExport(ExportType export_type,
Glib::ustring file_name);
~InkCommandLineExport() {};
do_export();
double export_dpi;
bool export_area;
bool export_area_drawing;
bool export_area_page;
double export_margin;
bool export_snap;
int export_width; // In pixels
int export_hight; // In pixels
Glib::ustring export_id;
bool export_id_only;
bool export_id_hints;
Glib::ustring export_background;
double export_background_opacity;
int export_ps_level;
double export_pdf_level;
bool export_text_to_path;
bool export_ignore_filters;
private:
ExportType export_type;
Glib::ustring file_name;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
/*
* File operations (independent of GUI)
*
* Copyright (C) 2018 Tavmjong Bah
*
* The contents of this file may be used under the GNU General Public License Version 2 or later.
*
*/
#ifndef INK_FILE_IO_H
#define INK_FILE_IO_H
class SPDocument;
SPDocument* ink_file_new(const std::string &template = nullptr);
SPDocument* ink_file_open(const Glib::RefPtr<Gio::File>& file = Glib::RefPtr<Gio::File>());
// To do:
// ink_file_save()
// ink_file_export()
// ink_file_import()
#endif // INK_FILE_IO_H
/*
* File operations (independent of GUI)
*
* Copyright (C) 2018 Tavmjong Bah
*
* The contents of this file may be used under the GNU General Public License Version 2 or later.
*
*/
SPDocument* open_file(const Glib::RefPtr<Gio::File>& file = Glib::RefPtr<Gio::File>());
......@@ -31,7 +31,6 @@
#include "file.h"
#include "inkscape.h"
#include "preferences.h"
#include "resource-manager.h"
#include "selection.h"
#include "verbs.h"
#include "yaml.h"
......@@ -43,6 +42,7 @@
#include "helper/action.h"
#include "helper/png-write.h"
#include "io/resource-manager.h"
#include "io/sys.h"
#include "object/sp-namedview.h"
......
......@@ -54,7 +54,7 @@
#ifdef _WIN32
#include <windows.h>
#include "registrytool.h"
#include "io/registrytool.h"
#endif // _WIN32
#include "inkscape.h"
......
This diff is collapsed.
......@@ -4,9 +4,9 @@
#include <glibmm/uriutils.h>
#include "../document.h" /* Unfortunately there's a separate xml/document.h. */
#include "dir-util.h"
#include "streq.h"
#include "io/dir-util.h"
#include "io/sys.h"
#include "object/sp-object.h"
......
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