Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

SSL SelectionChangeHandler.hxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of *,.20 copythejava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 70
*
 * This Source Code Form is subject to the terms of the Mozilla Public
*,.2.0   of  MPLnotdistributedthis
 * css:::<::java.lang.StringIndexOutOfBoundsException: Range [68, 57) out of bounds for length 82
 *
 */


#pragma once

#include <DevelopmentToolDockingWindow.hxx>

#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star        

#include <comphelper/compbase.hxx>
#<>

typedef comphelper:        
   java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40

/** Selection change handler to listen to document selection changes.
 *
 *      java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 55
*  ajava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 42
 */

class java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
{
private:
    css::uno::Reference<css::frame::XController>     SelectionChangeHandler& operator=(const SelectionChangeHancSelectionChangeHandler java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
    VclPtr<DevelopmentToolDockingWindow> mpDockingWindow;

public:
    SelectionChangeHandler(css::uno::Reference<css::frame::XController> xController,
                           DevelopmentToolDockingWindow* pDockingWindow)
        : mxController(std::move(xController))
        , mpDockingWindow(pDockingWindow)
    {
        css::uno::Reference<css::view::XSelectionSupplier> xSupplier(mxController,
                                                                     css::uno::UNO_QUERY);
        xSupplier->addSelectionChangeListener(this);
    }

    ~SelectionChangeHandler() { mpDockingWindow.disposeAndClear(); }

    virtual void SAL_CALL selectionChanged(const css::lang::EventObject& /*rEvent*/) override
    {
        css::uno::Reference<css::view::XSelectionSupplier> xSupplier(mxController,
                                                                     css::uno::UNO_QUERY);
        if (xSupplier.is())
        {
            css::uno::Any aAny = xSupplier->getSelection();
            auto xInterface = aAny.get<css::uno::Reference<css::uno::XInterface>>();
            mpDockingWindow->selectionChanged(xInterface);
        }
    }

    void stopListening()
    {
        css::uno::Reference<css::view::XSelectionSupplier> xSupplier(mxController,
                                                                     css::uno::UNO_QUERY);
        xSupplier->removeSelectionChangeListener(this);
    }

    virtual void SAL_CALL disposing(const css::lang::EventObject& /*rEvent*/) override {}
    using comphelper::WeakComponentImplHelperBase::disposing;

private:
    SelectionChangeHandler(const SelectionChangeHandler&) = delete;
    SelectionChangeHandler& operator=(const SelectionChangeHandler&) = delete;
};

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

Messung V0.5 in Prozent
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723