tdf#103574 Imagemap dialog lacks on confirmation button
Change-Id: I95af2542fdb29efabd2d671597837c79e6336f37 Reviewed-on: https://gerrit.libreoffice.org/32925 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
This commit is contained in:
committed by
jan iversen
parent
f5e9c29136
commit
bc8eb82877
@@ -109,6 +109,7 @@ class SVX_DLLPUBLIC SvxIMapDlg : public SfxModelessDialog // SfxFloatingWindow
|
||||
sal_uInt16 mnActiveId;
|
||||
sal_uInt16 mnMacroId;
|
||||
sal_uInt16 mnPropertyId;
|
||||
sal_uInt16 mnCloseId;
|
||||
|
||||
Size aLastSize;
|
||||
VclPtr<IMapWindow> pIMapWnd;
|
||||
|
@@ -121,14 +121,15 @@ SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window
|
||||
, aIMapItem(*this, *_pBindings)
|
||||
{
|
||||
get(m_pTbxIMapDlg1, "toolbar");
|
||||
m_pTbxIMapDlg1->InsertSeparator(3, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(9, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(14, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(17, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(4, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(10, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(15, 5);
|
||||
m_pTbxIMapDlg1->InsertSeparator(18, 5);
|
||||
|
||||
mnApplyId = m_pTbxIMapDlg1->GetItemId("TBI_APPLY");
|
||||
mnOpenId = m_pTbxIMapDlg1->GetItemId("TBI_OPEN");
|
||||
mnSaveAsId = m_pTbxIMapDlg1->GetItemId("TBI_SAVEAS");
|
||||
mnCloseId = m_pTbxIMapDlg1->GetItemId("TBI_CLOSE");
|
||||
mnSelectId = m_pTbxIMapDlg1->GetItemId("TBI_SELECT");
|
||||
mnRectId = m_pTbxIMapDlg1->GetItemId("TBI_RECT");
|
||||
mnCircleId = m_pTbxIMapDlg1->GetItemId("TBI_CIRCLE");
|
||||
@@ -344,6 +345,11 @@ IMPL_LINK( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
|
||||
DoOpen();
|
||||
else if(nNewItemId == mnSaveAsId)
|
||||
DoSave();
|
||||
else if(nNewItemId == mnCloseId)
|
||||
{
|
||||
SvxIMapDlg* pDlg = GetIMapDlg();
|
||||
pDlg->Close();
|
||||
}
|
||||
else if(nNewItemId == mnSelectId)
|
||||
{
|
||||
SetActiveTool( nNewItemId );
|
||||
|
@@ -67,6 +67,20 @@
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="TBI_CLOSE">
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="valign">start</property>
|
||||
<property name="action_name">TBI_CLOSE</property>
|
||||
<property name="label" translatable="yes">Close</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="TBI_SELECT">
|
||||
<property name="use_action_appearance">False</property>
|
||||
|
Reference in New Issue
Block a user