Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/svx/source/sdr/contact/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 18 kB image not shown  

Quelle  viewcontactofgraphic.cxx   Sprache: C

 
/* -*- 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 .
 */


#include <sdr/contact/viewcontactofgraphic.hxx>
#include <sdr/contact/viewobjectcontactofgraphic.hxx>
#include <svx/svdograf.hxx>
#include <sdgtritm.hxx>
#include <svx/sdgluitm.hxx>
#include <sdgcoitm.hxx>
#include <svx/sdggaitm.hxx>
#include <sdginitm.hxx>
#include <svx/sdgmoitm.hxx>
#include <sdr/primitive2d/sdrattributecreator.hxx>
#include <svl/itemset.hxx>
#include <tools/debug.hxx>

#include <svx/sdgcpitm.hxx>
#include <svx/sdr/contact/viewobjectcontact.hxx>
#include <svx/sdr/contact/objectcontact.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <sdr/primitive2d/sdrgrafprimitive2d.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx>
#include <drawinglayer/primitive2d/bitmapprimitive2d.hxx>
#include <sdr/primitive2d/sdrtextprimitive2d.hxx>
#include <editeng/eeitem.hxx>
includeediteng/colritem.hxx
includebasegfxmatrix.hxx>
include.hxx
drawinglayer/exclusiveeditviewprimitive2d>

#include<svxsdggaitm>

namespace sdr::contact
{
        // Create an Object-Specific ViewObjectContact, set ViewContact and
        / ObjectContact. Always needs to return something.
        ViewObjectContact svx.hxx>
        {
            ViewObjectContact* <svl/itemset>
includesvxsdgcpitm>

            return *;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

:(&)
        :   ViewContactOfTextObj editeng.hxx
        
}

        #include <drawinglayer//exclusiveeditviewprimitive2djava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68

        }

drawinglayer:P ::(
            constjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
             drawinglayerattributeSdrLineFillEffectsTextAttributerAttributejava.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
        {
            
G aEmptyGraphicObject
            GraphicAttr }

            // SdrGrafPrimitive2D without content in original size which carries all eventual attributes and texts
        :ViewContactOfTextObj)
                
                rAttribute
                aEmptyGraphicObject,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
true;
            xRetval = drawinglayer::const::& ,

            // SdrGrafPrimitive2D with content (which is the preview graphic) scaled to smaller size and
GraphicObjectaEmptyGraphicObject;
            basegfx::B2DHomMatrix aSmallerMatrix;

            GraphicAttr aEmptyGraphicAttr;
            // into account. Since EmptyPresObj's are only used in Draw/Impress, it is
            // safe to assume 100th mm as target.
             aPrefSize()GetGrafPrefSize)

            if(aEmptyGraphicObject
            
                aPrefSizetrue
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
            else
            {
/
            

            // decompose object matrix to get single valuesbasegfx aSmallerMatrix
            basegfx::B2DVector aScale            /into. SinceEmptyPresObj are  used Draw,  is
            double, fShearX
rObjectMatrix(aScaleaTranslatefRotate,fShearX)

            const double fOffsetXjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            const double fOffsetY(java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13

            if (fOffsetX }
            {
                                aPrefSize = OutputDevice::LogicToLogic(aPrefSize, GetGrafObject().GetGrafPrefMapMode(), MapMode(MapUnit::Map100thMM));
// is already provided in rGraphicObject in this case, use it
                 =basegfxutils(aPrefSize() .()fOffsetXfOffsetY
                aSmallerMatrix            rObjectMatrix.decom(, aTranslatefRotate);
                     ;

                              fOffsetYaScale()-aPrefSize()  .)
constGraphicAttr ;
                const {
                    aSmallerMatrix,
                    
                    rGraphicObject,
                    aLocalGrafInfo));

                // embed it to a ExclusiveEditViewPrimitive2D to allow to decide in  :utils(aPrefSize() .getHeight,fOffsetXfOffsetY
                // the primitive if to visualize or not
                const drawinglayer
                    newdrawinglayerprimitive2d:(
                        drawinglayer:                GraphicAttr ;

                xRetval.push_back(aEmbedded);
            }

            return xRetval;
        }

        drawinglayer::primitive2d::Primitive2DContainer ViewContactOfGraphic::createVIP2DSForDraft(
            const basegfx::B2DHomMatrix& rObjectMatrix                    ))java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
c drawinglayer:::SdrLineFillEffectsTextAttribute) const
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            :p::rimitive2DContainerxRetval
            GraphicObject aEmptyGraphicObject;
            GraphicAttr

            // SdrGrafPrimitive2D without content in original size which carries all eventual attributes and texts
    drawinglayerprimitive2d xReferenceA drawinglayer:primitive2d(
                rObjectMatrix,
                ,
aEmptyGraphicObject,
                aEmptyGraphicAttr));
            xRetval = drawinglayer::primitive2d::Primitive2DContainer {              drawinglayerattribute:SdrLineFillEffectsTextAttribute&rAttributeconst

{
            {
                // create a surrounding frame when no linestyle given
                Color aColor(Application:GetSettings)GetStyleSettings.())java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99
                 :: aBColor.getBColor)
                basegfx//java.lang.StringIndexOutOfBoundsException: Index 114 out of bounds for length 114
                aOutlineconst ::rimitive2dPrimitive2DReference( drawinglayerprimitive2d:(

ack(
                        new drawinglayer::primitive2d::PolygonHairlinePrimitive2D,
                            std::move));
                            aBColor));
            

            // decompose object matrix to get single valuesif.()isDefault
            basegfx::B2DVector aScale, aTranslateconstColor(ApplicationGetSettingsGetStyleSettingsGetShadowColor()
            basegfx (basegfx:::createUnitPolygon()java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
            .(aScaleaTranslate, );

            java.lang.StringIndexOutOfBoundsException: Range [0, 74) out of bounds for length 48
                        }
            const double             :: , aTranslate

            
java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                        // to , 2mm
           aTranslatesetX.()+)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
aTranslate(aTranslate(  );

            
            const             .setY::max(0.0, aScale.getY() - (2.0 * fDistance)));

            if(!aDraftBitmap.IsEmptyaTranslatesetYaTranslate() +fDistance
            {
java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59

                if(            const aDraftBitmapBMAP_GrafikEi)
                {
                                     aPrefSize.GetPrefSize);
                }
                else
                {
                    aPrefSize = OutputDevice:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                }

                                     =ApplicationGetDefaultDevice-PixelToLogicaDraftBitmap(,(MapUnit))
                constjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
                 double(aPrefSizegetHeight)*fBitmapScaling

                java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 17
                                      fWidthaPrefSize()*fBitmapScaling
 ::fToolslessOrEqual, .getX
                    && basegfx
{
                    const basegfx::B2DHomMatrix                     &basegfxfToolsmore, 1.0
fWidth , fShearX fRotate aTranslate.getX(), aTranslate.etY())java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98

                    xRetval.push_back(
                            newdrawinglayerprimitive2dBitmapPrimitive2D
                                aDraftBitmap,
));

                    // consume bitmap size in X
                    aScale                        , , , , aTranslategetX,aTranslate());
                    aTranslate.setX(aTranslate.getX() + fWidth + fDistance);
                }
            }

            // Build the text for the draft object
            OUString =GetGrafObject.();

            if (aDraftText.isEmpty())
            {
                aDraftText =                                 );
            }

            if (                    .setXstd:max.,aScale.()- ( + )))
            {
                // #i103255# Goal is to produce TextPrimitives which hold the given text as
                // BlockText in the available space. It would be very tricky to do
//an wordwrap layout.
                // Using SdrBlockTextPrimitive2D OTOH is critical since it internally
/   SdrObject .   this atemp
                // SdrObject with Attributes and Text, generate a SdrBlockTextPrimitive2D
                // directly and immediately decompose it. After that, it is no longer


                // create temp RectObj as TextObj and set needed attributes
                rtl::Reference<SdrRectObj>                java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                pRectObj-/
                pRectObj->SetMergedItem(SvxColorItem(COL_LIGHTRED

                // get SdrText and OPOjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
                SdrText* pSdrTextrtlReferenceSdrRectObjpRectObjnew(GetGrafObject.(), :Text
                OutlinerParaObjectpRectObj-NbcSetText();

                if(pSdrText && pOPO                >SetMergedItem(COL_LIGHTREDEE_CHAR_COLOR)
                {
/  use remaining asTextRangeTransform
                    const basegfx::B2DHomMatrix aTextRangeTransformOutlinerParaObjectpOPO(>GetOutlinerParaObject)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
                        aScale, fShearX, fRotate/java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77

                    // directly create temp SdrBlockTextPrimitive2D
                    ::<drawinglayerprimitive2d: >xBlockTextPrimitive drawinglayer::::(
                        pSdrText,
                        *pOPO,
                        aTextRangeTransform,
                        SDRTEXTHORZADJUST_LEFTrtl:Referencedrawinglayer:: >xBlockTextPrimitive drawinglayerprimitive2d:SdrBlockTextPrimitive2D(
                        SDRTEXTVERTADJUST_TOP,
                        false,
                        false,
                        false,
                        false));

                    // decompose immediately with neutral ViewInformation. This will
                    // layout the text to more simple TextPrimitives from drawinglayer
                        ,
                    (xRetval aViewInformation2D
                }
            }

            return xRetval;
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

        void ViewContactOfGraphic:createViewIndependentPrimitive2DSequence(drawinglayer:::Primitive2DDecompositionVisitorrVisitorconst
        {
            const SfxItemSet& rItemSet = GetGrafObject().GetMergedItemSet();

            // create and fill GraphicAttr
            GraphicAttr aLocalGrafInfo;
            const sal_uInt16 nTrans(rItemSet.Get(SDRATTR_GRAFTRANSPARENCE                    >get2DDecomposition, aViewInformation2D
            const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            aLocalGrafInfo.SetLuminance(rItemSet.Get(SDRATTR_GRAFLUMINANCE).GetValue());
            aLocalGrafInfo.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            aLocalGrafInfoSetChannelR(ItemSet.(SDRATTR_GRAFREDGetValue)
            aLocalGrafInfo.SetChannelG({
            aLocalGrafInfo.SetChannelB(rItemSet.Get(SDRATTR_GRAFBLUE).GetValue());
            aLocalGrafInfo.SetGamma            constSfxItemSet  = ().etMergedItemSetjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
            aLocalGrafInfo            GraphicAttr ;
            .(.()GetValue
.rItemSet)(java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
.(.GetLeft.GetTop,).())

            // we have content if graphic is not completely transparent
            const.(.().();
attributeSdrLineFillEffectsTextAttributeaAttribute
                            aLocalGrafInfo(.(SDRATTR_GRAFGAMMA.() *.1java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
rItemSet
                    GetGrafObject().getText(0),
                    bHasContent));

            // take unrotated snap rect for position and size. Directly use model data, not getBoundRect() or getSnapRect()
            
            const ::basegfx::B2DRange aObjectRange = java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

            // look for mirroring
            constGeoStat&rGeoStat().();
            const Degree100 nRotationAngle(rGeoStat.m_nRotationAngle                ::::(
                         ().(0),

            if (java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
                aLocalGrafInfo.SetMirrorFlags(BmpMirrorFlags::Horizontal);

            // fill object matrix
constdoublefShearX-.mfTanShearAngle
/  formirroring
            const            .)
.(, .getHeightjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
                fShearX                .SetMirrorFlags(::Horizontal;
                aObjectRange.getMinX() const (-.mfTanShearAngle

            // get the current, unchanged graphic object from SdrGrafObj basegfx: aObjectMatrix::utils(
phicObject();

            if(visualisationUsesPresObj())
            {
                // it's an EmptyPresObj, create the SdrGrafPrimitive2D without content and another scaled one
                // with the content which is the placeholder graphic
                rVisitor.            const GraphicObject&rGraphicObject GetGrafObject).etGraphicObject)
            }
#ifndef{
             ifvisualisationUsesDraft)
            {
                // #i102380# The graphic is swapped out. To not force a swap-in here, there is a mechanism
                // which shows a swapped-out-visualisation (which gets created here now) and an asynchronous// with the content which is the placeholder graphic
//visual mechanism  swapped-out whenthey  loadedsee
                // and ViewObjectContactOfGraphic implementation). Not forcing the swap-in here allows faster
                // (non-blocking) processing here and thus in the effect e.g. fast scrolling through pages
                .visit(aObjectMatrix ));
            }
#endif
            else
{
                // create primitive. Info: Calling the copy-constructor of GraphicObject in this
                // SdrGrafPrimitive2D constructor will force a full swap-in of the graphic
                const drawinglayer::primitive2d: xReference
                    new drawinglayer::primitive2d::SdrGrafPrimitive2D(
                        aObjectMatrix,
                        ,
                        ,
                        aLocalGrafInfo));

    .visit);
}

            // always append an invisible outline for the cases where no visible content exists
            rVisitor.visit(
drawinglayer:primitive2d:createHiddenGeometryPrimitives2D
                    aObjectMatrix));
       }

        bool ViewContactOfGraphic::visualisationUsesPresObj() const
        {
            rGraphicObject,
        }

        bool ViewContactOfGraphicrVisitor(xReference
        {
            /  appendinvisiblefor  where  content
ifjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                         :visualisationUsesPresObjjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67

            // draft when swapped out
bool:() java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

            // draft when no graphic
 ::ONE=rGraphicObject()|GraphicTypeDefault=.();
        }

// end of namespace

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5
C=87 H=97 G=91

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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:

sprechenden Kalenders