blob: 9c17ebe6cb1d4d7e20e48175a30d819efe03ef93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
/* -*- 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/.
*/
#include <QtInstanceWidget.hxx>
QtInstanceWidget::QtInstanceWidget(QWidget* pWidget)
: m_pWidget(pWidget)
{
assert(pWidget);
}
void QtInstanceWidget::set_sensitive(bool) {}
bool QtInstanceWidget::get_sensitive() const { return true; }
bool QtInstanceWidget::get_visible() const { return true; }
bool QtInstanceWidget::is_visible() const { return true; }
void QtInstanceWidget::set_can_focus(bool) {}
void QtInstanceWidget::grab_focus() {}
bool QtInstanceWidget::has_focus() const { return true; }
bool QtInstanceWidget::is_active() const { return true; }
bool QtInstanceWidget::has_child_focus() const { return true; }
void QtInstanceWidget::show() {}
void QtInstanceWidget::hide() {}
void QtInstanceWidget::set_size_request(int, int) {}
Size QtInstanceWidget::get_size_request() const { return Size(); }
Size QtInstanceWidget::get_preferred_size() const { return Size(); }
float QtInstanceWidget::get_approximate_digit_width() const { return 1.0; }
int QtInstanceWidget::get_text_height() const { return 1; }
Size QtInstanceWidget::get_pixel_size(const OUString&) const { return Size(); }
vcl::Font QtInstanceWidget::get_font() { return vcl::Font(); }
OUString QtInstanceWidget::get_buildable_name() const { return OUString(); }
void QtInstanceWidget::set_buildable_name(const OUString&) {}
void QtInstanceWidget::set_help_id(const OUString&) {}
OUString QtInstanceWidget::get_help_id() const { return OUString(); }
void QtInstanceWidget::set_grid_left_attach(int) {}
int QtInstanceWidget::get_grid_left_attach() const { return 1; }
void QtInstanceWidget::set_grid_width(int) {}
void QtInstanceWidget::set_grid_top_attach(int) {}
int QtInstanceWidget::get_grid_top_attach() const { return 1; }
void QtInstanceWidget::set_hexpand(bool) {}
bool QtInstanceWidget::get_hexpand() const { return true; }
void QtInstanceWidget::set_vexpand(bool) {}
bool QtInstanceWidget::get_vexpand() const { return true; }
void QtInstanceWidget::set_margin_top(int) {}
void QtInstanceWidget::set_margin_bottom(int) {}
void QtInstanceWidget::set_margin_start(int) {}
void QtInstanceWidget::set_margin_end(int) {}
int QtInstanceWidget::get_margin_top() const { return 1; }
int QtInstanceWidget::get_margin_bottom() const { return 1; }
int QtInstanceWidget::get_margin_start() const { return 1; }
int QtInstanceWidget::get_margin_end() const { return 1; }
void QtInstanceWidget::set_accessible_name(const OUString&) {}
void QtInstanceWidget::set_accessible_description(const OUString&) {}
OUString QtInstanceWidget::get_accessible_name() const { return OUString(); }
OUString QtInstanceWidget::get_accessible_description() const { return OUString(); }
void QtInstanceWidget::set_accessible_relation_labeled_by(weld::Widget*) {}
void QtInstanceWidget::set_tooltip_text(const OUString&) {}
OUString QtInstanceWidget::get_tooltip_text() const { return OUString(); }
void QtInstanceWidget::set_cursor_data(void*) {}
void QtInstanceWidget::grab_add() {}
bool QtInstanceWidget::has_grab() const { return true; }
void QtInstanceWidget::grab_remove() {}
bool QtInstanceWidget::get_extents_relative_to(const Widget&, int&, int&, int&, int&) const
{
return true;
}
bool QtInstanceWidget::get_direction() const { return true; }
void QtInstanceWidget::set_direction(bool) {}
void QtInstanceWidget::freeze() {}
void QtInstanceWidget::thaw() {}
void QtInstanceWidget::set_busy_cursor(bool) {}
std::unique_ptr<weld::Container> QtInstanceWidget::weld_parent() const { return nullptr; }
void QtInstanceWidget::queue_resize() {}
void QtInstanceWidget::help_hierarchy_foreach(const std::function<bool(const OUString&)>&) {}
OUString QtInstanceWidget::strip_mnemonic(const OUString&) const { return OUString(); }
VclPtr<VirtualDevice> QtInstanceWidget::create_virtual_device() const { return nullptr; }
css::uno::Reference<css::datatransfer::dnd::XDropTarget> QtInstanceWidget::get_drop_target()
{
return css::uno::Reference<css::datatransfer::dnd::XDropTarget>();
}
css::uno::Reference<css::datatransfer::clipboard::XClipboard>
QtInstanceWidget::get_clipboard() const
{
return css::uno::Reference<css::datatransfer::clipboard::XClipboard>();
}
void QtInstanceWidget::connect_get_property_tree(const Link<tools::JsonWriter&, void>&) {}
void QtInstanceWidget::get_property_tree(tools::JsonWriter&) {}
void QtInstanceWidget::call_attention_to() {}
void QtInstanceWidget::set_stack_background() {}
void QtInstanceWidget::set_title_background() {}
void QtInstanceWidget::set_toolbar_background() {}
void QtInstanceWidget::set_highlight_background() {}
void QtInstanceWidget::set_background(const Color&) {}
void QtInstanceWidget::draw(OutputDevice&, const Point&, const Size&) {}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|