update emoji autocorrect entries from po-files
[LibreOffice.git] / include / sfx2 / sidebar / Tools.hxx
blob3aff9ea7a02247430e3a58d53c9c069c01de8c86
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 .
19 #ifndef INCLUDED_SFX2_SIDEBAR_TOOLS_HXX
20 #define INCLUDED_SFX2_SIDEBAR_TOOLS_HXX
22 #include <vcl/image.hxx>
23 #include <vcl/gradient.hxx>
24 #include <tools/svborder.hxx>
26 #include <sfx2/dllapi.h>
28 #include <com/sun/star/awt/Gradient.hpp>
29 #include <com/sun/star/frame/XDispatch.hpp>
30 #include <com/sun/star/frame/XFrame.hpp>
31 #include <com/sun/star/util/URL.hpp>
34 namespace sfx2 { namespace sidebar {
36 class SFX2_DLLPUBLIC Tools
38 public:
39 static Image GetImage (
40 const ::rtl::OUString& rsImageURL,
41 const ::rtl::OUString& rsHighContrastImageURL,
42 const css::uno::Reference<css::frame::XFrame>& rxFrame);
44 static Image GetImage (
45 const ::rtl::OUString& rsURL,
46 const css::uno::Reference<css::frame::XFrame>& rxFrame);
48 static css::awt::Gradient VclToAwtGradient (const Gradient& rGradient);
49 static Gradient AwtToVclGradient (const css::awt::Gradient& rGradient);
51 static css::util::URL GetURL (const ::rtl::OUString& rsCommand);
52 static css::uno::Reference<css::frame::XDispatch> GetDispatch (
53 const css::uno::Reference<css::frame::XFrame>& rxFrame,
54 const css::util::URL& rURL);
56 static ::rtl::OUString GetModuleName (
57 const css::uno::Reference<css::frame::XFrame>& rxFrame);
61 } } // end of namespace sfx2::sidebar
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */