LibreOffice Module extensions (master) 1
pushbuttonnavigation.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/beans/XPropertySet.hpp>
23#include <com/sun/star/beans/PropertyState.hpp>
24#include <com/sun/star/form/FormButtonType.hpp>
25
26
27namespace pcr
28{
29
30
31 //= PushButtonNavigation
32
34 {
35 css::uno::Reference< css::beans::XPropertySet >
38
39 public:
44 explicit PushButtonNavigation(
45 const css::uno::Reference< css::beans::XPropertySet >& _rxControlModel
46 );
47
51 css::uno::Any
53
57 void setCurrentButtonType( const css::uno::Any& _rValue ) const;
58
62 css::beans::PropertyState
64
68 css::uno::Any
69 getCurrentTargetURL() const;
70
74 void setCurrentTargetURL( const css::uno::Any& _rValue ) const;
75
79 css::beans::PropertyState
81
84 bool currentButtonTypeIsOpenURL() const;
85
88 bool hasNonEmptyCurrentTargetURL() const;
89
90 private:
91 css::form::FormButtonType implGetCurrentButtonType() const;
92 };
93
94
95} // namespace pcr
96
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool currentButtonTypeIsOpenURL() const
determines whether the current button type is FormButtonType_URL
css::form::FormButtonType implGetCurrentButtonType() const
void setCurrentButtonType(const css::uno::Any &_rValue) const
sets the current value of the "ButtonType" property, taking into account the "virtual" button types s...
void setCurrentTargetURL(const css::uno::Any &_rValue) const
sets the current value of the "TargetURL" property, taking into account that some URLs are special va...
css::beans::PropertyState getCurrentButtonTypeState() const
retrieves the current state of the "ButtonType" property, taking into account the "virtual" button ty...
css::uno::Reference< css::beans::XPropertySet > m_xControlModel
css::uno::Any getCurrentButtonType() const
returns the current value of the "ButtonType" property, taking into account the "virtual" button type...
css::uno::Any getCurrentTargetURL() const
returns the current value of the "TargetURL" property, taking into account that some URLs are special...
PushButtonNavigation(const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel)
ctor
css::beans::PropertyState getCurrentTargetURLState() const
retrieves the current state of the "TargetURL" property, taking into account that some URLs are speci...
bool hasNonEmptyCurrentTargetURL() const
determines whether the TargetURL property does currently denote a non-empty string
a property handler for any virtual string properties
Definition: browserline.cxx:39