27 #include <com/sun/star/awt/PushButtonType.hpp>
28 #include <com/sun/star/awt/XSpinField.hpp>
29 #include <com/sun/star/awt/XTextComponent.hpp>
30 #include <com/sun/star/presentation/XCustomPresentationSupplier.hpp>
31 #include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
32 #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
33 #include <com/sun/star/awt/FontDescriptor.hpp>
34 #include <com/sun/star/awt/FontWeight.hpp>
35 #include <com/sun/star/frame/XStorable.hpp>
36 #include <rtl/ustrbuf.hxx>
53 FontDescriptor aFontDescriptor;
54 if ( rOptimizerDialog.
getControlProperty( rControl,
"FontDescriptor" ) >>= aFontDescriptor )
56 aFontDescriptor.Weight = com::sun::star::awt::FontWeight::BOLD;
63 sal_Int32 nPosX, sal_Int32 nPosY, sal_Int32 nWidth, sal_Int32 nHeight )
67 OUString(
"Orientation"),
68 OUString(
"PositionX"),
69 OUString(
"PositionY"),
78 Any( sal_Int16( 0 ) ),
84 Sequence< Any > aValues( pValues, nCount );
87 rControlName, aNames, aValues );
92 static OUString
InsertButton(
OptimizerDialog& rOptimizerDialog,
const OUString& rControlName, Reference< XActionListener >
const & xActionListener,
93 sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex,
bool bEnabled,
PPPOptimizerTokenEnum nResID, css::awt::PushButtonType nPushButtonType )
100 OUString(
"PositionX"),
101 OUString(
"PositionY"),
102 OUString(
"PushButtonType"),
104 OUString(
"TabIndex"),
113 Any( static_cast< sal_Int16 >(nPushButtonType) ),
122 Sequence< Any > aValues( pValues, nCount );
124 rOptimizerDialog.
insertButton( rControlName, xActionListener, aNames, aValues );
130 sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int32 nHeight,
bool bMultiLine,
bool bBold, sal_Int16 nTabIndex )
132 OUString pNames[] = {
135 OUString(
"MultiLine"),
136 OUString(
"PositionX"),
137 OUString(
"PositionY"),
139 OUString(
"TabIndex"),
155 Sequence< Any > aValues( pValues, nCount );
159 SetBold( rOptimizerDialog, rControlName );
165 const Reference< XItemListener >& xItemListener,
const OUString& rLabel,
166 sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex )
168 sal_Int32 nHeight = 8;
169 OUString pNames[] = {
173 OUString(
"PositionX"),
174 OUString(
"PositionY"),
176 OUString(
"TabIndex"),
192 Sequence< Any > aValues( pValues, nCount );
194 Reference< XCheckBox > xCheckBox( rOptimizerDialog.
insertCheckBox( rControlName, aNames, aValues ) );
195 if ( xItemListener.is() )
196 xCheckBox->addItemListener( xItemListener );
202 const Reference< XTextListener >& xTextListener,
const Reference< XSpinListener >& xSpinListener, sal_Int32 nXPos, sal_Int32 nYPos,
203 double fEffectiveMin,
double fEffectiveMax, sal_Int16 nTabIndex )
205 sal_Int32 nWidth = 50;
206 OUString pNames[] = {
207 OUString(
"EffectiveMax"),
208 OUString(
"EffectiveMin"),
211 OUString(
"PositionX"),
212 OUString(
"PositionY"),
216 OUString(
"TabIndex"),
220 Any( fEffectiveMax ),
221 Any( fEffectiveMin ),
223 Any( sal_Int32(12) ),
235 Sequence< Any > aValues( pValues, nCount );
237 Reference< XTextComponent > xTextComponent( rOptimizerDialog.
insertFormattedField( rControlName, aNames, aValues ), UNO_QUERY_THROW );
238 if ( xTextListener.is() )
239 xTextComponent->addTextListener( xTextListener );
240 if ( xSpinListener.is() )
242 Reference< XSpinField > xSpinField( xTextComponent, UNO_QUERY_THROW );
243 xSpinField->addSpinListener( xSpinListener );
250 const Reference< XTextListener >& rTextListener,
const bool bEnabled,
const Sequence< OUString >& rItemList,
251 sal_Int32 nXPos, sal_Int32 nYPos, sal_Int16 nTabIndex )
253 sal_Int32 nHeight = 12;
254 sal_Int32 nWidth = 100;
255 OUString pNames[] = {
256 OUString(
"Dropdown"),
259 OUString(
"LineCount"),
260 OUString(
"PositionX"),
261 OUString(
"PositionY"),
263 OUString(
"StringItemList"),
264 OUString(
"TabIndex"),
282 Sequence< Any > aValues( pValues, nCount );
284 Reference< XTextComponent > xTextComponent( rOptimizerDialog.
insertComboBox( rControlName, aNames, aValues ), UNO_QUERY_THROW );
285 if ( rTextListener.is() )
286 xTextComponent->addTextListener( rTextListener );
292 const OUString& rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex )
294 sal_Int32 nHeight = 8;
295 OUString pNames[] = {
298 OUString(
"MultiLine"),
299 OUString(
"PositionX"),
300 OUString(
"PositionY"),
302 OUString(
"TabIndex"),
318 Sequence< Any > aValues( pValues, nCount );
320 Reference< XRadioButton > xRadioButton( rOptimizerDialog.
insertRadioButton( rControlName, aNames, aValues ) );
321 if ( rItemListener.is() )
322 xRadioButton->addItemListener( rItemListener );
328 const Reference< XActionListener >& rActionListener,
const bool bEnabled,
const Sequence< OUString >& rItemList,
329 sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex )
331 sal_Int32 nHeight = 12;
332 OUString pNames[] = {
333 OUString(
"Dropdown"),
336 OUString(
"LineCount"),
337 OUString(
"MultiSelection"),
338 OUString(
"PositionX"),
339 OUString(
"PositionY"),
341 OUString(
"StringItemList"),
342 OUString(
"TabIndex"),
361 Sequence< Any > aValues( pValues, nCount );
363 Reference< XListBox > xListBox( rOptimizerDialog.
insertListBox( rControlName, aNames, aValues ) );
365 xListBox->addActionListener( rActionListener );
391 short nSelectedItem = -1;
394 if ( rList.size() > 1 )
396 aItemList.realloc( rList.size() - 1 );
397 auto pItemList = aItemList.getArray();
398 for ( std::vector<OptimizerSettings>::size_type
i = 1;
i < rList.size();
i++ )
400 pItemList[
i - 1 ] = rList[
i ].maName;
401 if ( nSelectedItem < 0 )
403 if ( rList[
i ] == rList[ 0 ] )
404 nSelectedItem =
static_cast< short >(
i - 1 );
408 bool bRemoveButtonEnabled =
false;
409 Sequence< short > aSelectedItems;
410 if ( nSelectedItem >= 0 )
412 aSelectedItems = { nSelectedItem };
413 if ( nSelectedItem > 2 )
414 bRemoveButtonEnabled =
true;
423 std::vector< OUString > aControlList
425 InsertFixedText( *
this,
"FixedText0Pg0",
getString(
STR_INTRODUCTION ),
PAGE_POS_X,
PAGE_POS_Y,
PAGE_WIDTH, 8,
false,
true,
mnTabIndex++ ),
426 InsertFixedText( *
this,
"FixedText1Pg0",
getString(
STR_INTRODUCTION_T ),
PAGE_POS_X + 6,
PAGE_POS_Y + 14,
PAGE_WIDTH - 12, 100,
true,
false,
mnTabIndex++ ),
428 InsertFixedText( *
this,
"FixedText2Pg0",
getString(
STR_CHOSE_SETTINGS ),
PAGE_POS_X + 6,
DIALOG_HEIGHT - 60,
PAGE_WIDTH - 12, 8,
true,
false,
mnTabIndex++ ),
444 setControlProperty(
"CheckBox0Pg3",
"State",
Any( static_cast<sal_Int16>(bDeleteUnusedMasterPages) ) );
454 Reference< XCustomPresentationSupplier > aXCPSup(
xModel, UNO_QUERY_THROW );
455 Reference< XNameContainer > aXCont( aXCPSup->getCustomPresentations() );
457 aCustomShowList = aXCont->getElementNames();
459 std::vector< OUString > aControlList
461 InsertFixedText( *
this,
"FixedText0Pg3",
getString(
STR_CHOOSE_SLIDES ),
PAGE_POS_X,
PAGE_POS_Y,
PAGE_WIDTH, 8,
false,
true,
mnTabIndex++ ),
481 bool lcl_getResolutionText(OUString& rResolutionText, std::u16string_view rImageResolution, sal_Int32 nTargetRes)
501 OUString aResolutionText;
504 if (lcl_getResolutionText(aResolutionText,
getString(static_cast<PPPOptimizerTokenEnum>(nIR)), nImageResolution))
507 if ( aResolutionText.isEmpty() )
508 aResolutionText = OUString::number( nImageResolution );
510 setControlProperty(
"RadioButton0Pg1",
"State",
Any( static_cast<sal_Int16>( !bJPEGCompression ) ) );
514 setControlProperty(
"FormattedField0Pg1",
"EffectiveValue",
Any( static_cast<double>(nJPEGQuality) ) );
528 std::vector< OUString > aControlList
530 InsertFixedText( *
this,
"FixedText0Pg1",
getString(
STR_GRAPHIC_OPTIMIZATION ),
PAGE_POS_X,
PAGE_POS_Y,
PAGE_WIDTH, 8,
false,
true,
mnTabIndex++ ),
533 InsertFixedText( *
this,
"FixedText1Pg1",
getString(
STR_QUALITY ),
PAGE_POS_X + 20,
PAGE_POS_Y + 40, 72, 8,
false,
false,
mnTabIndex++ ),
535 InsertFixedText( *
this,
"FixedText2Pg1",
getString(
STR_IMAGE_RESOLUTION ),
PAGE_POS_X + 6,
PAGE_POS_Y + 54, 94, 8,
false,
false,
mnTabIndex++ ),
553 setControlProperty(
"RadioButton0Pg2",
"State",
Any( static_cast<sal_Int16>( nOLEOptimizationType == 0 ) ) );
555 setControlProperty(
"RadioButton1Pg2",
"State",
Any( static_cast<sal_Int16>( nOLEOptimizationType == 1 ) ) );
561 Reference< XDrawPagesSupplier > xDrawPagesSupplier(
xModel, UNO_QUERY_THROW );
562 Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_SET_THROW );
563 for ( sal_Int32
i = 0;
i < xDrawPages->getCount();
i++ )
565 Reference< XShapes > xShapes( xDrawPages->getByIndex(
i ), UNO_QUERY_THROW );
566 for ( sal_Int32 j = 0; j < xShapes->getCount(); j++ )
568 Reference< XShape > xShape( xShapes->getByIndex( j ), UNO_QUERY_THROW );
569 if ( xShape->getShapeType() ==
"com.sun.star.drawing.OLE2Shape" )
574 std::vector< OUString > aControlList
576 InsertFixedText( *
this,
"FixedText0Pg2",
getString(
STR_OLE_OPTIMIZATION ),
PAGE_POS_X,
PAGE_POS_Y,
PAGE_WIDTH, 8,
false,
true,
mnTabIndex++ ),
590 double fVal( static_cast<double>( rVal ) );
593 OUStringBuffer aVal( OUString::number( fVal ) );
594 sal_Int32 nX( aVal.indexOf(
'.' ) );
597 aVal.setLength( nX + 2 );
598 aVal[nX] = nSeparator;
600 aVal.append(
" MB" );
601 return aVal.makeStringAndClear();
621 if ( rList.size() > 1 )
623 aItemList.realloc( rList.size() - 1 );
624 auto pItemList = aItemList.getArray();
625 for ( std::vector<OptimizerSettings>::size_type
w = 1;
w < rList.size();
w++ )
626 pItemList[
w - 1 ] = rList[
w ].
maName;
631 bool bSaveSettingsEnabled =
true;
632 if ( rList.size() > 1 )
634 for ( std::vector<OptimizerSettings>::size_type
w = 1;
w < rList.size();
w++ )
636 if ( rList[
w ] == rList[ 0 ] )
638 bSaveSettingsEnabled =
false;
643 sal_Int16 nInt16 = 0;
648 std::vector< OUString > aSummaryStrings;
651 sal_Int32 nDeletedSlides = 0;
656 Sequence< short > aSelectedItems;
659 if ( aAny >>= aSelectedItems )
661 if ( aSelectedItems.hasElements() )
663 sal_Int16 nSelectedItem = aSelectedItems[ 0 ];
665 if ( aAny >>= aStringItemList )
667 if ( aStringItemList.getLength() > nSelectedItem )
676 Reference< XDrawPagesSupplier > xDrawPagesSupplier(
mxController->getModel(), UNO_QUERY_THROW );
677 Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_SET_THROW );
678 for( sal_Int32
i = 0;
i < xDrawPages->getCount();
i++ )
680 Reference< XDrawPage > xDrawPage( xDrawPages->getByIndex(
i ), UNO_QUERY_THROW );
684 if ( xPropSet->getPropertyValue(
"Visible" ) >>= bVisible )
693 std::vector< PageCollector::MasterPageEntity > aMasterPageList;
695 Reference< XMasterPagesSupplier > xMasterPagesSupplier(
mxController->getModel(), UNO_QUERY_THROW );
696 Reference< XDrawPages > xMasterPages( xMasterPagesSupplier->getMasterPages(), UNO_SET_THROW );
697 nDeletedSlides += std::count_if(aMasterPageList.begin(), aMasterPageList.end(),
700 if ( nDeletedSlides > 1 )
703 OUString aPlaceholder(
"%SLIDES" );
704 sal_Int32
i = aStr.indexOf( aPlaceholder );
706 aStr = aStr.replaceAt( i, aPlaceholder.getLength(), OUString::number( nDeletedSlides ) );
707 aSummaryStrings.push_back( aStr );
711 sal_Int32 nGraphics = 0;
721 OUString aImagePlaceholder(
"%IMAGES" );
722 OUString aQualityPlaceholder(
"%QUALITY" );
723 OUString aResolutionPlaceholder(
"%RESOLUTION" );
724 sal_Int32
i = aStr.indexOf( aImagePlaceholder );
726 aStr = aStr.replaceAt( i, aImagePlaceholder.getLength(), OUString::number( nGraphics ) );
728 sal_Int32 j = aStr.indexOf( aQualityPlaceholder );
730 aStr = aStr.replaceAt( j, aQualityPlaceholder.getLength(), OUString::number( nJPEGQuality ) );
732 sal_Int32 k = aStr.indexOf( aResolutionPlaceholder );
734 aStr = aStr.replaceAt( k, aResolutionPlaceholder.getLength(), OUString::number( nImageResolution ) );
736 aSummaryStrings.push_back( aStr );
741 sal_Int32 nOLEReplacements = 0;
742 Reference< XDrawPagesSupplier > xDrawPagesSupplier(
mxController->getModel(), UNO_QUERY_THROW );
743 Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_SET_THROW );
744 for ( sal_Int32
i = 0;
i < xDrawPages->getCount();
i++ )
746 Reference< XShapes > xShapes( xDrawPages->getByIndex(
i ), UNO_QUERY_THROW );
747 for ( sal_Int32 j = 0; j < xShapes->getCount(); j++ )
749 Reference< XShape > xShape( xShapes->getByIndex( j ), UNO_QUERY_THROW );
750 if ( xShape->getShapeType() ==
"com.sun.star.drawing.OLE2Shape" )
754 if ( nOLEReplacements > 1 )
757 OUString aPlaceholder(
"%OLE" );
758 sal_Int32
i = aStr.indexOf( aPlaceholder );
760 aStr = aStr.replaceAt( i, aPlaceholder.getLength(), OUString::number( nOLEReplacements ) );
761 aSummaryStrings.push_back( aStr );
764 while( aSummaryStrings.size() < 3 )
765 aSummaryStrings.emplace_back( );
770 sal_Int64 nCurrentFileSize = 0;
771 sal_Int64 nEstimatedFileSize = 0;
772 Reference< XStorable > xStorable(
mxController->getModel(), UNO_QUERY );
773 if ( xStorable.is() && xStorable->hasLocation() )
776 if ( nCurrentFileSize )
778 double fE =
static_cast< double >( nCurrentFileSize );
779 if ( nImageResolution )
781 double v = (
static_cast< double >( nImageResolution ) + 75.0 ) / 300.0;
785 if ( bJPEGCompression )
787 double v = 0.75 - ( ( 100.0 -
static_cast< double >( nJPEGQuality ) ) / 400.0 ) ;
790 nEstimatedFileSize =
static_cast< sal_Int64
>( fE );
794 if ( !aStr.isEmpty() )
795 nSeparator = aStr[ 0 ];
804 OUString pNames[] = {
807 OUString(
"PositionX"),
808 OUString(
"PositionY"),
809 OUString(
"ProgressValue"),
810 OUString(
"ProgressValueMax"),
811 OUString(
"ProgressValueMin"),
815 Any( sal_Int32(12) ),
816 Any( OUString(
"STR_SAVE_AS") ),
820 Any( sal_Int32(100) ),
827 Sequence< Any > aValues( pValues, nCount );
830 "Progress", aNames, aValues );
832 Reference< XTextListener > xTextListener;
834 std::vector< OUString > aControlList
836 InsertFixedText( *
this,
"FixedText0Pg4",
getString(
STR_SUMMARY_TITLE ),
PAGE_POS_X,
PAGE_POS_Y,
PAGE_WIDTH, 8,
false,
true,
mnTabIndex++ ),
839 InsertFixedText( *
this,
"FixedText4Pg4", OUString(),
PAGE_POS_X + 6,
PAGE_POS_Y + 14,
PAGE_WIDTH - 12, 8,
false,
false,
mnTabIndex++ ),
840 InsertFixedText( *
this,
"FixedText5Pg4", OUString(),
PAGE_POS_X + 6,
PAGE_POS_Y + 22,
PAGE_WIDTH - 12, 8,
false,
false,
mnTabIndex++ ),
841 InsertFixedText( *
this,
"FixedText6Pg4", OUString(),
PAGE_POS_X + 6,
PAGE_POS_Y + 30,
PAGE_WIDTH - 12, 8,
false,
false,
mnTabIndex++ ),
843 InsertFixedText( *
this,
"FixedText2Pg4",
getString(
STR_CURRENT_FILESIZE ),
PAGE_POS_X + 6,
PAGE_POS_Y + 50, 88, 8,
false,
false,
mnTabIndex++ ),
854 aControlList.emplace_back(
"Progress" );
862 OUString aSettingsName;
864 sal_Int32 nSession = 1;
865 std::vector<OptimizerSettings>::size_type
i;
869 OUString aTemp = aDefault + OUString::number( nSession++ );
870 for ( i = 1; i < rList.size(); i++ )
872 if ( rList[ i ].
maName == aTemp )
875 if ( i == rList.size() )
876 aSettingsName = aTemp;
878 while( aSettingsName.isEmpty() );
void EnablePage(sal_Int16 nStep)
css::uno::Any getControlProperty(const OUString &rControlName, const OUString &rPropertyName)
css::uno::Reference< css::awt::XTextListener > mxTextListenerComboBox0Pg1
void UpdateControlStatesPage1()
static OUString ImpValueOfInMB(sal_Int64 rVal, sal_Unicode nSeparator)
void UpdateControlStatesPage4()
std::vector< std::vector< OUString > > maControlPages
static OUString InsertRadioButton(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, const Reference< XItemListener > &rItemListener, const OUString &rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex)
static OUString InsertCheckBox(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, const Reference< XItemListener > &xItemListener, const OUString &rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex)
css::uno::Reference< css::awt::XListBox > insertListBox(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
css::uno::Reference< css::awt::XActionListener > mxActionListenerListBox0Pg0
void ActivatePage(sal_Int16 nStep)
static OUString InsertFixedText(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, const OUString &rLabel, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int32 nHeight, bool bMultiLine, bool bBold, sal_Int16 nTabIndex)
static OUString InsertSeparator(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, sal_Int32 nOrientation, sal_Int32 nPosX, sal_Int32 nPosY, sal_Int32 nWidth, sal_Int32 nHeight)
void UpdateControlStatesPage3()
static sal_Int64 GetFileSize(const OUString &rURL)
static void CountGraphics(const css::uno::Reference< css::uno::XComponentContext > &rxMSF, const css::uno::Reference< css::frame::XModel > &rxModel, const GraphicSettings &rGraphicSettings, sal_Int32 &rGraphics)
css::uno::Reference< css::awt::XControl > insertFormattedField(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
void setControlProperty(const OUString &rControlName, const OUString &rPropertyName, const css::uno::Any &rPropertyValue)
static OUString InsertButton(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, Reference< XActionListener > const &xActionListener, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex, bool bEnabled, PPPOptimizerTokenEnum nResID, css::awt::PushButtonType nPushButtonType)
css::uno::Reference< css::awt::XItemListener > mxItemListener
#define SAL_N_ELEMENTS(arr)
css::uno::Reference< css::awt::XFixedText > insertFixedText(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
OUString getString(const PPPOptimizerTokenEnum) const
void SetConfigProperty(const PPPOptimizerTokenEnum, const css::uno::Any &aValue)
void DeactivatePage(sal_Int16 nStep)
css::uno::Reference< css::awt::XComboBox > insertComboBox(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
css::uno::Reference< css::awt::XRadioButton > insertRadioButton(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
static OUString InsertListBox(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, const Reference< XActionListener > &rActionListener, const bool bEnabled, const Sequence< OUString > &rItemList, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int32 nWidth, sal_Int16 nTabIndex)
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::Reference< css::awt::XCheckBox > insertCheckBox(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
static OUString InsertComboBox(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, const Reference< XTextListener > &rTextListener, const bool bEnabled, const Sequence< OUString > &rItemList, sal_Int32 nXPos, sal_Int32 nYPos, sal_Int16 nTabIndex)
css::uno::Reference< css::awt::XTextListener > mxTextListenerFormattedField0Pg1
void DisablePage(sal_Int16 nStep)
static void CollectMasterPages(const css::uno::Reference< css::frame::XModel > &, std::vector< MasterPageEntity > &)
static OUString InsertFormattedField(OptimizerDialog &rOptimizerDialog, const OUString &rControlName, const Reference< XTextListener > &xTextListener, const Reference< XSpinListener > &xSpinListener, sal_Int32 nXPos, sal_Int32 nYPos, double fEffectiveMin, double fEffectiveMax, sal_Int16 nTabIndex)
const PropertyValue * pValues
css::uno::Reference< css::frame::XController > mxController
css::uno::Reference< css::uno::XInterface > insertControlModel(const OUString &rServiceName, const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
void setVisible(const OUString &rName, bool bVisible)
std::vector< OptimizerSettings > & GetOptimizerSettings()
css::uno::Reference< css::awt::XSpinListener > mxSpinListenerFormattedField0Pg1
css::uno::Any GetConfigProperty(const PPPOptimizerTokenEnum) const
void UpdateControlStatesPage0()
css::uno::Reference< css::awt::XActionListener > mxActionListener
Reference< XModel > xModel
static void SetBold(OptimizerDialog &rOptimizerDialog, const OUString &rControl)
void UpdateControlStatesPage2()
css::uno::Reference< css::awt::XButton > insertButton(const OUString &rName, const css::uno::Reference< css::awt::XActionListener > &xActionListener, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)