Files
UnrealEngineUWP/Engine/Source/Editor/Documentation/Private/DocumentationPage.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

47 lines
1.4 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "IDocumentationPage.h"
class FUDNParser;
class FDocumentationPage : public IDocumentationPage
{
public:
/** Returns an instance of class containing content from the link argument */
static TSharedRef< IDocumentationPage > Create( const FString& Link, const TSharedRef< FUDNParser >& Parser );
public:
virtual ~FDocumentationPage();
virtual bool HasExcerpt( const FString& ExcerptName ) override;
virtual int32 GetNumExcerpts() const override;
virtual bool GetExcerpt( const FString& ExcerptName, FExcerpt& Excerpt) override;
virtual void GetExcerpts( /*OUT*/ TArray< FExcerpt >& Excerpts ) override;
virtual bool GetExcerptContent( FExcerpt& Excerpt ) override;
virtual FText GetTitle() override;
virtual void Reload() override;
virtual void SetTextWrapAt( TAttribute<float> WrapAt ) override;
private:
FDocumentationPage( const FString& InLink, const TSharedRef< FUDNParser >& InParser );
private:
/** The string representing the UDN page location */
FString Link;
/** The UDN parser instance used to create this page */
TSharedRef< FUDNParser > Parser;
/** The excerpts contained in this UDN page */
TArray<FExcerpt> StoredExcerpts;
/** The UDN meta data contained in this page */
FUDNPageMetadata StoredMetadata;
/** Signals if the page has been loaded */
bool IsLoaded;
};