From 82d1b40444e65d41bf4807a453cc48bc28cf9c8d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 14 Apr 2014 11:19:42 +0200 Subject: Clean up function declarations Change-Id: Ia33a39c9c8fe25c48c81c53270ca9ce5ef90221c --- embeddedobj/source/msole/olepersist.cxx | 1 + embeddedobj/source/msole/olepersist.hxx | 42 +++++++++++++++++++++++++++++++++ embeddedobj/source/msole/ownview.cxx | 8 +------ 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 embeddedobj/source/msole/olepersist.hxx (limited to 'embeddedobj') diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index 19044c4fd857..f403bb4ecb71 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -18,6 +18,7 @@ */ #include +#include #include #include #include diff --git a/embeddedobj/source/msole/olepersist.hxx b/embeddedobj/source/msole/olepersist.hxx new file mode 100644 index 000000000000..c23bf94b2632 --- /dev/null +++ b/embeddedobj/source/msole/olepersist.hxx @@ -0,0 +1,42 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_EMBEDDEDOBJ_SOURCE_MSOLE_OLEPERSIST_HXX +#define INCLUDED_EMBEDDEDOBJ_SOURCE_MSOLE_OLEPERSIST_HXX + +#include + +#include +#include +#include +#include + +namespace com { namespace sun { namespace star { + namespace io { class XInputStream; } + namespace lang { class XMultiServiceFactory; } +} } } + +OUString GetNewFilledTempFile_Impl( + css::uno::Reference const & xInStream, + css::uno::Reference const & xFactory) + throw (css::io::IOException, css::uno::RuntimeException); + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx index 8f2657a4930e..d1515e2458b6 100644 --- a/embeddedobj/source/msole/ownview.cxx +++ b/embeddedobj/source/msole/ownview.cxx @@ -42,20 +42,14 @@ #include #include +#include "olepersist.hxx" #include "ownview.hxx" using namespace ::com::sun::star; using namespace ::comphelper; -OUString GetNewTempFileURL_Impl( const uno::Reference< lang::XMultiServiceFactory >& xFactory ) throw( io::IOException ); -OUString GetNewFilledTempFile_Impl( const uno::Reference< io::XInputStream >& xInStream, const uno::Reference< lang::XMultiServiceFactory >& xFactory ) throw( io::IOException ); sal_Bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory ); -uno::Reference< io::XStream > TryToGetAcceptableFormat_Impl( const uno::Reference< io::XStream >& xStream, const uno::Reference< lang::XMultiServiceFactory >& xFactory ) throw ( uno::Exception ); - - -// Dummy interaction handler - class DummyHandler_Impl : public ::cppu::WeakImplHelper1< task::XInteractionHandler > { -- cgit