summaryrefslogtreecommitdiff
path: root/framework/inc/classes
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-11 20:25:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-12 13:33:27 +0100
commit569de88e9c7eda964252518282d26a8f7d059718 (patch)
treee8a8988ea61bbd3b398ed63e517145e9a1088012 /framework/inc/classes
parent73e9e027e9978cf5136731118f18b832bd361181 (diff)
prefer css::awt::XPopupMenu api
and using GetXGraphic will return a vcl unographic::XGraphic which also supports XBitmap as well as XGraphic so we can check if the XBitmap we're passing around supports XGraphic and use that if it does and drop the imagewrapper in favor of doing that Change-Id: I3bd7963b53c3f715fca4b5cfb2ddad650ca92e1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126691 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'framework/inc/classes')
-rw-r--r--framework/inc/classes/imagewrapper.hxx58
1 files changed, 0 insertions, 58 deletions
diff --git a/framework/inc/classes/imagewrapper.hxx b/framework/inc/classes/imagewrapper.hxx
deleted file mode 100644
index eea43c4e0394..000000000000
--- a/framework/inc/classes/imagewrapper.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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 .
- */
-
-#pragma once
-
-#include <com/sun/star/awt/XBitmap.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
-#include <cppuhelper/implbase.hxx>
-#include <vcl/image.hxx>
-
-namespace framework
-{
-
-class ImageWrapper final : public ::cppu::WeakImplHelper< css::awt::XBitmap,
- css::lang::XUnoTunnel >
-{
- public:
- ImageWrapper( const Image& aImage );
- virtual ~ImageWrapper() override;
-
- const Image& GetImage() const
- {
- return m_aImage;
- }
-
- static css::uno::Sequence<sal_Int8> const& getUnoTunnelId();
-
- // XBitmap
- virtual css::awt::Size SAL_CALL getSize() override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getDIB() override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getMaskDIB() override;
-
- // XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
-
- private:
- Image m_aImage;
-};
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */