#include "GuiRibbonGalleryList.h"
#include "GuiRibbonImpl.h"
namespace
{
namespace
{
namespace
{
using
namespace
compositions
;
namespace
{
void
::
(
bool
,
,
&
)
{
if
(
)
{
=
;
=
;
}
}
void
::
(
bool
,
bool
,
,
,
,
&
,
&
)
{
(-
1
,
0
, -
1
,
0
);
(
((
-
) *
,
0
),
(
,
0
));
if
(
)
{
=
->
(
(
)).
;
if
(
<
styleWidth
)
{
=
styleWidth
;
}
}
}
bool
::
(
,
,
,
)
{
return
.
() +
>
.
();
}
bool
::
(
bool
,
,
)
{
bool
=
false
;
if
(
)
{
if
(
!=
)
{
=
;
result
=
true
;
}
}
if
(!
)
{
();
}
return
result
;
}
void
::
()
{
=
1
;
}
::
()
{
return
(
1
,
1
);
}
::
(
GuiBindableRibbonGalleryList
*
)
:owner(
)
{
}
::
()
{
}
::
(
,
compositions
::
)
{
=
->
();
=
.
() /
;
switch
(
)
{
case
::
:
--;
break
;
case
::
:
++;
break
;
case
::
:
=
0
;
break
;
case
::
:
=
count
;
break
;
case
::
:
-=
groupCount
;
break
;
case
::
:
+=
groupCount
;
break
;
default
:
return
-
1
;
}
if
(
<
0
)
return
0
;
else
if
(
>=
count
)
return
count
-
1
;
else
return
;
}
::
::
(
)
{
if
(
)
{
if
(
0
<=
&&
<
->
())
{
=
.
() /
;
if
(
<
)
{
=
;
->
();
}
else
if
(
>=
+
groupCount
)
{
=
-
groupCount
+
1
;
->
();
}
return
::
::
;
}
else
{
return
::
::
;
}
}
return
::
::
;
}
::
(
)
{
return
(
1
,
1
);
}
void
::
()
{
=
->
();
=
.
() /
;
if
(
count
>
groupCount
)
{
-=
groupCount
;
if
(
<
0
)
{
=
0
;
}
if
(
)
{
->
();
}
}
}
void
::
()
{
=
->
();
=
.
() /
;
if
(
count
>
groupCount
)
{
+=
groupCount
;
if
(
>
count
-
groupCount
)
{
=
count
-
groupCount
;
}
if
(
)
{
->
();
}
}
}
void
::
()
{
=
false
;
=
->
();
=
.
() /
;
->
(
>
0
);
->
(
+
groupCount
<
count
);
if
(
->
->
() !=
)
{
->
->
(
);
->
();
}
}
void
::
()
{
(
(
*
+
.
,
.
));
}
::
()
{
(
::
);
}
::
()
{
}
::
()
{
return
;
}
::
()
{
return
;
}
::
()
{
return
;
}
::
()
{
return
;
}
::
()
{
return
;
}
void
::
(
)
{
=
();
=
();
if
(
!=
)
{
if
(
<
0
)
=
0
;
=
;
if
(
<
)
=
;
if
(
<
)
=
;
();
}
bool
=
oldCount
!=
();
bool
=
oldLevel
!=
();
if
(
countChanged
)
.
(
(
this
));
if
(
levelChanged
)
.
(
(
this
));
if
(
countChanged
||
levelChanged
)
OnResponsiveChildLevelUpdated
();
}
void
::
(
)
{
=
();
=
();
if
(
!=
)
{
if
(
<
0
)
=
0
;
=
;
if
(
>
)
=
;
if
(
>
)
=
;
();
}
if
(
oldCount
!=
())
.
(
(
this
));
if
(
oldLevel
!=
())
.
(
(
this
));
}
void
::
(
)
{
if
(
!=
)
{
=
;
();
}
}
void
::
(
)
{
if
(
)
{
;
();
}
}
::
()
{
return
-
+
1
;
}
::
()
{
return
-
;
}
bool
::
()
{
if
(
>
)
{
--;
();
.
(
(
this
));
return
true
;
}
return
false
;
}
bool
::
()
{
if
(
<
)
{
++;
();
.
(
(
this
));
return
true
;
}
return
false
;
}
}
}
}
}