/* -*- 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 #include #include #include #include #include #include #include "dx_canvasfont.hxx" namespace basegfx { class B2DPoint; class B2DRange; class B2DHomMatrix; class B2IRange; class B2DPolyPolygon; }; namespace com::sun::star::geometry { struct IntegerRectangle2D; struct RealPoint2D; } namespace com::sun::star::rendering { class XBitmap; class XPolyPolygon2D; class XCanvasFont; } namespace dxcanvas::tools { struct RawRGBABitmap; ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D( const css::uno::Reference< css::rendering::XPolyPolygon2D >& ); Gdiplus::Graphics* createGraphicsFromHDC(HDC); GraphicsSharedPtr createGraphicsFromBitmap(const BitmapSharedPtr&); void setupGraphics( Gdiplus::Graphics& rGraphics ); void gdiPlusMatrixFromB2DHomMatrix( Gdiplus::Matrix& rGdiplusMatrix, const ::basegfx::B2DHomMatrix& rMatrix ); void gdiPlusMatrixFromAffineMatrix2D( Gdiplus::Matrix& rGdiplusMatrix, const css::geometry::AffineMatrix2D& rMatrix ); Gdiplus::PointF gdiPlusPointFFromRealPoint2D( const css::geometry::RealPoint2D& ); Gdiplus::RectF gdiPlusRectFFromRectangle2D( const css::geometry::RealRectangle2D& ); Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D( const css::geometry::IntegerRectangle2D& ); RECT gdiRectFromB2IRect( const ::basegfx::B2IRange& ); css::geometry::RealPoint2D realPoint2DFromGdiPlusPointF( const Gdiplus::PointF& ); css::geometry::RealRectangle2D realRectangle2DFromGdiPlusRectF( const Gdiplus::RectF& ); ::basegfx::B2DPoint b2dPointFromGdiPlusPointF( const Gdiplus::PointF& ); ::basegfx::B2DRange b2dRangeFromGdiPlusRectF( const Gdiplus::RectF& ); css::uno::Sequence< sal_Int8 > argbToIntSequence( Gdiplus::ARGB rColor ); Gdiplus::ARGB sequenceToArgb( const css::uno::Sequence< sal_Int8 >& rColor ); Gdiplus::ARGB sequenceToArgb( const css::uno::Sequence< double >& rColor ); GraphicsPathSharedPtr graphicsPathFromRealPoint2DSequence( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > >& ); GraphicsPathSharedPtr graphicsPathFromB2DPolygon( const ::basegfx::B2DPolygon& rPoly, bool bNoLineJoin = false); GraphicsPathSharedPtr graphicsPathFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly, bool bNoLineJoin = false); GraphicsPathSharedPtr graphicsPathFromXPolyPolygon2D( const css::uno::Reference< css::rendering::XPolyPolygon2D >&, bool bNoLineJoin = false ); bool drawGdiPlusBitmap( const GraphicsSharedPtr& rGraphics, const BitmapSharedPtr& rBitmap ); bool drawDIBits( const std::shared_ptr< Gdiplus::Graphics >& rGraphics, const BITMAPINFO& rBI, const void* pBits ); bool drawRGBABits( const std::shared_ptr< Gdiplus::Graphics >& rGraphics, const RawRGBABitmap& rRawRGBAData ); BitmapSharedPtr bitmapFromXBitmap( const css::uno::Reference< css::rendering::XBitmap >& xBitmap ); CanvasFont::ImplRef canvasFontFromXFont( const css::uno::Reference< css::rendering::XCanvasFont >& xFont ); void setModulateImageAttributes( Gdiplus::ImageAttributes& o_rAttr, double nRedModulation, double nGreenModulation, double nBlueModulation, double nAlphaModulation ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /collabora/lov-5.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann
2015-10-29com::sun::star->css in sfx2Noel Grandin
2015-10-15convert Link<> to typedNoel Grandin
2015-10-06 tdf#94559: 4th step to remove rtti.hxxOliver Specht
2015-08-31convert Link<> to typedNoel Grandin
2015-08-28make PostUserEvent Link<> typedNoel Grandin
2015-08-19Clean up remaining utl::LocalFileHelper::Convert...Stephan Bergmann
2015-08-18ConvertURLToSystemPath->getSystemPathFromFileURLCaolán McNamara
2015-08-18rBaseURL argument now unusedCaolán McNamara
2015-05-25convert TOTOP constants to scoped enumNoel Grandin
2015-05-10NOINSTANCE is implied now in IMPL_STATIC_LINK...Stephan Bergmann
2015-04-29Remove unnecessary STATIC_LINK macroStephan Bergmann
2015-04-16make CreateItemWindow return a VclPtr<>.Michael Meeks
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
2014-10-03loplugin: cstylecastNoel Grandin
2014-09-23fdo#82577: Handle WindowNoel Grandin
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann
2014-09-10Replace uses of old SFX_ITEM_AVAILABLE alias with SFX_ITEM_DEFAULTStephan Bergmann
2014-04-26fdo#72006 Populate "Load URL" dropdown from picklist.Andrzej Hunt
2014-04-07sfx2: sal_Bool->boolNoel Grandin
2014-02-26Remove visual noise from sfx2Alexander Wilms
2014-02-23Remove unneccessary commentsAlexander Wilms
2014-01-09Remove unused private member: pAccExecZolnai Tamás
2013-12-17remove unnecessary double calls to OUString constructorNoel Grandin
2013-11-08Unwind SFX_REFERER_USERStephan Bergmann
2013-11-08remove unnecessary use of OUString constructor in SFX2 moduleNoel Grandin
2013-08-29convert chunk of sfx internal code from String to OUStringNoel Grandin
2013-08-29convert sfx2/inc/inettbc.hxx from String to OUStringNoel Grandin
2013-06-28remove toolkit/unohlp.hxx hackThomas Arnhold
2013-05-14Remove obsolete RestrictedPath env var supportStephan Bergmann
2013-04-08fdo#46808, Convert svt::ToolboxController to XComponentContextNoel Grandin
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2013-03-20Replace String with OUString (unotools)Chr. Rossmanith
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin