LibreOffice Module vcl (master)  1
UnoGraphicTransformer.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_VCL_SOURCE_GRAPHIC_TRANSFORMER_HXX
21 #define INCLUDED_VCL_SOURCE_GRAPHIC_TRANSFORMER_HXX
22 
23 #include <cppuhelper/implbase1.hxx>
24 #include <com/sun/star/graphic/XGraphicTransformer.hpp>
25 
26 namespace unographic {
27 
28 
29 typedef ::cppu::WeakAggImplHelper1<
30  css::graphic::XGraphicTransformer
33 {
34  public:
35 
37  virtual ~GraphicTransformer() override;
38 
39  // XGraphicTransformer
40  virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL colorChange(
41  const css::uno::Reference< css::graphic::XGraphic >& rGraphic,
42  sal_Int32 nColorFrom, sal_Int8 nTolerance, sal_Int32 nColorTo, sal_Int8 nAlphaTo ) override;
43 
44  virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL applyDuotone(
45  const css::uno::Reference< css::graphic::XGraphic >& rGraphic,
46  sal_Int32 nColorOne, sal_Int32 nColorTwo ) override;
47 
48  virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL applyBrightnessContrast(
49  const css::uno::Reference< css::graphic::XGraphic >& rxGraphic,
50  sal_Int32 nBrightness, sal_Int32 nContrast, sal_Bool mso ) override;
51 
52 };
53 
54 }
55 
56 #endif
57 
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
signed char sal_Int8
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL colorChange(const css::uno::Reference< css::graphic::XGraphic > &rGraphic, sal_Int32 nColorFrom, sal_Int8 nTolerance, sal_Int32 nColorTo, sal_Int8 nAlphaTo) override
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL applyBrightnessContrast(const css::uno::Reference< css::graphic::XGraphic > &rxGraphic, sal_Int32 nBrightness, sal_Int32 nContrast, sal_Bool mso) override
::cppu::WeakAggImplHelper1< css::graphic::XGraphicTransformer > GraphicTransformer_UnoImplHelper1
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL applyDuotone(const css::uno::Reference< css::graphic::XGraphic > &rGraphic, sal_Int32 nColorOne, sal_Int32 nColorTwo) override
unsigned char sal_Bool