Initial commit: OtozaiPrinter (AveryDennisonUtil) ラベル/レシート レイアウト設計・印刷 MFC アプリ

- 用紙設計キャンバス(1/100mm 基準)・テキスト/画像/矩形/直線アイテム
- コピー/複製/Zオーダー/整列/グリッドスナップ、原紙(下絵)読込と印刷可否
- GDI 直接印刷、.otz 保存/再読込(版数つき)
- MFC/CRT 静的リンクで VS2022 IDE から F5 デバッグ可
This commit is contained in:
yoshikazu
2026-06-05 17:27:29 +09:00
commit 19d1c39370
33 changed files with 3049 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
// 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;
};