#ifndef VCZH_PRESENTATION_CONTROLS_GUILISTVIEWCONTROLS
#define VCZH_PRESENTATION_CONTROLS_GUILISTVIEWCONTROLS
#include "GuiListControlItemArrangers.h"
#include "../ToolstripPackage/GuiMenuControls.h"
namespace
{
namespace
{
namespace
{
class
:
public
,
public
<
>
{
GUI_SPECIFY_CONTROL_TEMPLATE_TYPE(ListViewColumnHeaderTemplate, GuiMenuButton)
public
:
using
=
templates
::
GuiListViewColumnHeaderTemplate
;
private
:
templates
::
GuiListViewColumnHeaderTemplate
*
=
nullptr
;
void
BeforeControlTemplateUninstalled_
();
void
AfterControlTemplateInstalled_
(
bool
);
protected
:
void
BeforeControlTemplateUninstalled
()
override
{
BeforeControlTemplateUninstalled_
();
::
BeforeControlTemplateUninstalled
(); }
void
AfterControlTemplateInstalled
(
bool
)
override
{
::
AfterControlTemplateInstalled
(
);
AfterControlTemplateInstalled_
(
); }
void
CheckAndStoreControlTemplate
(
templates
::
*
)
override
{
auto
=
dynamic_cast
<
templates
::
GuiListViewColumnHeaderTemplate
*>(
);
do
{
if
(!(
ct
))
throw
(
L"The assigned control template is not vl::presentation::templates::Gui"
L"ListViewColumnHeaderTemplate"
L"."
);}
while
(
0
);
=
ct
;
::
CheckAndStoreControlTemplate
(
); }
public
:
templates
::
GuiListViewColumnHeaderTemplate
*
TypedControlTemplateObject
(
bool
) {
if
(
) {
EnsureControlTemplateExists
(); }
return
; }
private
:
protected
:
=
::
;
public
:
(
theme
::
);
();
bool
()
override
;
();
void
(
);
};
class
:
public
,
public
<
>
{
GUI_SPECIFY_CONTROL_TEMPLATE_TYPE(ListViewTemplate, GuiSelectableListControl)
public
:
using
=
templates
::
;
private
:
templates
::
*
=
nullptr
;
void
BeforeControlTemplateUninstalled_
();
void
AfterControlTemplateInstalled_
(
bool
);
protected
:
void
BeforeControlTemplateUninstalled
()
override
{
BeforeControlTemplateUninstalled_
();
::
BeforeControlTemplateUninstalled
(); }
void
AfterControlTemplateInstalled
(
bool
)
override
{
::
AfterControlTemplateInstalled
(
);
AfterControlTemplateInstalled_
(
); }
void
CheckAndStoreControlTemplate
(
templates
::
*
)
override
{
auto
=
dynamic_cast
<
templates
::
*>(
);
do
{
if
(!(
ct
))
throw
(
L"The assigned control template is not vl::presentation::templates::Gui"
L"ListViewTemplate"
L"."
);}
while
(
0
);
=
ct
;
::
CheckAndStoreControlTemplate
(
); }
public
:
templates
::
*
TypedControlTemplateObject
(
bool
) {
if
(
) {
EnsureControlTemplateExists
(); }
return
; }
private
:
public
:
(
theme
::
,
::
*
);
();
compositions
::
;
};
namespace
{
class
:
public
virtual
,
public
<
>
{
public
:
static
const
wchar_t
*
const
;
virtual
<
>
(
) =
0
;
virtual
<
>
(
) =
0
;
virtual
(
) =
0
;
virtual
(
,
) =
0
;
virtual
() =
0
;
virtual
(
) =
0
;
virtual
() =
0
;
virtual
(
) =
0
;
};
class
ListViewColumnItemArranger
:
public
,
public
<
ListViewColumnItemArranger
>
{
typedef
collections
::
<
*>
;
typedef
collections
::
<
compositions
::
*>
;
public
:
static
const
=
8
;
class
:
public
virtual
,
public
<
>
{
public
:
virtual
void
()=
0
;
};
class
:
public
virtual
,
public
<
>
{
public
:
static
const
wchar_t
*
const
;
virtual
bool
(
*
)=
0
;
virtual
bool
(
*
)=
0
;
virtual
(
)=
0
;
virtual
void
(
,
)=
0
;
virtual
*
(
)=
0
;
virtual
(
)=
0
;
};
protected
:
class
:
public
,
public
virtual
{
protected
:
ListViewColumnItemArranger
*
;
public
:
(
ListViewColumnItemArranger
*
);
();
void
();
};
*
=
nullptr
;
*
=
nullptr
;
*
=
nullptr
;
<
>
;
compositions
::
*
=
nullptr
;
;
;
bool
=
false
;
=
0
;
void
(
,
compositions
::
*
,
compositions
::
&
);
void
(
,
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
void
ColumnHeaderSplitterMouseMove
(
compositions
::
*
,
compositions
::
&
);
void
()
override
;
()
override
;
()
override
;
()
override
;
void
();
void
();
public
:
ListViewColumnItemArranger
();
~
ListViewColumnItemArranger
();
void
(
*
)
override
;
void
()
override
;
};
}
namespace
{
class
;
class
:
public
collections
::
<
>
{
friend
class
;
protected
:
*
;
void
(
,
,
)
override
;
public
:
};
class
;
class
:
public
,
public
<
>
{
friend
class
;
friend
class
;
protected
:
*
;
;
<
>
;
<
>
;
;
description
::
;
void
();
public
:
();
&
();
<
>
();
void
(
<
>
);
<
>
();
void
(
<
>
);
const
&
();
void
(
const
&
);
description
::
();
void
(
const
description
::
&
);
};
class
;
class
:
public
,
public
<
>
{
friend
class
;
protected
:
*
=
nullptr
;
;
<
>
;
;
bool
=
true
;
*
=
nullptr
;
=
::
;
void
(
bool
);
public
:
(
const
&
=
L""
,
=
160
);
();
const
&
();
void
(
const
&
);
<
>
();
void
(
const
<
>&
);
();
void
(
);
bool
();
void
(
bool
);
*
();
void
(
*
);
();
void
(
);
};
class
:
public
virtual
{
public
:
virtual
void
() =
0
;
virtual
void
() =
0
;
};
class
:
public
collections
::
<
>
{
protected
:
*
;
void
(
,
,
)
override
;
public
:
(
*
);
();
};
class
:
public
collections
::
<
<
>>
{
friend
class
;
protected
:
*
;
bool
=
true
;
void
(
,
bool
);
void
(
,
const
<
>&
)
override
;
void
(
,
const
<
>&
)
override
;
void
(
,
,
)
override
;
public
:
(
*
);
();
};
class
:
public
<
<
>>
,
protected
virtual
,
public
virtual
,
public
virtual
ListViewColumnItemArranger
::
,
public
<
>
{
friend
class
;
friend
class
;
friend
class
;
typedef
collections
::
<
ListViewColumnItemArranger
::
*>
ColumnItemViewCallbackList
;
protected
:
;
;
ColumnItemViewCallbackList
;
void
(
,
const
<
>&
)
override
;
void
(
,
const
<
>&
)
override
;
void
()
override
;
void
()
override
;
<
>
(
)
override
;
<
>
(
)
override
;
(
)
override
;
(
,
)
override
;
()
override
;
(
)
override
;
()
override
;
(
)
override
;;
bool
(
ListViewColumnItemArranger
::
*
)
override
;
bool
(
ListViewColumnItemArranger
::
*
)
override
;
(
)
override
;
void
(
,
)
override
;
* (
)
override
;
(
)
override
;
(
)
override
;
description
::
(
)
override
;
public
:
();
();
*
(
const
&
)
override
;
&
();
&
();
};
}
enum
class
{
,
,
,
,
,
,
,
};
class
:
public
,
public
<
>
{
protected
:
=
::
;
void
(
,
*
)
override
;
void
(
compositions
::
*
,
compositions
::
&
);
public
:
(
theme
::
,
::
*
);
();
();
void
(
);
};
class
:
public
,
public
<
>
{
protected
:
list
::
*
;
public
:
(
theme
::
);
();
list
::
&
();
list
::
&
();
list
::
&
();
<
list
::
>
();
};
}
}
}
#endif