blob: 4eb853b42c258ddc44f44e603a0390220e4de64b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
%D \module
%D [ file=prop-run,
%D version=2003.04.20,
%D title=\CONTEXT\ Property Macros,
%D subtitle=Runtime Macros,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\unprotect
\doglobal\newif\ifshowcomponents
\gdef\showlayoutcomponents
{\showcomponentstrue}
% By postponing loading of the next two macro's till their usage, we
% don't put a burden on the system when they are not used.
\gdef\startlayoutcomponent#1#2%
{\ifshowcomponents
\doifelseproperty{#1}
\donothing
{\doifelsenothing{#2}%
{\defineproperty[#1][\s!layer]}% [\c!title=#1]
{\defineproperty[#1][\s!layer][\c!title=#2]}}%
\startproperty[#1]%
\fi}
\gdef\stoplayoutcomponent
{\ifshowcomponents
\stopproperty
\fi}
\protect \endinput
|