OSDN Git Service

Shell Extension for Windows 11 or later (5)
[winmerge-jp/winmerge-jp.git] / Src / MergeLineFlags.h
1 /**
2  *  @file MergeLineFlags.h
3  *
4  *  @brief Additional lineflags for editor.
5  */ 
6 #pragma once
7
8 /** 
9  The Crystal Editor keeps a DWORD of flags for each line.
10  It does not use all of the available bits.
11  WinMerge uses some of the high bits to keep WinMerge-specific
12  information; here are the list of WinMerge flags.
13  So, these constants are used with the SetLineFlag(2) calls.
14 */
15 enum MERGE_LINEFLAGS : DWORD
16 {
17         LF_DIFF = 0x00200000UL,
18 //      LF_GHOST = 0x00400000UL, 
19         LF_TRIVIAL = 0x00800000UL,
20         LF_MOVED = 0x01000000UL,
21         LF_SNP = 0x02000000UL,
22 };
23
24
25 // LF_WINMERGE_FLAGS is LF_DIFF | LF_GHOST | LF_TRIVIAL | LF_MOVED | LF_SNP
26 #define LF_WINMERGE_FLAGS    0x03E00000UL
27
28 // Flags for non-ignored difference
29 // Note that we must include ghost flag to include ghost lines
30 #define LF_NONTRIVIAL_DIFF ((LF_DIFF | LF_GHOST) & (~LF_TRIVIAL))