DEFINE_GUI_GRAPHICS_ELEMENT(GuiDocumentElement, L"RichDocument");
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"RichDocument"
,
false
)); }
return
elementType
; };
DEFINE_GUI_GRAPHICS_RENDERER(GuiDocumentElement, GuiDocumentElementRenderer, IGuiGraphicsRenderTarget)
public
:
class
:
public
,
public
IGuiGraphicsRendererFactory
{
public
:
*
() {
GuiDocumentElementRenderer
*
=
new
GuiDocumentElementRenderer
;
renderer
->
=
this
;
renderer
->
=
0
;
renderer
->
=
0
;
return
renderer
; } };
protected
:
IGuiGraphicsRendererFactory
*
;
*
;
*
;
;
public
:
static
void
() {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element renderers."
);}
while
(
0
);
manager
->
(
::
(),
new
GuiDocumentElementRenderer
::
); }
IGuiGraphicsRendererFactory
*
()
override
{
return
; }
void
(
*
)
override
{
=
dynamic_cast
<
*>(
);
(); }
void
()
override
{
(); }
void
(
*
)
override
{
*
=
;
=
dynamic_cast
<
*>(
);
RenderTargetChangedInternal
(
oldRenderTarget
,
); }
()
override
{
return
; }
SummarizeParagraphAlignment