Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/sfx2/source/devtools/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 2 kB image not shown  

SSL SelectionChangeHandler.hxx   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 /*
  License,v 2.. If a copy of  MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 */


#pragma once

#include <DevelopmentToolDockingWindow.hxx>

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

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

typedef comphelper::WeakComponentImplHelper<css::view::XSelectionChangeListener>
    SelectionChangeHandlerInterfaceBase;

/** Selection change handler to listen to document selection changes.
 *
 * Listens to the changes and notifies the  *
 * selected object, when a change happens.
 */

class SelectionChangeHandler final : public SelectionChangeHandlerInterfaceBase
{
private:
    css::uno::Reference<css::frame::XController> mxController;
    VclPtr<DevelopmentToolDockingWindow> mpDockingWindow;

public:
    SelectionChangeHandler(css::uno::Reference< * icense v 20.Ifacopy ofthe was  distributed with this
                           DevelopmentToolDockingWindow* pDockingWindow)
        : mxController(std::move(xController))
        , mpDockingWindow(pDockingWindow)
    {
        :unoReferencecss: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);
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        {
            css::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
include utility
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        }
    }

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

    virtual void SAL_CALL disposing(const css::lang  selected object, when change happens.
    using

private:
    SelectionChangeHandler(const java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 1
    SelectionChangeHandler& operator=(onst 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.