/* -*- 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 .
*/
class OverlayStaticRectanglePrimitive final : public DiscreteMetricDependentPrimitive2D
{ private:
basegfx::B2DPoint maPosition;
basegfx::B2DSize maSize;
// the graphic definition
basegfx::BColor maStrokeColor;
basegfx::BColor maFillColor; double mfTransparence;
// the rotation of the primitive itself double mfRotation;
// Overlay helper class which holds a BotmapEx which is to be visualized // at the given logic position with the Bitmap's pixel size, unscaled and // unrotated (like a marker). The discrete pixel on the bitmap associated // with the target position is given in discrete X,Y coordinates namespace drawinglayer::primitive2d
{ class OverlayBitmapExPrimitive final : public DiscreteMetricDependentPrimitive2D
{ private: // The BitmapEx to use, PixelSize is used
BitmapEx maBitmapEx;
// The logic position
basegfx::B2DPoint maBasePosition;
// The pixel inside the BitmapEx which is associated with // the target position (offset in the bitmap)
sal_uInt16 mnCenterX;
sal_uInt16 mnCenterY;
// evtl. rotation and shear around center double mfShearX; double mfRotation;
virtual sal_uInt32 getPrimitive2DID() const override;
};
} // end of namespace drawinglayer::primitive2d
// Overlay helper class for a crosshair namespace drawinglayer::primitive2d
{ class OverlayCrosshairPrimitive final : public ViewportDependentPrimitive2D
{ private: // The logic position
basegfx::B2DPoint maBasePosition;
// The stripe colors and length
basegfx::BColor maRGBColorA;
basegfx::BColor maRGBColorB; double mfDiscreteDashLength;
virtual sal_uInt32 getPrimitive2DID() const override;
};
} // end of namespace drawinglayer::primitive2d
// Overlay helper class for a hatch rectangle as used e.g. for text object // selection highlighting namespace drawinglayer::primitive2d
{ class OverlayRectanglePrimitive final : public DiscreteMetricDependentPrimitive2D
{ private: // the logic rectangle definition
basegfx::B2DRange maObjectRange;
// the graphic definition
basegfx::BColor maColor; double mfTransparence;
// the discrete grow and shrink of the box double mfDiscreteGrow; double mfDiscreteShrink;
// the rotation of the primitive itself double mfRotation;
virtual sal_uInt32 getPrimitive2DID() const override;
};
} // end of namespace drawinglayer::primitive2d
// Overlay helper class for rolling rectangle helplines. This primitive is // only for the extended lines to the ends of the view
namespace drawinglayer::primitive2d
{ class OverlayRollingRectanglePrimitive final : public ViewportDependentPrimitive2D
{ private: // The logic range
basegfx::B2DRange maRollingRectangle;
// The stripe colors and length
basegfx::BColor maRGBColorA;
basegfx::BColor maRGBColorB; double mfDiscreteDashLength;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.