Kaydet (Commit) 662084d5 authored tarafından Noel Grandin's avatar Noel Grandin

remove Link<> field that is never Call()'ed

Change-Id: I416734c7c42709438e3bdcdb8922ce4ec576c95a
üst 8491065b
...@@ -534,7 +534,6 @@ public: ...@@ -534,7 +534,6 @@ public:
VCL_PLUGIN_PUBLIC PageSize getFilteredPageFile( int i_nFilteredPage, GDIMetaFile& o_rMtf, bool i_bMayUseCache = false ); VCL_PLUGIN_PUBLIC PageSize getFilteredPageFile( int i_nFilteredPage, GDIMetaFile& o_rMtf, bool i_bMayUseCache = false );
VCL_PLUGIN_PUBLIC void printFilteredPage( int i_nPage ); VCL_PLUGIN_PUBLIC void printFilteredPage( int i_nPage );
SAL_DLLPRIVATE void setPrinter( const VclPtr<Printer>& ); SAL_DLLPRIVATE void setPrinter( const VclPtr<Printer>& );
SAL_DLLPRIVATE void setOptionChangeHdl( const Link<>& );
VCL_PLUGIN_PUBLIC void createProgressDialog(); VCL_PLUGIN_PUBLIC void createProgressDialog();
VCL_PLUGIN_PUBLIC bool isProgressCanceled() const; VCL_PLUGIN_PUBLIC bool isProgressCanceled() const;
SAL_DLLPRIVATE void setMultipage( const MultiPageSetup& ); SAL_DLLPRIVATE void setMultipage( const MultiPageSetup& );
......
...@@ -245,7 +245,6 @@ namespace vcl ...@@ -245,7 +245,6 @@ namespace vcl
DECL_LINK_TYPED( ToggleHdl, CheckBox&, void ); DECL_LINK_TYPED( ToggleHdl, CheckBox&, void );
DECL_LINK_TYPED( ToggleRadioHdl, RadioButton&, void ); DECL_LINK_TYPED( ToggleRadioHdl, RadioButton&, void );
DECL_LINK( ModifyHdl, Edit* ); DECL_LINK( ModifyHdl, Edit* );
DECL_LINK( UIOptionsChanged, void* );
DECL_LINK_TYPED( UIOption_CheckHdl, CheckBox&, void ); DECL_LINK_TYPED( UIOption_CheckHdl, CheckBox&, void );
DECL_LINK_TYPED( UIOption_RadioHdl, RadioButton&, void ); DECL_LINK_TYPED( UIOption_RadioHdl, RadioButton&, void );
......
...@@ -145,7 +145,6 @@ public: ...@@ -145,7 +145,6 @@ public:
std::vector< PropertyValue > maUIProperties; std::vector< PropertyValue > maUIProperties;
std::vector< bool > maUIPropertyEnabled; std::vector< bool > maUIPropertyEnabled;
PropertyToIndexMap maPropertyToIndex; PropertyToIndexMap maPropertyToIndex;
Link<> maOptionChangeHdl;
ControlDependencyMap maControlDependencies; ControlDependencyMap maControlDependencies;
ChoiceDisableMap maChoiceDisableMap; ChoiceDisableMap maChoiceDisableMap;
bool mbFirstPage; bool mbFirstPage;
...@@ -1653,11 +1652,6 @@ OUString PrinterController::makeEnabled( const OUString& i_rProperty ) ...@@ -1653,11 +1652,6 @@ OUString PrinterController::makeEnabled( const OUString& i_rProperty )
return aDependency; return aDependency;
} }
void PrinterController::setOptionChangeHdl( const Link<>& i_rHdl )
{
mpImplData->maOptionChangeHdl = i_rHdl;
}
void PrinterController::createProgressDialog() void PrinterController::createProgressDialog()
{ {
if( ! mpImplData->mpProgress ) if( ! mpImplData->mpProgress )
......
...@@ -697,9 +697,6 @@ PrintDialog::PrintDialog( vcl::Window* i_pParent, const std::shared_ptr<PrinterC ...@@ -697,9 +697,6 @@ PrintDialog::PrintDialog( vcl::Window* i_pParent, const std::shared_ptr<PrinterC
// setup optional UI options set by application // setup optional UI options set by application
setupOptionalUI(); setupOptionalUI();
// set change handler for UI options
maPController->setOptionChangeHdl( LINK( this, PrintDialog, UIOptionsChanged ) );
// remove layout page if unwanted // remove layout page if unwanted
if (!mbShowLayoutPage) if (!mbShowLayoutPage)
mpTabCtrl->RemovePage(mpTabCtrl->GetPageId(2)); mpTabCtrl->RemovePage(mpTabCtrl->GetPageId(2));
...@@ -1675,12 +1672,6 @@ IMPL_LINK( PrintDialog, ModifyHdl, Edit*, pEdit ) ...@@ -1675,12 +1672,6 @@ IMPL_LINK( PrintDialog, ModifyHdl, Edit*, pEdit )
return 0; return 0;
} }
IMPL_LINK_NOARG(PrintDialog, UIOptionsChanged)
{
checkOptionalControlDependencies();
return 0;
}
PropertyValue* PrintDialog::getValueForWindow( vcl::Window* i_pWindow ) const PropertyValue* PrintDialog::getValueForWindow( vcl::Window* i_pWindow ) const
{ {
PropertyValue* pVal = NULL; PropertyValue* pVal = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment