office-gobmx/vcl/unx/kf5/KF5SalInstance.hxx
Jan-Marek Glogowski 7bf9629d4f tdf#125925 Qt migrate KF5 theme font settings code
Currently all implemented Qt platforms use freetype and fontconfig
to handle the font selection, so just move the font styling code
from the kf5 VCL plugin to qt.

This really minimizes kf5 by just keeping the special file picker
handling in that VCL plugin.

Change-Id: I0bbb2496379396afc46e34fe0d026702dce1492e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134862
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jenkins
2022-05-25 08:32:12 +02:00

35 lines
1.3 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#pragma once
#include <QtInstance.hxx>
class KF5SalInstance final : public QtInstance
{
bool hasNativeFileSelection() const override;
rtl::Reference<QtFilePicker>
createPicker(css::uno::Reference<css::uno::XComponentContext> const& context,
QFileDialog::FileMode) override;
public:
explicit KF5SalInstance(std::unique_ptr<QApplication>& pQApp, bool bUseCairo);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */