Bump version to 5.0-14
[LibreOffice.git] / svtools / source / graphic / transformer.hxx
blob2dd137a1ffb8c6807443a60caebff18b16707762
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVTOOLS_SOURCE_GRAPHIC_TRANSFORMER_HXX
21 #define INCLUDED_SVTOOLS_SOURCE_GRAPHIC_TRANSFORMER_HXX
23 #include <cppuhelper/implbase1.hxx>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <com/sun/star/graphic/XGraphicTransformer.hpp>
27 namespace unographic {
30 // - GraphicTransformer -
33 typedef ::cppu::WeakAggImplHelper1<
34 ::com::sun::star::graphic::XGraphicTransformer
35 > GraphicTransformer_UnoImplHelper1;
36 class GraphicTransformer : public GraphicTransformer_UnoImplHelper1
38 public:
40 GraphicTransformer();
41 virtual ~GraphicTransformer();
43 // XGraphicTransformer
44 virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL colorChange(
45 const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rGraphic,
46 sal_Int32 nColorFrom, sal_Int8 nTolerance, sal_Int32 nColorTo, sal_Int8 nAlphaTo )
47 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL applyDuotone(
50 const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rGraphic,
51 sal_Int32 nColorOne, sal_Int32 nColorTwo )
52 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL applyBrightnessContrast(
55 const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rxGraphic,
56 sal_Int32 nBrightness, sal_Int32 nContrast, sal_Bool mso )
57 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */