[Libreoffice-commits] .: 3 commits - filter/source sfx2/inc sfx2/source sfx2/uiconfig sfx2/UI_sfx.mk svx/inc svx/source sw/inc sw/source sw/uiconfig sw/UI_swriter.mk
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 6 09:19:38 PST 2012
filter/source/msfilter/escherex.cxx | 3
sfx2/UI_sfx.mk | 1
sfx2/inc/sfx2/prnmon.hxx | 3
sfx2/source/view/printer.cxx | 50 -
sfx2/source/view/view.hrc | 2
sfx2/source/view/view.src | 4
sfx2/uiconfig/ui/printeroptionsdialog.ui | 85 +++
svx/inc/svx/unoapi.hxx | 6
svx/source/accessibility/DescriptionGenerator.cxx | 8
svx/source/tbxctrls/linectrl.cxx | 5
svx/source/unodraw/UnoNameItemTable.cxx | 42 -
svx/source/unodraw/XPropertyTable.cxx | 30 -
svx/source/unodraw/unomtabl.cxx | 33 -
svx/source/unodraw/unoprov.cxx | 20
svx/source/unodraw/unoshape.cxx | 8
svx/source/xoutdev/xattr.cxx | 33 -
svx/source/xoutdev/xattrbmp.cxx | 2
sw/UI_swriter.mk | 2
sw/inc/chrdlg.hrc | 4
sw/inc/globals.hrc | 2
sw/source/ui/app/app.src | 4
sw/source/ui/chrdlg/chrdlg.src | 4
sw/source/ui/config/optdlg.hrc | 2
sw/source/ui/config/optdlg.src | 4
sw/source/ui/config/optpage.cxx | 264 ++++------
sw/source/ui/dbui/mmaddressblockpage.cxx | 3
sw/source/ui/dbui/mmaddressblockpage.hrc | 1
sw/source/ui/dbui/mmaddressblockpage.src | 4
sw/source/ui/inc/optpage.hxx | 55 --
sw/source/ui/misc/outline.cxx | 2
sw/source/ui/misc/pgfnote.cxx | 2
sw/uiconfig/swriter/ui/printoptions.ui | 555 ----------------------
sw/uiconfig/swriter/ui/printoptionspage.ui | 509 ++++++++++++++++++++
33 files changed, 833 insertions(+), 919 deletions(-)
New commits:
commit 9fa72ccc425dbfea695c879020f0d5462d07d753
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 6 17:18:39 2012 +0000
convert Printer Options dialog to .ui
Change-Id: Ie9f5823170c58f785328e41edcfa1ad70a949529
diff --git a/sfx2/UI_sfx.mk b/sfx2/UI_sfx.mk
index c164884..a6e2223 100644
--- a/sfx2/UI_sfx.mk
+++ b/sfx2/UI_sfx.mk
@@ -12,6 +12,7 @@ $(eval $(call gb_UI_UI,sfx))
$(eval $(call gb_UI_add_uifiles,sfx,\
sfx2/uiconfig/ui/checkin \
sfx2/uiconfig/ui/password \
+ sfx2/uiconfig/ui/printeroptionsdialog \
))
# vim: set noet sw=4 ts=4:
diff --git a/sfx2/inc/sfx2/prnmon.hxx b/sfx2/inc/sfx2/prnmon.hxx
index 564f8b2..0d14c61 100644
--- a/sfx2/inc/sfx2/prnmon.hxx
+++ b/sfx2/inc/sfx2/prnmon.hxx
@@ -35,9 +35,6 @@ struct SfxPrintOptDlg_Impl;
class SfxPrintOptionsDialog : public ModalDialog
{
private:
- OKButton aOkBtn;
- CancelButton aCancelBtn;
- HelpButton aHelpBtn;
SfxPrintOptDlg_Impl* pDlgImpl;
SfxViewShell* pViewSh;
SfxItemSet* pOptions;
diff --git a/sfx2/source/view/printer.cxx b/sfx2/source/view/printer.cxx
index 1716dcb..efdcd6a 100644
--- a/sfx2/source/view/printer.cxx
+++ b/sfx2/source/view/printer.cxx
@@ -198,25 +198,20 @@ void SfxPrinter::SetOptions( const SfxItemSet &rNewOptions )
//--------------------------------------------------------------------
-SfxPrintOptionsDialog::SfxPrintOptionsDialog( Window *pParent,
+SfxPrintOptionsDialog::SfxPrintOptionsDialog(Window *pParent,
SfxViewShell *pViewShell,
- const SfxItemSet *pSet ) :
-
- ModalDialog( pParent, WinBits( WB_STDMODAL | WB_3DLOOK ) ),
-
- aOkBtn ( this ),
- aCancelBtn ( this ),
- aHelpBtn ( this ),
- pDlgImpl ( new SfxPrintOptDlg_Impl ),
- pViewSh ( pViewShell ),
- pOptions ( pSet->Clone() ),
- pPage ( NULL )
+ const SfxItemSet *pSet)
+ : ModalDialog(pParent, "PrinterOptionsDialog",
+ "sfx/ui/printeroptionsdialog.ui")
+ , pDlgImpl(new SfxPrintOptDlg_Impl)
+ , pViewSh(pViewShell)
+ , pOptions(pSet->Clone())
{
- SetText( SfxResId(STR_PRINT_OPTIONS_TITLE).toString() );
+ VclContainer *pVBox = m_pUIBuilder->get<VclVBox>("dialog-vbox1");
// Insert TabPage
- pPage = pViewSh->CreatePrintOptionsPage( this, *pOptions );
+ pPage = pViewSh->CreatePrintOptionsPage(pVBox, *pOptions);
DBG_ASSERT( pPage, "CreatePrintOptions != SFX_VIEW_HAS_PRINTOPTIONS" );
if( pPage )
{
@@ -224,31 +219,6 @@ SfxPrintOptionsDialog::SfxPrintOptionsDialog( Window *pParent,
SetHelpId( pPage->GetHelpId() );
pPage->Show();
}
-
- // Set dialog size
- Size a6Sz = LogicToPixel( Size( 6, 6 ), MAP_APPFONT );
- Size aBtnSz = LogicToPixel( Size( 50, 14 ), MAP_APPFONT );
- Size aOutSz( pPage ? pPage->GetSizePixel() : Size() );
- aOutSz.Height() += 6;
- long nWidth = aBtnSz.Width();
- nWidth += a6Sz.Width();
- aOutSz.Width() += nWidth;
- if ( aOutSz.Height() < 90 )
- // at least the height of the 3 buttons
- aOutSz.Height() = 90;
- SetOutputSizePixel( aOutSz );
-
- // set position and size of the buttons
- Point aBtnPos( aOutSz.Width() - aBtnSz.Width() - a6Sz.Width(), a6Sz.Height() );
- aOkBtn.SetPosSizePixel( aBtnPos, aBtnSz );
- aBtnPos.Y() += aBtnSz.Height() + ( a6Sz.Height() / 2 );
- aCancelBtn.SetPosSizePixel( aBtnPos, aBtnSz );
- aBtnPos.Y() += aBtnSz.Height() + a6Sz.Height();
- aHelpBtn.SetPosSizePixel( aBtnPos, aBtnSz );
-
- aCancelBtn.Show();
- aOkBtn.Show();
- aHelpBtn.Show();
}
//--------------------------------------------------------------------
@@ -294,7 +264,7 @@ void SfxPrintOptionsDialog::DisableHelp()
{
pDlgImpl->mbHelpDisabled = sal_True;
- aHelpBtn.Disable();
+ get<HelpButton>("help")->Disable();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/view/view.hrc b/sfx2/source/view/view.hrc
index 02132e1..c7df0cc 100644
--- a/sfx2/source/view/view.hrc
+++ b/sfx2/source/view/view.hrc
@@ -27,7 +27,7 @@
#define STR_PRINT_OPTIONS (RID_SFX_VIEW_START+ 6)
-#define STR_PRINT_OPTIONS_TITLE (RID_SFX_VIEW_START+ 7)
+
#define STR_ERROR_PRINTER_BUSY (RID_SFX_VIEW_START+ 8)
#define STR_NOSTARTPRINTER (RID_SFX_VIEW_START+ 9)
#define STR_PRINTING (RID_SFX_VIEW_START+10)
diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src
index cc2ebbb..e60aee0 100644
--- a/sfx2/source/view/view.src
+++ b/sfx2/source/view/view.src
@@ -38,10 +38,6 @@ String STR_PRINT_OPTIONS
{
Text [ en-US ] = "Options..." ;
};
-String STR_PRINT_OPTIONS_TITLE
-{
- Text [ en-US ] = "Printer Options" ;
-};
String STR_ERROR_PRINTER_BUSY
{
Text [ en-US ] = "Printer busy" ;
diff --git a/sfx2/uiconfig/ui/printeroptionsdialog.ui b/sfx2/uiconfig/ui/printeroptionsdialog.ui
new file mode 100644
index 0000000..c12aee5
--- /dev/null
+++ b/sfx2/uiconfig/ui/printeroptionsdialog.ui
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkDialog" id="PrinterOptionsDialog">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="title" translatable="yes">Printer Options</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="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="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_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="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_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>
+ <placeholder/>
+ </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>
commit f06ba36094680e8806a6ede65a851c672bab1b67
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 6 16:46:09 2012 +0000
adapt code to use gokul's printoptions .ui
Change-Id: Ibc66c52567911075841d6d5f53c66abf4abf7eeb
diff --git a/sw/UI_swriter.mk b/sw/UI_swriter.mk
index 3e0158f..fc4a259 100644
--- a/sw/UI_swriter.mk
+++ b/sw/UI_swriter.mk
@@ -26,7 +26,7 @@ $(eval $(call gb_UI_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/linenumbering \
sw/uiconfig/swriter/ui/outlinenumberingpage \
sw/uiconfig/swriter/ui/outlinepositionpage \
- sw/uiconfig/swriter/ui/printoptions \
+ sw/uiconfig/swriter/ui/printoptionspage \
sw/uiconfig/swriter/ui/printeroptions \
sw/uiconfig/swriter/ui/sortdialog \
sw/uiconfig/swriter/ui/splittable \
diff --git a/sw/inc/chrdlg.hrc b/sw/inc/chrdlg.hrc
index ea17a38..5bbe3d6 100644
--- a/sw/inc/chrdlg.hrc
+++ b/sw/inc/chrdlg.hrc
@@ -29,11 +29,9 @@
// Tabpages -> now in globals.hrc
+#define MSG_ILLEGAL_PAGENUM (RC_CHRDLG_BEGIN + 1)
#define STR_TEXTCOLL_HEADER (RC_CHRDLG_BEGIN + 2)
#define STR_PAGEFMT_HEADER (RC_CHRDLG_BEGIN + 4)
-#define SW_STR_NONE (RC_CHRDLG_BEGIN + 5)
-
-#define MSG_ILLEGAL_PAGENUM (RC_CHRDLG_BEGIN + 1)
#define CHRDLG_ACT_END DLG_DRAWPARA
diff --git a/sw/inc/globals.hrc b/sw/inc/globals.hrc
index cf206a5..73c73ae 100644
--- a/sw/inc/globals.hrc
+++ b/sw/inc/globals.hrc
@@ -67,7 +67,7 @@
#define STR_REMOVE_WARNING (RC_GLOBALS_BEGIN + 40)
-#define STR_NO_COLL (RC_GLOBALS_BEGIN + 41)
+#define SW_STR_NONE (RC_GLOBALS_BEGIN + 41)
// DIALOGS -----------------------------------------------------------
diff --git a/sw/source/ui/app/app.src b/sw/source/ui/app/app.src
index 45064b1..dbfd44b 100644
--- a/sw/source/ui/app/app.src
+++ b/sw/source/ui/app/app.src
@@ -235,9 +235,9 @@ String STR_REMOVE_WARNING
Text [ en-US ] = "The following characters are not valid and have been removed: ";
};
-String STR_NO_COLL
+String SW_STR_NONE
{
- Text [ en-US ] = "(none)" ;
+ Text [ en-US ] = "[None]" ;
};
InfoBox MSG_ERROR_SEND_MAIL
diff --git a/sw/source/ui/chrdlg/chrdlg.src b/sw/source/ui/chrdlg/chrdlg.src
index c4a6a59..43359ae 100644
--- a/sw/source/ui/chrdlg/chrdlg.src
+++ b/sw/source/ui/chrdlg/chrdlg.src
@@ -25,10 +25,6 @@ String STR_PAGEFMT_HEADER
{
Text [ en-US ] = "(Page Style: " ;
};
-String SW_STR_NONE
-{
- Text [ en-US ] = "[None]" ;
-};
InfoBox MSG_ILLEGAL_PAGENUM
{
BUTTONS = WB_OK ;
diff --git a/sw/source/ui/config/optdlg.hrc b/sw/source/ui/config/optdlg.hrc
index b02e34d..8ec5e42 100644
--- a/sw/source/ui/config/optdlg.hrc
+++ b/sw/source/ui/config/optdlg.hrc
@@ -80,7 +80,7 @@
#define RB_ONLY 81
#define RB_END 82
#define RB_PAGEEND 83
-#define ST_NONE 84
+
#define LB_FAX 86
#define CB_BLACK_FONT 87
#define LB_HMETRIC 88
diff --git a/sw/source/ui/config/optdlg.src b/sw/source/ui/config/optdlg.src
index 4454fee..b15c1c5 100644
--- a/sw/source/ui/config/optdlg.src
+++ b/sw/source/ui/config/optdlg.src
@@ -369,10 +369,6 @@ TabPage TP_OPTPRINT_PAGE
DropDown = TRUE ;
Group = TRUE ;
};
- String ST_NONE
- {
- Text [ en-US ] = "<None>";
- };
};
TabPage TP_STD_FONT
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 10a6f29..f23586e 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -191,7 +191,7 @@ void SwContentOptPage::Reset(const SfxItemSet& rSet)
if(pElemAttr)
{
aTblCB .Check (pElemAttr->bTable );
- aGrfCB .Check (pElemAttr->bGraphic );
+ aGrfCB.Check (pElemAttr->bGraphic );
aDrwCB .Check (pElemAttr->bDrawing );
aFldNameCB .Check (pElemAttr->bFieldName );
aPostItCB .Check (pElemAttr->bNotes );
@@ -220,7 +220,7 @@ sal_Bool SwContentOptPage::FillItemSet(SfxItemSet& rSet)
if(pOldAttr)
aElem = *pOldAttr;
aElem.bTable = aTblCB .IsChecked();
- aElem.bGraphic = aGrfCB .IsChecked();
+ aElem.bGraphic = aGrfCB.IsChecked();
aElem.bDrawing = aDrwCB .IsChecked();
aElem.bFieldName = aFldNameCB .IsChecked();
aElem.bNotes = aPostItCB .IsChecked();
@@ -285,105 +285,83 @@ IMPL_LINK( SwContentOptPage, AnyRulerHdl, CheckBox*, pBox)
/*------------------------------------------------------
TabPage Printer additional settings
-------------------------------------------------------*/
-SwAddPrinterTabPage::SwAddPrinterTabPage( Window* pParent,
- const SfxItemSet& rCoreSet) :
- SfxTabPage( pParent, SW_RES( TP_OPTPRINT_PAGE ), rCoreSet),
- aFL1 (this, SW_RES(FL_1)),
- aGrfCB (this, SW_RES(CB_PGRF)),
- aCtrlFldCB (this, SW_RES(CB_CTRLFLD)),
- aBackgroundCB (this, SW_RES(CB_BACKGROUND)),
- aBlackFontCB (this, SW_RES(CB_BLACK_FONT)),
- aPrintHiddenTextCB(this, SW_RES(CB_HIDDEN_TEXT)),
- aPrintTextPlaceholderCB(this, SW_RES(CB_TEXT_PLACEHOLDER)),
- aSeparatorLFL (this, SW_RES(FL_SEP_PRT_LEFT )),
- aFL2 (this, SW_RES(FL_2)),
- aLeftPageCB (this, SW_RES(CB_LEFTP)),
- aRightPageCB (this, SW_RES(CB_RIGHTP)),
- aProspectCB (this, SW_RES(CB_PROSPECT)),
- aProspectCB_RTL (this, SW_RES(CB_PROSPECT_RTL)),
- aSeparatorRFL (this, SW_RES(FL_SEP_PRT_RIGHT)),
- aFL3 (this, SW_RES(FL_3)),
- aNoRB (this, SW_RES(RB_NO)),
- aOnlyRB (this, SW_RES(RB_ONLY)),
- aEndRB (this, SW_RES(RB_END)),
- aEndPageRB (this, SW_RES(RB_PAGEEND)),
- aFL4 (this, SW_RES(FL_4)),
- aPrintEmptyPagesCB(this, SW_RES(CB_PRINTEMPTYPAGES)),
- aPaperFromSetupCB(this, SW_RES(CB_PAPERFROMSETUP)),
- aFaxFT (this, SW_RES(FT_FAX)),
- aFaxLB (this, SW_RES(LB_FAX)),
- sNone(SW_RES(ST_NONE)),
- bAttrModified( sal_False ),
- bPreview ( sal_False )
-{
+SwAddPrinterTabPage::SwAddPrinterTabPage(Window* pParent,
+ const SfxItemSet& rCoreSet)
+ : SfxTabPage(pParent, "PrintOptionsPage",
+ "modules/swriter/ui/printoptionspage.ui", rCoreSet)
+ , sNone(SW_RESSTR(SW_STR_NONE))
+ , bAttrModified(sal_False)
+ , bPreview(sal_False)
+{
+ get(m_pGrfCB, "graphics");
+ get(m_pCtrlFldCB, "formcontrols");
+ get(m_pBackgroundCB, "background");
+ get(m_pBlackFontCB, "inblack");
+ get(m_pPrintHiddenTextCB, "hiddentext");
+ get(m_pPrintTextPlaceholderCB, "textplaceholder");
+
+ get(m_pPagesFrame, "pagesframe");
+ get(m_pLeftPageCB, "leftpages");
+ get(m_pRightPageCB, "rightpages");
+ get(m_pProspectCB, "brochure");
+ get(m_pProspectCB_RTL, "rtl");
+
+ get(m_pCommentsFrame, "commentsframe");
+ get(m_pNoRB, "none");
+ get(m_pOnlyRB, "only");
+ get(m_pEndRB, "end");
+ get(m_pEndPageRB, "endpage");
+ get(m_pPrintEmptyPagesCB, "blankpages");
+ get(m_pPaperFromSetupCB, "papertray");
+ get(m_pFaxLB, "fax");
+
Init();
- FreeResource();
+
Link aLk = LINK( this, SwAddPrinterTabPage, AutoClickHdl);
- aGrfCB.SetClickHdl( aLk );
- aRightPageCB.SetClickHdl( aLk );
- aLeftPageCB.SetClickHdl( aLk );
- aCtrlFldCB.SetClickHdl( aLk );
- aBackgroundCB.SetClickHdl( aLk );
- aBlackFontCB.SetClickHdl( aLk );
- aPrintHiddenTextCB.SetClickHdl( aLk );
- aPrintTextPlaceholderCB.SetClickHdl( aLk );
- aProspectCB.SetClickHdl( aLk );
- aProspectCB_RTL.SetClickHdl( aLk );
- aPaperFromSetupCB.SetClickHdl( aLk );
- aPrintEmptyPagesCB.SetClickHdl( aLk );
- aEndPageRB.SetClickHdl( aLk );
- aEndRB.SetClickHdl( aLk );
- aOnlyRB.SetClickHdl( aLk );
- aNoRB.SetClickHdl( aLk );
- aFaxLB.SetSelectHdl( LINK( this, SwAddPrinterTabPage, SelectHdl ) );
+ m_pGrfCB->SetClickHdl( aLk );
+ m_pRightPageCB->SetClickHdl( aLk );
+ m_pLeftPageCB->SetClickHdl( aLk );
+ m_pCtrlFldCB->SetClickHdl( aLk );
+ m_pBackgroundCB->SetClickHdl( aLk );
+ m_pBlackFontCB->SetClickHdl( aLk );
+ m_pPrintHiddenTextCB->SetClickHdl( aLk );
+ m_pPrintTextPlaceholderCB->SetClickHdl( aLk );
+ m_pProspectCB->SetClickHdl( aLk );
+ m_pProspectCB_RTL->SetClickHdl( aLk );
+ m_pPaperFromSetupCB->SetClickHdl( aLk );
+ m_pPrintEmptyPagesCB->SetClickHdl( aLk );
+ m_pEndPageRB->SetClickHdl( aLk );
+ m_pEndRB->SetClickHdl( aLk );
+ m_pOnlyRB->SetClickHdl( aLk );
+ m_pNoRB->SetClickHdl( aLk );
+ m_pFaxLB->SetSelectHdl( LINK( this, SwAddPrinterTabPage, SelectHdl ) );
const SfxPoolItem* pItem;
if(SFX_ITEM_SET == rCoreSet.GetItemState(SID_HTML_MODE, sal_False, &pItem )
&& ((SfxUInt16Item*)pItem)->GetValue() & HTMLMODE_ON)
{
- aLeftPageCB .Hide();
- aRightPageCB .Hide();
- aPrintHiddenTextCB.Hide();
- aPrintTextPlaceholderCB.Hide();
- aProspectCB.SetPosPixel(aLeftPageCB.GetPosPixel());
- Point aPt( aRightPageCB.GetPosPixel() );
+ m_pLeftPageCB->Hide();
+ m_pRightPageCB->Hide();
+ m_pPrintHiddenTextCB->Hide();
+ m_pPrintTextPlaceholderCB->Hide();
+ m_pProspectCB->SetPosPixel(m_pLeftPageCB->GetPosPixel());
+ Point aPt( m_pRightPageCB->GetPosPixel() );
aPt.setX(aPt.getX() + 15); // indent
- aProspectCB_RTL.SetPosPixel(aPt);
-
- // hide aPrintEmptyPagesCB and move everything below up accordingly
- long nDeltaY = aPaperFromSetupCB.GetPosPixel().getY() - aPrintEmptyPagesCB.GetPosPixel().getY();
- aPrintEmptyPagesCB.Hide();
- aPt = aPaperFromSetupCB.GetPosPixel();
- aPt.setY( aPt.getY() - nDeltaY );
- aPaperFromSetupCB.SetPosPixel( aPt );
- aPt = aFaxFT.GetPosPixel();
- aPt.setY( aPt.getY() - nDeltaY );
- aFaxFT.SetPosPixel( aPt );
- aPt = aFaxLB.GetPosPixel();
- aPt.setY( aPt.getY() - nDeltaY );
- aFaxLB.SetPosPixel( aPt );
- }
- aProspectCB_RTL.Disable();
+ m_pProspectCB_RTL->SetPosPixel(aPt);
+
+ // hide m_pPrintEmptyPagesCB
+ m_pPrintEmptyPagesCB->Hide();
+ }
+ m_pProspectCB_RTL->Disable();
SvtCTLOptions aCTLOptions;
- aProspectCB_RTL.Show(aCTLOptions.IsCTLFontEnabled());
+ m_pProspectCB_RTL->Show(aCTLOptions.IsCTLFontEnabled());
}
void SwAddPrinterTabPage::SetPreview(sal_Bool bPrev)
{
bPreview = bPrev;
-
- if (bPreview)
- {
- aLeftPageCB.Disable();
- aRightPageCB.Disable();
- aProspectCB.Disable();
- aProspectCB_RTL.Disable();
- aFL3.Disable();
- aNoRB.Disable();
- aOnlyRB.Disable();
- aEndRB.Disable();
- aEndPageRB.Disable();
- }
+ m_pCommentsFrame->Enable(!bPreview);
+ m_pPagesFrame->Enable(!bPreview);
}
SfxTabPage* SwAddPrinterTabPage::Create( Window* pParent,
@@ -397,34 +375,34 @@ sal_Bool SwAddPrinterTabPage::FillItemSet( SfxItemSet& rCoreSet )
if ( bAttrModified )
{
SwAddPrinterItem aAddPrinterAttr (FN_PARAM_ADDPRINTER);
- aAddPrinterAttr.bPrintGraphic = aGrfCB.IsChecked();
+ aAddPrinterAttr.bPrintGraphic = m_pGrfCB->IsChecked();
aAddPrinterAttr.bPrintTable = sal_True; // always enabled since CWS printerpullgpages /*aTabCB.IsChecked();*/
- aAddPrinterAttr.bPrintDraw = aGrfCB.IsChecked(); // UI merged with aGrfCB in CWS printerpullgpages /*aDrawCB.IsChecked()*/;
- aAddPrinterAttr.bPrintControl = aCtrlFldCB.IsChecked();
- aAddPrinterAttr.bPrintPageBackground = aBackgroundCB.IsChecked();
- aAddPrinterAttr.bPrintBlackFont = aBlackFontCB.IsChecked();
- aAddPrinterAttr.bPrintHiddenText = aPrintHiddenTextCB.IsChecked();
- aAddPrinterAttr.bPrintTextPlaceholder = aPrintTextPlaceholderCB.IsChecked();
-
- aAddPrinterAttr.bPrintLeftPages = aLeftPageCB.IsChecked();
- aAddPrinterAttr.bPrintRightPages = aRightPageCB.IsChecked();
+ aAddPrinterAttr.bPrintDraw = m_pGrfCB->IsChecked(); // UI merged with m_pGrfCB in CWS printerpullgpages
+ aAddPrinterAttr.bPrintControl = m_pCtrlFldCB->IsChecked();
+ aAddPrinterAttr.bPrintPageBackground = m_pBackgroundCB->IsChecked();
+ aAddPrinterAttr.bPrintBlackFont = m_pBlackFontCB->IsChecked();
+ aAddPrinterAttr.bPrintHiddenText = m_pPrintHiddenTextCB->IsChecked();
+ aAddPrinterAttr.bPrintTextPlaceholder = m_pPrintTextPlaceholderCB->IsChecked();
+
+ aAddPrinterAttr.bPrintLeftPages = m_pLeftPageCB->IsChecked();
+ aAddPrinterAttr.bPrintRightPages = m_pRightPageCB->IsChecked();
aAddPrinterAttr.bPrintReverse = sal_False; // handled by vcl itself since CWS printerpullpages /*aReverseCB.IsChecked()*/;
- aAddPrinterAttr.bPrintProspect = aProspectCB.IsChecked();
- aAddPrinterAttr.bPrintProspectRTL = aProspectCB_RTL.IsChecked();
- aAddPrinterAttr.bPaperFromSetup = aPaperFromSetupCB.IsChecked();
- aAddPrinterAttr.bPrintEmptyPages = aPrintEmptyPagesCB.IsChecked();
+ aAddPrinterAttr.bPrintProspect = m_pProspectCB->IsChecked();
+ aAddPrinterAttr.bPrintProspectRTL = m_pProspectCB_RTL->IsChecked();
+ aAddPrinterAttr.bPaperFromSetup = m_pPaperFromSetupCB->IsChecked();
+ aAddPrinterAttr.bPrintEmptyPages = m_pPrintEmptyPagesCB->IsChecked();
aAddPrinterAttr.bPrintSingleJobs = sal_True; // handled by vcl in new print dialog since CWS printerpullpages /*aSingleJobsCB.IsChecked()*/;
- if (aNoRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ if (m_pNoRB->IsChecked()) aAddPrinterAttr.nPrintPostIts =
POSTITS_NONE;
- if (aOnlyRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ if (m_pOnlyRB->IsChecked()) aAddPrinterAttr.nPrintPostIts =
POSTITS_ONLY;
- if (aEndRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ if (m_pEndRB->IsChecked()) aAddPrinterAttr.nPrintPostIts =
POSTITS_ENDDOC;
- if (aEndPageRB.IsChecked()) aAddPrinterAttr.nPrintPostIts =
+ if (m_pEndPageRB->IsChecked()) aAddPrinterAttr.nPrintPostIts =
POSTITS_ENDPAGE;
- String sFax = aFaxLB.GetSelectEntry();
+ String sFax = m_pFaxLB->GetSelectEntry();
aAddPrinterAttr.sFaxName = sNone == sFax ? aEmptyStr : sFax;
rCoreSet.Put(aAddPrinterAttr);
}
@@ -439,35 +417,35 @@ void SwAddPrinterTabPage::Reset( const SfxItemSet& )
if( SFX_ITEM_SET == rSet.GetItemState( FN_PARAM_ADDPRINTER , sal_False,
(const SfxPoolItem**)&pAddPrinterAttr ))
{
- aGrfCB.Check( pAddPrinterAttr->bPrintGraphic || pAddPrinterAttr->bPrintDraw );
- aCtrlFldCB.Check( pAddPrinterAttr->bPrintControl);
- aBackgroundCB.Check( pAddPrinterAttr->bPrintPageBackground);
- aBlackFontCB.Check( pAddPrinterAttr->bPrintBlackFont);
- aPrintHiddenTextCB.Check( pAddPrinterAttr->bPrintHiddenText);
- aPrintTextPlaceholderCB.Check(pAddPrinterAttr->bPrintTextPlaceholder);
- aLeftPageCB.Check( pAddPrinterAttr->bPrintLeftPages);
- aRightPageCB.Check( pAddPrinterAttr->bPrintRightPages);
- aPaperFromSetupCB.Check(pAddPrinterAttr->bPaperFromSetup);
- aPrintEmptyPagesCB.Check(pAddPrinterAttr->bPrintEmptyPages);
- aProspectCB.Check( pAddPrinterAttr->bPrintProspect);
- aProspectCB_RTL.Check( pAddPrinterAttr->bPrintProspectRTL);
-
- aNoRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_NONE ) ;
- aOnlyRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ONLY ) ;
- aEndRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ENDDOC ) ;
- aEndPageRB.Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ENDPAGE ) ;
- aFaxLB.SelectEntry( pAddPrinterAttr->sFaxName );
- }
- if (aProspectCB.IsChecked())
- {
- aProspectCB_RTL.Enable(sal_True);
- aNoRB.Enable( sal_False );
- aOnlyRB.Enable( sal_False );
- aEndRB.Enable( sal_False );
- aEndPageRB.Enable( sal_False );
+ m_pGrfCB->Check(pAddPrinterAttr->bPrintGraphic || pAddPrinterAttr->bPrintDraw);
+ m_pCtrlFldCB->Check( pAddPrinterAttr->bPrintControl);
+ m_pBackgroundCB->Check( pAddPrinterAttr->bPrintPageBackground);
+ m_pBlackFontCB->Check( pAddPrinterAttr->bPrintBlackFont);
+ m_pPrintHiddenTextCB->Check( pAddPrinterAttr->bPrintHiddenText);
+ m_pPrintTextPlaceholderCB->Check(pAddPrinterAttr->bPrintTextPlaceholder);
+ m_pLeftPageCB->Check( pAddPrinterAttr->bPrintLeftPages);
+ m_pRightPageCB->Check( pAddPrinterAttr->bPrintRightPages);
+ m_pPaperFromSetupCB->Check(pAddPrinterAttr->bPaperFromSetup);
+ m_pPrintEmptyPagesCB->Check(pAddPrinterAttr->bPrintEmptyPages);
+ m_pProspectCB->Check( pAddPrinterAttr->bPrintProspect);
+ m_pProspectCB_RTL->Check( pAddPrinterAttr->bPrintProspectRTL);
+
+ m_pNoRB->Check (pAddPrinterAttr->nPrintPostIts== POSTITS_NONE ) ;
+ m_pOnlyRB->Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ONLY ) ;
+ m_pEndRB->Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ENDDOC ) ;
+ m_pEndPageRB->Check (pAddPrinterAttr->nPrintPostIts== POSTITS_ENDPAGE ) ;
+ m_pFaxLB->SelectEntry( pAddPrinterAttr->sFaxName );
+ }
+ if (m_pProspectCB->IsChecked())
+ {
+ m_pProspectCB_RTL->Enable(sal_True);
+ m_pNoRB->Enable( sal_False );
+ m_pOnlyRB->Enable( sal_False );
+ m_pEndRB->Enable( sal_False );
+ m_pEndPageRB->Enable( sal_False );
}
else
- aProspectCB_RTL.Enable( sal_False );
+ m_pProspectCB_RTL->Enable( sal_False );
}
void SwAddPrinterTabPage::Init()
@@ -478,26 +456,26 @@ void SwAddPrinterTabPage::Init()
IMPL_LINK_NOARG_INLINE_START(SwAddPrinterTabPage, AutoClickHdl)
{
bAttrModified = sal_True;
- bool bIsProspect = aProspectCB.IsChecked();
+ bool bIsProspect = m_pProspectCB->IsChecked();
if (!bIsProspect)
- aProspectCB_RTL.Check( sal_False );
- aProspectCB_RTL.Enable( bIsProspect );
- aNoRB.Enable( !bIsProspect );
- aOnlyRB.Enable( !bIsProspect );
- aEndRB.Enable( !bIsProspect );
- aEndPageRB.Enable( !bIsProspect );
+ m_pProspectCB_RTL->Check( sal_False );
+ m_pProspectCB_RTL->Enable( bIsProspect );
+ m_pNoRB->Enable( !bIsProspect );
+ m_pOnlyRB->Enable( !bIsProspect );
+ m_pEndRB->Enable( !bIsProspect );
+ m_pEndPageRB->Enable( !bIsProspect );
return 0;
}
IMPL_LINK_NOARG_INLINE_END(SwAddPrinterTabPage, AutoClickHdl)
void SwAddPrinterTabPage::SetFax( const std::vector<String>& rFaxLst )
{
- aFaxLB.InsertEntry(sNone);
+ m_pFaxLB->InsertEntry(sNone);
for(size_t i = 0; i < rFaxLst.size(); ++i)
{
- aFaxLB.InsertEntry(rFaxLst[i]);
+ m_pFaxLB->InsertEntry(rFaxLst[i]);
}
- aFaxLB.SelectEntryPos(0);
+ m_pFaxLB->SelectEntryPos(0);
}
IMPL_LINK_NOARG_INLINE_START(SwAddPrinterTabPage, SelectHdl)
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index ae8222f..8ec670f 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -34,6 +34,7 @@
#include <vector>
#include <boost/scoped_ptr.hpp>
#include <mmaddressblockpage.hrc>
+#include <globals.hrc>
#include <dbui.hrc>
#include <helpid.h>
@@ -1252,7 +1253,7 @@ SwAssignFieldsDialog::SwAssignFieldsDialog(
#ifdef MSC
#pragma warning (default : 4355)
#endif
- m_sNone(SW_RES(ST_NONE)),
+ m_sNone(SW_RESSTR(SW_STR_NONE)),
m_rPreviewString(rPreview),
m_rConfigItem(rConfigItem)
{
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hrc b/sw/source/ui/dbui/mmaddressblockpage.hrc
index 7a49c8e..a05f7ac 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hrc
+++ b/sw/source/ui/dbui/mmaddressblockpage.hrc
@@ -98,7 +98,6 @@
#define FT_FIELDS 5
#define LB_FIELDS 6
#define FT_PREVIEW 7
-#define ST_NONE 8
#define WIN_DATA 9
#endif
diff --git a/sw/source/ui/dbui/mmaddressblockpage.src b/sw/source/ui/dbui/mmaddressblockpage.src
index 4b556d5..ff91ca9 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.src
+++ b/sw/source/ui/dbui/mmaddressblockpage.src
@@ -630,8 +630,4 @@ ModalDialog DLG_MM_ASSIGNFIELDS
{
Text[ en-US ] = "Preview" ;
};
- String ST_NONE
- {
- Text [en-US] = "< none >";
- };
};
diff --git a/sw/source/ui/inc/optpage.hxx b/sw/source/ui/inc/optpage.hxx
index e18bc3b..1948dac 100644
--- a/sw/source/ui/inc/optpage.hxx
+++ b/sw/source/ui/inc/optpage.hxx
@@ -87,38 +87,29 @@ public:
--------------------------------------------------------- */
class SwAddPrinterTabPage : public SfxTabPage
{
- FixedLine aFL1;
- CheckBox aGrfCB;
-// CheckBox aTabCB;
-// CheckBox aDrawCB;
- CheckBox aCtrlFldCB;
- CheckBox aBackgroundCB;
- CheckBox aBlackFontCB;
- CheckBox aPrintHiddenTextCB;
- CheckBox aPrintTextPlaceholderCB;
-
- FixedLine aSeparatorLFL;
-
- FixedLine aFL2;
- CheckBox aLeftPageCB;
- CheckBox aRightPageCB;
-// CheckBox aReverseCB;
- CheckBox aProspectCB;
- CheckBox aProspectCB_RTL;
-
- FixedLine aSeparatorRFL;
-
- FixedLine aFL3;
- RadioButton aNoRB;
- RadioButton aOnlyRB;
- RadioButton aEndRB;
- RadioButton aEndPageRB;
- FixedLine aFL4;
- CheckBox aPrintEmptyPagesCB;
-// CheckBox aSingleJobsCB;
- CheckBox aPaperFromSetupCB;
- FixedText aFaxFT;
- ListBox aFaxLB;
+ CheckBox* m_pGrfCB;
+ CheckBox* m_pCtrlFldCB;
+ CheckBox* m_pBackgroundCB;
+ CheckBox* m_pBlackFontCB;
+ CheckBox* m_pPrintHiddenTextCB;
+ CheckBox* m_pPrintTextPlaceholderCB;
+
+ VclFrame* m_pPagesFrame;
+ CheckBox* m_pLeftPageCB;
+ CheckBox* m_pRightPageCB;
+ CheckBox* m_pProspectCB;
+ CheckBox* m_pProspectCB_RTL;
+
+ VclFrame* m_pCommentsFrame;
+ RadioButton* m_pNoRB;
+ RadioButton* m_pOnlyRB;
+ RadioButton* m_pEndRB;
+ RadioButton* m_pEndPageRB;
+
+ CheckBox* m_pPrintEmptyPagesCB;
+ CheckBox* m_pPaperFromSetupCB;
+ ListBox* m_pFaxLB;
+
String sNone;
sal_Bool bAttrModified;
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
index 48cfd5c..0afcc8a 100644
--- a/sw/source/ui/misc/outline.cxx
+++ b/sw/source/ui/misc/outline.cxx
@@ -420,7 +420,7 @@ SwOutlineSettingsTabPage::SwOutlineSettingsTabPage(Window* pParent,
const SfxItemSet& rSet)
: SfxTabPage(pParent, "OutlineNumberingPage",
"modules/swriter/ui/outlinenumberingpage.ui", rSet)
- , aNoFmtName(SW_RES(STR_NO_COLL))
+ , aNoFmtName(SW_RESSTR(SW_STR_NONE))
, pSh(0)
, pCollNames(0)
, nActLevel(1)
diff --git a/sw/source/ui/misc/pgfnote.cxx b/sw/source/ui/misc/pgfnote.cxx
index ac9293d..7cb69a4 100644
--- a/sw/source/ui/misc/pgfnote.cxx
+++ b/sw/source/ui/misc/pgfnote.cxx
@@ -206,7 +206,7 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet)
// Separator style
aLineTypeBox.SetSourceUnit( FUNIT_TWIP );
- aLineTypeBox.SetNone( String( SW_RES( STR_NONE ) ) );
+ aLineTypeBox.SetNone(SW_RESSTR(SW_STR_NONE));
aLineTypeBox.InsertEntry(
::editeng::SvxBorderLine::getWidthImpl(table::BorderLineStyle::SOLID),
table::BorderLineStyle::SOLID );
diff --git a/sw/uiconfig/swriter/ui/printoptions.ui b/sw/uiconfig/swriter/ui/printoptions.ui
deleted file mode 100644
index 4a9a327..0000000
--- a/sw/uiconfig/swriter/ui/printoptions.ui
+++ /dev/null
@@ -1,555 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="Printer Options">
- <property name="can_focus">False</property>
- <child>
- <object class="GtkBox" id="box1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">5</property>
- <child>
- <object class="GtkBox" id="box2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">8</property>
- <child>
- <object class="GtkGrid" id="grid2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">5</property>
- <property name="column_spacing">5</property>
- <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="GtkGrid" id="grid3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">5</property>
- <child>
- <object class="GtkCheckButton" id="11">
- <property name="label" translatable="yes">Pictures and objects</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="12">
- <property name="label" translatable="yes">Form controls</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="13">
- <property name="label" translatable="yes">Page background</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="14">
- <property name="label" translatable="yes">Print text in black</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="15">
- <property name="label" translatable="yes">Hidden text</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">4</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="16">
- <property name="label" translatable="yes">Text placeholder</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">5</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child type="label">
- <object class="GtkLabel" id="2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Contents</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkFrame" id="frame3">
- <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="alignment3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">12</property>
- <child>
- <object class="GtkGrid" id="grid4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">5</property>
- <child>
- <object class="GtkCheckButton" id="17">
- <property name="label" translatable="yes">Left pages</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="18">
- <property name="label" translatable="yes">Right pages</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="19">
- <property name="label" translatable="yes">Broucher</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child type="label">
- <object class="GtkLabel" id="3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Pages</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkFrame" id="frame4">
- <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="alignment4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">12</property>
- <child>
- <object class="GtkGrid" id="grid5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">5</property>
- <child>
- <object class="GtkRadioButton" id="101">
- <property name="label" translatable="yes">None</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="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="102">
- <property name="label" translatable="yes">Comments only</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="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="103">
- <property name="label" translatable="yes">End of documetnt </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="left_attach">0</property>
- <property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="104">
- <property name="label" translatable="yes">End of 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>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child type="label">
- <object class="GtkLabel" id="4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Comments</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="left_attach">2</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </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="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="GtkGrid" id="grid6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="row_spacing">8</property>
- <child>
- <object class="GtkGrid" id="grid7">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="column_spacing">10</property>
- <child>
- <object class="GtkLabel" id="5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Fax </property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkComboBoxText" id="10001">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="entry_text_column">0</property>
- <property name="id_column">1</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="20">
- <property name="label" translatable="yes">Print automatically inserted blank pages</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="21">
- <property name="label" translatable="yes">paper tray from printer settings</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>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child type="label">
- <object class="GtkLabel" id="1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Other</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">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkButtonBox" id="buttonbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">5</property>
- <property name="layout_style">start</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="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="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_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="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_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="position">1</property>
- </packing>
- </child>
- </object>
- </child>
- </object>
-</interface>
diff --git a/sw/uiconfig/swriter/ui/printoptionspage.ui b/sw/uiconfig/swriter/ui/printoptionspage.ui
new file mode 100644
index 0000000..4f5119b
--- /dev/null
+++ b/sw/uiconfig/swriter/ui/printoptionspage.ui
@@ -0,0 +1,509 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkBox" id="PrintOptionsPage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkGrid" id="grid2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">6</property>
+ <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="top_padding">6</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkGrid" id="grid3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="graphics">
+ <property name="label" translatable="yes">Pictures and objects</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="formcontrols">
+ <property name="label" translatable="yes">Form controls</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="background">
+ <property name="label" translatable="yes">Page background</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="inblack">
+ <property name="label" translatable="yes">Print text in black</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">3</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="hiddentext">
+ <property name="label" translatable="yes">Hidden text</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">4</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="textplaceholder">
+ <property name="label" translatable="yes">Text placeholder</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">5</property>
+ <property name="width">1</property>
+ <property name="height">1</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">Contents</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="pagesframe">
+ <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="alignment3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="top_padding">6</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkGrid" id="grid4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="leftpages">
+ <property name="label" translatable="yes">Left pages</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="rightpages">
+ <property name="label" translatable="yes">Right pages</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="brochure">
+ <property name="label" translatable="yes">Brochure</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="rtl">
+ <property name="label" translatable="yes">Right to Left</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="margin_left">18</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">3</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label10">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Pages</property>
+ <attributes>
+ <attribute name="weight" value="semibold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="commentsframe">
+ <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="alignment4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="top_padding">6</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkGrid" id="grid5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkRadioButton" id="none">
+ <property name="label" translatable="yes">None</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>
+ <property name="group">only</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="only">
+ <property name="label" translatable="yes">Comments only</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>
+ <property name="group">end</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="end">
+ <property name="label" translatable="yes">End of document</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>
+ <property name="group">endpage</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="endpage">
+ <property name="label" translatable="yes">End of 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="draw_indicator">True</property>
+ <property name="group">none</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">3</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Comments</property>
+ <attributes>
+ <attribute name="weight" value="semibold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </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="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="top_padding">6</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkGrid" id="grid6">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkGrid" id="grid7">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="column_spacing">10</property>
+ <child>
+ <object class="GtkLabel" id="label5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Fax </property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="fax">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="blankpages">
+ <property name="label" translatable="yes">Print automatically inserted blank pages</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="papertray">
+ <property name="label" translatable="yes">Paper tray from printer settings</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>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</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">Other</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+</interface>
commit 0e1528f1b4cd76804f5df0d75438a6f392a77d1b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 6 15:30:20 2012 +0000
just use return value optimization
Change-Id: I2c7937c238d90192383e20923f62233821445c10
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index f27f2b9..c57ca80 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -729,10 +729,9 @@ sal_Bool EscherPropertyContainer::GetLineArrow( const sal_Bool bLineStart,
aAny, rXPropSet, sLineName, sal_False ) )
{
String aArrowStartName = *(::rtl::OUString*)aAny.getValue();
- rtl::OUString aApiName;
sal_Int16 nWhich = bLineStart ? XATTR_LINESTART : XATTR_LINEEND;
- SvxUnogetApiNameForItem( nWhich, aArrowStartName, aApiName );
+ OUString aApiName = SvxUnogetApiNameForItem(nWhich, aArrowStartName);
if ( !aApiName.isEmpty() )
{
diff --git a/svx/inc/svx/unoapi.hxx b/svx/inc/svx/unoapi.hxx
index 159c052..88708aa 100644
--- a/svx/inc/svx/unoapi.hxx
+++ b/svx/inc/svx/unoapi.hxx
@@ -83,12 +83,14 @@ SVX_DLLPUBLIC sal_Bool SvxFieldUnitToMeasureUnit( const short nVcl, short& eApi
/** if the given name is a predefined name for the current language it is replaced by
the corresponding api name.
*/
-SVX_DLLPUBLIC void SvxUnogetApiNameForItem( const sal_Int16 nWhich, const String& rInternalName, rtl::OUString& rApiName ) throw();
+SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString
+ SvxUnogetApiNameForItem(const sal_Int16 nWhich, const OUString& rInternalName) throw();
/** if the given name is a predefined api name it is replaced by the predefined name
for the current language.
*/
-SVX_DLLPUBLIC void SvxUnogetInternalNameForItem( const sal_Int16 nWhich, const rtl::OUString& rApiName, String& rInternalName ) throw();
+SVX_DLLPUBLIC SAL_WARN_UNUSED_RESULT OUString
+ SvxUnogetInternalNameForItem(const sal_Int16 nWhich, const OUString& rApiName) throw();
#endif // _SVX_UNOAPI_HXX_
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx
index aee125a..3a21d1e 100644
--- a/svx/source/accessibility/DescriptionGenerator.cxx
+++ b/svx/source/accessibility/DescriptionGenerator.cxx
@@ -52,8 +52,6 @@ using namespace ::rtl;
using namespace ::com::sun::star;
-void SvxUnogetInternalNameForItem( const sal_Int16 nWhich, const rtl::OUString& rApiName, String& rInternalName ) throw();
-
namespace accessibility {
@@ -334,9 +332,9 @@ void DescriptionGenerator::AddString (const OUString& sPropertyName,
if (nWhichId >= 0)
{
SolarMutexGuard aGuard;
- String sLocalizedValue;
- SvxUnogetInternalNameForItem (sal::static_int_cast<sal_Int16>(nWhichId),
- sValue, sLocalizedValue);
+ OUString sLocalizedValue =
+ SvxUnogetInternalNameForItem(sal::static_int_cast<sal_Int16>(nWhichId),
+ sValue);
msDescription.append (sLocalizedValue);
}
else
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index 60f487e..1827f94 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -158,9 +158,8 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
{
if( pDashItem )
{
- String aString;
- SvxUnogetInternalNameForItem(
- XATTR_LINEDASH, pDashItem->GetName(), aString );
+ OUString aString = SvxUnogetInternalNameForItem(
+ XATTR_LINEDASH, pDashItem->GetName());
pBox->SelectEntry( aString );
}
else
diff --git a/svx/source/unodraw/UnoNameItemTable.cxx b/svx/source/unodraw/UnoNameItemTable.cxx
index e61f264..09fa72e 100644
--- a/svx/source/unodraw/UnoNameItemTable.cxx
+++ b/svx/source/unodraw/UnoNameItemTable.cxx
@@ -110,8 +110,7 @@ void SAL_CALL SvxUnoNameItemTable::insertByName( const OUString& aApiName, const
if( hasByName( aApiName ) )
throw container::ElementExistException();
- String aName;
- SvxUnogetInternalNameForItem( mnWhich, aApiName, aName );
+ OUString aName = SvxUnogetInternalNameForItem(mnWhich, aApiName);
ImplInsertByName( aName, aElement );
}
@@ -131,19 +130,17 @@ void SAL_CALL SvxUnoNameItemTable::removeByName( const OUString& aApiName )
return;
}
- String Name;
- SvxUnogetInternalNameForItem( mnWhich, aApiName, Name );
+ OUString sName = SvxUnogetInternalNameForItem(mnWhich, aApiName);
ItemPoolVector::iterator aIter = maItemSetVector.begin();
const ItemPoolVector::iterator aEnd = maItemSetVector.end();
NameOrIndex *pItem;
- const String aSearchName( Name );
while( aIter != aEnd )
{
pItem = (NameOrIndex *)&((*aIter)->Get( mnWhich ) );
- if( pItem->GetName() == aSearchName )
+ if (sName.equals(pItem->GetName()))
{
delete (*aIter);
maItemSetVector.erase( aIter );
@@ -152,7 +149,7 @@ void SAL_CALL SvxUnoNameItemTable::removeByName( const OUString& aApiName )
++aIter;
}
- if( !hasByName( Name ) )
+ if (!hasByName(sName))
throw container::NoSuchElementException();
}
@@ -162,22 +159,20 @@ void SAL_CALL SvxUnoNameItemTable::replaceByName( const OUString& aApiName, cons
{
SolarMutexGuard aGuard;
- String aName;
- SvxUnogetInternalNameForItem( mnWhich, aApiName, aName );
+ OUString aName = SvxUnogetInternalNameForItem(mnWhich, aApiName);
ItemPoolVector::iterator aIter = maItemSetVector.begin();
const ItemPoolVector::iterator aEnd = maItemSetVector.end();
NameOrIndex *pItem;
- const String aSearchName( aName );
while( aIter != aEnd )
{
pItem = (NameOrIndex *)&((*aIter)->Get( mnWhich ) );
- if( pItem->GetName() == aSearchName )
+ if (aName.equals(pItem->GetName()))
{
NameOrIndex* pNewItem = createItem();
- pNewItem->SetName( aSearchName );
+ pNewItem->SetName(aName);
if( !pNewItem->PutValue( aElement, mnMemberId ) || !isValid( pNewItem ) )
throw lang::IllegalArgumentException();
@@ -195,7 +190,7 @@ void SAL_CALL SvxUnoNameItemTable::replaceByName( const OUString& aApiName, cons
for( nSurrogate = 0; nSurrogate < nCount; nSurrogate++ )
{
pItem = (NameOrIndex*)mpModelPool->GetItem2( mnWhich, nSurrogate);
- if( pItem && pItem->GetName() == aSearchName )
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list