/* -*- 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 SVXCORE_DLLPUBLIC SdrMeasureObj final : public SdrTextObj
{ private: // to allow sdr::properties::MeasureProperties access to SetTextDirty() friendclass sdr::properties::MeasureProperties; friendclass SdrMeasureField;
// Creating: // ~~~~~~~~~ // dragging reference point 1 to reference point 2 -> reference edge // // Defaults: // ~~~~~~~~~~~~~ // dimension line and auxiliary dimension lines: solid black hairlines // arrows : 2mm x 4mm // text size // ___ // | dimension | 2mm // |<--------------------->|--- // | | 8mm // | | // Pt1============# Pt2-- <----reference edge (from Pt1 to Pt2) // # # |___ <-excess length of the auxiliary dimension line(s) // # #=========# // # objected to be dimensioned # // #=======================# // // Attributes: // ~~~~~~~~~~ // 1. Where is the text: middle, right or left (default=automatic) // 2. Text above or below the line or line broken by text (default=automatic) // Default=8mm // 3. The distance from the dimension line to the reference edge (= to the dimensioned object) // 4. dimension line below the reference edge (default=no)) // 5. excess length of the auxiliary dimension lines beyond the reference edge (2x, default=0) // 6. excess length of the auxiliary dimension lines past the dimension line (default=2mm) // 7. distance between the auxiliary dimension line and the reference edge // // Dragging: Handle Shift // ~~~~~~~~~ // - reference points SolidQuadHdl only the length // 1.+2. Seizing the text // 3.+4. Hdl on arrow (2x) SolidQuadHdl only the Bool // 5. Hdl one end point CircHdl both lengths ? // 6.+7. no dragging // // Open: // ~~~~~~ // - radiuses (anchor as type immediately) // // Special: // ~~~~~~~~ // Connecting to a maximum of two objects // -> during Copy, etc. use the respective code of the connectors?!? // this probably will be pretty complicated ...
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.