Lines Matching refs:this

101      * @param bool $isFragment - needed to control the structure of the outline (if this is a preview, the first heading may be not h1)
107 $this->markupPath = $markup;
109 $this->isFragment = $isFragment;
110 $this->buildOutline($callStack);
111 $this->storeH1();
112 $this->storeTocForMarkupIfAny();
118 * @param bool $isFragment - needed to control the structure of the outline (if this is a preview, the first heading may be not h1)
132 * this is set to 0
141 $this->rootSection = OutlineSection::createOutlineRoot()
143 $this->actualSection = $this->rootSection;
157 * Unfortunately, it can't work because this is called after
218 $this->enterHeading($actualCall);
225 $this->enterHeading($actualCall);
237 $this->enterHeading($actualCall);
240 $this->exitHeading();
245 if ($this->actualSection->hasParent()) {
247 $this->actualSection->setEndPosition($actualCall->getFirstMatchedCharacterPosition() - 1);
249 $actualSectionLevel = $this->actualSection->getLevel();
277 $this->actualSection->appendChild($newOutlineSection);
279 throw new ExceptionRuntimeInternal("The node is not added multiple time, this error should not fired. Error:{$e->getMessage()}", self::CANONICAL, 1, $e);
289 if (!$this->isFragment) {
293 $message = "The child section heading ($actualSectionLevel) has the level ($newSectionLevel) but is parent ({$this->actualSection->getLabel()}) has the level ($actualSectionLevel). The expected level is ($expectedLevel).";
307 $parent = $this->actualSection->getParent();
314 throw new ExceptionRuntimeInternal("The node is not added multiple time, this error should not fired. Error:{$e->getMessage()}", self::CANONICAL, 1, $e);
321 if (!$this->isFragment) {
325 $this->actualSection->appendChild($newOutlineSection);
327 throw new ExceptionRuntimeInternal("The node is not added multiple time, this error should not fired. Error:{$e->getMessage()}", self::CANONICAL, 1, $e);
333 $this->actualSection = $newOutlineSection;
345 $this->actualSection->incrementLineNumber();
350 $this->actualSection->incrementLineNumber();
375 if ($this->actualHeadingParsingState === DOKU_LEXER_ENTER) {
381 $this->addCallToSection($actualCall);
382 $this->exitHeading();
404 if ($this->actualHeadingCall->getTagName() === syntax_plugin_combo_headingatx::TAG) {
415 $this->actualHeadingCall->getAttributes(),
416 $this->actualHeadingCall->getContext(),
418 $this->addCallToSection($endAtxCall);
419 $this->exitHeading();
429 $this->addCallToSection($actualCall);
439 $this->addCallToSection($pluginAnalyticsCall);
443 $this->saveOutlineToMetadata();
455 return $this->rootSection;
563 * * one counter on h1 if this is the flat structure
564 * one counter on the section if this is the section structure
646 TreeVisit::visit($this->rootSection, $collectCalls);
678 if ($this->isSectionEditingEnabled()) {
688 if ($level <= $this->getTocMaxLevel()) {
712 TreeVisit::visit($this->rootSection, $collectCalls);
718 if ($this->actualHeadingParsingState === DOKU_LEXER_ENTER && !$this->actualSection->hasContentCall()) {
719 $this->actualSection->addHeaderCall($actualCall);
722 $this->actualSection->addContentCall($actualCall);
728 $this->actualHeadingParsingState = DOKU_LEXER_ENTER;
729 $this->actualHeadingCall = $actualCall;
734 $this->actualHeadingParsingState = DOKU_LEXER_EXIT;
758 TreeVisit::visit($this->rootSection, $collectTableOfContent);
767 return OutlineVisitor::create($this)->getCalls();
796 TreeVisit::visit($this->rootSection, $collectCalls);
810 $firstChild = $this->rootSection->getFirstChild();
830 $outlineSection = $this->getRootOutlineSection()->getFirstChild();
835 if ($this->markupPath != null && $outlineSection->getLevel() === 1) {
842 PageH1::createForPage($this->markupPath)->setDefaultValue($label);
850 $toc = $this->toTocDokuwikiFormat();
866 if (!isset($this->markupPath)) {
871 Toc::createForPage($this->markupPath)
882 return $this->markupPath;
895 $this->metaHeaderCapture = $metaHeaderCapture;
896 return $this;
901 if (isset($this->metaHeaderCapture)) {
902 return $this->metaHeaderCapture;
905 if ($this->markupPath !== null) {
906 $contextPath = $this->markupPath->getPathObject()->toWikiPath();