File indexing completed on 2024-05-12 15:56:45
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "KoPostscriptPaintDevice.h" 0008 0009 #include <limits.h> 0010 0011 KoPostscriptPaintDevice::KoPostscriptPaintDevice() 0012 { 0013 } 0014 0015 QPaintEngine *KoPostscriptPaintDevice::paintEngine() const 0016 { 0017 return 0; 0018 } 0019 0020 int KoPostscriptPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const 0021 { 0022 switch (metric) { 0023 case QPaintDevice::PdmWidth: 0024 case QPaintDevice::PdmHeight: 0025 case QPaintDevice::PdmWidthMM: 0026 case QPaintDevice::PdmHeightMM: 0027 case QPaintDevice::PdmNumColors: 0028 return INT_MAX; 0029 case QPaintDevice::PdmDepth: 0030 return 32; 0031 case QPaintDevice::PdmDpiX: 0032 case QPaintDevice::PdmDpiY: 0033 case QPaintDevice::PdmPhysicalDpiX: 0034 case QPaintDevice::PdmPhysicalDpiY: 0035 default: 0036 return 72; 0037 } 0038 return 0; // should never be hit 0039 }