- 用紙設計キャンバス(1/100mm 基準)・テキスト/画像/矩形/直線アイテム - コピー/複製/Zオーダー/整列/グリッドスナップ、原紙(下絵)読込と印刷可否 - GDI 直接印刷、.otz 保存/再読込(版数つき) - MFC/CRT 静的リンクで VS2022 IDE から F5 デバッグ可
23 lines
641 B
C++
23 lines
641 B
C++
// TextItem.h : テキスト印刷アイテム
|
|
#pragma once
|
|
|
|
#include "PrintItem.h"
|
|
|
|
class CTextItem : public CPrintItem
|
|
{
|
|
DECLARE_SERIAL(CTextItem)
|
|
public:
|
|
CTextItem();
|
|
|
|
CString m_text; // 印刷文字列(複数行可)
|
|
CString m_fontName; // フォント名
|
|
double m_pointSize; // ポイントサイズ
|
|
int m_align; // 0=左, 1=中央, 2=右
|
|
BOOL m_bold;
|
|
|
|
ItemType Type() const override { return ItemType::Text; }
|
|
void Draw(CDC& dc, const CoordMap& map, bool selected) override;
|
|
CPrintItem* Clone() const override;
|
|
void Serialize(CArchive& ar) override;
|
|
};
|