/* -*- 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 . */ #ifndef INCLUDED_VCL_IMAGE_HXX #define INCLUDED_VCL_IMAGE_HXX #include #include #include #include #include #include #include #include struct ImplImage; struct ImplImageList; namespace com { namespace sun { namespace star { namespace graphic { class XGraphic;} } } } namespace vcl { enum class ImageType { Size16, Size26, Size32, Small = Size16, LAST = Size32, }; } #define IMAGELIST_IMAGE_NOTFOUND ((sal_uInt16)0xFFFF) class SAL_WARN_UNUSED VCL_DLLPUBLIC Image { friend class ::OutputDevice; public: Image(); explicit Image( const BitmapEx& rBitmapEx ); explicit Image( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic ); explicit Image( const OUString &rPNGFileUrl ); Size GetSizePixel() const; BitmapEx GetBitmapEx() const; bool operator!() const { return !mpImplData; } bool operator==( const Image& rImage ) const; bool operator!=( const Image& rImage ) const { return !(Image::operator==( rImage )); } void Draw(OutputDevice* pOutDev, const Point& rPos, DrawImageFlags nStyle, const Size* pSize = nullptr); private: std::shared_ptr mpImplData; SAL_DLLPRIVATE void ImplInit( const BitmapEx& rBmpEx ); }; #endif // INCLUDED_VCL_IMAGE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ n value='distro/collabora/co-24.04'>distro/collabora/co-24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-12-05squeeze all Exceptions through RuntimeException for exception sigCaolán McNamara
2012-10-27fdo#49517: Revert "fdo#46102: Load Java scripts with class loaders [...]"Stephan Bergmann
2012-06-19typo: paramters, paramaters -> parametersAndras Timar
2012-06-02targeted string re-workNorbert Thiebaud
2012-05-29targetted SAL_N_ELEMENTS reversion.Michael Meeks
2012-05-17removed unused const rtl::OUStringTakeshi Abe
2012-05-06Allow usage of system rhino wrt fdo#42977Tomas Chvatal
2012-05-05Do not check for beanshell if not neededTomas Chvatal
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen
2012-04-26Change implementation names of script providers...Stephan Bergmann
2012-04-26Typo in service nameStephan Bergmann
2012-04-26Bump extension version after changing to passive registrationStephan Bergmann
2012-04-21Replace css macro with namespace for nicer namespacingThomas Arnhold
2012-04-18Fix another extra parenthesisJulien Nabet
2012-04-12use gb_Helper_make_url hereMatúš Kukan
2012-04-08Replaced a few equal calls with ==Szabolcs Dezsi
2012-04-08gbuild: "use" vs. "add":Michael Stahl
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-03-23.html files don't need executable bitsMichael Stahl
2012-03-23README files don't need executable bitsMichael Stahl
2012-03-23.csv files don't need executable bitsMichael Stahl
2012-03-23.component files don't need executable bitsMichael Stahl
2012-03-23.gif files don't need executable bitsMichael Stahl
2012-03-23.hrc files don't need executable bitsMichael Stahl
2012-03-23Improve error reportingStephan Bergmann
2012-03-23Java new cannot return nullStephan Bergmann
2012-03-23Improve error reportingStephan Bergmann
2012-03-23fdo#46102: Fix Java script examples after gbuild'ificationStephan Bergmann
2012-03-23fdo#46102: Load Java scripts with class loaders that actually find themStephan Bergmann
2012-03-23scripting: don't need x bits for theseMichael Stahl
2012-03-22fdo#46102: Fix scripting jar manifests after gbuild'ificationStephan Bergmann
2012-03-21chmod -xTor Lillqvist