LibreOffice Module vcl (master)  1
Classes | Typedefs | Functions | Variables
Qt5Tools.hxx File Reference
#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 <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/datatransfer/dnd/DNDConstants.hpp>
#include <memory>
Include dependency graph for Qt5Tools.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CairoDeleter
 

Typedefs

typedef struct _cairo_surface cairo_surface_t
 
typedef std::unique_ptr< cairo_surface_t, CairoDeleterUniqueCairoSurface
 

Functions

OUString toOUString (const QString &s)
 
QString toQString (const OUString &s)
 
QRect toQRect (const tools::Rectangle &rRect)
 
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< inttoQList (const css::uno::Sequence< sal_Int32 > &aSequence)
 
QImage::Format getBitFormat (sal_uInt16 nBitCount)
 
sal_uInt16 getFormatBits (QImage::Format eFormat)
 
sal_uInt16 GetKeyModCode (Qt::KeyboardModifiers eKeyModifiers)
 
sal_uInt16 GetMouseModCode (Qt::MouseButtons eButtons)
 
QImage toQImage (const Image &rImage)
 

Variables

static constexpr QImage::Format Qt5_DefaultFormat32 = QImage::Format_ARGB32
 

Typedef Documentation

typedef struct _cairo_surface cairo_surface_t

Definition at line 129 of file Qt5Tools.hxx.

typedef std::unique_ptr<cairo_surface_t, CairoDeleter> UniqueCairoSurface

Definition at line 135 of file Qt5Tools.hxx.

Function Documentation

QImage::Format getBitFormat ( sal_uInt16  nBitCount)
inline

Definition at line 91 of file Qt5Tools.hxx.

References Qt5_DefaultFormat32.

sal_uInt16 getFormatBits ( QImage::Format  eFormat)
inline

Definition at line 110 of file Qt5Tools.hxx.

References Qt5_DefaultFormat32.

sal_uInt16 GetKeyModCode ( Qt::KeyboardModifiers  eKeyModifiers)
sal_uInt16 GetMouseModCode ( Qt::MouseButtons  eButtons)
Qt::DropAction getPreferredDropAction ( sal_Int8  dragOperation)
OUString toOUString ( const QString &  s)
inline

Definition at line 41 of file Qt5Tools.hxx.

Point toPoint ( const QPoint &  rPoint)
inline

Definition at line 66 of file Qt5Tools.hxx.

QColor toQColor ( const Color rColor)
inline
QImage toQImage ( const Image rImage)
QList<int> toQList ( const css::uno::Sequence< sal_Int32 > &  aSequence)
inline

Definition at line 79 of file Qt5Tools.hxx.

References i.

QRect toQRect ( const tools::Rectangle rRect)
inline
QSize toQSize ( const Size rSize)
inline

Definition at line 62 of file Qt5Tools.hxx.

References Size::Height(), and Size::Width().

QString toQString ( const OUString &  s)
inline

Definition at line 47 of file Qt5Tools.hxx.

Qt::DropActions toQtDropActions ( sal_Int8  dragOperation)
tools::Rectangle toRectangle ( const QRect &  rRect)
inline

Definition at line 57 of file Qt5Tools.hxx.

Size toSize ( const QSize &  rSize)
inline

Definition at line 64 of file Qt5Tools.hxx.

sal_Int8 toVclDropAction ( Qt::DropAction  dragOperation)
sal_Int8 toVclDropActions ( Qt::DropActions  dragOperation)

Variable Documentation

constexpr QImage::Format Qt5_DefaultFormat32 = QImage::Format_ARGB32
static

Definition at line 89 of file Qt5Tools.hxx.

Referenced by getBitFormat(), and getFormatBits().