Branch data Line data Source code
1 : : /*
2 : : * Version: MPL 1.1 / GPLv3+ / LGPLv3+
3 : : *
4 : : * The contents of this file are subject to the Mozilla Public License Version
5 : : * 1.1 (the "License"); you may not use this file except in compliance with
6 : : * the License. You may obtain a copy of the License at
7 : : * http://www.mozilla.org/MPL/
8 : : *
9 : : * Software distributed under the License is distributed on an "AS IS" basis,
10 : : * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 : : * for the specific language governing rights and limitations under the
12 : : * License.
13 : : *
14 : : * The Initial Developer of the Original Code is
15 : : * Miklos Vajna <vmiklos@frugalware.org>
16 : : * Portions created by the Initial Developer are Copyright (C) 2011 the
17 : : * Initial Developer. All Rights Reserved.
18 : : *
19 : : * Contributor(s):
20 : : *
21 : : * Alternatively, the contents of this file may be used under the terms of
22 : : * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
23 : : * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
24 : : * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
25 : : * instead of those above.
26 : : */
27 : :
28 : : #include <rtfdocumentimpl.hxx>
29 : :
30 : : namespace writerfilter {
31 : : namespace rtftok {
32 : :
33 : 315 : RTFDocument::Pointer_t RTFDocumentFactory::createDocument(uno::Reference< uno::XComponentContext > const & xContext,
34 : : uno::Reference< io::XInputStream > const & xInputStream,
35 : : uno::Reference< lang::XComponent > const & xDstDoc,
36 : : uno::Reference< frame::XFrame > const & xFrame,
37 : : uno::Reference< task::XStatusIndicator > const & xStatusIndicator)
38 : : {
39 [ + - ]: 315 : return RTFDocument::Pointer_t(new RTFDocumentImpl(xContext, xInputStream, xDstDoc, xFrame, xStatusIndicator));
40 : : }
41 : :
42 : : } // namespace rtftok
43 [ + - ][ + - ]: 60 : } // namespace writerfilter
44 : :
45 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|