Kaydet (Commit) c34f8f22 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

Draw basic list{node,net,header} from the theme definition

Change-Id: I05b2cced0f99d6628a12465748820e3a87c5f3e7
Reviewed-on: https://gerrit.libreoffice.org/68774Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
Tested-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst ddc8d51f
...@@ -106,7 +106,7 @@ bool FileDefinitionWidgetDraw::isNativeControlSupported(ControlType eType, Contr ...@@ -106,7 +106,7 @@ bool FileDefinitionWidgetDraw::isNativeControlSupported(ControlType eType, Contr
case ControlType::ListNode: case ControlType::ListNode:
case ControlType::ListNet: case ControlType::ListNet:
case ControlType::ListHeader: case ControlType::ListHeader:
return false; return true;
} }
return false; return false;
...@@ -404,6 +404,10 @@ bool FileDefinitionWidgetDraw::drawNativeControl(ControlType eType, ControlPart ...@@ -404,6 +404,10 @@ bool FileDefinitionWidgetDraw::drawNativeControl(ControlType eType, ControlPart
case ControlType::ListNode: case ControlType::ListNode:
case ControlType::ListNet: case ControlType::ListNet:
case ControlType::ListHeader: case ControlType::ListHeader:
{
bOK = resolveDefinition(eType, ePart, eState, rValue, nX, nY, nWidth, nHeight);
}
break;
default: default:
break; break;
} }
......
...@@ -150,7 +150,10 @@ bool getControlTypeForXmlString(OString const& rString, ControlType& reType) ...@@ -150,7 +150,10 @@ bool getControlTypeForXmlString(OString const& rString, ControlType& reType)
{ "tabbody", ControlType::TabBody }, { "tabbody", ControlType::TabBody },
{ "frame", ControlType::Frame }, { "frame", ControlType::Frame },
{ "windowbackground", ControlType::WindowBackground }, { "windowbackground", ControlType::WindowBackground },
{ "toolbar", ControlType::Toolbar } }; { "toolbar", ControlType::Toolbar },
{ "listnode", ControlType::ListNode },
{ "listnet", ControlType::ListNet },
{ "listheader", ControlType::ListHeader } };
auto const& rIterator = aPartMap.find(rString); auto const& rIterator = aPartMap.find(rString);
if (rIterator != aPartMap.end()) if (rIterator != aPartMap.end())
......
...@@ -380,4 +380,13 @@ ...@@ -380,4 +380,13 @@
</part> </part>
</toolbar> </toolbar>
<listnode>
</listnode>
<listnet>
</listnet>
<listheader>
</listheader>
</widgets> </widgets>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment