Kaydet (Commit) ef530d39 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#87651 Add outline buttons to impress sidebar

Change-Id: Id3cf58660bfcaf7424d027773894ce6888df788a
üst 670100fc
...@@ -151,6 +151,8 @@ void ParaPropertyPanel::HandleContextChange ( ...@@ -151,6 +151,8 @@ void ParaPropertyPanel::HandleContextChange (
default: default:
break; break;
} }
mpTBxOutline->Show( maContext.GetApplication_DI() == sfx2::sidebar::EnumContext::Application_DrawImpress );
} }
void ParaPropertyPanel::DataChanged (const DataChangedEvent& rEvent) void ParaPropertyPanel::DataChanged (const DataChangedEvent& rEvent)
...@@ -597,6 +599,7 @@ ParaPropertyPanel::ParaPropertyPanel(vcl::Window* pParent, ...@@ -597,6 +599,7 @@ ParaPropertyPanel::ParaPropertyPanel(vcl::Window* pParent,
//NumBullet&Backcolor //NumBullet&Backcolor
get(mpTBxNumBullet, "numberbullet"); get(mpTBxNumBullet, "numberbullet");
get(mpTBxBackColor, "backgroundcolor"); get(mpTBxBackColor, "backgroundcolor");
get(mpTBxOutline, "outline");
//Paragraph spacing //Paragraph spacing
get(mpTopDist, "aboveparaspacing"); get(mpTopDist, "aboveparaspacing");
mpTopDist->set_width_request(mpTopDist->get_preferred_size().Width()); mpTopDist->set_width_request(mpTopDist->get_preferred_size().Width());
...@@ -624,6 +627,7 @@ void ParaPropertyPanel::dispose() ...@@ -624,6 +627,7 @@ void ParaPropertyPanel::dispose()
mpTBxVertAlign.clear(); mpTBxVertAlign.clear();
mpTBxNumBullet.clear(); mpTBxNumBullet.clear();
mpTBxBackColor.clear(); mpTBxBackColor.clear();
mpTBxOutline.clear();
mpTopDist.clear(); mpTopDist.clear();
mpBottomDist.clear(); mpBottomDist.clear();
mpTbxIndent_IncDec.clear(); mpTbxIndent_IncDec.clear();
......
...@@ -78,6 +78,7 @@ private: ...@@ -78,6 +78,7 @@ private:
VclPtr<ToolBox> mpTBxVertAlign; VclPtr<ToolBox> mpTBxVertAlign;
//NumBullet&Backcolor //NumBullet&Backcolor
VclPtr<ToolBox> mpTBxNumBullet; VclPtr<ToolBox> mpTBxNumBullet;
VclPtr<ToolBox> mpTBxOutline;
VclPtr<ToolBox> mpTBxBackColor; VclPtr<ToolBox> mpTBxBackColor;
//Paragraph spacing //Paragraph spacing
VclPtr<SvxRelativeField> mpTopDist; VclPtr<SvxRelativeField> mpTopDist;
......
...@@ -58,32 +58,6 @@ ...@@ -58,32 +58,6 @@
<property name="top_attach">1</property> <property name="top_attach">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="sfxlo-SidebarToolBox" id="backgroundcolor">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Paragraph Background Color</property>
<property name="halign">end</property>
<child>
<object class="GtkMenuToolButton" id="parabkcolor">
<property name="width_request">105</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:BackgroundColor</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
<child> <child>
<object class="GtkBox" id="box1"> <object class="GtkBox" id="box1">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -639,6 +613,103 @@ ...@@ -639,6 +613,103 @@
<property name="top_attach">2</property> <property name="top_attach">2</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkBox" id="box2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="sfxlo-SidebarToolBox" id="backgroundcolor">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Paragraph Background Color</property>
<property name="halign">end</property>
<child>
<object class="GtkMenuToolButton" id="parabkcolor">
<property name="width_request">105</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:BackgroundColor</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="sfxlo-SidebarToolBox" id="outline">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkToolButton" id="promote">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:OutlineLeft</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<object class="GtkToolButton" id="demote">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:OutlineRight</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<object class="GtkToolButton" id="moveup">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:OutlineUp</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<object class="GtkToolButton" id="movedown">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:OutlineDown</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
......
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