[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - 2 commits - cui/AllLangResTarget_cui.mk cui/source cui/uiconfig cui/UI_cui.mk svx/inc sw/source sw/uiconfig vcl/source vcl/uiconfig
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Sep 25 06:31:00 PDT 2012
cui/AllLangResTarget_cui.mk | 1
cui/UI_cui.mk | 4
cui/source/dialogs/zoom.cxx | 258 ++++++++-----------
cui/source/dialogs/zoom.src | 159 -----------
cui/source/inc/zoom.hxx | 32 +-
cui/uiconfig/ui/10000.ui | 390 -----------------------------
cui/uiconfig/ui/zoomdialog.ui | 380 ++++++++++++++++++++++++++++
svx/inc/svx/dialogs.hrc | 3
sw/source/ui/misc/linenum.cxx | 3
sw/uiconfig/swriter/ui/autoformattable.ui | 5
sw/uiconfig/swriter/ui/columnwidth.ui | 1
sw/uiconfig/swriter/ui/converttexttable.ui | 1
sw/uiconfig/swriter/ui/inserttable.ui | 1
sw/uiconfig/swriter/ui/linenumbering.ui | 1
sw/uiconfig/swriter/ui/splittable.ui | 1
sw/uiconfig/swriter/ui/stringinput.ui | 1
sw/uiconfig/swriter/ui/titlepage.ui | 1
sw/uiconfig/swriter/ui/wordcount.ui | 1
vcl/source/window/builder.cxx | 6
vcl/source/window/window2.cxx | 2
vcl/uiconfig/ui/printdialog.ui | 1
21 files changed, 536 insertions(+), 716 deletions(-)
New commits:
commit d56242884da66a761e0bcfa96bc53b26132c751a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 25 14:02:33 2012 +0100
set the default button on various dialogs
Change-Id: I63b1cc73d8ed240c40dec07fe1f8470da8410464
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index eae93c3..67dc0b2 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -139,8 +139,7 @@ SwLineNumberingDlg::SwLineNumberingDlg(SwView *pVw)
ModifyHdl();
LineOnOffHdl();
- PushButton *pOkPB = get<PushButton>("ok");
- pOkPB->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl));
+ get<PushButton>("ok")->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl));
}
SwLineNumberingDlg::~SwLineNumberingDlg()
diff --git a/sw/uiconfig/swriter/ui/autoformattable.ui b/sw/uiconfig/swriter/ui/autoformattable.ui
index 9f84508..b18238b 100644
--- a/sw/uiconfig/swriter/ui/autoformattable.ui
+++ b/sw/uiconfig/swriter/ui/autoformattable.ui
@@ -22,6 +22,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/columnwidth.ui b/sw/uiconfig/swriter/ui/columnwidth.ui
index 9eabaac..f5e9320 100644
--- a/sw/uiconfig/swriter/ui/columnwidth.ui
+++ b/sw/uiconfig/swriter/ui/columnwidth.ui
@@ -28,6 +28,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/converttexttable.ui b/sw/uiconfig/swriter/ui/converttexttable.ui
index 63bfbf8..1d310ba 100644
--- a/sw/uiconfig/swriter/ui/converttexttable.ui
+++ b/sw/uiconfig/swriter/ui/converttexttable.ui
@@ -28,6 +28,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/inserttable.ui b/sw/uiconfig/swriter/ui/inserttable.ui
index 567b91b..80a3eee 100644
--- a/sw/uiconfig/swriter/ui/inserttable.ui
+++ b/sw/uiconfig/swriter/ui/inserttable.ui
@@ -28,6 +28,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/linenumbering.ui b/sw/uiconfig/swriter/ui/linenumbering.ui
index 580a2f0..b1266df 100644
--- a/sw/uiconfig/swriter/ui/linenumbering.ui
+++ b/sw/uiconfig/swriter/ui/linenumbering.ui
@@ -21,6 +21,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/splittable.ui b/sw/uiconfig/swriter/ui/splittable.ui
index 1df3714..a17c0b3 100644
--- a/sw/uiconfig/swriter/ui/splittable.ui
+++ b/sw/uiconfig/swriter/ui/splittable.ui
@@ -21,6 +21,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/stringinput.ui b/sw/uiconfig/swriter/ui/stringinput.ui
index 7c00011..c17202b 100644
--- a/sw/uiconfig/swriter/ui/stringinput.ui
+++ b/sw/uiconfig/swriter/ui/stringinput.ui
@@ -20,6 +20,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/titlepage.ui b/sw/uiconfig/swriter/ui/titlepage.ui
index b795a1f..8715979 100644
--- a/sw/uiconfig/swriter/ui/titlepage.ui
+++ b/sw/uiconfig/swriter/ui/titlepage.ui
@@ -21,6 +21,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/sw/uiconfig/swriter/ui/wordcount.ui b/sw/uiconfig/swriter/ui/wordcount.ui
index 6b52247..b91dae2 100644
--- a/sw/uiconfig/swriter/ui/wordcount.ui
+++ b/sw/uiconfig/swriter/ui/wordcount.ui
@@ -38,6 +38,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index ad40184..3e9ed91 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -427,7 +427,7 @@ Window *VclBuilder::makeObject(Window *pParent, const rtl::OString &name, const
}
}
- if (bIsPlaceHolder)
+ if (bIsPlaceHolder || name.equalsL(RTL_CONSTASCII_STRINGPARAM("GtkTreeSelection")))
return NULL;
Window *pWindow = NULL;
@@ -567,7 +567,7 @@ Window *VclBuilder::makeObject(Window *pParent, const rtl::OString &name, const
pWindow = (*pFunction)(pParent, rMap);
}
}
- SAL_WARN_IF(!pWindow, "vcl.layout", "implement " << name.getStr() << "or add a make" << name.getStr() << " function");
+ SAL_WARN_IF(!pWindow, "vcl.layout", "problably need to implement " << name.getStr() << "or add a make" << name.getStr() << " function");
if (pWindow)
{
pWindow->SetHelpId(m_sHelpRoot + id);
diff --git a/vcl/uiconfig/ui/printdialog.ui b/vcl/uiconfig/ui/printdialog.ui
index 7eb61ec..a9cb400 100644
--- a/vcl/uiconfig/ui/printdialog.ui
+++ b/vcl/uiconfig/ui/printdialog.ui
@@ -39,6 +39,7 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
commit ff0ecff64d8d660c67c7c5b86f20741dd49b5cba
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 25 13:34:21 2012 +0100
adapt zoom dialog code to layout widgets
Change-Id: I7da387db88b8a4449dc1dc7099527f786b0d565e
diff --git a/cui/AllLangResTarget_cui.mk b/cui/AllLangResTarget_cui.mk
index 83b36a5..840193f 100644
--- a/cui/AllLangResTarget_cui.mk
+++ b/cui/AllLangResTarget_cui.mk
@@ -82,7 +82,6 @@ $(eval $(call gb_SrsTarget_add_files,cui/res,\
cui/source/dialogs/svuidlg.src \
cui/source/dialogs/tbxform.src \
cui/source/dialogs/thesdlg.src \
- cui/source/dialogs/zoom.src \
cui/source/options/certpath.src \
cui/source/options/connpooloptions.src \
cui/source/options/dbregister.src \
diff --git a/cui/UI_cui.mk b/cui/UI_cui.mk
index 1fe00b2..89e1a6a 100644
--- a/cui/UI_cui.mk
+++ b/cui/UI_cui.mk
@@ -10,11 +10,11 @@
$(eval $(call gb_UI_UI,cui))
$(eval $(call gb_UI_add_uifiles,cui,\
- cui/uiconfig/ui/10000 \
- cui/uiconfig/ui/effectspage \
cui/uiconfig/ui/charnamepage \
+ cui/uiconfig/ui/effectspage \
cui/uiconfig/ui/positionpage \
cui/uiconfig/ui/twolinespage \
+ cui/uiconfig/ui/zoomdialog \
))
# vim: set noet sw=4 ts=4:
diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx
index 740ddc8..f6be810 100644
--- a/cui/source/dialogs/zoom.cxx
+++ b/cui/source/dialogs/zoom.cxx
@@ -30,6 +30,7 @@
#include <svl/itemset.hxx>
#include <svl/itempool.hxx>
#include <sfx2/objsh.hxx>
+#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#define _SVX_ZOOM_CXX
@@ -42,7 +43,6 @@
#include <svx/viewlayoutitem.hxx>
#include <dialmgr.hxx>
#include <svx/zoom_def.hxx>
-#include <svx/dialogs.hrc> // RID_SVXDLG_ZOOM
// static ----------------------------------------------------------------
@@ -52,10 +52,10 @@
sal_uInt16 SvxZoomDialog::GetFactor() const
{
- if ( a100Btn.IsChecked() )
+ if ( m_p100Btn->IsChecked() )
return 100;
- if ( aUserBtn.IsChecked() )
- return (sal_uInt16)aUserEdit.GetValue();
+ if ( m_pUserBtn->IsChecked() )
+ return (sal_uInt16)m_pUserEdit->GetValue();
else
return SPECIAL_FACTOR;
}
@@ -64,41 +64,41 @@ sal_uInt16 SvxZoomDialog::GetFactor() const
void SvxZoomDialog::SetFactor( sal_uInt16 nNewFactor, sal_uInt16 nBtnId )
{
- aUserEdit.Disable();
+ m_pUserEdit->Disable();
if ( !nBtnId )
{
if ( nNewFactor == 100 )
{
- a100Btn.Check();
- a100Btn.GrabFocus();
+ m_p100Btn->Check();
+ m_p100Btn->GrabFocus();
}
else
{
- aUserBtn.Check();
- aUserEdit.Enable();
- aUserEdit.SetValue( (long)nNewFactor );
- aUserEdit.GrabFocus();
+ m_pUserBtn->Check();
+ m_pUserEdit->Enable();
+ m_pUserEdit->SetValue( (long)nNewFactor );
+ m_pUserEdit->GrabFocus();
}
}
else
{
- aUserEdit.SetValue( (long)nNewFactor );
+ m_pUserEdit->SetValue( (long)nNewFactor );
if ( ZOOMBTN_OPTIMAL == nBtnId )
{
- aOptimalBtn.Check();
- aOptimalBtn.GrabFocus();
+ m_pOptimalBtn->Check();
+ m_pOptimalBtn->GrabFocus();
}
else if ( ZOOMBTN_PAGEWIDTH == nBtnId )
{
- aPageWidthBtn.Check();
- aPageWidthBtn.GrabFocus();
+ m_pPageWidthBtn->Check();
+ m_pPageWidthBtn->GrabFocus();
}
else if ( ZOOMBTN_WHOLEPAGE == nBtnId )
{
- aWholePageBtn.Check();
- aWholePageBtn.GrabFocus();
+ m_pWholePageBtn->Check();
+ m_pWholePageBtn->GrabFocus();
}
}
}
@@ -110,15 +110,15 @@ void SvxZoomDialog::HideButton( sal_uInt16 nBtnId )
switch ( nBtnId )
{
case ZOOMBTN_OPTIMAL:
- aOptimalBtn.Hide();
+ m_pOptimalBtn->Hide();
break;
case ZOOMBTN_PAGEWIDTH:
- aPageWidthBtn.Hide();
+ m_pPageWidthBtn->Hide();
break;
case ZOOMBTN_WHOLEPAGE:
- aWholePageBtn.Hide();
+ m_pWholePageBtn->Hide();
break;
default:
@@ -131,63 +131,54 @@ void SvxZoomDialog::HideButton( sal_uInt16 nBtnId )
void SvxZoomDialog::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
{
DBG_ASSERT( nMin < nMax, "invalid limits" );
- aUserEdit.SetMin( nMin );
- aUserEdit.SetFirst( nMin );
- aUserEdit.SetMax( nMax );
- aUserEdit.SetLast( nMax );
+ m_pUserEdit->SetMin( nMin );
+ m_pUserEdit->SetFirst( nMin );
+ m_pUserEdit->SetMax( nMax );
+ m_pUserEdit->SetLast( nMax );
}
// -----------------------------------------------------------------------
-SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) :
-
- SfxModalDialog( pParent, CUI_RES( RID_SVXDLG_ZOOM ) ),
-
- aZoomFl ( this, CUI_RES( FL_ZOOM ) ),
- aOptimalBtn ( this, CUI_RES( BTN_OPTIMAL ) ),
- aWholePageBtn ( this, CUI_RES( BTN_WHOLE_PAGE ) ),
- aPageWidthBtn ( this, CUI_RES( BTN_PAGE_WIDTH ) ),
- a100Btn ( this, CUI_RES( BTN_100 ) ),
- aUserBtn ( this, CUI_RES( BTN_USER ) ),
- aUserEdit ( this, CUI_RES( ED_USER ) ),
-
- aViewLayoutFl ( this, CUI_RES( FL_VIEWLAYOUT ) ),
- aAutomaticBtn ( this, CUI_RES( BTN_AUTOMATIC ) ),
- aSingleBtn ( this, CUI_RES( BTN_SINGLE ) ),
- aColumnsBtn ( this, CUI_RES( BTN_COLUMNS ) ),
- aColumnsEdit ( this, CUI_RES( ED_COLUMNS ) ),
- aBookModeChk ( this, CUI_RES( CHK_BOOK ) ),
-
- aBottomFl ( this, CUI_RES( FL_BOTTOM ) ),
- aOKBtn ( this, CUI_RES( BTN_ZOOM_OK ) ),
- aCancelBtn ( this, CUI_RES( BTN_ZOOM_CANCEL ) ),
- aHelpBtn ( this, CUI_RES( BTN_ZOOM_HELP ) ),
-
- rSet ( rCoreSet ),
- pOutSet ( NULL ),
- bModified ( sal_False )
+SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet )
+ : SfxModalDialog(pParent, "ZoomDialog", "cui/ui/zoomdialog.ui")
+ , rSet(rCoreSet)
+ , pOutSet(NULL)
+ , bModified(false)
{
+ get(m_pOptimalBtn, "optimal");
+ get(m_pWholePageBtn, "fitwandh");
+ get(m_pPageWidthBtn, "fitw");
+ get(m_p100Btn, "100pc");
+ get(m_pUserBtn, "variable");
+ get(m_pUserEdit, "zoomsb");
+ get(m_pViewFrame, "viewframe");
+ get(m_pAutomaticBtn, "automatic");
+ get(m_pSingleBtn, "singlepage");
+ get(m_pColumnsBtn, "columns");
+ get(m_pColumnsEdit, "columnssb");
+ get(m_pBookModeChk, "bookmode");
+ get(m_pOKBtn, "ok");
Link aLink = LINK( this, SvxZoomDialog, UserHdl );
- a100Btn.SetClickHdl( aLink );
- aOptimalBtn.SetClickHdl( aLink );
- aPageWidthBtn.SetClickHdl( aLink );
- aWholePageBtn.SetClickHdl( aLink );
- aUserBtn.SetClickHdl( aLink );
+ m_p100Btn->SetClickHdl( aLink );
+ m_pOptimalBtn->SetClickHdl( aLink );
+ m_pPageWidthBtn->SetClickHdl( aLink );
+ m_pWholePageBtn->SetClickHdl( aLink );
+ m_pUserBtn->SetClickHdl( aLink );
Link aViewLayoutLink = LINK( this, SvxZoomDialog, ViewLayoutUserHdl );
- aAutomaticBtn.SetClickHdl( aViewLayoutLink );
- aSingleBtn.SetClickHdl( aViewLayoutLink );
- aColumnsBtn.SetClickHdl( aViewLayoutLink );
+ m_pAutomaticBtn->SetClickHdl( aViewLayoutLink );
+ m_pSingleBtn->SetClickHdl( aViewLayoutLink );
+ m_pColumnsBtn->SetClickHdl( aViewLayoutLink );
Link aViewLayoutSpinLink = LINK( this, SvxZoomDialog, ViewLayoutSpinHdl );
- aColumnsEdit.SetModifyHdl( aViewLayoutSpinLink );
+ m_pColumnsEdit->SetModifyHdl( aViewLayoutSpinLink );
Link aViewLayoutCheckLink = LINK( this, SvxZoomDialog, ViewLayoutCheckHdl );
- aBookModeChk.SetClickHdl( aViewLayoutCheckLink );
+ m_pBookModeChk->SetClickHdl( aViewLayoutCheckLink );
- aOKBtn.SetClickHdl( LINK( this, SvxZoomDialog, OKHdl ) );
- aUserEdit.SetModifyHdl( LINK( this, SvxZoomDialog, SpinHdl ) );
+ m_pOKBtn->SetClickHdl( LINK( this, SvxZoomDialog, OKHdl ) );
+ m_pUserEdit->SetModifyHdl( LINK( this, SvxZoomDialog, SpinHdl ) );
// default values
sal_uInt16 nValue = 100;
@@ -209,19 +200,19 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) :
nMin = nValue;
if ( nMax < nValue )
nMax = nValue;
- aUserEdit.SetMin( nMin );
- aUserEdit.SetFirst( nMin );
- aUserEdit.SetMax( nMax );
- aUserEdit.SetLast( nMax );
- aUserEdit.SetValue( nValue );
-
- aUserEdit.SetAccessibleRelationLabeledBy( &aUserBtn );
- aUserEdit.SetAccessibleName(aUserBtn.GetText());
- aColumnsEdit.SetAccessibleRelationLabeledBy(&aColumnsBtn);
- aColumnsEdit.SetAccessibleName(aColumnsBtn.GetText());
- aColumnsEdit.SetAccessibleRelationMemberOf(&aColumnsBtn);
- aBookModeChk.SetAccessibleRelationLabeledBy(&aColumnsBtn);
- aBookModeChk.SetAccessibleRelationMemberOf(&aColumnsBtn);
+ m_pUserEdit->SetMin( nMin );
+ m_pUserEdit->SetFirst( nMin );
+ m_pUserEdit->SetMax( nMax );
+ m_pUserEdit->SetLast( nMax );
+ m_pUserEdit->SetValue( nValue );
+
+ m_pUserEdit->SetAccessibleRelationLabeledBy(m_pUserBtn);
+ m_pUserEdit->SetAccessibleName(m_pUserBtn->GetText());
+ m_pColumnsEdit->SetAccessibleRelationLabeledBy(m_pColumnsBtn);
+ m_pColumnsEdit->SetAccessibleName(m_pColumnsBtn->GetText());
+ m_pColumnsEdit->SetAccessibleRelationMemberOf(m_pColumnsBtn);
+ m_pBookModeChk->SetAccessibleRelationLabeledBy(m_pColumnsBtn);
+ m_pBookModeChk->SetAccessibleRelationMemberOf(m_pColumnsBtn);
const SfxPoolItem& rItem = rSet.Get( rSet.GetPool()->GetWhich( SID_ATTR_ZOOM ) );
@@ -251,13 +242,13 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) :
}
if ( !(SVX_ZOOM_ENABLE_100 & nValSet) )
- a100Btn.Disable();
+ m_p100Btn->Disable();
if ( !(SVX_ZOOM_ENABLE_OPTIMAL & nValSet) )
- aOptimalBtn.Disable();
+ m_pOptimalBtn->Disable();
if ( !(SVX_ZOOM_ENABLE_PAGEWIDTH & nValSet) )
- aPageWidthBtn.Disable();
+ m_pPageWidthBtn->Disable();
if ( !(SVX_ZOOM_ENABLE_WHOLEPAGE & nValSet) )
- aWholePageBtn.Disable();
+ m_pWholePageBtn->Disable();
SetFactor( nZoom, nBtnId );
}
else
@@ -274,46 +265,39 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) :
if ( 0 == nColumns )
{
- aAutomaticBtn.Check();
- aColumnsEdit.SetValue( 2 );
- aColumnsEdit.Disable();
- aBookModeChk.Disable();
+ m_pAutomaticBtn->Check();
+ m_pColumnsEdit->SetValue( 2 );
+ m_pColumnsEdit->Disable();
+ m_pBookModeChk->Disable();
}
else if ( 1 == nColumns)
{
- aSingleBtn.Check();
- aColumnsEdit.SetValue( 2 );
- aColumnsEdit.Disable();
- aBookModeChk.Disable();
+ m_pSingleBtn->Check();
+ m_pColumnsEdit->SetValue( 2 );
+ m_pColumnsEdit->Disable();
+ m_pBookModeChk->Disable();
}
else
{
- aColumnsBtn.Check();
+ m_pColumnsBtn->Check();
if ( !bBookMode )
{
- aColumnsEdit.SetValue( nColumns );
+ m_pColumnsEdit->SetValue( nColumns );
if ( 0 != nColumns % 2 )
- aBookModeChk.Disable();
+ m_pBookModeChk->Disable();
}
else
{
- aColumnsEdit.SetValue( nColumns );
- aBookModeChk.Check();
+ m_pColumnsEdit->SetValue( nColumns );
+ m_pBookModeChk->Check();
}
}
}
else
{
// hide view layout related controls:
- aViewLayoutFl.Disable();
- aAutomaticBtn.Disable();
- aSingleBtn.Disable();
- aColumnsBtn.Disable();
- aColumnsEdit.Disable();
- aBookModeChk.Disable();
+ m_pViewFrame->Disable();
}
-
- FreeResource();
}
// -----------------------------------------------------------------------
@@ -330,13 +314,13 @@ IMPL_LINK( SvxZoomDialog, UserHdl, RadioButton *, pBtn )
{
bModified |= sal_True;
- if ( pBtn == &aUserBtn )
+ if (pBtn == m_pUserBtn)
{
- aUserEdit.Enable();
- aUserEdit.GrabFocus();
+ m_pUserEdit->Enable();
+ m_pUserEdit->GrabFocus();
}
else
- aUserEdit.Disable();
+ m_pUserEdit->Disable();
return 0;
}
@@ -344,7 +328,7 @@ IMPL_LINK( SvxZoomDialog, UserHdl, RadioButton *, pBtn )
IMPL_LINK_NOARG(SvxZoomDialog, SpinHdl)
{
- if ( !aUserBtn.IsChecked() )
+ if ( !m_pUserBtn->IsChecked() )
return 0;
bModified |= sal_True;
return 0;
@@ -356,22 +340,22 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn )
{
bModified |= sal_True;
- if ( pBtn == &aAutomaticBtn )
+ if (pBtn == m_pAutomaticBtn)
{
- aColumnsEdit.Disable();
- aBookModeChk.Disable();
+ m_pColumnsEdit->Disable();
+ m_pBookModeChk->Disable();
}
- else if ( pBtn == &aSingleBtn )
+ else if (pBtn == m_pSingleBtn)
{
- aColumnsEdit.Disable();
- aBookModeChk.Disable();
+ m_pColumnsEdit->Disable();
+ m_pBookModeChk->Disable();
}
- else if ( pBtn == &aColumnsBtn )
+ else if (pBtn == m_pColumnsBtn)
{
- aColumnsEdit.Enable();
- aColumnsEdit.GrabFocus();
- if ( 0 == aColumnsEdit.GetValue() % 2 )
- aBookModeChk.Enable();
+ m_pColumnsEdit->Enable();
+ m_pColumnsEdit->GrabFocus();
+ if ( 0 == m_pColumnsEdit->GetValue() % 2 )
+ m_pBookModeChk->Enable();
}
else
{
@@ -386,15 +370,15 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn )
IMPL_LINK( SvxZoomDialog, ViewLayoutSpinHdl, MetricField *, pEdt )
{
- if ( pEdt == &aColumnsEdit && !aColumnsBtn.IsChecked() )
+ if ( pEdt == m_pColumnsEdit && !m_pColumnsBtn->IsChecked() )
return 0;
- if ( 0 == aColumnsEdit.GetValue() % 2 )
- aBookModeChk.Enable();
+ if ( 0 == m_pColumnsEdit->GetValue() % 2 )
+ m_pBookModeChk->Enable();
else
{
- aBookModeChk.Check( sal_False );
- aBookModeChk.Disable();
+ m_pBookModeChk->Check( sal_False );
+ m_pBookModeChk->Disable();
}
bModified |= sal_True;
@@ -406,7 +390,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutSpinHdl, MetricField *, pEdt )
IMPL_LINK( SvxZoomDialog, ViewLayoutCheckHdl, CheckBox *, pChk )
{
- if ( pChk == &aBookModeChk && !aColumnsBtn.IsChecked() )
+ if (pChk == m_pBookModeChk && !m_pColumnsBtn->IsChecked())
return 0;
bModified |= sal_True;
@@ -418,41 +402,41 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutCheckHdl, CheckBox *, pChk )
IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
{
- if ( bModified || &aOKBtn != pBtn )
+ if ( bModified || m_pOKBtn != pBtn )
{
SvxZoomItem aZoomItem( SVX_ZOOM_PERCENT, 0, rSet.GetPool()->GetWhich( SID_ATTR_ZOOM ) );
SvxViewLayoutItem aViewLayoutItem( 0, false, rSet.GetPool()->GetWhich( SID_ATTR_VIEWLAYOUT ) );
- if ( &aOKBtn == pBtn )
+ if ( m_pOKBtn == pBtn )
{
sal_uInt16 nFactor = GetFactor();
if ( SPECIAL_FACTOR == nFactor )
{
- if ( aOptimalBtn.IsChecked() )
+ if ( m_pOptimalBtn->IsChecked() )
aZoomItem.SetType( SVX_ZOOM_OPTIMAL );
- else if ( aPageWidthBtn.IsChecked() )
+ else if ( m_pPageWidthBtn->IsChecked() )
aZoomItem.SetType( SVX_ZOOM_PAGEWIDTH );
- else if ( aWholePageBtn.IsChecked() )
+ else if ( m_pWholePageBtn->IsChecked() )
aZoomItem.SetType( SVX_ZOOM_WHOLEPAGE );
}
else
aZoomItem.SetValue( nFactor );
- if ( aAutomaticBtn.IsChecked() )
+ if ( m_pAutomaticBtn->IsChecked() )
{
aViewLayoutItem.SetValue( 0 );
aViewLayoutItem.SetBookMode( false );
}
- if ( aSingleBtn.IsChecked() )
+ if ( m_pSingleBtn->IsChecked() )
{
aViewLayoutItem.SetValue( 1 );
aViewLayoutItem.SetBookMode( false );
}
- else if ( aColumnsBtn.IsChecked() )
+ else if ( m_pColumnsBtn->IsChecked() )
{
- aViewLayoutItem.SetValue( static_cast<sal_uInt16>(aColumnsEdit.GetValue()) );
- aViewLayoutItem.SetBookMode( aBookModeChk.IsChecked() );
+ aViewLayoutItem.SetValue( static_cast<sal_uInt16>(m_pColumnsEdit->GetValue()) );
+ aViewLayoutItem.SetBookMode( m_pBookModeChk->IsChecked() );
}
}
else
@@ -464,15 +448,15 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
pOutSet->Put( aZoomItem );
// don't set attribute in case the whole viewlayout stuff is disabled:
- if ( aViewLayoutFl.IsEnabled() )
- pOutSet->Put( aViewLayoutItem );
+ if (m_pViewFrame->IsEnabled())
+ pOutSet->Put(aViewLayoutItem);
// memorize value from the UserEdit beyond the dialog
SfxObjectShell* pSh = SfxObjectShell::Current();
if ( pSh )
pSh->PutItem( SfxUInt16Item( SID_ATTR_ZOOM_USER,
- (sal_uInt16)aUserEdit.GetValue() ) );
+ (sal_uInt16)m_pUserEdit->GetValue() ) );
EndDialog( RET_OK );
}
else
diff --git a/cui/source/dialogs/zoom.src b/cui/source/dialogs/zoom.src
deleted file mode 100644
index 4378781..0000000
--- a/cui/source/dialogs/zoom.src
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
- // include ---------------------------------------------------------------
-#include <cuires.hrc>
-#include "zoom.hrc"
-#include <svx/dialogs.hrc> // for RID_SVXDLG_ZOOM
-#include "helpid.hrc"
-
- // RID_SVXDLG_ZOOM -------------------------------------------------------
-ModalDialog RID_SVXDLG_ZOOM
-{
- HelpId = CMD_SID_ATTR_ZOOM;
- OutputSize = TRUE ;
- SvLook = TRUE ;
- Size = MAP_APPFONT ( 242 , 112 ) ;
- Moveable = TRUE ;
- Text [ en-US ] = "Zoom & View Layout";
- FixedLine FL_ZOOM
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 112 , 8 ) ;
- Text [ en-US ] = "Zoom factor";
- };
- RadioButton BTN_OPTIMAL
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_OPTIMAL";
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 105 , 10 ) ;
- Text [ en-US ] = "~Optimal" ;
- };
- RadioButton BTN_WHOLE_PAGE
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_WHOLE_PAGE";
- Pos = MAP_APPFONT ( 12 , 27 ) ;
- Size = MAP_APPFONT ( 105 , 10 ) ;
- Text [ en-US ] = "~Fit width and height" ;
- };
- RadioButton BTN_PAGE_WIDTH
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_PAGE_WIDTH";
- Pos = MAP_APPFONT ( 12 , 40 ) ;
- Size = MAP_APPFONT ( 105, 10 ) ;
- Text [ en-US ] = "Fit ~width" ;
- };
- RadioButton BTN_100
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_100";
- Pos = MAP_APPFONT ( 12 , 53 ) ;
- Size = MAP_APPFONT ( 105, 10 ) ;
- Text = "~100%" ;
- };
- RadioButton BTN_USER
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_USER";
- Pos = MAP_APPFONT ( 12 , 67 ) ;
- Size = MAP_APPFONT ( 72 , 10 ) ;
- Text [ en-US ] = "~Variable" ;
- };
- MetricField ED_USER
- {
- HelpID = "cui:MetricField:RID_SVXDLG_ZOOM:ED_USER";
- Pos = MAP_APPFONT ( 86 , 66 ) ;
- Size = MAP_APPFONT ( 32 , 12 ) ;
- Border = TRUE ;
- Group = TRUE ;
- Left = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- SpinSize = 1 ;
- };
- FixedLine FL_VIEWLAYOUT
- {
- Pos = MAP_APPFONT ( 124 , 3 ) ;
- Size = MAP_APPFONT ( 112 , 8 ) ;
- Text [ en-US ] = "View layout";
- };
- RadioButton BTN_AUTOMATIC
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_AUTOMATIC";
- Pos = MAP_APPFONT ( 130 , 14 ) ;
- Size = MAP_APPFONT ( 106 , 10 ) ;
- Text [ en-US ] = "~Automatic" ;
- };
- RadioButton BTN_SINGLE
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_SINGLE";
- Pos = MAP_APPFONT ( 130, 27 ) ;
- Size = MAP_APPFONT ( 106, 10 ) ;
- Text [ en-US ] = "~Single page" ;
- };
- RadioButton BTN_COLUMNS
- {
- HelpID = "cui:RadioButton:RID_SVXDLG_ZOOM:BTN_COLUMNS";
- Pos = MAP_APPFONT ( 130, 41 ) ;
- Size = MAP_APPFONT ( 75 , 10 ) ;
- Text [ en-US ] = "~Columns" ;
- };
- MetricField ED_COLUMNS
- {
- HelpID = "cui:MetricField:RID_SVXDLG_ZOOM:ED_COLUMNS";
- Pos = MAP_APPFONT ( 209 , 40 ) ;
- Size = MAP_APPFONT ( 24 , 12 ) ;
- Border = TRUE ;
- Group = TRUE ;
- Left = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- SpinSize = 1 ;
- Minimum = 1;
- Maximum = 999;
- };
- CheckBox CHK_BOOK
- {
- HelpID = "cui:CheckBox:RID_SVXDLG_ZOOM:CHK_BOOK";
- Pos = MAP_APPFONT ( 136 , 55 ) ;
- Size = MAP_APPFONT ( 85 , 10 ) ;
- Text [ en-US ] = "~Book mode" ;
- };
- FixedLine FL_BOTTOM
- {
- Pos = MAP_APPFONT ( 6 , 81 ) ;
- Size = MAP_APPFONT ( 230 , 8 ) ;
- };
- OKButton BTN_ZOOM_OK
- {
- Pos = MAP_APPFONT ( 77 , 92 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- DefButton = TRUE ;
- };
- CancelButton BTN_ZOOM_CANCEL
- {
- Pos = MAP_APPFONT ( 130 , 92 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- };
- HelpButton BTN_ZOOM_HELP
- {
- Pos = MAP_APPFONT ( 186 , 92 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- };
-};
-
-// ********************************************************************** EOF
diff --git a/cui/source/inc/zoom.hxx b/cui/source/inc/zoom.hxx
index d8e12c4..818763a 100644
--- a/cui/source/inc/zoom.hxx
+++ b/cui/source/inc/zoom.hxx
@@ -38,29 +38,25 @@
class SvxZoomDialog : public SfxModalDialog
{
private:
- FixedLine aZoomFl;
- RadioButton aOptimalBtn;
- RadioButton aWholePageBtn;
- RadioButton aPageWidthBtn;
- RadioButton a100Btn;
- RadioButton aUserBtn;
- MetricField aUserEdit;
+ RadioButton* m_pOptimalBtn;
+ RadioButton* m_pWholePageBtn;
+ RadioButton* m_pPageWidthBtn;
+ RadioButton* m_p100Btn;
+ RadioButton* m_pUserBtn;
+ MetricField* m_pUserEdit;
- FixedLine aViewLayoutFl;
- RadioButton aAutomaticBtn;
- RadioButton aSingleBtn;
- RadioButton aColumnsBtn;
- MetricField aColumnsEdit;
- CheckBox aBookModeChk;
+ VclContainer* m_pViewFrame;
+ RadioButton* m_pAutomaticBtn;
+ RadioButton* m_pSingleBtn;
+ RadioButton* m_pColumnsBtn;
+ MetricField* m_pColumnsEdit;
+ CheckBox* m_pBookModeChk;
- FixedLine aBottomFl;
- OKButton aOKBtn;
- CancelButton aCancelBtn;
- HelpButton aHelpBtn;
+ OKButton* m_pOKBtn;
const SfxItemSet& rSet;
SfxItemSet* pOutSet;
- sal_Bool bModified;
+ sal_Bool bModified;
#ifdef _SVX_ZOOM_CXX
DECL_LINK( UserHdl, RadioButton* );
diff --git a/cui/uiconfig/ui/10000.ui b/cui/uiconfig/ui/10000.ui
deleted file mode 100644
index 43e710b..0000000
--- a/cui/uiconfig/ui/10000.ui
+++ /dev/null
@@ -1,390 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <!-- interface-requires gtk+ 3.0 -->
- <object class="GtkDialog" id="10000">
- <property name="can_focus">False</property>
- <property name="border_width">5</property>
- <property name="type_hint">dialog</property>
- <child internal-child="vbox">
- <object class="GtkBox" id="dialog-vbox1">
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="28">
- <property name="label">gtk-ok</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="29">
- <property name="label">gtk-cancel</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="30">
- <property name="label">gtk-help</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</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="GtkBox" id="box1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="homogeneous">True</property>
- <child>
- <object class="GtkFrame" id="frame1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
- <child>
- <object class="GtkAlignment" id="alignment1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">12</property>
- <child>
- <object class="GtkBox" id="box2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkRadioButton" id="15">
- <property name="label" translatable="yes">Optimal</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="16">
- <property name="label" translatable="yes">Fit width and height</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">15</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="17">
- <property name="label" translatable="yes">Fit width</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">15</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="18">
- <property name="label" translatable="yes">100%</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">15</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <object class="GtkRadioButton" id="19">
- <property name="label" translatable="yes">Variable</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">15</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="20:0%">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">â</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">4</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child type="label">
- <object class="GtkLabel" id="14">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Zoom factor</property>
- <property name="use_markup">True</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkFrame" id="frame2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
- <child>
- <object class="GtkAlignment" id="alignment2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">12</property>
- <child>
- <object class="GtkBox" id="box4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkRadioButton" id="22">
- <property name="label" translatable="yes">Automatic</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="23">
- <property name="label" translatable="yes">Single page</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">22</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <child>
- <object class="GtkRadioButton" id="24">
- <property name="label" translatable="yes">Columns</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">22</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="25:0">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">â</property>
- <property name="adjustment">adjustment1</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkAlignment" id="alignment3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">10</property>
- <child>
- <object class="GtkCheckButton" id="26">
- <property name="label" translatable="yes">Book mode</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="xalign">0</property>
- <property name="draw_indicator">True</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child type="label">
- <object class="GtkLabel" id="21">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">View layout</property>
- <property name="use_markup">True</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- </child>
- <action-widgets>
- <action-widget response="0">28</action-widget>
- <action-widget response="0">29</action-widget>
- <action-widget response="0">30</action-widget>
- </action-widgets>
- </object>
- <object class="GtkAdjustment" id="adjustment1">
- <property name="lower">1</property>
- <property name="upper">999</property>
- <property name="step_increment">1</property>
- <property name="page_increment">10</property>
- </object>
-</interface>
diff --git a/cui/uiconfig/ui/zoomdialog.ui b/cui/uiconfig/ui/zoomdialog.ui
new file mode 100644
index 0000000..a66d73f
--- /dev/null
+++ b/cui/uiconfig/ui/zoomdialog.ui
@@ -0,0 +1,380 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="lower">1</property>
+ <property name="upper">999</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkDialog" id="ZoomDialog">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="title" translatable="yes">Zoom & View Layout</property>
+ <property name="type_hint">dialog</property>
+ <child internal-child="vbox">
+ <object class="GtkBox" id="dialog-vbox1">
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox" id="dialog-action_area1">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="ok">
+ <property name="label">gtk-ok</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="cancel">
+ <property name="label">gtk-cancel</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="help">
+ <property name="label">gtk-help</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</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="GtkBox" id="box1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <object class="GtkFrame" id="frame1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox" id="box2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkRadioButton" id="optimal">
+ <property name="label" translatable="yes">Optimal</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="fitwandh">
+ <property name="label" translatable="yes">Fit width and height</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">optimal</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="fitw">
+ <property name="label" translatable="yes">Fit width</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">optimal</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="100pc">
+ <property name="label" translatable="yes">100%</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">optimal</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkRadioButton" id="variable">
+ <property name="label" translatable="yes">Variable</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">optimal</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="zoomsb:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">â</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Zoom factor</property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="viewframe">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox" id="box4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkRadioButton" id="automatic">
+ <property name="label" translatable="yes">Automatic</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="singlepage">
+ <property name="label" translatable="yes">Single page</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">automatic</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkRadioButton" id="columns">
+ <property name="label" translatable="yes">Columns</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">automatic</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="columnssb:0">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">â</property>
+ <property name="adjustment">adjustment1</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkAlignment" id="alignment3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">10</property>
+ <child>
+ <object class="GtkCheckButton" id="bookmode">
+ <property name="label" translatable="yes">Book mode</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">View layout</property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="0">ok</action-widget>
+ <action-widget response="0">cancel</action-widget>
+ <action-widget response="0">help</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/svx/inc/svx/dialogs.hrc b/svx/inc/svx/dialogs.hrc
index f95678e..830a1c9 100644
--- a/svx/inc/svx/dialogs.hrc
+++ b/svx/inc/svx/dialogs.hrc
@@ -121,9 +121,6 @@
#define RID_SVXDLG_CHARMAP ( RID_SVX_START + 10 )
#define RID_SVXDLG_POSTIT ( RID_SVX_START + 8 )
-// only needed for layout:
-#define RID_SVXDLG_ZOOM ( RID_SVX_START + 0 )
-
// IDs of options pages of applications
#define RID_SW_TP_MAILCONFIG (RID_OFA_START + 102)
#define RID_SW_TP_STD_FONT_CJK (RID_OFA_START + 247)
diff --git a/sw/uiconfig/swriter/ui/autoformattable.ui b/sw/uiconfig/swriter/ui/autoformattable.ui
index e6ea40e..9f84508 100644
--- a/sw/uiconfig/swriter/ui/autoformattable.ui
+++ b/sw/uiconfig/swriter/ui/autoformattable.ui
@@ -4,6 +4,7 @@
<object class="GtkDialog" id="AutoFormatTableDialog">
<property name="can_focus">False</property>
<property name="border_width">5</property>
+ <property name="title" translatable="yes">AutoFormat</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
@@ -147,6 +148,9 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="vexpand">True</property>
+ <child internal-child="selection">
+ <object class="GtkTreeSelection" id="treeview-selection1"/>
+ </child>
</object>
<packing>
<property name="left_attach">0</property>
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index da2b87c..ad40184 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1353,7 +1353,7 @@ void VclBuilder::mungeadjustment(NumericFormatter &rTarget, Adjustment &rAdjustm
}
else
{
- SAL_WARN("vcl.layout", "unhandled property :" << rKey.getStr());
+ SAL_INFO("vcl.layout", "unhandled property :" << rKey.getStr());
}
}
}
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 8d50878..240b669 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -2032,7 +2032,7 @@ bool Window::set_property(const rtl::OString &rKey, const rtl::OString &rValue)
set_margin_bottom(rValue.toInt32());
else
{
- SAL_WARN("vcl.layout", "unhandled property: " << rKey.getStr());
+ SAL_INFO("vcl.layout", "unhandled property: " << rKey.getStr());
return false;
}
return true;
More information about the Libreoffice-commits
mailing list