/* -*- 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_SALGTYPE_HXX #define INCLUDED_VCL_SALGTYPE_HXX #include #include #include #include enum class DeviceFormat { NONE = -1, DEFAULT = 0, #ifdef IOS GRAYSCALE = 8 #endif }; constexpr ::Color SALCOLOR_NONE ( ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF ); struct SalTwoRect { tools::Long mnSrcX; tools::Long mnSrcY; tools::Long mnSrcWidth; tools::Long mnSrcHeight; tools::Long mnDestX; tools::Long mnDestY; tools::Long mnDestWidth; tools::Long mnDestHeight; SalTwoRect(tools::Long nSrcX, tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight, tools::Long nDestX, tools::Long nDestY, tools::Long nDestWidth, tools::Long nDestHeight) : mnSrcX(nSrcX), mnSrcY(nSrcY), mnSrcWidth(nSrcWidth), mnSrcHeight(nSrcHeight) , mnDestX(nDestX), mnDestY(nDestY), mnDestWidth(nDestWidth), mnDestHeight(nDestHeight) { } }; template inline std::basic_ostream& operator<<(std::basic_ostream& stream, const SalTwoRect& rPosAry) { tools::Rectangle aSrcRect(rPosAry.mnSrcX, rPosAry.mnSrcY, rPosAry.mnSrcX + rPosAry.mnSrcWidth, rPosAry.mnSrcY + rPosAry.mnSrcHeight); tools::Rectangle aDestRect(rPosAry.mnDestX, rPosAry.mnDestY, rPosAry.mnDestX + rPosAry.mnDestWidth, rPosAry.mnDestY + rPosAry.mnDestHeight); stream << aSrcRect << " => " << aDestRect; return stream; } enum class SalROPColor { N0, N1, Invert }; enum class SalInvert { NONE = 0x00, N50 = 0x01, TrackFrame = 0x02 }; namespace o3tl { template<> struct typed_flags : is_typed_flags {}; } #endif // INCLUDED_VCL_SALGTYPE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ labora/cp-4.1'>distro/collabora/cp-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-10-27ofz#40404 try smaller documents to avoid timeoutsCaolán McNamara
2021-10-26ofz#1493240 Unchecked return valueCaolán McNamara
2021-10-24cid#1493240 silence Unchecked return valueCaolán McNamara
2021-10-21ofz#40166 fix build failureCaolán McNamara
2021-10-21ofz#40166 fix build failureCaolán McNamara
2021-10-20mtfdemo: Dump metaactions, fix problems with repaintHossein
2021-10-05drop 'using namespace std' in vcl (Windows part)Julien Nabet
2021-09-28vcl: rename OutDevState to StackChris Sherlock
2021-09-25add dbffuzzerCaolán McNamara
2021-09-22add a TestImportDBFCaolán McNamara
2021-09-20clean up ambiguous confusing rectangle APIs like IsInside()Luboš Luňák
2021-09-20Add sal/config.h in preparation for patchChris Sherlock
2021-09-18ofz: reduce size of hwp inputCaolán McNamara
2021-09-18vcl: create FontMetric from PhysicalFontFaceChris Sherlock
2021-09-05ofz: fods timeout, set SAX_DISABLE_THREADSCaolán McNamara
2021-09-04use std::vector for fetching DX array dataNoel Grandin
2021-09-01ofz: set JSIMD_FORCENONE for msan to handle jpeg_read_scanlinesCaolán McNamara
2021-08-18undo changes to TextAlignCaolán McNamara
2021-08-17ofz: Indirect-leakCaolán McNamara
2021-08-16Drop tools::Rectangle::getX/getY, which are just duplicates of Left/TopMike Kaganski
2021-08-07Replace ReadGDIMetaFile with Svmreader::Read in fftester.cxxpanoskorovesis
2021-08-07Replace ReadGDIMetaFile with SvmReader::Read in svmfuzzer.cxxpanoskorovesis
2021-07-30convert TextAlign to scoped enumCaolán McNamara
2021-07-23do not use "using namespace std" in headersCollabora
2021-06-07ofz#35033 missing componentsCaolán McNamara
2021-05-29ofz#34763 missing componentsCaolán McNamara
2021-05-27osl::Module::loadRelative against symbol from executable is unreliableStephan Bergmann
2021-05-26ofz#34602 missing a componentCaolán McNamara
2021-05-25ofz#34602 missing a componentCaolán McNamara
2021-05-19ImplPlayWithRenderer never checks its OutputDevice against nullptrCaolán McNamara
2021-05-18tdf#104169 - Change mouse cursor to FatCross in calc spreadsheetSarabjot Singh
2021-05-17split OutputDevice from WindowNoel Grandin
2021-05-09fix fuzzer buildCaolán McNamara
2021-04-26drop mask from BitmapExNoel Grandin
2021-04-05SAL_WMF_COMPLEXCLIP_VIA_REGION is gone nowCaolán McNamara
2021-04-01drop AFL_DRIVER_DONT_DEFER from fuzzing .optionsCaolán McNamara
2021-04-01ReleaseSolarMutex before possible afl forkCaolán McNamara
2021-03-28oss-fuzz: stub out new entry pointsCaolán McNamara
2021-03-28drop operator bool and operator! from Bitmap and BitmapExNoel