Kaydet (Commit) 6c0f5f7f authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: I8bbf439d69a330a9ad28ff52cc49a9fec2c12500
Reviewed-on: https://gerrit.libreoffice.org/69684
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7030a586
...@@ -97,7 +97,6 @@ using ::com::sun::star::uno::Reference; ...@@ -97,7 +97,6 @@ using ::com::sun::star::uno::Reference;
using namespace svx; using namespace svx;
// AbstractTabDialog implementations just forwards everything to the dialog // AbstractTabDialog implementations just forwards everything to the dialog
IMPL_ABSTDLG_BASE(CuiAbstractSfxDialog_Impl)
short CuiAbstractController_Impl::Execute() short CuiAbstractController_Impl::Execute()
{ {
...@@ -343,16 +342,6 @@ void CuiAbstractSingleTabController_Impl::SetText(const OUString& rStr) ...@@ -343,16 +342,6 @@ void CuiAbstractSingleTabController_Impl::SetText(const OUString& rStr)
m_xDlg->set_title(rStr); m_xDlg->set_title(rStr);
} }
const SfxItemSet* CuiAbstractSfxDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
void CuiAbstractSfxDialog_Impl::SetText( const OUString& rStr )
{
pDlg->SetText( rStr );
}
SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
{ {
return m_xDlg->GetDistributeHor(); return m_xDlg->GetDistributeHor();
......
...@@ -96,15 +96,6 @@ public: ...@@ -96,15 +96,6 @@ public:
virtual short Execute() override; virtual short Execute() override;
}; };
class CuiAbstractSfxDialog_Impl : public SfxAbstractDialog
{
DECL_ABSTDLG_BASE(CuiAbstractSfxDialog_Impl,SfxModalDialog)
virtual const SfxItemSet* GetOutputItemSet() const override;
//From class Window.
virtual void SetText( const OUString& rStr ) override;
};
class CuiAbstractSingleTabController_Impl : public SfxAbstractDialog class CuiAbstractSingleTabController_Impl : public SfxAbstractDialog
{ {
std::unique_ptr<SfxSingleTabDialogController> m_xDlg; std::unique_ptr<SfxSingleTabDialogController> m_xDlg;
......
...@@ -142,9 +142,7 @@ protected: ...@@ -142,9 +142,7 @@ protected:
virtual ~SfxModelessDialogController() override; virtual ~SfxModelessDialogController() override;
public: public:
void FillInfo(SfxChildWinInfo&) const;
void Initialize (SfxChildWinInfo const * pInfo); void Initialize (SfxChildWinInfo const * pInfo);
void DeInit();
virtual void Close() override; virtual void Close() override;
virtual void EndDialog() override; virtual void EndDialog() override;
virtual void Activate() override; virtual void Activate() override;
...@@ -221,8 +219,6 @@ public: ...@@ -221,8 +219,6 @@ public:
void SetTabPage(SfxTabPage* pTabPage); void SetTabPage(SfxTabPage* pTabPage);
SfxTabPage* GetTabPage() const { return pImpl->m_pSfxPage; } SfxTabPage* GetTabPage() const { return pImpl->m_pSfxPage; }
OKButton* GetOKButton() const { return pOKBtn; }
private: private:
VclPtr<OKButton> pOKBtn; VclPtr<OKButton> pOKBtn;
VclPtr<CancelButton> pCancelBtn; VclPtr<CancelButton> pCancelBtn;
......
...@@ -134,7 +134,6 @@ public: ...@@ -134,7 +134,6 @@ public:
CreateTabPage pCreateFunc, // != 0 CreateTabPage pCreateFunc, // != 0
sal_uInt16 nPos = TAB_APPEND); sal_uInt16 nPos = TAB_APPEND);
void RemoveTabPage( const OString& rName ); // Name of the label for the page in the notebook .ui
void RemoveTabPage( sal_uInt16 nId ); void RemoveTabPage( sal_uInt16 nId );
void SetCurPageId(sal_uInt16 nId) void SetCurPageId(sal_uInt16 nId)
...@@ -169,14 +168,8 @@ public: ...@@ -169,14 +168,8 @@ public:
void SetInputSet( const SfxItemSet* pInSet ); void SetInputSet( const SfxItemSet* pInSet );
const SfxItemSet* GetOutputItemSet() const { return m_pOutSet.get(); } const SfxItemSet* GetOutputItemSet() const { return m_pOutSet.get(); }
const PushButton& GetOKButton() const { return *m_pOKBtn; }
PushButton& GetOKButton() { return *m_pOKBtn; }
const CancelButton& GetCancelButton() const { return *m_pCancelBtn; }
CancelButton& GetCancelButton() { return *m_pCancelBtn; }
short Execute() override; short Execute() override;
bool StartExecuteAsync( VclAbstractDialog::AsyncContext &rCtx ) override; bool StartExecuteAsync( VclAbstractDialog::AsyncContext &rCtx ) override;
void Start();
const SfxItemSet* GetExampleSet() const { return m_pExampleSet; } const SfxItemSet* GetExampleSet() const { return m_pExampleSet; }
......
...@@ -53,15 +53,6 @@ namespace svx ...@@ -53,15 +53,6 @@ namespace svx
class SAL_WARN_UNUSED SVX_DLLPUBLIC OColumnTransferable final : public TransferableHelper class SAL_WARN_UNUSED SVX_DLLPUBLIC OColumnTransferable final : public TransferableHelper
{ {
public: public:
/** construct the transferable
*/
OColumnTransferable(
const OUString& _rDatasource
,const OUString& _rCommand
,const OUString& _rFieldName
,ColumnTransferFormatFlags _nFormats
);
/** construct the transferable from a data access descriptor /** construct the transferable from a data access descriptor
Note that some of the aspects, in particular all which cannot be represented Note that some of the aspects, in particular all which cannot be represented
...@@ -135,18 +126,6 @@ namespace svx ...@@ -135,18 +126,6 @@ namespace svx
static ODataAccessDescriptor static ODataAccessDescriptor
extractColumnDescriptor(const TransferableDataHelper& _rData); extractColumnDescriptor(const TransferableDataHelper& _rData);
/** adds the data contained in the object to the given data container
<p>This method helps you treating this class as simple container class:<br/>
At the moment, it is a data container and a transferable.
Using <method>addDataToContainer</method>, you can treat the class as dumb data container,
doing the Drag'n'Drop with a TransferDataContainer instance (which may contain
additional formats)</p>
@TODO
split this class into a two separate classes: one for the data container aspect, one for
the transfer aspect
*/
void addDataToContainer( TransferDataContainer* _pContainer );
private: private:
// TransferableHelper overridables // TransferableHelper overridables
virtual void AddSupportedFormats() override; virtual void AddSupportedFormats() override;
......
...@@ -190,7 +190,6 @@ public: ...@@ -190,7 +190,6 @@ public:
void SetStateUnchecked(); void SetStateUnchecked();
void SetStateTristate(); void SetStateTristate();
void SetStateHilighted(bool bHilight); void SetStateHilighted(bool bHilight);
void SetStateInvisible();
SvLBoxButtonKind GetKind() const { return eKind; } SvLBoxButtonKind GetKind() const { return eKind; }
......
...@@ -496,7 +496,6 @@ public: ...@@ -496,7 +496,6 @@ public:
void EnableCellFocus(); void EnableCellFocus();
// For overwriting accessible role for all entries - normally 0, so each entry can be different // For overwriting accessible role for all entries - normally 0, so each entry can be different
void SetAllEntriesAccessibleRoleType( SvTreeAccRoleType n ) { nAllItemAccRoleType = n; }
SvTreeAccRoleType GetAllEntriesAccessibleRoleType() const { return nAllItemAccRoleType; } SvTreeAccRoleType GetAllEntriesAccessibleRoleType() const { return nAllItemAccRoleType; }
SvTreeFlags GetTreeFlags() const {return nTreeFlags;} SvTreeFlags GetTreeFlags() const {return nTreeFlags;}
......
...@@ -506,19 +506,6 @@ void SfxModelessDialogController::Close() ...@@ -506,19 +506,6 @@ void SfxModelessDialogController::Close()
SfxCallMode::RECORD|SfxCallMode::SYNCHRON, { &aValue } ); SfxCallMode::RECORD|SfxCallMode::SYNCHRON, { &aValue } );
} }
/* [Description]
Fills a SfxChildWinInfo with specific data from SfxModelessDialog,
so that it can be written in the INI file. It is assumed that rinfo
receives all other possible relevant data in the ChildWindow class.
ModelessDialogs have no specific information, so that the base
implementation does nothing and therefore must not be called.
*/
void SfxModelessDialogController::FillInfo(SfxChildWinInfo& rInfo) const
{
rInfo.aSize = m_xDialog->get_size();
}
bool SfxFloatingWindow::EventNotify( NotifyEvent& rEvt ) bool SfxFloatingWindow::EventNotify( NotifyEvent& rEvt )
/* [Description] /* [Description]
......
...@@ -564,18 +564,6 @@ bool SfxTabDialog::StartExecuteAsync( VclAbstractDialog::AsyncContext &rCtx ) ...@@ -564,18 +564,6 @@ bool SfxTabDialog::StartExecuteAsync( VclAbstractDialog::AsyncContext &rCtx )
return TabDialog::StartExecuteAsync( rCtx ); return TabDialog::StartExecuteAsync( rCtx );
} }
void SfxTabDialog::Start()
{
m_pImpl->bModal = false;
Start_Impl();
Show();
if ( IsVisible() && ( !HasChildPathFocus() || HasFocus() ) )
GrabFocusToFirstControl();
}
void SfxTabDialog::Start_Impl() void SfxTabDialog::Start_Impl()
{ {
assert(m_pImpl->aData.size() == m_pTabCtrl->GetPageCount() assert(m_pImpl->aData.size() == m_pTabCtrl->GetPageCount()
...@@ -685,12 +673,6 @@ void SfxTabDialog::RemoveTabPage( sal_uInt16 nId ) ...@@ -685,12 +673,6 @@ void SfxTabDialog::RemoveTabPage( sal_uInt16 nId )
} }
} }
void SfxTabDialog::RemoveTabPage(const OString &rName)
{
RemoveTabPage(m_pTabCtrl->GetPageId(rName));
}
void SfxTabDialog::PageCreated void SfxTabDialog::PageCreated
/* [Description] /* [Description]
......
...@@ -41,16 +41,6 @@ namespace svx ...@@ -41,16 +41,6 @@ namespace svx
using namespace ::com::sun::star::container; using namespace ::com::sun::star::container;
using namespace ::com::sun::star::datatransfer; using namespace ::com::sun::star::datatransfer;
OColumnTransferable::OColumnTransferable(const OUString& _rDatasource
,const OUString& _rCommand
,const OUString& _rFieldName
,ColumnTransferFormatFlags _nFormats)
:m_nFormatFlags(_nFormats)
{
implConstruct(_rDatasource,OUString(), css::sdb::CommandType::TABLE, _rCommand, _rFieldName);
}
OColumnTransferable::OColumnTransferable(const ODataAccessDescriptor& _rDescriptor, ColumnTransferFormatFlags _nFormats ) OColumnTransferable::OColumnTransferable(const ODataAccessDescriptor& _rDescriptor, ColumnTransferFormatFlags _nFormats )
:m_nFormatFlags(_nFormats) :m_nFormatFlags(_nFormats)
{ {
...@@ -341,25 +331,6 @@ namespace svx ...@@ -341,25 +331,6 @@ namespace svx
} }
void OColumnTransferable::addDataToContainer( TransferDataContainer* _pContainer )
{
OSL_ENSURE( _pContainer, "OColumnTransferable::addDataToContainer: invalid container!" );
if ( _pContainer )
{
if ( m_nFormatFlags & ColumnTransferFormatFlags::FIELD_DESCRIPTOR )
_pContainer->CopyAny( SotClipboardFormatId::SBA_FIELDDATAEXCHANGE, makeAny( m_sCompatibleFormat ) );
if ( m_nFormatFlags & ColumnTransferFormatFlags::CONTROL_EXCHANGE )
_pContainer->CopyAny( SotClipboardFormatId::SBA_CTRLDATAEXCHANGE, makeAny( m_sCompatibleFormat ) );
if ( m_nFormatFlags & ColumnTransferFormatFlags::COLUMN_DESCRIPTOR )
{
Any aContent = makeAny( m_aDescriptor.createPropertyValueSequence() );
_pContainer->CopyAny( getDescriptorFormatId(), aContent );
}
}
}
ODataAccessObjectTransferable::ODataAccessObjectTransferable( ODataAccessObjectTransferable::ODataAccessObjectTransferable(
const OUString& _rDatasource const OUString& _rDatasource
,const sal_Int32 _nCommandType ,const sal_Int32 _nCommandType
......
...@@ -361,11 +361,6 @@ bool SvLBoxButton::CheckModification() const ...@@ -361,11 +361,6 @@ bool SvLBoxButton::CheckModification() const
return eKind == SvLBoxButtonKind::EnabledCheckbox; return eKind == SvLBoxButtonKind::EnabledCheckbox;
} }
void SvLBoxButton::SetStateInvisible()
{
isVis = false;
}
// *************************************************************** // ***************************************************************
// class SvLBoxContextBmp // class SvLBoxContextBmp
// *************************************************************** // ***************************************************************
......
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