LibreOffice Module vcl (master) 1
|
#include <config_vclplug.h>
#include <QtCore/QPoint>
#include <QtCore/QRect>
#include <QtCore/QSize>
#include <QtCore/QString>
#include <QtGui/QImage>
#include <rtl/string.hxx>
#include <rtl/ustring.hxx>
#include <tools/color.hxx>
#include <tools/gen.hxx>
#include <vcl/bitmap/BitmapTypes.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/datatransfer/dnd/DNDConstants.hpp>
#include <memory>
Go to the source code of this file.
Classes | |
struct | CairoDeleter |
Macros | |
#define | CHECK_QT5_USING_X11 (QT_VERSION < QT_VERSION_CHECK(6, 0, 0) && QT5_USING_X11) |
#define | CHECK_QT6_USING_X11 (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT6_USING_X11) |
#define | CHECK_ANY_QT_USING_X11 CHECK_QT5_USING_X11 || CHECK_QT6_USING_X11 |
Typedefs | |
typedef struct _cairo_surface | cairo_surface_t |
typedef std::unique_ptr< cairo_surface_t, CairoDeleter > | UniqueCairoSurface |
Functions | |
OUString | toOUString (const QString &s) |
QString | toQString (const OUString &s) |
QRect | toQRect (const tools::Rectangle &rRect) |
QRect | toQRect (const tools::Rectangle &rRect, const qreal fScale) |
QRect | scaledQRect (const QRect &rRect, const qreal fScale) |
tools::Rectangle | toRectangle (const QRect &rRect) |
QSize | toQSize (const Size &rSize) |
Size | toSize (const QSize &rSize) |
Point | toPoint (const QPoint &rPoint) |
QColor | toQColor (const Color &rColor) |
Qt::DropActions | toQtDropActions (sal_Int8 dragOperation) |
sal_Int8 | toVclDropActions (Qt::DropActions dragOperation) |
sal_Int8 | toVclDropAction (Qt::DropAction dragOperation) |
Qt::DropAction | getPreferredDropAction (sal_Int8 dragOperation) |
QList< int > | toQList (const css::uno::Sequence< sal_Int32 > &aSequence) |
QImage::Format | getBitFormat (vcl::PixelFormat ePixelFormat) |
sal_uInt16 | getFormatBits (QImage::Format eFormat) |
sal_uInt16 | GetKeyModCode (Qt::KeyboardModifiers eKeyModifiers) |
sal_uInt16 | GetMouseModCode (Qt::MouseButtons eButtons) |
QImage | toQImage (const Image &rImage) |
template<typename charT , typename traits > | |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, const QString &rString) |
template<typename charT , typename traits > | |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, const QRect &rRect) |
template<typename charT , typename traits > | |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, const QSize &rSize) |
template<typename charT , typename traits > | |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, const QPoint &rPoint) |
Variables | |
constexpr QImage::Format | Qt_DefaultFormat32 = QImage::Format_ARGB32 |
#define CHECK_ANY_QT_USING_X11 CHECK_QT5_USING_X11 || CHECK_QT6_USING_X11 |
Definition at line 186 of file qt5/QtTools.hxx.
#define CHECK_QT5_USING_X11 (QT_VERSION < QT_VERSION_CHECK(6, 0, 0) && QT5_USING_X11) |
Definition at line 182 of file qt5/QtTools.hxx.
#define CHECK_QT6_USING_X11 (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT6_USING_X11) |
Definition at line 184 of file qt5/QtTools.hxx.
typedef struct _cairo_surface cairo_surface_t |
Definition at line 141 of file qt5/QtTools.hxx.
typedef std::unique_ptr<cairo_surface_t, CairoDeleter> UniqueCairoSurface |
Definition at line 147 of file qt5/QtTools.hxx.
|
inline |
Definition at line 105 of file qt5/QtTools.hxx.
References vcl::N24_BPP, vcl::N32_BPP, vcl::N8_BPP, and Qt_DefaultFormat32.
|
inline |
Definition at line 122 of file qt5/QtTools.hxx.
References Qt_DefaultFormat32.
sal_uInt16 GetKeyModCode | ( | Qt::KeyboardModifiers | eKeyModifiers | ) |
sal_uInt16 GetMouseModCode | ( | Qt::MouseButtons | eButtons | ) |
Qt::DropAction getPreferredDropAction | ( | sal_Int8 | dragOperation | ) |
|
inline |
Definition at line 152 of file qt5/QtTools.hxx.
|
inline |
Definition at line 152 of file qt5/QtTools.hxx.
|
inline |
Definition at line 152 of file qt5/QtTools.hxx.
|
inline |
Definition at line 152 of file qt5/QtTools.hxx.
References stream.
|
inline |
Definition at line 66 of file qt5/QtTools.hxx.
Referenced by QtPainter::update().
|
inline |
Definition at line 44 of file qt5/QtTools.hxx.
|
inline |
Definition at line 81 of file qt5/QtTools.hxx.
|
inline |
Definition at line 83 of file qt5/QtTools.hxx.
References Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
QImage toQImage | ( | const Image & | rImage | ) |
|
inline |
Definition at line 93 of file qt5/QtTools.hxx.
References i.
|
inline |
Definition at line 55 of file qt5/QtTools.hxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), and tools::Rectangle::Top().
|
inline |
Definition at line 60 of file qt5/QtTools.hxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), and tools::Rectangle::Top().
|
inline |
Definition at line 77 of file qt5/QtTools.hxx.
References Size::Height(), and Size::Width().
|
inline |
Definition at line 50 of file qt5/QtTools.hxx.
Qt::DropActions toQtDropActions | ( | sal_Int8 | dragOperation | ) |
|
inline |
Definition at line 72 of file qt5/QtTools.hxx.
|
inline |
Definition at line 79 of file qt5/QtTools.hxx.
sal_Int8 toVclDropAction | ( | Qt::DropAction | dragOperation | ) |
sal_Int8 toVclDropActions | ( | Qt::DropActions | dragOperation | ) |
|
constexpr |
Definition at line 103 of file qt5/QtTools.hxx.
Referenced by getBitFormat(), and getFormatBits().