Lines Matching refs:reference

16     public function renderReference($reference) {
53 abstract public function renderReference($mode, $reference);
63 abstract public function renderNote($mode, $note, $reference);
78 $this->referenceRenderer = $this->createRenderer($this->getStyle('reference-render'));
116 public function renderReference($mode, $reference) {
117 return $this->referenceRenderer->renderReference($mode, $reference);
146 public function renderNote($mode, $note, $reference) {
147 return $this->noteRenderer->renderNote($mode, $note, $reference);
262 public function renderReference($mode, $reference) {
263 if ($reference->isInline()) {
264 $doc = $this->renderInlineReference($reference);
267 $doc = $this->renderRegularReference($mode, $reference);
295 public function renderNote($mode, $note, $reference) {
300 $doc = $this->renderNoteXhtml($note, $reference);
304 $doc = $this->renderNoteOdt($note, $reference);
314 protected function renderNoteXhtml($note, $reference) {
316 $html .= $this->renderBackReferences($note, $reference);
329 protected function renderNoteOdt($note, $reference) {
338 protected function getInlineReferenceStyle($reference, $name, $default) {
339 return ($reference->getAttribute('use-' . $name) === false) ? $default : $this->getStyle($name);
345 protected function renderInlineReference($reference) {
346 $baseStyle = $this->getInlineReferenceStyle($reference, 'reference-base', 'text');
347 $fontWeightStyle = $this->getInlineReferenceStyle($reference, 'reference-font-weight', 'normal');
348 $fontStyle = $this->getInlineReferenceStyle($reference, 'reference-font-style', 'normal');
349 $formatStyle = $this->getInlineReferenceStyle($reference, 'reference-format', 'none');
356 $html .= $reference->getNote()->getText();
365 protected function renderRegularReference($mode, $reference) {
370 $doc = $this->renderRegularReferenceXhtml($reference);
374 $doc = $this->renderRegularReferenceOdt($reference);
384 protected function renderRegularReferenceXhtml($reference) {
385 $noteName = $reference->getNote()->getAnchorName();
386 $referenceName = $reference->getAnchorName();
391 list($formatOpen, $formatClose) = $this->renderReferenceFormat($reference);
395 $html .= $formatOpen . $this->renderReferenceId($reference) . $formatClose;
405 protected function renderRegularReferenceOdt($reference) {
407 $note = $reference->getNote();
409 $refId = $reference->getId();
426 // Seen this one before - just reference it FIXME: style isn't correct
438 protected function renderBackReferences($note, $reference) {
439 $references = count($reference);
473 $referenceName = $reference[$r]->getAnchorName();
481 $html .= $formatOpen . $this->renderBackRefId($reference[$r], $r, $singleReference) . $formatClose;
519 return $this->renderBase($this->getStyle('reference-base'));
526 return $this->renderFont('reference-font-weight', 'normal', 'reference-font-style');
532 protected function renderReferenceFormat($reference) {
533 $result = $this->renderFormat($this->getStyle('reference-format'));
535 if ($this->getReferenceGrouping($reference)) {
536 switch ($reference->getAttribute('group')) {
557 protected function getReferenceGrouping($reference) {
558 $group = $reference->getAttribute('group');
560 in_array($this->getStyle('reference-group'), array(',', 's'));
567 $style = $this->getStyle('reference-group');
588 protected function renderReferenceId($reference) {
591 $html = $reference->getNote()->getName();
596 $id = $reference->getNote()->getId();
600 $id = $reference->getId();
741 protected function renderBackRefId($reference, $index, $singleReference) {
761 $result = $this->renderReferenceId($reference);
1189 protected function renderReferenceId($reference) {
1190 $data = new refnotes_renderer_data($reference->getData());
1193 return $this->renderBasicReferenceId($reference);
1214 if ($this->getReferenceGrouping($reference)) {
1215 switch ($reference->getAttribute('group')) {
1224 if ($this->getReferenceGrouping($reference)) {
1225 switch ($reference->getAttribute('group')) {
1250 protected function renderBasicReferenceId($reference) {
1251 list($formatOpen, $formatClose) = parent::renderReferenceFormat($reference);
1253 return $formatOpen . parent::renderReferenceId($reference) . $formatClose;
1281 $style = $this->getStyle('reference-format');
1290 protected function renderReferenceFormat($reference) {