092bcd7133
Move the `m_pWidget` member from `QtInstanceWindow` to the base class `QtInstanceWidget` and add a getter for it. This allows to get the `QWidget` directly from the base class, which will be used in an upcoming commit. Change-Id: I9c41b48936e5a6051afb9721dae2fac5add22e4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163360 Tested-by: Jenkins Reviewed-by: Omkar Acharekar <omkaracharekar12@gmail.com> Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
172 lines
5 KiB
C++
172 lines
5 KiB
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 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: */
|