From eaa89db886ba49472e22d77cea957a08c1113cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 30 May 2014 15:54:07 +0100 Subject: [PATCH] tweak massively complicated html export wizard a bit Change-Id: I1d15780d0128204f063a816df9df251b05ab93d2 --- sd/source/filter/html/pubdlg.cxx | 30 +- sd/uiconfig/simpress/ui/publishingdialog.ui | 460 +++++++++----------- vcl/source/window/builder.cxx | 2 +- 3 files changed, 241 insertions(+), 251 deletions(-) diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx index 270845a1c398..f1c758c4a7e5 100644 --- a/sd/source/filter/html/pubdlg.cxx +++ b/sd/source/filter/html/pubdlg.cxx @@ -374,9 +374,31 @@ SdPublishingDlg::SdPublishingDlg(Window* pWindow, DocumentType eDocType) m_bImpress = eDocType == DOCUMENT_TYPE_IMPRESS; + Size aSize(LogicToPixel(Size(60, 50), MAP_APPFONT)); + get(pPage2_Standard_FB, "standardFBImage"); + pPage2_Standard_FB->set_width_request(aSize.Width()); + pPage2_Standard_FB->set_height_request(aSize.Height()); + get(pPage2_Frames_FB, "framesFBImage"); + pPage2_Frames_FB->set_width_request(aSize.Width()); + pPage2_Frames_FB->set_height_request(aSize.Height()); + get(pPage2_Kiosk_FB, "kioskFBImage"); + pPage2_Kiosk_FB->set_width_request(aSize.Width()); + pPage2_Kiosk_FB->set_height_request(aSize.Height()); + get(pPage2_WebCast_FB, "webCastFBImage"); + pPage2_WebCast_FB->set_width_request(aSize.Width()); + pPage2_WebCast_FB->set_height_request(aSize.Height()); + + get(pPage4_Misc, "miscTextview"); + pPage4_Misc->set_height_request(pPage4_Misc->GetTextHeight() * 8); + pPage4_Misc->set_width_request(pPage4_Misc->approximate_char_width() * 52); + + get(pPage1_Designs, "designsTreeview"); + pPage1_Designs->set_height_request(pPage4_Misc->GetTextHeight() * 8); + pPage1_Designs->set_width_request(pPage4_Misc->approximate_char_width() * 52); + //Lock down the preferred size based on the //initial max-size configuration - Size aSize(get_preferred_size()); + aSize = get_preferred_size(); set_width_request(aSize.Width()); set_height_request(aSize.Height()); @@ -472,7 +494,6 @@ void SdPublishingDlg::CreatePages() get(pPage1_Titel, "assignLabel"); get(pPage1_NewDesign, "newDesignRadiobutton"); get(pPage1_OldDesign, "oldDesignRadiobutton"); - get(pPage1_Designs, "designsTreeview"); get(pPage1_DelDesign, "delDesingButton"); get(pPage1_Desc, "descLabel"); aAssistentFunc.InsertControl(1, pPage1); @@ -494,10 +515,6 @@ void SdPublishingDlg::CreatePages() get(pPage2_SingleDocument, "singleDocumentRadiobutton"); get(pPage2_Kiosk, "kioskRadiobutton"); get(pPage2_WebCast, "webCastRadiobutton"); - get(pPage2_Standard_FB, "standardFBImage"); - get(pPage2_Frames_FB, "framesFBImage"); - get(pPage2_Kiosk_FB, "kioskFBImage"); - get(pPage2_WebCast_FB, "webCastFBImage"); aAssistentFunc.InsertControl(2, pPage2); aAssistentFunc.InsertControl(2, pPage2Frame2); aAssistentFunc.InsertControl(2, pPage2Frame3); @@ -592,7 +609,6 @@ void SdPublishingDlg::CreatePages() get(pPage4_WWW_txt, "wwwTxtLabel"); get(pPage4_WWW, "wwwEntry"); get(pPage4_Titel2, "addInformLabel"); - get(pPage4_Misc, "miscTextview"); get(pPage4_Download, "downloadCheckbutton"); aAssistentFunc.InsertControl(4, pPage4); aAssistentFunc.InsertControl(4, pPage4_Titel1); diff --git a/sd/uiconfig/simpress/ui/publishingdialog.ui b/sd/uiconfig/simpress/ui/publishingdialog.ui index 0bfae2dface6..8d8c9b77ee68 100644 --- a/sd/uiconfig/simpress/ui/publishingdialog.ui +++ b/sd/uiconfig/simpress/ui/publishingdialog.ui @@ -1,6 +1,7 @@ + - + False @@ -43,7 +44,6 @@ True True False - False True 0 True @@ -63,7 +63,6 @@ True True False - False 0 True newDesignRadiobutton @@ -113,7 +112,6 @@ True True start - False False @@ -136,6 +134,8 @@ False start Select an existing design or create a new one + True + designsTreeview:border False @@ -202,7 +202,6 @@ True True False - False True 0 True @@ -221,7 +220,6 @@ True True False - False 0 True ASPRadiobutton @@ -382,7 +380,6 @@ True True False - False True 0 True @@ -401,7 +398,6 @@ True True False - False True 0 True @@ -469,7 +465,6 @@ True True False - False True 0 True @@ -543,7 +538,6 @@ True True False - False 0 True True @@ -561,7 +555,6 @@ True True False - False 0 True True @@ -611,108 +604,10 @@ 6 12 - + True False - True - True - vertical - 6 - - - Standard H_TML format - False - True - True - False - False - True - 0 - True - framesRadiobutton - - - False - True - 0 - - - - - Standard HTML with _frames - False - True - True - False - False - True - 0 - True - standardRadiobutton - - - False - True - 1 - - - - - _Single document html - False - True - True - False - False - True - 0 - True - standardRadiobutton - - - False - True - 2 - - - - - _Automatic - False - True - True - False - False - True - 0 - True - standardRadiobutton - - - False - True - 3 - - - - - _WebCast - False - True - True - False - False - True - 0 - True - standardRadiobutton - - - False - True - 4 - - + 6 True @@ -765,9 +660,105 @@ - False - True - 5 + 0 + 5 + 1 + 1 + + + + + _WebCast + False + True + True + False + True + 0 + True + standardRadiobutton + + + 0 + 4 + 1 + 1 + + + + + _Automatic + False + True + True + False + True + 0 + True + webCastRadiobutton + + + 0 + 3 + 1 + 1 + + + + + _Single document html + False + True + True + False + True + 0 + True + kioskRadiobutton + + + 0 + 2 + 1 + 1 + + + + + Standard HTML with _frames + False + True + True + False + True + 0 + True + singleDocumentRadiobutton + + + 0 + 1 + 1 + 1 + + + + + Standard H_TML format + False + True + True + False + True + 0 + True + framesRadiobutton + + + 0 + 0 + 1 + 1 @@ -811,7 +802,6 @@ True False True - True 24 True @@ -819,7 +809,6 @@ True False True - True 0 none @@ -827,7 +816,6 @@ True False True - True 6 6 12 @@ -837,7 +825,6 @@ True False True - True vertical 6 @@ -847,7 +834,6 @@ True True False - False True 0 True @@ -867,7 +853,6 @@ True True False - False True 0 True @@ -886,7 +871,6 @@ True True False - False True 0 True @@ -911,6 +895,7 @@ start _Quality True + qualityCombobox False @@ -967,12 +952,14 @@ True False + True 0 none True False + True 6 12 @@ -988,7 +975,6 @@ True True False - False True 0 True @@ -1008,7 +994,6 @@ True True False - False True 0 True @@ -1027,7 +1012,6 @@ True True False - False half True 0 @@ -1093,7 +1077,6 @@ True True False - False True 0 True @@ -1112,7 +1095,6 @@ True True False - False True 0 True @@ -1299,7 +1281,6 @@ True True False - False True 0 True @@ -1362,7 +1343,6 @@ True True False - False half True 0 @@ -1376,7 +1356,7 @@ - + True False True @@ -1440,7 +1420,6 @@ True True False - False True 0 True @@ -1460,7 +1439,6 @@ True True False - False True 0 True @@ -1479,7 +1457,6 @@ True True False - False True 0 True @@ -1492,120 +1469,122 @@ - + True False - True - True - 12 + 12 - - True - False - 6 - - - _Visited Link - False - True - True - True - False - True - - - 0 - 3 - 1 - 1 - - - - - Active Li_nk - False - True - True - True - False - True - - - 0 - 2 - 1 - 1 - - - - - Hyper_link - False - True - True - True - False - True - - - 0 - 1 - 1 - 1 - - - - - Text - False - True - True - True - False - - - 0 - 0 - 1 - 1 - - - - - False - True - 0 - - - - + True False True True + 12 + + + True + False + 6 + + + _Visited Link + False + True + True + True + True + + + 0 + 3 + 1 + 1 + + + + + Active Li_nk + False + True + True + True + True + + + 0 + 2 + 1 + 1 + + + + + Hyper_link + False + True + True + True + True + + + 0 + 1 + 1 + 1 + + + + + Text + False + True + True + True + + + 0 + 0 + 1 + 1 + + + + + False + True + 0 + + + + + True + False + True + True + + + False + True + 1 + + + + + Bac_kground + False + True + True + True + start + True + + + False + True + 2 + + - - False - True - 1 - - - - - Bac_kground - False - True - True - True - start - False - True - - - False - True - 2 - @@ -1645,7 +1624,6 @@ True True True - False True @@ -1661,7 +1639,6 @@ True True True - False True @@ -1677,7 +1654,6 @@ True True True - False False @@ -1694,7 +1670,6 @@ True True True - False True @@ -1710,7 +1685,6 @@ True True True - False True diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index fb0356acb6fd..97271e86a1f5 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1429,7 +1429,7 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri else if (name == "GtkImage") { extractStock(id, rMap); - pWindow = new FixedImage(pParent, WB_CENTER|WB_VCENTER|WB_3DLOOK); + pWindow = new FixedImage(pParent, WB_CENTER|WB_VCENTER|WB_3DLOOK|WB_SCALE); //such parentless GtkImages are temps used to set icons on buttons //default them to hidden to stop e.g. insert->index entry flicking temp //full screen windows