This file is indexed.

/usr/share/gtk-doc/html/goffice-0.10/goffice-0.10-Theming.html is in libgoffice-0.10-doc 0.10.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Theming</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GOffice Reference Manual">
<link rel="up" href="ch03.html" title="Utilities">
<link rel="prev" href="goffice-0.10-Families-and-types.html" title="Families and types">
<link rel="next" href="GogChartMap.html" title="GogChartMap">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="goffice-0.10-Families-and-types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GOffice Reference Manual</th>
<td><a accesskey="n" href="GogChartMap.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#goffice-0.10-Theming.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#goffice-0.10-Theming.description" class="shortcut">Description</a>
                   | 
                  <a href="#goffice-0.10-Theming.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#goffice-0.10-Theming.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#goffice-0.10-Theming.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="goffice-0.10-Theming"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="goffice-0.10-Theming.top_of_page"></a>Theming</span></h2>
<p>Theming — a list of default styles to apply to appropriate graph elements.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="goffice-0.10-Theming.synopsis"></a><h2>Synopsis</h2>
<a name="GogTheme"></a><pre class="synopsis">                    <a class="link" href="goffice-0.10-Theming.html#GogTheme-struct" title="GogTheme">GogTheme</a>;
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="goffice-0.10-Theming.html#gog-theme-delete" title="gog_theme_delete ()">gog_theme_delete</a>                    (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>);
<a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="returnvalue">GogTheme</span></a> *          <a class="link" href="goffice-0.10-Theming.html#gog-theme-dup" title="gog_theme_dup ()">gog_theme_dup</a>                       (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>);
<a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="returnvalue">GogTheme</span></a> *          <a class="link" href="goffice-0.10-Theming.html#gog-theme-edit" title="gog_theme_edit ()">gog_theme_edit</a>                      (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GOCmdContext.html" title="GOCmdContext"><span class="type">GOCmdContext</span></a> *cc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="goffice-0.10-Theming.html#gog-theme-foreach" title="gog_theme_foreach ()">gog_theme_foreach</a>                   (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> handler</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="goffice-0.10-Theming.html#gog-theme-fillin-style" title="gog_theme_fillin_style ()">gog_theme_fillin_style</a>              (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GOStyle.html" title="GOStyle"><span class="type">GOStyle</span></a> *style</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> const *obj</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ind</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GOStyle.html#GOStyleFlag" title="enum GOStyleFlag"><span class="type">GOStyleFlag</span></a> relevant_fields</code></em>);
<a class="link" href="GogAxisColorMap.html" title="GogAxisColorMap"><span class="returnvalue">GogAxisColorMap</span></a> const * <a class="link" href="goffice-0.10-Theming.html#gog-theme-get-color-map" title="gog_theme_get_color_map ()">gog_theme_get_color_map</a>         (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> discrete</code></em>);
<span class="returnvalue">char</span> const *        <a class="link" href="goffice-0.10-Theming.html#gog-theme-get-description" title="gog_theme_get_description ()">gog_theme_get_description</a>           (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);
<span class="returnvalue">char</span> const *        <a class="link" href="goffice-0.10-Theming.html#gog-theme-get-id" title="gog_theme_get_id ()">gog_theme_get_id</a>                    (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);
<span class="returnvalue">char</span> const *        <a class="link" href="goffice-0.10-Theming.html#gog-theme-get-name" title="gog_theme_get_name ()">gog_theme_get_name</a>                  (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);
<a class="link" href="goffice-0.10-Miscellaneous.html#GoResourceType"><span class="returnvalue">GoResourceType</span></a>      <a class="link" href="goffice-0.10-Theming.html#gog-theme-get-resource-type" title="gog_theme_get_resource_type ()">gog_theme_get_resource_type</a>         (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            <a class="link" href="goffice-0.10-Theming.html#gog-theme-registry-get-theme-names" title="gog_theme_registry_get_theme_names ()">gog_theme_registry_get_theme_names</a>  (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="returnvalue">GogTheme</span></a> *          <a class="link" href="goffice-0.10-Theming.html#gog-theme-registry-lookup" title="gog_theme_registry_lookup ()">gog_theme_registry_lookup</a>           (<em class="parameter"><code><span class="type">char</span> const *name</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="goffice-0.10-Theming.html#gog-theme-save-to-home-dir" title="gog_theme_save_to_home_dir ()">gog_theme_save_to_home_dir</a>          (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-Theming.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----GogTheme
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-Theming.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GogTheme implements
 <a class="link" href="GOPersist.html" title="GOPersist">GOPersist</a>.</p>
</div>
<div class="refsect1">
<a name="goffice-0.10-Theming.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="goffice-0.10-Theming.html#GogTheme--resource-type" title='The "resource-type" property'>resource-type</a>"            <a class="link" href="goffice-0.10-Miscellaneous.html#GoResourceType"><span class="type">GoResourceType</span></a>        : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="goffice-0.10-Theming.description"></a><h2>Description</h2>
<p>
The library provides two hard coded themes, "Default", and "Guppi". Other themes
are described in files, some of which might be distributed with the library.
</p>
<p>
A file defining a theme is an xml file with a &lt;GogTheme&gt; root node.
The root element needs to have an Id which should be unique. The uuid command
provides such Ids.
</p>
<p>
The contents must be: _name|name+, _description?|description*, GOStyle+.
</p>
<p>
_name and name nodes:
</p>
<p>
The _name node should be used for themes distributed with goffice, localized
names will be in *.po files and only the default name for "C" locale needs to
be there. Other files need at least one name node for the default name, and
might have some translated names with an appropriate "xml:lang" attribute.
</p>
<p>
_description and description nodes:
</p>
<p>
These work just like name nodes. The difference is that no description node is
mandatory. A theme can work perfectly without a description.
</p>
<p>
GOStyle nodes:
</p>
<p>
These nodes actually define the theme. Attributes and contents are:
attributes: class, role.
contents: (line|outline)?, fill?, marker?, font?, text_layout?
</p>
<p>
The attributes define the target for the style. You might have a class and
a role attribute, or just one of them. If the role attribute is given, the class attribute,
if given, represents the class of the parent object.
A GOStyle node with no class or role will be used
as default when another style is missing. If several such nodes exist, the
last one will be used. If no default style exists, the "Default" theme is applied for
missing nodes.
The list of GOStyle nodes might be:
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>class</td>
<td>role</td>
<td>contents</td>
<td>comments</td>
</tr></thead>
<tr>
<td>GogGraph</td>
<td></td>
<td>outline, fill</td>
</tr>
<tr>
<td>GogGraph</td>
<td>Title</td>
<td>outline, fill, font, text_layout</td>
<td>The graph title</td>
</tr>
<tr>
<td>GogChart</td>
<td></td>
<td>outline, fill</td>
</tr>
<tr>
<td>GogChart</td>
<td>Title</td>
<td>outline, fill, font, text_layout</td>
<td>The chart title</td>
</tr>
<tr>
<td>GogLegend</td>
<td></td>
<td>outline, fill, font</td>
</tr>
<tr>
<td>GogAxis</td>
<td></td>
<td>line, font, text_layout</td>
</tr>
<tr>
<td>GogAxisLine</td>
<td></td>
<td>line, font</td>
</tr>
<tr>
<td>GogGrid</td>
<td></td>
<td>outline, fill</td>
<td>GogGrid is actually the back plane</td>
</tr>
<tr>
<td> </td>
<td>MajorGrid</td>
<td>line, fill</td>
</tr>
<tr>
<td> </td>
<td>MinorGrid</td>
<td>line, fill</td>
</tr>
<tr>
<td>GogLabel</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
<tr>
<td>GogSeries</td>
<td></td>
<td>line, fill, marker</td>
<td>One is needed for each entry in the palette</td>
</tr>
<tr>
<td>GogTrendLine</td>
<td></td>
<td>line</td>
</tr>
<tr>
<td>GogRegEqn</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
<tr>
<td>GogSeriesLabels</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
<tr>
<td>GogRegEqn</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
<tr>
<td>GogSeriesLabel</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
<tr>
<td>GogDataLabel</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
<tr>
<td>GogEquation</td>
<td></td>
<td>outline, fill, font, text_layout</td>
</tr>
</table></div>
<p>
</p>
<p>
The line and outline nodes are actually the same so using line in place of outline is
not an issue. A color is specified either using the format RR:GG::BB:AA or a string as defined
in rgb.txt, so black can be specified as "black" or "00:00:00:FF".
</p>
<p>
"line" or "outline" node:
</p>
<p>
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead>
<tr>
<td>attribute</td>
<td>value</td>
</tr>
<td>comments</td>
</thead>
<tr>
<td>dash</td>
<td>one of "none", "solid", "s-dot", "s-dash-dot", "s-dash-dot-dot", "dash-dot-dot-dot", "dot",
"s-dash", "dash", "l-dash", "dash-dot", or "dash-dot-dot"</td>
</tr>
<tr>
<td>color</td>
<td>any color as described above</td>
</tr>
<tr>
<td>width</td>
<td>float</td>
<td>not always taken into account</td>
</tr>
</table></div>
<p>
</p>
<p>
"fill" node
</p>
<p>
contents: (pattern|gradient)?
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>attribute</td>
<td>value</td>
<td>comments</td>
</tr></thead>
<tr>
<td>type</td>
<td>one of "none", "pattern", or "gradient"</td>
</tr>
</table></div>
<p>
</p>
<p>
"pattern" node
</p>
<p>
Should be included in the fill node if type is pattern.
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>attribute</td>
<td>value</td>
</tr></thead>
<tr>
<td>type</td>
<td>one of "solid", "grey75", "grey50", "grey25", "grey12.5",
"grey6.25", "horiz", "vert", "rev-diag", "diag", "diag-cross", "thick-diag-cross",
"thin-horiz", "thin-vert", "thin-rev-diag", "thin-diag", "thin-horiz-cross",
"thin-diag-cross", "foreground-solid", "small-circles","semi-circles", "thatch",
"large-circles", or "bricks"</td>
</tr>
<tr>
<td>fore</td>
<td>any color as described above</td>
</tr>
<tr>
<td>back</td>
<td>any color as described above</td>
</tr>
</table></div>
<p>
</p>
<p>
"gradient" node
</p>
<p>
Should be included in the fill node if type is gradient.
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>attribute</td>
<td>value</td>
<td>comments</td>
</tr></thead>
<tr>
<td>direction</td>
<td>one of "n-s", "s-n", "n-s-mirrored", "s-n-mirrored",
"w-e", "e-w", "w-e-mirrored", "e-w-mirrored", "nw-se", "se-nw", "nw-se-mirrored",
"se-nw-mirrored", "ne-sw", "sw-ne", "sw-ne-mirrored", or "ne-sw-mirrored" </td>
<td></td>
</tr>
<tr>
<td>start_color</td>
<td>any color as described above</td>
<td></td>
</tr>
<tr>
<td>brightness</td>
<td>float</td>
<td>meaningful only for monocolor gradients</td>
</tr>
<tr>
<td>end_color</td>
<td>any color as described above</td>
<td>meaningful only for bicolor gradients</td>
</tr>
</table></div>
<p>
</p>
<p>
"marker" node
</p>
<p>
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>attribute</td>
<td>value</td>
<td>comments</td>
</tr></thead>
<tr>
<td>shape</td>
<td>one of "none", "square", "diamond", "triangle-down",
"triangle-up", "triangle-right", "triangle-left", "circle", "x", "cross",
"asterisk", "bar", "half-bar", "butterfly", "hourglass", or "lefthalf-bar"</td>
<td></td>
</tr>
<tr>
<td>fill-color</td>
<td>any color as described above</td>
<td></td>
</tr>
<tr>
<td>outline-color</td>
<td>any color as described above</td>
<td></td>
</tr>
<tr>
<td>size</td>
<td>float</td>
<td>not always taken into account</td>
</tr>
</table></div>
<p>
</p>
<p>
"font" node
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>attribute</td>
<td>value</td>
</tr></thead>
<tr>
<td>color</td>
<td>any color as described above</td>
</tr>
<tr>
<td>font</td>
<td>a string describing the font such as "Sans 10"</td>
</tr>
</table></div>
<p>
</p>
<p>
"text_layout" node
</p>
<div class="table"><table style="border-spacing:1cm 2mm">
<thead><tr>
<td>attribute</td>
<td>value</td>
<td>comments</td>
</tr></thead>
<tr>
<td>angle</td>
<td>float</td>
<td>expressed in degrees</td>
</tr>
</table></div>
<p>
</p>
</div>
<div class="refsect1">
<a name="goffice-0.10-Theming.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GogTheme-struct"></a><h3>GogTheme</h3>
<pre class="programlisting">typedef struct _GogTheme GogTheme;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-delete"></a><h3>gog_theme_delete ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gog_theme_delete                    (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>);</pre>
<p>
Destroys the theme and remove it from the user directory and from the
database.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>a <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-dup"></a><h3>gog_theme_dup ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="returnvalue">GogTheme</span></a> *          gog_theme_dup                       (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>);</pre>
<p>
Duplicates <em class="parameter"><code>theme</code></em> with a new Id.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>a <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new theme. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-edit"></a><h3>gog_theme_edit ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="returnvalue">GogTheme</span></a> *          gog_theme_edit                      (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GOCmdContext.html" title="GOCmdContext"><span class="type">GOCmdContext</span></a> *cc</code></em>);</pre>
<p>
Displays a dialog box to edit the theme. This can be done only for
locally installed themes that are writeable.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>the <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> to edit or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to create a new one.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cc</code></em> :</span></p></td>
<td>a <a class="link" href="GOCmdContext.html" title="GOCmdContext"><span class="type">GOCmdContext</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The edited theme or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the edition has
been cancelled. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-foreach"></a><h3>gog_theme_foreach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gog_theme_foreach                   (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> handler</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Executes <em class="parameter"><code>handler</code></em> to each theme installed on the system, including built-in
themes.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc"><span class="type">GFunc</span></a> using a theme as first argument. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>handler</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-fillin-style"></a><h3>gog_theme_fillin_style ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gog_theme_fillin_style              (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GOStyle.html" title="GOStyle"><span class="type">GOStyle</span></a> *style</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> const *obj</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ind</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GOStyle.html#GOStyleFlag" title="enum GOStyleFlag"><span class="type">GOStyleFlag</span></a> relevant_fields</code></em>);</pre>
<p>
Fill in the auto aspects of <em class="parameter"><code>style</code></em> based on <em class="parameter"><code>theme</code></em> 's element for objects of
type/role similar to <em class="parameter"><code>obj</code></em> with index <em class="parameter"><code>ind</code></em>.  If <em class="parameter"><code>relevant_fields</code></em> is GO_STYLE_ALL,
fillin the entire style, not just the auto portions included in <em class="parameter"><code>relevant_fields</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td>
<td>
<a class="link" href="GOStyle.html" title="GOStyle"><span class="type">GOStyle</span></a> to initialize</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>obj</code></em> :</span></p></td>
<td>
<a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> The object associated with <em class="parameter"><code>style</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ind</code></em> :</span></p></td>
<td>an optional index</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>relevant_fields</code></em> :</span></p></td>
<td>GOStyleFlag</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-get-color-map"></a><h3>gog_theme_get_color_map ()</h3>
<pre class="programlisting"><a class="link" href="GogAxisColorMap.html" title="GogAxisColorMap"><span class="returnvalue">GogAxisColorMap</span></a> const * gog_theme_get_color_map         (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> discrete</code></em>);</pre>
<p>
Retrieves the themed color map. Each theme has a discrete color map and a
continuous one.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>discrete</code></em> :</span></p></td>
<td>whether the map is for a discrete axis.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the requested color map. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-get-description"></a><h3>gog_theme_get_description ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> const *        gog_theme_get_description           (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-get-id"></a><h3>gog_theme_get_id ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> const *        gog_theme_get_id                    (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);</pre>
<p>
Retrieves the theme Id.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>a <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the GogTheme Id.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-get-name"></a><h3>gog_theme_get_name ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> const *        gog_theme_get_name                  (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>a <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the GogTheme name.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-get-resource-type"></a><h3>gog_theme_get_resource_type ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-Miscellaneous.html#GoResourceType"><span class="returnvalue">GoResourceType</span></a>      gog_theme_get_resource_type         (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> const *theme</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-registry-get-theme-names"></a><h3>gog_theme_registry_get_theme_names ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            gog_theme_registry_get_theme_names  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated theme name list from theme registry. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-registry-lookup"></a><h3>gog_theme_registry_lookup ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="returnvalue">GogTheme</span></a> *          gog_theme_registry_lookup           (<em class="parameter"><code><span class="type">char</span> const *name</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>a theme name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> from theme registry. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-theme-save-to-home-dir"></a><h3>gog_theme_save_to_home_dir ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gog_theme_save_to_home_dir          (<em class="parameter"><code><a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> *theme</code></em>);</pre>
<p>
Writes the theme to the user directory so that it becomes permanently
available.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>the <a class="link" href="goffice-0.10-Theming.html#GogTheme"><span class="type">GogTheme</span></a> to save</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="goffice-0.10-Theming.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GogTheme--resource-type"></a><h3>The <code class="literal">"resource-type"</code> property</h3>
<pre class="programlisting">  "resource-type"            <a class="link" href="goffice-0.10-Miscellaneous.html#GoResourceType"><span class="type">GoResourceType</span></a>        : Read / Write / Construct Only</pre>
<p>The resource type for the theme.</p>
<p>Default value: GO_RESOURCE_INVALID</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>