summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2010-07-29 11:05:21 +0200
committerobo <obo@openoffice.org>2010-07-29 11:05:21 +0200
commit870138c3012c8b39e9fa3a928dd53f0ecb027e9f (patch)
tree1d460deb6a8f556adb54c8f94d1132bacdd2659e
parent400a2d393c1b0781245fed079789c29ac06a9cb5 (diff)
parentf9c5d6dbacda999ba7853b79cd80e295a07042c3 (diff)
CWS-TOOLING: integrate CWS vcl113
-rw-r--r--[-rwxr-xr-x]sw/source/core/view/printdata.cxx22
-rwxr-xr-x[-rw-r--r--]sw/source/ui/ribbar/inputwin.cxx2
2 files changed, 16 insertions, 8 deletions
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx
index d67b820fc9..5d8cb3f043 100755..100644
--- a/sw/source/core/view/printdata.cxx
+++ b/sw/source/core/view/printdata.cxx
@@ -325,22 +325,26 @@ SwPrintUIOptions::SwPrintUIOptions(
// create a choice for the content to create
rtl::OUString aPrintRangeName( RTL_CONSTASCII_USTRINGPARAM( "PrintContent" ) );
- uno::Sequence< rtl::OUString > aChoices( bHasSelection ? 3 : 2 );
- uno::Sequence< rtl::OUString > aHelpText( bHasSelection ? 3 : 2 );
+ uno::Sequence< rtl::OUString > aChoices( 3 );
+ uno::Sequence< sal_Bool > aChoicesDisabled( 3 );
+ uno::Sequence< rtl::OUString > aHelpText( 3 );
aChoices[0] = aLocalizedStrings.GetString( 38 );
+ aChoicesDisabled[0] = sal_False;
aHelpText[0] = aLocalizedStrings.GetString( 39 );
aChoices[1] = aLocalizedStrings.GetString( 40 );
+ aChoicesDisabled[1] = sal_False;
aHelpText[1] = aLocalizedStrings.GetString( 41 );
- if (bHasSelection)
- {
- aChoices[2] = aLocalizedStrings.GetString( 42 );
- aHelpText[2] = aLocalizedStrings.GetString( 43 );
- }
+ aChoices[2] = aLocalizedStrings.GetString( 42 );
+ aChoicesDisabled[2] = sal_Bool(! bHasSelection);
+ aHelpText[2] = aLocalizedStrings.GetString( 43 );
m_aUIProperties[nIdx++].Value = getChoiceControlOpt( rtl::OUString(),
aHelpText,
aPrintRangeName,
aChoices,
- bHasSelection ? 2 /*enable 'Selection' radio button*/ : 0 /* enable 'All pages' */);
+ bHasSelection ? 2 /*enable 'Selection' radio button*/ : 0 /* enable 'All pages' */,
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Radio" ) ),
+ aChoicesDisabled
+ );
// create a an Edit dependent on "Pages" selected
vcl::PrinterOptionsHelper::UIControlOptions aPageRangeOpt( aPrintRangeName, 1, sal_True );
m_aUIProperties[nIdx++].Value = getEditControlOpt( rtl::OUString(),
@@ -374,6 +378,7 @@ SwPrintUIOptions::SwPrintUIOptions(
aChoices,
nPrintPostIts,
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "List" ) ),
+ uno::Sequence< sal_Bool >(),
aAnnotOpt
);
@@ -441,6 +446,7 @@ SwPrintUIOptions::SwPrintUIOptions(
aBRTLChoices,
nBRTLChoice,
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "List" ) ),
+ uno::Sequence< sal_Bool >(),
aBrochureRTLOpt
);
}
diff --git a/sw/source/ui/ribbar/inputwin.cxx b/sw/source/ui/ribbar/inputwin.cxx
index 174634af48..3fe5e3edb5 100644..100755
--- a/sw/source/ui/ribbar/inputwin.cxx
+++ b/sw/source/ui/ribbar/inputwin.cxx
@@ -79,6 +79,8 @@ SwInputWindow::SwInputWindow( Window* pParent, SfxBindings* pBind )
bActive = bIsTable = bDelSel = bResetUndo = bCallUndo = FALSE;
FreeResource();
+
+ aEdit.SetSizePixel( aEdit.CalcMinimumSize() );
SfxImageManager* pManager = SfxImageManager::GetImageManager( SW_MOD() );
pManager->RegisterToolBox(this);