File: pdfcomment.module

package info (click to toggle)
lyx 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 138,444 kB
  • sloc: cpp: 244,268; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (240 lines) | stat: -rw-r--r-- 4,833 bytes parent folder | download
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
#\DeclareLyXModule[datetime.sty,fmtcount.sty]{PDF Comments}
#\DeclareCategory{Annotation & Revision}
#DescriptionBegin
#Provides various kinds of annotations for the PDF output. The module uses
#the pdfcomment package. Please consult Help > Specific Manuals > PDF comments
#and the package documentation for details.
#DescriptionEnd
# Author: Juergen Spitzmueller <spitz@lyx.org>
#         Uwe Stöhr <uwestoehr@lyx.org>

Format 111

#
# helper commands
#

# pdfcomment loads hyperref
Provides hyperref 1

Style Define_Avatar
	Category		PDF-comment
	LatexType		Command
	Margin			Dynamic
	LatexName		defineavatar
	ParSkip			0.4
	LabelType		Static
	LabelSep		M
	LabelString		"PDF-comment avatar:"
	Argument 1
	  LabelString		"Name"
	  Tooltip		"Name of the Avatar"
	  Mandatory		1
	EndArgument
	PassThru		1
	LabelFont
	  Color			textlabel2
	  Series		Bold
	EndFont
	Requires		pdfcomment
End

Style Define_PDF-Comment_Style
	CopyStyle		Define_Avatar
	LatexName		definestyle
	LabelString		"PDF-comment style:"
	Argument 1
	  LabelString		"Name"
	  Tooltip		"Name of the style"
	  Mandatory		1
	EndArgument
End

Style Define_PDF-Comment_List_Style
	CopyStyle		Define_Avatar
	LatexName		defineliststyle
	LabelString		"Definition of PDF-comment list style:"
	Argument 1
	  LabelString		"Name"
	  Tooltip		"Name of the list style"
	  Mandatory		1
	EndArgument
End

Style Set_PDF-Comment_List_Style
	CopyStyle		Define_Avatar
	LatexName		setliststyle
	LabelString		"PDF-comment list style:"
	ResetArgs		1
End

InsetLayout "Flex:PDF-Comment-Setup"
	LyXType			custom
	LatexType		command
	Decoration		classic
	LabelString		"PDF (Setup)"
	LatexName		pdfcommentsetup
	LabelFont
	  Color			textlabel3
	  Size			Small
	EndFont
	MultiPar		false
	Argument 1
	  MenuString		"PDF-Comment setup options"
	  LabelString		"Opts"
	  ToolTip		"Insert PDF-Comment setup options here (see the pdfcomment manual)"
	EndArgument
	Requires		pdfcomment
End

#
# Annotation insets
#

InsetLayout "Flex:PDF-Annotation"
	LyXType			custom
	LatexType		command
	Decoration		classic
	LabelString		PDF
	LatexName		pdfcomment
	LabelFont
	  Color			textlabel3
	  Size			Small
	EndFont
	MultiPar		false
	NewlineCmd		textCR
	Argument 1
	  MenuString		"PDFComment Options"
	  LabelString		"Opts"
	  ToolTip		"Insert PDFComment options here (see pdfcomment manual)"
	EndArgument
	Requires		pdfcomment
End

InsetLayout "Flex:PDF-Margin"
	CopyStyle		"Flex:PDF-Annotation"
	LabelString		"PDF (Margin)"
	LatexName		pdfmargincomment
	LabelFont
	  Color			textlabel2
	  Size			Small
	EndFont
End

InsetLayout "Flex:PDF-Markup"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Markup)"
	LatexName		pdfmarkupcomment
	NeedMBoxProtect		1
	NewlineCmd		""
	Argument post:1
	  LabelString		"Comment"
	  Mandatory		1
	  ToolTip		"Insert the comment to the marked-up text here"
	  NewlineCmd		textCR
	EndArgument
End

InsetLayout "Flex:PDF-Freetext"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Freetext)"
	LatexName		pdffreetextcomment
	NewlineCmd		""
End

InsetLayout "Flex:PDF-Square"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Square)"
	LatexName		pdfsquarecomment
	NewlineCmd		""
End

InsetLayout "Flex:PDF-Circle"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Circle)"
	LatexName		pdfcirclecomment
	NewlineCmd		""
End

InsetLayout "Flex:PDF-Line"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Line)"
	LatexName		pdflinecomment
	NewlineCmd		""
End

InsetLayout "Flex:PDF-Sideline"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Sideline)"
	LatexType		environment
	LatexName		pdfsidelinecomment
	MultiPar		true
	NewlineCmd		""
	Argument 2
	  LabelString		"Comment"
	  Mandatory		1
	  ToolTip		"Insert the comment here"
	  NewlineCmd		textCR
	EndArgument
End

InsetLayout "Flex:PDF-Reply"
	CopyStyle		"Flex:PDF-Margin"
	LabelString		"PDF (Reply)"
	LatexName		pdfreply
	LabelFont
	  Color			textlabel1
	  Size			Small
	EndFont
End

InsetLayout "Flex:PDF-Tooltip"
	CopyStyle		"Flex:PDF-Markup"
	LabelString		"PDF (Tooltip)"
	LatexName		pdftooltip
	NeedMBoxProtect		0
	NewlineCmd		""
	LabelFont
	  Color			textlabel3
	  Size			Small
	EndFont
	Argument post:1
	  MenuString		"Tooltip Text"
	  LabelString		"Tooltip"
	  Mandatory		1
	  ToolTip		"Insert the tooltip text here"
	EndArgument
End

#
# List of Annotations
#

Style List_of_PDF_Comments
	KeepEmpty		1
	LatexType		Command
	LatexName		listofpdfcomments
	Margin			First_Dynamic
	NextNoIndent		1
	ParSkip			0
	TopSep			0
	BottomSep		0.25
	ParSep			0
	Align			Center
	LabelType		Static
	LabelBottomSep		0
	LeftMargin		MMMMM
	LabelString		"[List of PDF Comments]"
	LabelFont
	  Family		Sans
	  Series		Bold
	  Size			Large
	  Color			latex
	EndFont
	Argument 1
	  LabelString		"Opts"
	  MenuString		"List Options|s"
	  Tooltip		"Insert list options here (see pdfcomment manual)"
	EndArgument
	Requires		pdfcomment
End