summaryrefslogtreecommitdiffstats
path: root/desktop/inc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-07-26 18:21:45 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-07-26 18:22:19 +0100
commitd32b179c3f2b16bb96679816db485d62ce8fe87f (patch)
treecabdac33dbd07263bbce96ca27024bafce9b67f6 /desktop/inc
parentfdo#46037: no more comphelper/configurationhelper.hxx in framework/classes (diff)
downloadcore-d32b179c3f2b16bb96679816db485d62ce8fe87f.tar.gz
core-d32b179c3f2b16bb96679816db485d62ce8fe87f.zip
more liblibreoffice pieces.
Change-Id: I21d67de281847321d784cddc652d4a51a437fadf
Diffstat (limited to 'desktop/inc')
-rw-r--r--desktop/inc/liblibreoffice.hxx17
-rw-r--r--desktop/inc/liblibreoffice_impl.hxx27
2 files changed, 13 insertions, 31 deletions
diff --git a/desktop/inc/liblibreoffice.hxx b/desktop/inc/liblibreoffice.hxx
index 48c0a24edbc0..eb7715b68c8f 100644
--- a/desktop/inc/liblibreoffice.hxx
+++ b/desktop/inc/liblibreoffice.hxx
@@ -10,17 +10,26 @@
#ifndef _LIBLIBREOFFICE_HXX
#define _LIBLIBREOFFICE_HXX
-typedef struct _LODocument LODocument;
+class LODocument
+{
+public:
+ virtual ~LODocument() {}
+
+ virtual bool saveAs (const char *url) = 0;
+};
class LibLibreOffice
{
public:
- virtual bool initialize (const char *installPath) = 0;
+ virtual ~LibLibreOffice () {};
+
+ virtual bool initialize (const char *installPath) = 0;
virtual LODocument *documentLoad (const char *url) = 0;
- virtual bool documentSave (const char *url) = 0;
- virtual ~LibLibreOffice () {};
+ // return the last error as a string, free me.
+ virtual char *getError() = 0;
+
};
LibLibreOffice *lo_init (const char *install_path);
diff --git a/desktop/inc/liblibreoffice_impl.hxx b/desktop/inc/liblibreoffice_impl.hxx
deleted file mode 100644
index 3f7783ec4d67..000000000000
--- a/desktop/inc/liblibreoffice_impl.hxx
+++ /dev/null
@@ -1,27 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#ifndef _LIBLIBREOFFICE_IMPL_HXX
-#define _LIBLIBREOFFICE_IMPL_HXX
-
-#include "liblibreoffice.hxx"
-
-class LibLibreOffice_Impl : public LibLibreOffice
-{
-public:
- virtual bool initialize (const char *installPath);
-
- virtual LODocument *documentLoad (const char *url);
- virtual bool documentSave (const char *url);
-
- virtual ~LibLibreOffice_Impl ();
-};
-
-#endif
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */