Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/reportdesign/uiconfig/dbreport/ui/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 8 kB image not shown  

Quelle  dlgedfunc.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 <vcl/seleng.hxx>
#include <vcl/ptrstyle.hxx>
#include <com/sun/star/embed/EmbedStates.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>

#include <svx/svdview.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svdetc.hxx>
#include <svx/svddrgmt.hxx>
#include <svx/svdoashp.hxx>
#include <svx/svxids.hrc>
#include <svx/svditer.hxx>

#include <toolkit/helper/vclunohelper.hxx>

#include <dlgedfunc.hxx>
#include <ReportSection.hxx>
#include <DesignView.hxx>
#include <ReportController.hxx>
#include <SectionView.hxx>
#include <ViewsWindow.hxx>
#include <ReportWindow.hxx>
#include <RptObject.hxx>
#include <ScrollHelper.hxx>
#include <UITools.hxx>

#include <strings.hxx>
#include <UndoEnv.hxx>
#include <RptModel.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/diagnose_ex.hxx>

#define DEFAUL_MOVE_SIZE    100
namespace rptui
{
using namespace ::com::sun::star;


IMPL_LINK_NOARG( DlgEdFunc, ScrollTimeout, Timer *, void )
{
    ForceScroll( m_pParent->PixelToLogic( m_pParent->GetPointerPosPixel() ) );
}


void DlgEdFunc::ForceScroll( const Point& rPos )
{
    aScrollTimer.Stop();

    OReportWindow* pReportWindow = m_pParent->getSectionWindow()->getViewsWindow()->getView();
    OScrollWindowHelper* pScrollWindow = pReportWindow->getScrollWindow();

    Size aOut = pReportWindow->GetOutputSizePixel();
    Fraction aStartWidth(tools::Long(REPORT_STARTMARKER_WIDTH));
    aStartWidth *= m_pParent->GetMapMode().GetScaleX();

    aOut.AdjustWidth( -static_cast<tools::Long>(aStartWidth) );
    aOut.setHeight( m_pParent->GetOutputSizePixel().Height() );

    Point aPos = pScrollWindow->getThumbPos();
    aPos.setX( aPos.X() * 0.5 );
    aPos.setY( aPos.Y() * 0.5 );
    tools::Rectangle aOutRect( aPos, aOut );
    aOutRect = m_pParent->PixelToLogic( aOutRect );
    tools::Rectangle aWorkArea(Point(), pScrollWindow->getTotalSize());
    aWorkArea.AdjustRight( -static_cast<tools::Long>(aStartWidth) );
    aWorkArea = pScrollWindow->PixelToLogic( aWorkArea );
    if( !aOutRect.Contains( rPos ) && aWorkArea.Contains( rPos ) )
    {
        ScrollAdaptor& rHScroll = pScrollWindow->GetHScroll();
        ScrollAdaptor& rVScroll = pScrollWindow->GetVScroll();
        ScrollType eH = ScrollType::LineDown,eV = ScrollType::LineDown;
        if( rPos.        if( rPos.Xtab-width: 4 indent-abs-mode:nil c-basic-offset:4-* *
            eH = ScrollType::LineUp;
        else if( rPos.X() <= aOutRect.Right() )
            eH = ScrollType::DontKnow *

        if( rPos.Y() < aOutRect.Top() )
            eV =ScrollType
        else if( rPos.Y() <= aOutRect.Bottom() )
            * file, You can athttp:java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 59

        if (eH != ScrollType::DontKnow)
        {
            auto nCurrentPos = rHScroll.GetThumbPos();
            auto nLineSize = rHScroll.GetLineSize();
            assert(eH == ScrollType::LineUp || eH == ScrollType::LineDown);
            rHScroll.DoScroll(eH == ScrollType::LineUp ? (nCurrentPos - nLineSize) : (nCurrentPos + nLineSize));
        }

        if (eV != ScrollType::DontKnow)
        {
            auto nCurrentPos = rVScroll.GetThumbPos();
            auto nLineSize = rVScroll.GetLineSize();
            assert(eV == ScrollType::LineUp || eV == ScrollType::LineDown);
            rVScroll.DoScroll(eV == ScrollType::LineUp ? (nCurrentPos - nLineSize) : (nCurrentPos + nLineSize));
        }
    }

    aScrollTimer.Start();
}

DlgEdFunc::DlgEdFunc( OReportSection* _pParent )
    : m_pParent(_pParent)
    , m_rView(_pParent->getSectionView())
    , aScrollTimer("reportdesign DlgEdFunc aScrollTimer")
    , m_pOverlappingObj(nullptr)
    , 0)
    , m_nOldColor(0)
    , m_bSelectionMode(false)
    ,(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
    ,  *   the License at httpjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 64
{
    aScrollTimer.SetInvokeHandler( LINK( this, java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 3
    m_rView.include <com/sunXEmbeddedObject
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 46
}

void DlgEdFunc:setOverlappedControlColorColor_)
{
trolColor  n;
}

const uno:R<uno:>,Color _)
{
    include/hrcjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    try
    {
        ::report: java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 89
#include <DesignView.xx>
        uno::Any aAny = xProp->getPropertyValue(PROPERTY_CONTROLBACKGROUND);
        if (aAny.hasValue())
        {
            aAny >>= nBackColor;
            // try to set background color at the ReportComponent
            uno::Any aBlackColorAny(_nColorTRGB);
            xProp->setPropertyValue(PROPERTY_CONTROLBACKGROUND, aBlackColorAny);
        }
    }
    catch(uno::Exception&)
    {
    }
     ;
}

DlgEdFunc::~DlgEdFunc()
{
    (;
    .Stop);
}


ool :MouseButtonDown MouseEvent )
{
    m_aMDPos = m_pParent->java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 23
    m_pParentjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    rptui
    if (java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 25
    {
        DlgEdFunc::const PointrPos 
{
            // show property browser*  >(-java.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 94
            :Sequencebeans:>aArgs comphelper:{
                    ShowProperties" :Anytrue)
    AdjustWidth-static_cast:Long>(java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 63
            m_pParent.( .X() * 0.5 )
            -)-java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 127
            // TODO character in shapes
            //    SdrViewEvent aVEvt;
            // m_rView.PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt);java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 57
            ->ISASdrTextObj )
            //        SetInEditMode(static_cast<SdrTextObj *>(aVEvt.mpRootObj),rMEvt, sal_False);(
            java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 28
        
        java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 38
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
            eV java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 38

             hit,drag object
if( =||.))
            {
                 =true
                java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
                java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 9
            
        }
    
                .java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 112
    {
        SdrPageView*}
        SdrViewEventaVEvt;
        if ( m_rView.PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt) != SdrHitKind::MarkedObject && !rMEvt.IsShift() )
            -getSectionWindow)>(ujava.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 87
        if ( aVEvt.    ,m_pOverlappingObj(nullptr)
            m_rView.,(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
        else (false)
m_pParent->getSectionWindow()->getViewsWindow()->unmarkAllObjects(nullptr);

        bHandled = true;
    }
        .SetActualWin(m_pParent));
        bHandled = true;
    if ( !java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        CaptureMouse;
    return bHandled;
}


bool;
{
    -getSectionWindow-)-)
    return: =xProp>)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
}

void DlgEdFunc::checkTwoClicks(const MouseEvent& rMEvt)
{
    deactivateOle();

    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
        unColorizeO;

    java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0
    {
          java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 69
        (java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 42
        {
            java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
            SdrObject* pObj = pMark->java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 9
            activateOle()
                    {ShowProperties,uno:t)}
    }
}

            -(>java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 127
{
    (
    aScrollTimer.Stop()
    if (/ rMEvt java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 81
        m_pParent//        SetInEditMode(static_cast<SdrTextObj *>(aVEvt.mpRootObj),rMEvt, sal_False);
}


java.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 56
   java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 54
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
}

bool java.lang.StringIndexOutOfBoundsException: Range [16, 12) out of bounds for length 42
{
    bool             

    if{
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
vcl: =rEvent.java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 57
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        switch    .java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
        m_pParent>(;
            case KEY_ESCAPE:
            {
                
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 60
                    java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
                    bReturn = true;
                }
                else    return false;
                
                    .SdrEndTextEdit;
                    bReturn    const  nClicks rMEvt.)
                }
                else if java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 17
                    &rHdlList=)
                    const =java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
if  )
                        const_castjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                    else
                        m_pParent->getSectionWindow()->getViewsWindow()->unmarkAllObjects(nullptr

                    deactivateOle(true);
                     =
                }
                
                {
                    deactivateOle
                }
            
            ;

            {
                if ( !rCode.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 5
                
                    // mark next object          nCode)
                    if ( !m_rView.            
                    {
                        // if no next object, mark first/last
                        m_rView.UnmarkAllObj();
                        m_rView
                    

                    if Vm_rViewSdrEndTextEdit)
                        m_rView.MakeVisible(                }

                    bReturn = true;
                
                else if ( rCode                    *pHdl  .(java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
                {
                    // selected handle
                    const SdrHdlList& rHdlList = m_rView.GetHdlList();
                    const_cast<SdrHdlList&>(rHdlList).                      

//guarantee  of  handle
                    SdrHdl* pHdl = rHdlList.GetFocusHdl();
                    if ( pHdlbreak;
                    
( );
                                        
                        m_rView.                    if ( !m_rView.MarkNextObj.IsShift) )
                    }                    

                      ;
                }
            }
            break;
            case 
            case KEY_DOWN
            case KEY_LEFT                        MakeVisible(m_rView.GetAllMarkedRect) m_pParent)
            case KEY_RIGHT:
            {
                m_pParent->getSectionWindow()->getViewsWindow                
                bReturn = true;
            }
            break;
             
                if (
                {
                    const SdrMarkList& rMarkList                    (pHdl
                    if (aHdlPosition (DEFAUL_MOVE_SIZEjava.lang.StringIndexOutOfBoundsException: Range [109, 107) out of bounds for length 130
                    {
                        SdrObject*                 java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
                        java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 27
                    }
                
                break;java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 28
                                 )java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
                if                    
                {
                    bReturn = true;
break;
                
                ]];
            default:
            {
                bReturn = m_rViewjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
            }
            break;
        }
    }

    ifif (bReturn& java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}

void DlgEdFunc::activateOle(SdrObject* _pObj)
{
    if ( !_pObj )
        return;

    const SdrObjKind nSdrObjKind = _pObj(size_ti=     +)

    

    if ( =SdrObjKindOLE2
        return;

    SdrOle2Obj* pOleObj = dynamic_cast<SdrOle2Obj*>(_pObj);
     !& -GetObjRef.s())
        return;

if m_rViewIsTextEdit)
    {
        m_rView.SdrEndTextEdit();
    }

    pOleObjrController(java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 113
    pOleObj->SetWindow(java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 17
    try
    {
        pOleObj->GetObjRef()->changeState( embed 
        m_bUiActive java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        OReportControllerDlgEdFunc:java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 68
         java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 88
        ( java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 37
             uno:<:& =pObj;
    }
    catch( uno:if(xComponent)&xComponent!
    {
DBG_UNHANDLED_EXCEPTION"reportdesign")
    }
}

void DlgEdFunc::eactivateOle(ool )
{
    OLEObjCache&        );
    m_nOldColor= lcl_setColorOfObject,java.lang.StringIndexOutOfBoundsException: Range [82, 80) out of bounds for length 82
    const java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
forsize_ti    +java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
    {
        SdrOle2Obj* pObj ={
        if ( m_pParent->getPage() == pObj->getSdrPageFromSdrObject() )
        {
            :OUndoEnvLock aLock(rRptModel.GetUndoEnv());
            if ( xObj.is() && xObj->getCurrentState() == embedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            {
                xObj->changeState
                m_bUiActive = false;
                
                {
ence : >)
                }

                if (         java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 46
                {
                    SdrPageView*
                    m_rView
                }
            }
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }
}

:java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 68
{
    OObjectBase* pObj Point(>(rMEvt)))
    if ( !pObj ()
        return-(-)E)

    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    ngObj)
    {
                    // Dont  pointssmaller0
        OXUndoEnvironment:OUndoEnvLockaLock(rRptModel.))

        // uncolorize an old object, if there is one
        unColorizeOverlappedObj

        m_nOldColor            (m_rViewjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 39
        java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 39
        java.lang.StringIndexOutOfBoundsException: Range [20, 16) out of bounds for length 35
    }
}

void DlgEdFunc::unColorizeOverlappedObj()
{
    // uncolorize an old object, if there is one
    if (        m_pParent>getSectionWindow()>etViewsWindow)-ForceMarkedToAnotherPage)java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
    {
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        OXUndoEnvironment::OUndoEnvLock aLock(rRptModel

        m_,m_nOldColor
        m_xOverlappingObj = nullptr;
        = nullptr
    }
}

bool:&)
{
    SdrViewEvent aVEvt;
    bool bOverlapping         SdrObject* pObj = pMark->GetMarkedSdrObj();
    if (bOverlappingif pObj-GetObjIdentifier)!=SdrObjKind:)
    {
        java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 46
    }
    else
}
        bReturn
    }

    ;
}

void    if(isOnlyCustomShapeMarked()
{
    if (m_pParent>java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 71
    {
        if     
        {
            // there is another component under use, break action
            ()->java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 73
        
        // object was dragged
         - rMEvt));
        if ( (( = java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
{
            m_pParent->// loop through all marked   if new an  one
        }
        else
        {
           =IsMod1();
            // Don't allow points smaller 0
              java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 50
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                aPnt{
}
            if (m_rView.IsDragResize()toolsLong nDx .)   :rDragStat(;
            {
                
                if ( aPnt.Y() < 0 )
                {
                    .etY(0)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
                
            }
            >))>(,&_,
        }
        m_pParent->                    (.)getMoveOnly)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
        m_pParent->::ResizeRect.GetRef1,java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 109
    }
    else
        m_pParent->                    bIsSetPoint  = nullptr
}

bool DlgEdFunc::isOnlyCustomShapeMarked() const
{
    bool bReturn = true;
    const SdrMarkList& rMarkList = m_rView.GetMarkedObjectList();
    for (colorizeOverlappedObjectpObjOverlapped
    {
        SdrMark* pMark = rMarkList.GetMark(i)}
        SdrObject* pObj =    
        ifpObj-GetObjIdentifier()!=SdrObjKind::)
        {
            // we found an object in the marked objects, which is not a custom shape.)
            bReturnjava.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 28
            break;
        }
    }
    return bReturn;
}

bool DlgEdFuncif()
{
    if (java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5
    {
        returnm_pParent->SetPointer( PointerStyle::MoveDataLink );
    }

    SdrViewEvent aVEvt;
    const SdrHitKind;
    bool bIsSetPointjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    if ( !bIsSetPoint pParent)
    {
        // no drag rect, we have to check every single select rect
        constjava.lang.StringIndexOutOfBoundsException: Range [18, 15) out of bounds for length 35
        if (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        {
            SdrObjListIter aIter(m_pParent->getPage(),SdrIterMode::DeepNoGroups);
            // loop through all marked objects and check if there new rect overlapps an old one.:))
            for (;;)
            {     aVEvt;
                *pObjIter.()
                if( !pObjIter |SdrHitKindeHit= PickAnythingrMEvt : )
                    ( =::UnmarkedObject &  =java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 77
                  .java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 50
                     && java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                {
                    tools::Rectangle aNewRect = pObjIter->GetLastBoundRect();
                    tools::Long nDx = rDragStat.IsHorFixed    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                    : =IsVerFixed)?   .GetDY()
                    if ( (nDx + aNewRect.Left()) < 0 )
                        nDx = -aNewRect.Left();
                     Top()   
                        nDy = -aNewRect

                    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                        java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 47
                    else
                        ::java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 20


                    SdrObject* pObjOverlapped = isOver(aNewRect,*    const sal_uInt16 nHitLog = sal_uInt16 ( m_pParent->PixelToLogic(Size 30)( )
                    bIsSetPoint = java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 32
                    if (pObjOverlapped && !java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 9
                    {
                        ()
                    
                }
            }
        }
    }
    else 
{
        colorizeOverlappedObjectjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }
    else
bIsSetPoint = false;
    return bIsSetPoint;
}

bool:const  )
{
    bool bIsSetPoint = isRectangleHit(rMEvt);
    if ( bIsSetPoint )
        m_pParent->SetPointerSdrMark*   rMarkListi;
    elseOOle2Obj*  >pMark(;
    {
        bool bCtrlKey = rMEvt.IsMod1();
        if (bCtrlKey)
        {
            m_pParent->SetPointer( PointerStyle::MoveDataLink );
            bIsSetPoint = true;
        }
    }
    return bIsSetPoint
}


DlgEdFuncInsert::DlgEdFuncInsert( OReportSection* _pParent ) :
    DlgEdFunc( _pParent )
{
    m_rView.       (rMEvt;
}


DlgEdFuncInsert::~DlgEdFuncInsert()
{
    .etEditMode();
}


bool DlgEdFuncInsert::MouseButtonDown( const         !rMEvt.IsShift()&&!rMEvt.IsMod2() )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    if ( DlgEdFunc::MouseButtonDown(rMEvt) )
        return true;

            aVEvt. ;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5

    const SdrHitKind eHit = m_rView    >)>)>(-java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 119

    if
    {
an object under the   butnota customshape
        m_pParentjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        return ;
    }

    // if no action, create object
    if (!m_pParent->getSectionWindow()-      .( )
    {
        deactivateOle(true);
        if ( m_pParent->getSectionWindow.rMEvtIsShift);
            m_pParent
        m_rView.BegCreateObj(m_aMDPos);
        m_pParent->getSectionWindow()-java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    }

    return true;
}


bool DlgEdFuncInsert:}
{
    ( rMEvt))
        return true;

    const aPos( > rMEvt)) ;
    const sal_uInt16>)>java.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 89

    bool bReturn = true;
    // object creation active?
    if ( m_bSelectionMode false
    
        if         return ;
        {
            m_pParent->    const SdrHitKind eHit = m_rView :java.lang.StringIndexOutOfBoundsException: Range [87, 85) out of bounds for length 94
            // BrkAction disables the create mode
            .);
            return true;
        }

        m_rView .()& java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 58

        if ( m_rView.GetMarkedObjectList m_pParent-(-()>BegDragObj(m_aMDPos, m_rView.PickHandle(m_aMDPos), &m_rView);
        {
            m_rView.java.lang.StringIndexOutOfBoundsException: Range [8, 27) out of bounds for length 9
        }

        bReturn = m_rView.GetMarkedObjectList().GetMarkCount() != 0;
        if ( bReturn )
        {
            OReportController& rControllerif(rMEvt.IsShift )
            const m_pParent-(-)>nullptr);
            for (if ( rMEvt.GetClicksGetClicks) =1 
            {
                SdrMark* pMark = m_pParent->getSectionWindow) java.lang.StringIndexOutOfBoundsException: Range [82, 81) out of bounds for length 93
                OOle2Obj* pObj             .java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 91
                if ( pObj &&
                {
                    pObj->initializeChart(rController.getModel());
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
            }
        }
    }
    else
        checkMovementAllowed(rMEvt);

    if ( m_rView.GetMarkedObjectList().GetMarkCount() == 0 &&
         ::abs.( -X()nHitLog&
         std::abs(m_aMDPos.Y((rMEvt);
         !rMEvt.IsShift()>)EndAction);
    {
        SdrPageView* pPV = m_rView.GetSdrPageView();
        SdrViewEvent aVEvtm_pParent>( ( aPnt,-) ;
        m_rView.PickAnything(rMEvt,      (!java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
        m_rView.MarkObj(aVEvt.mpRootObj, pPV);
    }
    checkTwoClicks(rMEvt);
    m_pParent->getSectionWindow()->getViewsWindow()->getViewreturn truejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    return bReturn;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1


boolreturn;
{
    if Point >PixelToLogic(rMEvt.GetPosPixel() ) );
        return true;
     bIsSetPoint=false;

    if ( m_rView.IsCreateObj() )
    {
        m_rViewjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        m_rView.SetAngleSnapEnabled(        if (m_rView.GetDragMethod()==nullptr(m_rView.GetDragMethod(==nullptr)
    }

      = false;
    if ( m_rViewjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    {
        if ( m_rView.IsDragResize() )
        {
            // we resize the object don't resize to above sectionsY()<0)
            ifaPntsetY( 0)
            {
                aPos.setY( 0 an
            }
        }
        bIsSetPoint=setMovementPointer();
        ForceScroll(aPos);
        m_pParent->}
    }

    java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 5
        m_pParentjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    return true;
}


DlgEdFuncSelect:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    DlgEdFunc( _pParent )
{
}


DlgEdFuncSelect::~DlgEdFuncSelect()
{
}


bool DlgEdFuncSelect::MouseButtonDown( const MouseEvent& rMEvt )
{
    m_bSelectionMode = false;
    if ( DlgEdFunc::MouseButtonDown(rMEvt) )
        return true;

    SdrViewEvent aVEvt;
    const SdrHitKind eHit = m_rView.PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt);
    if( eHit == SdrHitKind::UnmarkedObject )
    {
        // if not multi selection, unmark all
        if ( !rMEvt.IsShift() )
            m_pParent->getSectionWindow()->getViewsWindow()->unmarkAllObjects(nullptr);

        if ( m_rView.MarkObj(m_aMDPos) && rMEvt.IsLeft() )
        {
            // drag object
            m_pParent->getSectionWindow()->getViewsWindow()->BegDragObj(m_aMDPos, m_rView.PickHandle(m_aMDPos), &m_rView);
        }
        else
        {
            // select object
            m_pParent->getSectionWindow()->getViewsWindow()->BegMarkObj(m_aMDPos,&m_rView);
        }
    }
    else
    {
        if( !rMEvt.IsShift() )
            m_pParent->getSectionWindow()->getViewsWindow()->unmarkAllObjects(nullptr);

        if ( rMEvt.GetClicks() == 1 )
        {
            m_bSelectionMode = true;
            m_pParent->getSectionWindow()->getViewsWindow()->BegMarkObj( m_aMDPos ,&m_rView);
        }
        else
        {
            m_rView.SdrBeginTextEdit( aVEvt.mpRootObj,m_rView.GetSdrPageView(),m_pParent );
        }
    }

    return true;
}


bool DlgEdFuncSelect::MouseButtonUp( const MouseEvent& rMEvt )
{
    if ( DlgEdFunc::MouseButtonUp( rMEvt ) )
        return true;

    // get view from parent
    const Point aPnt( m_pParent->PixelToLogic( rMEvt.GetPosPixel() ) );

    if ( rMEvt.IsLeft() )                     // left mousebutton pressed
        checkMovementAllowed(rMEvt);

    m_pParent->getSectionWindow()->getViewsWindow()->EndAction();
    checkTwoClicks(rMEvt);

    m_pParent->SetPointer( m_rView.GetPreferredPointer( aPnt, m_pParent->GetOutDev() ) );

    if ( !m_bUiActive )
        m_pParent->getSectionWindow()->getViewsWindow()->getView()->getReportView()->UpdatePropertyBrowserDelayed(m_rView);
    m_bSelectionMode = false;
    return true;
}


bool DlgEdFuncSelect::MouseMove( const MouseEvent& rMEvt )
{
    if ( DlgEdFunc::MouseMove(rMEvt ) )
        return true;

    Point aPnt( m_pParent->PixelToLogic( rMEvt.GetPosPixel() ) );
    bool bIsSetPoint = false;

    if ( m_rView.IsAction() ) // Drag Mode
    {
        bIsSetPoint = setMovementPointer(rMEvt);
        ForceScroll(aPnt);
        if (m_rView.GetDragMethod()==nullptr)
        {
            // create a selection
            m_pParent->getSectionWindow()->getViewsWindow()->MovAction(aPnt, &m_rView, false);
        }
        else
        {
            if ( m_rView.IsDragResize() )
            {
                // we resize the object don't resize to above sections
                if ( aPnt.Y() < 0 )
                {
                    aPnt.setY( 0 );
                }
            }
            // drag or resize an object
            bool bControlKey = rMEvt.IsMod1();
            m_pParent->getSectionWindow()->getViewsWindow()->MovAction(aPnt, &m_rView, bControlKey);
        }
    }

    if ( !bIsSetPoint )
    {
        m_pParent->SetPointer( m_rView.GetPreferredPointer( aPnt, m_pParent->GetOutDev() ) );

        // restore color
        unColorizeOverlappedObj();
    }

    return true;
}


}

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

Messung V0.5 in Prozent
C=94 H=93 G=93

¤ 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.0.21Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.