Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
LedItConfig.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5#ifndef __LedItConfig__
6#define __LedItConfig__ 1
7
8#include "Stroika/Foundation/StroikaPreComp.h"
9#include "Stroika/Frameworks/Led/Config.h"
10
11#if defined(__cplusplus)
12#include "Stroika/Frameworks/Led/GDI.h"
13#endif
14
15#if qStroika_Foundation_Common_Platform_MacOS
16#define kApplicationSignature 'LDAP'
17
18#define kTEXTFileType 'TEXT'
19#define kTEXTStationeryFileType 'sEXT'
20#define kLedPrivateDocumentFileType 'LDDC' // LedIt! Portable (mac/pc) rich text document
21#define kLedPrivateDocumentStationeryFileType 'sDDC' // LedIt! Portable (mac/pc) rich text stationary
22#endif
23
24// Didn't make it into 2.0 - sigh...LGP 960520
25#define qSupportPasteSpecial 0
26
27#ifndef qSupportStyleSheets
28#define qSupportStyleSheets 0
29#endif
30
31#ifndef qIncludeBasicSpellcheckEngine
32#define qIncludeBasicSpellcheckEngine 1
33#endif
34
35#if defined(__cplusplus)
36
37using namespace Stroika::Foundation;
38using namespace Stroika::Frameworks::Led;
39
40static_assert (qStroika_HasComponent_ATLMFC, "Error: LedIt requires the ATLMFC feature to be set true when building Stroika");
41
42enum FileFormat {
43 eTextFormat,
44 eLedPrivateFormat,
45 eRTFFormat,
46 eHTMLFormat,
47 eUnknownFormat,
48 eDefaultFormat = eRTFFormat
49};
50#endif
51
52#if defined(__cplusplus)
53// Due to work on SPR#1564 and 1565 - up this undo count from 3 to something effectively infinite.
54const unsigned int kMaxNumUndoLevels = 512;
55#endif
56
57#if defined(__cplusplus)
58const TWIPS kLedItViewTopMargin = TWIPS (120);
59const TWIPS kLedItViewBottomMargin = TWIPS{0};
60const TWIPS kLedItViewLHSMargin = TWIPS (150);
61const TWIPS kLedItViewRHSMargin = TWIPS{0};
62#endif
63
64// Eventually make it a runtime choice based on a user-config dialog (on mac - already chooseable for PC).
65//#ifndef qSupportSmartCutNPaste
66// #define qSupportSmartCutNPaste 1
67//#endif
68
69#endif /*__LedItConfig__*/