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
+20
View File
@@ -0,0 +1,20 @@
// ShapeItem.h : 図形(矩形枠 / 直線)印刷アイテム
// 各印刷領域の区切り線・枠線に使用。
#pragma once
#include "PrintItem.h"
class CShapeItem : public CPrintItem
{
DECLARE_SERIAL(CShapeItem)
public:
CShapeItem();
int m_shape; // 0=矩形枠, 1=直線(左上→右下)
int m_lineWidthHu; // 線幅(1/100mm)
ItemType Type() const override { return m_shape == 1 ? ItemType::Line : ItemType::Rect; }
void Draw(CDC& dc, const CoordMap& map, bool selected) override;
CPrintItem* Clone() const override;
void Serialize(CArchive& ar) override;
};