Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsPrinting/printing.h
T
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 14:46:29 +02:00

67 lines
2.7 KiB
C++

#pragma once
#include <QtPrintSupport/QPrinter>
#ifndef LTSPRINTING_EXPORT
#ifdef BUILD_STATIC_LIBRARIES
#define LTSPRINTING_EXPORT
#else
#if defined(MAKE_LTSPRINTING_LIB)
#define LTSPRINTING_EXPORT Q_DECL_EXPORT
#else
#define LTSPRINTING_EXPORT Q_DECL_IMPORT
#endif
#endif
#endif
class QWidget;
class QAbstractItemView;
class QImage;
namespace LtsSession
{
class LtsSession;
}
namespace KDReports
{
class Report;
}
namespace LtsPrinting
{
LTSPRINTING_EXPORT void printView(LtsSession::LtsSession* session, QWidget* dialogParent, const QAbstractItemView* view,
const QString& headingHtml = QString());
LTSPRINTING_EXPORT void printView(LtsSession::LtsSession* session, QWidget* dialogParent, QAbstractItemView* view,
const QString& headingHtml = QString());
LTSPRINTING_EXPORT void printStoryboard(LtsSession::LtsSession* session, QWidget* dialogParent, QAbstractItemView* view,
const QString& headingHtml = QString());
LTSPRINTING_EXPORT void printImage(LtsSession::LtsSession* session, QWidget* dialogParent, const QImage& image,
const QString& imageTitle, const QString& description,
const QPrinter::PageSize& pageSize = QPrinter::A3,
const QPrinter::Orientation& pageOrientation = QPrinter::Landscape);
LTSPRINTING_EXPORT void printImages(LtsSession::LtsSession* session, QWidget* dialogParent, const QString& docName,
QVector<QImage>& images, QVector<QString>& imageTitles,
QVector<QString>& descriptions, const QPrinter::PageSize& pageSize = QPrinter::A3,
const QPrinter::Orientation& pageOrientation = QPrinter::Landscape);
LTSPRINTING_EXPORT void printPDFImages(QWidget* dialogParent, const QString& docName, const QString& printPath,
QVector<QImage>& images);
LTSPRINTING_EXPORT void printReport(LtsSession::LtsSession* session, QWidget* dialogParent, KDReports::Report& report);
LTSPRINTING_EXPORT void printWidget(LtsSession::LtsSession* session, QWidget* dialogParent, QWidget* widget,
const QString& title);
LTSPRINTING_EXPORT void printMessage(LtsSession::LtsSession* session, QWidget* dialogParent, const QString& subject,
const QString& subjectContent, const QString& from, const QString& fromContent,
const QString& to, const QString& toContent, const QString& msgTextContent,
const QString& time, const QString& timeContent);
} // namespace LtsPrinting