LibreOffice Module forms (master) 1
controlfeatureinterception.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
23#include <com/sun/star/uno/XComponentContext.hpp>
24
25#include <memory>
26
27#include "urltransformer.hxx"
28
29
30namespace frm
31{
32
33
34 class UrlTransformer;
35
36 //= ControlFeatureInterception
37
48 {
49 private:
50 css::uno::Reference< css::frame::XDispatchProviderInterceptor >
52 ::std::unique_ptr< UrlTransformer > m_pUrlTransformer;
53
54 public:
58
59 public:
60 ControlFeatureInterception( const css::uno::Reference< css::uno::XComponentContext >& _rxORB );
61
62 // XDispatchProviderInterception
64 void registerDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& Interceptor );
66 void releaseDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& Interceptor );
67
68 // XComponent
69 void dispose();
70
73 css::uno::Reference< css::frame::XDispatch >
74 queryDispatch( const css::util::URL& _rURL );
75
79 css::uno::Reference< css::frame::XDispatch >
80 queryDispatch( const char* _pAsciiURL );
81 };
82
83
84} // namespace frm
85
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
helper class for controls which allow some of their features to be intercepted by external instances
void releaseDispatchProviderInterceptor(const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor)
css::uno::Reference< css::frame::XDispatchProviderInterceptor > m_xFirstDispatchInterceptor
const UrlTransformer & getTransformer() const
retrieves our URL transformer, so our clients may use it, too
void registerDispatchProviderInterceptor(const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor)
css::uno::Reference< css::frame::XDispatch > queryDispatch(const css::util::URL &_rURL)
queries the interceptor chain for the given dispatch, with a blank target frame and no frame search f...
ControlFeatureInterception(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
::std::unique_ptr< UrlTransformer > m_pUrlTransformer
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25