summaryrefslogtreecommitdiff
path: root/tex/context/base/attr-lay.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-03-25 19:20:25 +0200
committerMarius <mariausol@gmail.com>2011-03-25 19:20:25 +0200
commit1455dd60b68c9140db1b9977c9e5ce372b772ec8 (patch)
treed2b7060a4d9891966a056dcf143ef20d43390561 /tex/context/base/attr-lay.mkiv
parent2a9554684f61df8db63dec6d4e874f49b25a212b (diff)
downloadcontext-1455dd60b68c9140db1b9977c9e5ce372b772ec8.tar.gz
beta 2011.03.25 18:03
Diffstat (limited to 'tex/context/base/attr-lay.mkiv')
-rw-r--r--tex/context/base/attr-lay.mkiv9
1 files changed, 4 insertions, 5 deletions
diff --git a/tex/context/base/attr-lay.mkiv b/tex/context/base/attr-lay.mkiv
index efc9f4514..efea95bc9 100644
--- a/tex/context/base/attr-lay.mkiv
+++ b/tex/context/base/attr-lay.mkiv
@@ -44,11 +44,11 @@
\def\dodefineviewerlayer[#1][#2]% document wide properties
{\begingroup
\getparameters[\??lr][#2]%
- \ctxlua{attributes.viewerlayers.define{
+ \ctxcommand{defineviewerlayer{
tag = "#1",
title = "\@@lrtitle",
visible = "\@@lrstate",
- kind = 0, % 1 == frozen
+ editable = "\v!yes",
printable = "\@@lrprintable",
}}%
\doif\@@lrmethod\v!command
@@ -73,11 +73,11 @@
% layout components are implemented rather directly (speed)
\def\doinitializelayoutcomponent#1#2%
- {\ctxlua{backends.codeinjections.defineviewerlayer{% this will move to the lua end i.e be merged with register
+ {\ctxcommand{defineviewerlayer{% this will move to the lua end i.e be merged with register
tag = "#1:#2",
title = "#1 #2",
visible = "\v!start",
- kind = 0, % 1 == frozen
+ editable = "\v!yes",
printable = "\v!yes"
}}%
\edef\layoutcomponentboxattribute{attr \viewerlayerattribute \ctxlua{tex.write(attributes.viewerlayers.register('#1:#2',true))}\relax}%
@@ -101,5 +101,4 @@
\let\setlayoutcomponentattribute \dosetlayoutcomponentattribute
\let\resetlayoutcomponentattribute\doresetlayoutcomponentattribute}
-
\protect \endinput