update unnecessaryoverride plugin to find pure forwarding methods
which can be replaced with using declarations. Is there a more efficient way to code the search? Seems to slow the build down a little. Change-Id: I08cda21fa70dce6572e1acc71bf5e6df36bb951f Reviewed-on: https://gerrit.libreoffice.org/30157 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
99fbcffa3d
commit
8a22bc93e0
@ -13,6 +13,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
#include <clang/AST/CXXInheritance.h>
|
||||||
#include "compat.hxx"
|
#include "compat.hxx"
|
||||||
#include "plugin.hxx"
|
#include "plugin.hxx"
|
||||||
|
|
||||||
@ -57,6 +58,15 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool VisitCXXMethodDecl(const CXXMethodDecl *);
|
bool VisitCXXMethodDecl(const CXXMethodDecl *);
|
||||||
|
|
||||||
|
private:
|
||||||
|
const CXXMethodDecl * findOverriddenOrSimilarMethodInSuperclasses(const CXXMethodDecl *);
|
||||||
|
bool BaseCheckCallback(
|
||||||
|
const CXXRecordDecl *BaseDefinition
|
||||||
|
#if CLANG_VERSION < 30800
|
||||||
|
, void *
|
||||||
|
#endif
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
|
bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
|
||||||
@ -64,11 +74,18 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
|
|||||||
if (ignoreLocation(methodDecl->getCanonicalDecl()) || !methodDecl->doesThisDeclarationHaveABody()) {
|
if (ignoreLocation(methodDecl->getCanonicalDecl()) || !methodDecl->doesThisDeclarationHaveABody()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// if we are overriding more than one method, then this is a disambiguating override
|
if (isa<CXXConstructorDecl>(methodDecl) || isa<CXXDestructorDecl>(methodDecl)) {
|
||||||
if (!methodDecl->isVirtual() || methodDecl->size_overridden_methods() != 1
|
|
||||||
|| (*methodDecl->begin_overridden_methods())->isPure()) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if we are overriding more than one method, then this is a disambiguating override
|
||||||
|
if (methodDecl->isVirtual()) {
|
||||||
|
if (methodDecl->size_overridden_methods() != 1
|
||||||
|
|| (*methodDecl->begin_overridden_methods())->isPure())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (dyn_cast<CXXDestructorDecl>(methodDecl)) {
|
if (dyn_cast<CXXDestructorDecl>(methodDecl)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -90,15 +107,16 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
const CXXMethodDecl* overriddenMethodDecl = *methodDecl->begin_overridden_methods();
|
const CXXMethodDecl* overriddenMethodDecl = findOverriddenOrSimilarMethodInSuperclasses(methodDecl);
|
||||||
|
if (!overriddenMethodDecl) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (compat::getReturnType(*methodDecl).getCanonicalType()
|
if (compat::getReturnType(*methodDecl).getCanonicalType()
|
||||||
!= compat::getReturnType(*overriddenMethodDecl).getCanonicalType())
|
!= compat::getReturnType(*overriddenMethodDecl).getCanonicalType())
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (methodDecl->getAccess() == AS_public && overriddenMethodDecl->getAccess() == AS_protected)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
//TODO: check for identical exception specifications
|
//TODO: check for identical exception specifications
|
||||||
|
|
||||||
@ -179,9 +197,10 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
report(
|
report(
|
||||||
DiagnosticsEngine::Warning, "%0 virtual function just calls %1 parent",
|
DiagnosticsEngine::Warning, "%0%1 function just calls %2 parent",
|
||||||
methodDecl->getSourceRange().getBegin())
|
methodDecl->getSourceRange().getBegin())
|
||||||
<< methodDecl->getAccess()
|
<< methodDecl->getAccess()
|
||||||
|
<< (methodDecl->isVirtual() ? " virtual" : "")
|
||||||
<< overriddenMethodDecl->getAccess()
|
<< overriddenMethodDecl->getAccess()
|
||||||
<< methodDecl->getSourceRange();
|
<< methodDecl->getSourceRange();
|
||||||
if (methodDecl->getCanonicalDecl()->getLocation() != methodDecl->getLocation()) {
|
if (methodDecl->getCanonicalDecl()->getLocation() != methodDecl->getLocation()) {
|
||||||
@ -195,6 +214,66 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const CXXMethodDecl* UnnecessaryOverride::findOverriddenOrSimilarMethodInSuperclasses(const CXXMethodDecl* methodDecl)
|
||||||
|
{
|
||||||
|
if (methodDecl->isVirtual()) {
|
||||||
|
return *methodDecl->begin_overridden_methods();
|
||||||
|
}
|
||||||
|
if (!methodDecl->getDeclName().isIdentifier()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<const CXXMethodDecl*> maSimilarMethods;
|
||||||
|
|
||||||
|
auto BaseMatchesCallback = [&](const CXXBaseSpecifier *cxxBaseSpecifier, CXXBasePath& )
|
||||||
|
{
|
||||||
|
if (cxxBaseSpecifier->getAccessSpecifier() != AS_public && cxxBaseSpecifier->getAccessSpecifier() != AS_protected)
|
||||||
|
return false;
|
||||||
|
if (!cxxBaseSpecifier->getType().getTypePtr())
|
||||||
|
return false;
|
||||||
|
const CXXRecordDecl* baseCXXRecordDecl = cxxBaseSpecifier->getType()->getAsCXXRecordDecl();
|
||||||
|
if (!baseCXXRecordDecl)
|
||||||
|
return false;
|
||||||
|
if (baseCXXRecordDecl->isInvalidDecl())
|
||||||
|
return false;
|
||||||
|
for (const CXXMethodDecl* baseMethod : baseCXXRecordDecl->methods())
|
||||||
|
{
|
||||||
|
if (!baseMethod->getDeclName().isIdentifier() || methodDecl->getName() != baseMethod->getName()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (compat::getReturnType(*methodDecl).getCanonicalType()
|
||||||
|
!= compat::getReturnType(*baseMethod).getCanonicalType())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (methodDecl->param_size() != baseMethod->param_size())
|
||||||
|
continue;
|
||||||
|
if (methodDecl->getNumParams() != baseMethod->getNumParams())
|
||||||
|
continue;
|
||||||
|
bool bParamsMatch = true;
|
||||||
|
for (unsigned i=0; i<methodDecl->param_size(); ++i)
|
||||||
|
{
|
||||||
|
if (methodDecl->parameters()[i]->getType() != baseMethod->parameters()[i]->getType())
|
||||||
|
{
|
||||||
|
bParamsMatch = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (bParamsMatch)
|
||||||
|
maSimilarMethods.push_back(baseMethod);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
CXXBasePaths aPaths;
|
||||||
|
methodDecl->getParent()->lookupInBases(BaseMatchesCallback, aPaths);
|
||||||
|
|
||||||
|
if (maSimilarMethods.size() == 1) {
|
||||||
|
return maSimilarMethods[0];
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
loplugin::Plugin::Registration< UnnecessaryOverride > X("unnecessaryoverride", true);
|
loplugin::Plugin::Registration< UnnecessaryOverride > X("unnecessaryoverride", true);
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ protected:
|
|||||||
|
|
||||||
// OPropertyArrayUsageHelper
|
// OPropertyArrayUsageHelper
|
||||||
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
|
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
|
||||||
::cppu::IPropertyArrayHelper* getArrayHelper() { return OQuery_ArrayHelperBase::getArrayHelper(); }
|
using OQuery_ArrayHelperBase::getArrayHelper;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OQuery(
|
OQuery(
|
||||||
|
@ -284,11 +284,6 @@ namespace dbaui
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IndexFieldsControl::IsModified() const
|
|
||||||
{
|
|
||||||
return EditBrowseBox::IsModified();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IndexFieldsControl::SaveModified()
|
bool IndexFieldsControl::SaveModified()
|
||||||
{
|
{
|
||||||
if (!IsModified())
|
if (!IsModified())
|
||||||
|
@ -62,7 +62,7 @@ namespace dbaui
|
|||||||
void commitTo(IndexFields& _rFields);
|
void commitTo(IndexFields& _rFields);
|
||||||
|
|
||||||
bool SaveModified() override;
|
bool SaveModified() override;
|
||||||
bool IsModified() const override;
|
using EditBrowseBox::IsModified;
|
||||||
|
|
||||||
const IndexFields& GetSavedValue() const { return m_aSavedValue; }
|
const IndexFields& GetSavedValue() const { return m_aSavedValue; }
|
||||||
void SaveValue() { m_aSavedValue = m_aFields; }
|
void SaveValue() { m_aSavedValue = m_aFields; }
|
||||||
|
@ -230,7 +230,7 @@ namespace dbaui
|
|||||||
|
|
||||||
virtual void ActivateCell(long nRow, sal_uInt16 nCol, bool bSetCellFocus = true) override;
|
virtual void ActivateCell(long nRow, sal_uInt16 nCol, bool bSetCellFocus = true) override;
|
||||||
virtual void DeactivateCell(bool bUpdate = true) override;
|
virtual void DeactivateCell(bool bUpdate = true) override;
|
||||||
void ActivateCell() { FmGridControl::ActivateCell(); }
|
using FmGridControl::ActivateCell;
|
||||||
|
|
||||||
bool IsAllSelected() const { return (GetSelectRowCount() == GetRowCount()) && (GetRowCount() > 0); }
|
bool IsAllSelected() const { return (GetSelectRowCount() == GetRowCount()) && (GetRowCount() > 0); }
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ namespace dbaui
|
|||||||
virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL getUndoManager( ) throw (css::uno::RuntimeException, std::exception) override;
|
virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL getUndoManager( ) throw (css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
// XEventListener
|
// XEventListener
|
||||||
virtual void SAL_CALL disposing(const css::lang::EventObject& Source) throw( css::uno::RuntimeException, std::exception ) override;
|
using OSingleDocumentController_Base::disposing;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
::std::unique_ptr< OSingleDocumentController_Data > m_pData;
|
::std::unique_ptr< OSingleDocumentController_Data > m_pData;
|
||||||
|
@ -68,12 +68,6 @@ namespace dbaui
|
|||||||
m_pData->m_xUndoManager->disposing();
|
m_pData->m_xUndoManager->disposing();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OSingleDocumentController::disposing( const EventObject& i_event ) throw( RuntimeException, std::exception )
|
|
||||||
{
|
|
||||||
// simply disambiguate
|
|
||||||
OSingleDocumentController_Base::disposing( i_event );
|
|
||||||
}
|
|
||||||
|
|
||||||
void OSingleDocumentController::ClearUndoManager()
|
void OSingleDocumentController::ClearUndoManager()
|
||||||
{
|
{
|
||||||
GetUndoManager().Clear();
|
GetUndoManager().Clear();
|
||||||
|
@ -48,8 +48,8 @@ namespace dbaui
|
|||||||
public:
|
public:
|
||||||
OTableFieldControl( vcl::Window* pParent, OTableDesignHelpBar* pHelpBar);
|
OTableFieldControl( vcl::Window* pParent, OTableDesignHelpBar* pHelpBar);
|
||||||
|
|
||||||
OUString BoolStringPersistent(const OUString& rUIString) const { return OFieldDescControl::BoolStringPersistent(rUIString); }
|
using OFieldDescControl::BoolStringPersistent;
|
||||||
OUString BoolStringUI(const OUString& rPersistentString) const { return OFieldDescControl::BoolStringUI(rPersistentString); }
|
using OFieldDescControl::BoolStringUI;
|
||||||
|
|
||||||
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() override;
|
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() override;
|
||||||
virtual css::uno::Reference< css::sdbc::XConnection> getConnection() override;
|
virtual css::uno::Reference< css::sdbc::XConnection> getConnection() override;
|
||||||
|
@ -40,11 +40,6 @@ SvxEditSourceHint::SvxEditSourceHint( sal_uInt32 _nId, sal_uLong nValue, sal_Int
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uLong SvxEditSourceHint::GetValue() const
|
|
||||||
{
|
|
||||||
return TextHint::GetValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
::std::unique_ptr<SfxHint> SvxEditSourceHelper::EENotification2Hint( EENotify* aNotify )
|
::std::unique_ptr<SfxHint> SvxEditSourceHelper::EENotification2Hint( EENotify* aNotify )
|
||||||
{
|
{
|
||||||
|
@ -104,7 +104,7 @@ namespace dbp
|
|||||||
virtual ~OControlWizard() override;
|
virtual ~OControlWizard() override;
|
||||||
|
|
||||||
// make the some base class methods public
|
// make the some base class methods public
|
||||||
bool travelNext() { return OControlWizard_Base::travelNext(); }
|
using OControlWizard_Base::travelNext;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const css::uno::Reference< css::uno::XComponentContext >&
|
const css::uno::Reference< css::uno::XComponentContext >&
|
||||||
|
@ -259,11 +259,6 @@ IMPL_LINK_NOARG(OEditControl, OnKeyPressed, void*, void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SAL_CALL OEditControl::createPeer( const Reference< XToolkit>& _rxToolkit, const Reference< XWindowPeer>& _rxParent ) throw ( RuntimeException, std::exception )
|
|
||||||
{
|
|
||||||
OBoundControl::createPeer(_rxToolkit, _rxParent);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
OEditModel::OEditModel(const Reference<XComponentContext>& _rxFactory)
|
OEditModel::OEditModel(const Reference<XComponentContext>& _rxFactory)
|
||||||
:OEditBaseModel( _rxFactory, FRM_SUN_COMPONENT_RICHTEXTCONTROL, FRM_SUN_CONTROL_TEXTFIELD, true, true )
|
:OEditBaseModel( _rxFactory, FRM_SUN_COMPONENT_RICHTEXTCONTROL, FRM_SUN_CONTROL_TEXTFIELD, true, true )
|
||||||
|
@ -161,7 +161,7 @@ public:
|
|||||||
virtual void SAL_CALL keyReleased(const css::awt::KeyEvent& e) throw ( css::uno::RuntimeException, std::exception) override;
|
virtual void SAL_CALL keyReleased(const css::awt::KeyEvent& e) throw ( css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
// XControl
|
// XControl
|
||||||
virtual void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& _rxToolkit, const css::uno::Reference< css::awt::XWindowPeer >& _rxParent ) throw ( css::uno::RuntimeException, std::exception ) override;
|
using OBoundControl::createPeer;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECL_LINK( OnKeyPressed, void*, void );
|
DECL_LINK( OnKeyPressed, void*, void );
|
||||||
|
@ -254,11 +254,6 @@ css::uno::Sequence<OUString> OFormattedControl::getSupportedServiceNames() thro
|
|||||||
return aSupported;
|
return aSupported;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OFormattedControl::setDesignMode(sal_Bool bOn) throw ( css::uno::RuntimeException, std::exception)
|
|
||||||
{
|
|
||||||
OBoundControl::setDesignMode(bOn);
|
|
||||||
}
|
|
||||||
|
|
||||||
void OFormattedModel::implConstruct()
|
void OFormattedModel::implConstruct()
|
||||||
{
|
{
|
||||||
// members
|
// members
|
||||||
|
@ -168,7 +168,7 @@ class OFormattedModel
|
|||||||
virtual void SAL_CALL keyReleased(const css::awt::KeyEvent& e) throw ( css::uno::RuntimeException, std::exception) override;
|
virtual void SAL_CALL keyReleased(const css::awt::KeyEvent& e) throw ( css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
// css::awt::XControl
|
// css::awt::XControl
|
||||||
virtual void SAL_CALL setDesignMode(sal_Bool bOn) throw ( css::uno::RuntimeException, std::exception) override;
|
using OBoundControl::setDesignMode;
|
||||||
|
|
||||||
// disambiguation
|
// disambiguation
|
||||||
using OBoundControl::disposing;
|
using OBoundControl::disposing;
|
||||||
|
@ -282,7 +282,7 @@ namespace dbaui
|
|||||||
|
|
||||||
|
|
||||||
// attribute access
|
// attribute access
|
||||||
::osl::Mutex& getMutex() const { return OGenericUnoController_MBASE::getMutex(); }
|
using OGenericUnoController_MBASE::getMutex;
|
||||||
::cppu::OBroadcastHelper& getBroadcastHelper() { return OGenericUnoController_Base::rBHelper; }
|
::cppu::OBroadcastHelper& getBroadcastHelper() { return OGenericUnoController_Base::rBHelper; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public:
|
|||||||
|
|
||||||
void Load(bool bInit);
|
void Load(bool bInit);
|
||||||
virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
|
virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
|
||||||
void SetModified() {ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class EDITENG_DLLPUBLIC SvxSwAutoCorrCfg : public utl::ConfigItem
|
class EDITENG_DLLPUBLIC SvxSwAutoCorrCfg : public utl::ConfigItem
|
||||||
@ -55,7 +55,7 @@ public:
|
|||||||
|
|
||||||
void Load(bool bInit);
|
void Load(bool bInit);
|
||||||
virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
|
virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
|
||||||
void SetModified() {ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
/*--------------------------------------------------------------------
|
/*--------------------------------------------------------------------
|
||||||
Description: Configuration for Auto Correction
|
Description: Configuration for Auto Correction
|
||||||
|
@ -52,9 +52,7 @@ public:
|
|||||||
virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const override;
|
virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const override;
|
||||||
virtual sal_uInt16 GetValueCount() const override;
|
virtual sal_uInt16 GetValueCount() const override;
|
||||||
|
|
||||||
// MS VC4.0 kommt durcheinander
|
using SfxEnumItem::SetValue;
|
||||||
void SetValue( sal_uInt16 nNewVal )
|
|
||||||
{SfxEnumItem::SetValue(nNewVal); }
|
|
||||||
|
|
||||||
inline SvxCaseMapItem& operator=(const SvxCaseMapItem& rMap)
|
inline SvxCaseMapItem& operator=(const SvxCaseMapItem& rMap)
|
||||||
{
|
{
|
||||||
|
@ -53,9 +53,7 @@ public:
|
|||||||
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
|
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
|
||||||
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
|
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
|
||||||
|
|
||||||
// MS VC4.0 messes things up
|
using SfxEnumItem::SetValue;
|
||||||
void SetValue( sal_uInt16 nNewVal )
|
|
||||||
{SfxEnumItem::SetValue(nNewVal); }
|
|
||||||
|
|
||||||
virtual bool HasBoolValue() const override;
|
virtual bool HasBoolValue() const override;
|
||||||
virtual bool GetBoolValue() const override;
|
virtual bool GetBoolValue() const override;
|
||||||
|
@ -54,9 +54,7 @@ public:
|
|||||||
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
|
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
|
||||||
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
|
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
|
||||||
|
|
||||||
// MS VC4.0 messes things up
|
using SfxEnumItem::SetValue;
|
||||||
void SetValue( sal_uInt16 nNewVal )
|
|
||||||
{SfxEnumItem::SetValue(nNewVal); }
|
|
||||||
virtual bool HasBoolValue() const override;
|
virtual bool HasBoolValue() const override;
|
||||||
virtual bool GetBoolValue() const override;
|
virtual bool GetBoolValue() const override;
|
||||||
virtual void SetBoolValue( bool bVal ) override;
|
virtual void SetBoolValue( bool bVal ) override;
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
SvxEditSourceHint( sal_uInt32 nId );
|
SvxEditSourceHint( sal_uInt32 nId );
|
||||||
SvxEditSourceHint( sal_uInt32 nId, sal_uLong nValue, sal_Int32 nStart=0, sal_Int32 nEnd=0 );
|
SvxEditSourceHint( sal_uInt32 nId, sal_uLong nValue, sal_Int32 nStart=0, sal_Int32 nEnd=0 );
|
||||||
|
|
||||||
sal_uLong GetValue() const;
|
using TextHint::GetValue;
|
||||||
sal_Int32 GetStartValue() const { return mnStart;}
|
sal_Int32 GetStartValue() const { return mnStart;}
|
||||||
sal_Int32 GetEndValue() const { return mnEnd;}
|
sal_Int32 GetEndValue() const { return mnEnd;}
|
||||||
};
|
};
|
||||||
|
@ -144,7 +144,6 @@ protected:
|
|||||||
OleStorageObject() {}
|
OleStorageObject() {}
|
||||||
|
|
||||||
using StorageObjectBase::construct;
|
using StorageObjectBase::construct;
|
||||||
void construct( const ObjectBase& rParent, const StorageRef& rxStrg, const OUString& rSysPath );
|
|
||||||
|
|
||||||
virtual void implDumpStream(
|
virtual void implDumpStream(
|
||||||
const css::uno::Reference< css::io::XInputStream >& rxStrm,
|
const css::uno::Reference< css::io::XInputStream >& rxStrm,
|
||||||
|
@ -317,10 +317,6 @@ protected:
|
|||||||
, _nRecordType(0)
|
, _nRecordType(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void Construct_Impl( SvStream *pStream )
|
|
||||||
{
|
|
||||||
SfxMiniRecordReader::Construct_Impl( pStream );
|
|
||||||
}
|
|
||||||
bool FindHeader_Impl( sal_uInt16 nTypes, sal_uInt16 nTag );
|
bool FindHeader_Impl( sal_uInt16 nTypes, sal_uInt16 nTag );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -178,10 +178,7 @@ public:
|
|||||||
{ ListBox::SelectEntry( rStr ); }
|
{ ListBox::SelectEntry( rStr ); }
|
||||||
void SelectEntry( const Color& rColor );
|
void SelectEntry( const Color& rColor );
|
||||||
Color GetSelectEntryColor() const;
|
Color GetSelectEntryColor() const;
|
||||||
bool IsEntrySelected(const OUString& rStr ) const
|
using ListBox::IsEntrySelected;
|
||||||
{
|
|
||||||
return ListBox::IsEntrySelected(rStr);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IsEntrySelected(const Color& rColor) const
|
bool IsEntrySelected(const Color& rColor) const
|
||||||
{
|
{
|
||||||
|
@ -319,8 +319,7 @@ public:
|
|||||||
|
|
||||||
Size CalcWindowSizePixel() const;
|
Size CalcWindowSizePixel() const;
|
||||||
|
|
||||||
inline void SetHelpId( const OString& rId ) { Window::SetHelpId( rId ); }
|
using Window::SetHelpId;
|
||||||
|
|
||||||
|
|
||||||
inline void SetStartDragHdl( const Link<HeaderBar*,void>& rLink ) { maStartDragHdl = rLink; }
|
inline void SetStartDragHdl( const Link<HeaderBar*,void>& rLink ) { maStartDragHdl = rLink; }
|
||||||
inline void SetDragHdl( const Link<HeaderBar*,void>& rLink ) { maDragHdl = rLink; }
|
inline void SetDragHdl( const Link<HeaderBar*,void>& rLink ) { maDragHdl = rLink; }
|
||||||
|
@ -98,7 +98,7 @@ public:
|
|||||||
sal_uInt16 nCol=HEADERBAR_APPEND,
|
sal_uInt16 nCol=HEADERBAR_APPEND,
|
||||||
HeaderBarItemBits nBits = HeaderBarItemBits::STDSTYLE);
|
HeaderBarItemBits nBits = HeaderBarItemBits::STDSTYLE);
|
||||||
|
|
||||||
void SetTabs(const long* pTabs, MapUnit = MapUnit::MapAppFont);
|
using SvHeaderTabListBox::SetTabs;
|
||||||
|
|
||||||
void ClearHeader();
|
void ClearHeader();
|
||||||
|
|
||||||
|
@ -146,8 +146,8 @@ namespace svt
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
// restrict access to some aspects of our base class
|
// restrict access to some aspects of our base class
|
||||||
SVT_DLLPRIVATE void AddPage( TabPage* pPage ) { WizardDialog::AddPage(pPage); }
|
using WizardDialog::AddPage;
|
||||||
SVT_DLLPRIVATE void SetPage( sal_uInt16 nLevel, TabPage* pPage ) { WizardDialog::SetPage(nLevel, pPage); }
|
using WizardDialog::SetPage;
|
||||||
// TabPage* GetPage( sal_uInt16 nLevel ) const { return WizardDialog::GetPage(nLevel); }
|
// TabPage* GetPage( sal_uInt16 nLevel ) const { return WizardDialog::GetPage(nLevel); }
|
||||||
// TODO: probably the complete page handling (next, previous etc.) should be prohibited ...
|
// TODO: probably the complete page handling (next, previous etc.) should be prohibited ...
|
||||||
|
|
||||||
|
@ -181,7 +181,6 @@ protected:
|
|||||||
virtual void DragFinished( sal_Int8 nDropAction ) override;
|
virtual void DragFinished( sal_Int8 nDropAction ) override;
|
||||||
virtual void ObjectReleased() override;
|
virtual void ObjectReleased() override;
|
||||||
|
|
||||||
void CopyToClipboard( vcl::Window* pWindow );
|
|
||||||
void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions );
|
void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -155,10 +155,8 @@ public:
|
|||||||
|
|
||||||
void SetPageImage( sal_uInt16 nPageId, const Image& rImage );
|
void SetPageImage( sal_uInt16 nPageId, const Image& rImage );
|
||||||
|
|
||||||
void SetHelpId( const OString& rId )
|
using Control::SetHelpId;
|
||||||
{ Control::SetHelpId( rId ); }
|
using Control::GetHelpId;
|
||||||
const OString& GetHelpId() const
|
|
||||||
{ return Control::GetHelpId(); }
|
|
||||||
|
|
||||||
void SetActivatePageHdl( const Link<TabControl*,void>& rLink ) { maActivateHdl = rLink; }
|
void SetActivatePageHdl( const Link<TabControl*,void>& rLink ) { maActivateHdl = rLink; }
|
||||||
void SetDeactivatePageHdl( const Link<TabControl*, bool>& rLink ) { maDeactivateHdl = rLink; }
|
void SetDeactivatePageHdl( const Link<TabControl*, bool>& rLink ) { maDeactivateHdl = rLink; }
|
||||||
|
@ -106,11 +106,6 @@ LwpPropListElement* LwpPropList::FindPropByName(const OUString& name)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LwpPropList::Read(LwpObjectStream* pObjStrm)
|
|
||||||
{
|
|
||||||
LwpDLVListHead::Read(pObjStrm);
|
|
||||||
}
|
|
||||||
|
|
||||||
LwpPropListElement* LwpPropList::GetFirst()
|
LwpPropListElement* LwpPropList::GetFirst()
|
||||||
{
|
{
|
||||||
return dynamic_cast<LwpPropListElement*>(LwpDLVListHead::GetFirst().obj().get());
|
return dynamic_cast<LwpPropListElement*>(LwpDLVListHead::GetFirst().obj().get());
|
||||||
|
@ -86,7 +86,7 @@ class LwpPropList : public LwpDLVListHead
|
|||||||
public:
|
public:
|
||||||
LwpPropList(){}
|
LwpPropList(){}
|
||||||
~LwpPropList(){}
|
~LwpPropList(){}
|
||||||
void Read(LwpObjectStream* pObjStrm);
|
using LwpDLVListHead::Read;
|
||||||
LwpPropListElement* GetFirst();
|
LwpPropListElement* GetFirst();
|
||||||
OUString GetNamedProperty(const OUString& name);
|
OUString GetNamedProperty(const OUString& name);
|
||||||
OUString EnumNamedProperty(OUString& name,OUString& value);
|
OUString EnumNamedProperty(OUString& name,OUString& value);
|
||||||
|
@ -496,11 +496,6 @@ OleStorageObject::OleStorageObject( const ObjectBase& rParent, const StorageRef&
|
|||||||
construct( rParent, rxStrg, rSysPath );
|
construct( rParent, rxStrg, rSysPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
void OleStorageObject::construct( const ObjectBase& rParent, const StorageRef& rxStrg, const OUString& rSysPath )
|
|
||||||
{
|
|
||||||
StorageObjectBase::construct( rParent, rxStrg, rSysPath );
|
|
||||||
}
|
|
||||||
|
|
||||||
void OleStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& /*rStrgPath*/, const OUString& rStrmName, const OUString& rSysFileName )
|
void OleStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& /*rStrgPath*/, const OUString& rStrmName, const OUString& rSysFileName )
|
||||||
{
|
{
|
||||||
if ( rStrmName == "\001CompObj" )
|
if ( rStrmName == "\001CompObj" )
|
||||||
|
@ -152,7 +152,7 @@ public:
|
|||||||
DECLARE_XTYPEPROVIDER()
|
DECLARE_XTYPEPROVIDER()
|
||||||
|
|
||||||
// XComponent
|
// XComponent
|
||||||
virtual void SAL_CALL disposing() override;
|
using ScChartObj_Base::disposing;
|
||||||
|
|
||||||
// XTableChart
|
// XTableChart
|
||||||
virtual sal_Bool SAL_CALL getHasColumnHeaders() throw(css::uno::RuntimeException, std::exception) override;
|
virtual sal_Bool SAL_CALL getHasColumnHeaders() throw(css::uno::RuntimeException, std::exception) override;
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames ) override;
|
||||||
virtual void ImplCommit() override;
|
virtual void ImplCommit() override;
|
||||||
|
|
||||||
void SetModified() { ConfigItem::SetModified(); }
|
using ConfigItem::SetModified;
|
||||||
css::uno::Sequence< css::uno::Any>
|
css::uno::Sequence< css::uno::Any>
|
||||||
GetProperties(const css::uno::Sequence< OUString >& rNames)
|
GetProperties(const css::uno::Sequence< OUString >& rNames)
|
||||||
{ return ConfigItem::GetProperties( rNames ); }
|
{ return ConfigItem::GetProperties( rNames ); }
|
||||||
|
@ -49,13 +49,11 @@ private:
|
|||||||
class ScResourcePublisher : public Resource
|
class ScResourcePublisher : public Resource
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
void FreeResource() { Resource::FreeResource(); }
|
using Resource::FreeResource;
|
||||||
public:
|
public:
|
||||||
explicit ScResourcePublisher( const ScResId& rId ) : Resource( rId ) {}
|
explicit ScResourcePublisher( const ScResId& rId ) : Resource( rId ) {}
|
||||||
~ScResourcePublisher() { FreeResource(); }
|
~ScResourcePublisher() { FreeResource(); }
|
||||||
bool IsAvailableRes( const ResId& rId ) const
|
using Resource::IsAvailableRes;
|
||||||
{ return Resource::IsAvailableRes( rId ); }
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// class ScFuncDesc:
|
// class ScFuncDesc:
|
||||||
|
@ -343,7 +343,7 @@ public:
|
|||||||
|
|
||||||
void ClickExtern();
|
void ClickExtern();
|
||||||
|
|
||||||
void SetPointer( const Pointer& rPointer );
|
using Window::SetPointer;
|
||||||
|
|
||||||
void MoveMouseStatus( ScGridWindow &rDestWin );
|
void MoveMouseStatus( ScGridWindow &rDestWin );
|
||||||
|
|
||||||
|
@ -649,13 +649,6 @@ IMPLEMENT_FORWARD_XINTERFACE2( ScChartObj, ScChartObj_Base, ScChartObj_PBase )
|
|||||||
|
|
||||||
IMPLEMENT_FORWARD_XTYPEPROVIDER2( ScChartObj, ScChartObj_Base, ScChartObj_PBase )
|
IMPLEMENT_FORWARD_XTYPEPROVIDER2( ScChartObj, ScChartObj_Base, ScChartObj_PBase )
|
||||||
|
|
||||||
// XComponent
|
|
||||||
|
|
||||||
void ScChartObj::disposing()
|
|
||||||
{
|
|
||||||
ScChartObj_Base::disposing();
|
|
||||||
}
|
|
||||||
|
|
||||||
// XTableChart
|
// XTableChart
|
||||||
|
|
||||||
sal_Bool SAL_CALL ScChartObj::getHasColumnHeaders() throw(uno::RuntimeException, std::exception)
|
sal_Bool SAL_CALL ScChartObj::getHasColumnHeaders() throw(uno::RuntimeException, std::exception)
|
||||||
|
@ -1389,11 +1389,6 @@ void ScGridWindow::ExecFilter( sal_uLong nSel,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScGridWindow::SetPointer( const Pointer& rPointer )
|
|
||||||
{
|
|
||||||
Window::SetPointer( rPointer );
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScGridWindow::MoveMouseStatus( ScGridWindow& rDestWin )
|
void ScGridWindow::MoveMouseStatus( ScGridWindow& rDestWin )
|
||||||
{
|
{
|
||||||
if (nButtonDown)
|
if (nButtonDown)
|
||||||
|
@ -83,8 +83,8 @@ class AnalysisResourcePublisher : public Resource
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit AnalysisResourcePublisher( const AnalysisResId& rId ) : Resource( rId ) {}
|
explicit AnalysisResourcePublisher( const AnalysisResId& rId ) : Resource( rId ) {}
|
||||||
bool IsAvailableRes( const ResId& rId ) const { return Resource::IsAvailableRes( rId ); }
|
using Resource::IsAvailableRes;
|
||||||
void FreeResource() { Resource::FreeResource(); }
|
using Resource::FreeResource;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AnalysisFuncRes : public Resource
|
class AnalysisFuncRes : public Resource
|
||||||
|
@ -90,10 +90,8 @@ class ScaResPublisher : public Resource
|
|||||||
public:
|
public:
|
||||||
explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {}
|
explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {}
|
||||||
|
|
||||||
bool IsAvailableRes( const ResId& rResId ) const
|
using Resource::IsAvailableRes;
|
||||||
{ return Resource::IsAvailableRes( rResId ); }
|
using Resource::FreeResource;
|
||||||
void FreeResource()
|
|
||||||
{ Resource::FreeResource(); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -99,10 +99,8 @@ class ScaResPublisher : public Resource
|
|||||||
public:
|
public:
|
||||||
explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {}
|
explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {}
|
||||||
|
|
||||||
bool IsAvailableRes( const ResId& rResId ) const
|
using Resource::IsAvailableRes;
|
||||||
{ return Resource::IsAvailableRes( rResId ); }
|
using Resource::FreeResource;
|
||||||
void FreeResource()
|
|
||||||
{ Resource::FreeResource(); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,11 +77,6 @@ bool SdOptionsItem::PutProperties( const Sequence< OUString >& rNames, const Seq
|
|||||||
return ConfigItem::PutProperties( rNames, rValues );
|
return ConfigItem::PutProperties( rNames, rValues );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SdOptionsItem::SetModified()
|
|
||||||
{
|
|
||||||
ConfigItem::SetModified();
|
|
||||||
}
|
|
||||||
|
|
||||||
SdOptionsGeneric::SdOptionsGeneric(sal_uInt16 nConfigId, const OUString& rSubTree)
|
SdOptionsGeneric::SdOptionsGeneric(sal_uInt16 nConfigId, const OUString& rSubTree)
|
||||||
: maSubTree(rSubTree)
|
: maSubTree(rSubTree)
|
||||||
, mpCfgItem( nullptr)
|
, mpCfgItem( nullptr)
|
||||||
|
@ -152,7 +152,7 @@ public:
|
|||||||
virtual void UIActivating( SfxInPlaceClient* ) override;
|
virtual void UIActivating( SfxInPlaceClient* ) override;
|
||||||
virtual void UIDeactivated( SfxInPlaceClient* ) override;
|
virtual void UIDeactivated( SfxInPlaceClient* ) override;
|
||||||
virtual void Activate (bool IsMDIActivate) override;
|
virtual void Activate (bool IsMDIActivate) override;
|
||||||
virtual void Deactivate (bool IsMDIActivate) override;
|
using SfxViewShell::Deactivate;
|
||||||
virtual void SetZoomFactor (
|
virtual void SetZoomFactor (
|
||||||
const Fraction &rZoomX,
|
const Fraction &rZoomX,
|
||||||
const Fraction &rZoomY) override;
|
const Fraction &rZoomY) override;
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
css::uno::Sequence< css::uno::Any > GetProperties( const css::uno::Sequence< OUString >& rNames );
|
css::uno::Sequence< css::uno::Any > GetProperties( const css::uno::Sequence< OUString >& rNames );
|
||||||
bool PutProperties( const css::uno::Sequence< OUString >& rNames,
|
bool PutProperties( const css::uno::Sequence< OUString >& rNames,
|
||||||
const css::uno::Sequence< css::uno::Any>& rValues );
|
const css::uno::Sequence< css::uno::Any>& rValues );
|
||||||
void SetModified();
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SD_DLLPUBLIC SdOptionsGeneric
|
class SD_DLLPUBLIC SdOptionsGeneric
|
||||||
|
@ -759,11 +759,6 @@ void ViewShellBase::Activate (bool bIsMDIActivate)
|
|||||||
GetToolBarManager()->RequestUpdate();
|
GetToolBarManager()->RequestUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewShellBase::Deactivate (bool bIsMDIActivate)
|
|
||||||
{
|
|
||||||
SfxViewShell::Deactivate(bIsMDIActivate);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ViewShellBase::SetZoomFactor (
|
void ViewShellBase::SetZoomFactor (
|
||||||
const Fraction &rZoomX,
|
const Fraction &rZoomX,
|
||||||
const Fraction &rZoomY)
|
const Fraction &rZoomY)
|
||||||
|
@ -92,8 +92,8 @@ public:
|
|||||||
|
|
||||||
void AddScheme(const OUString& rNode);
|
void AddScheme(const OUString& rNode);
|
||||||
void RemoveScheme(const OUString& rNode);
|
void RemoveScheme(const OUString& rNode);
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
void ClearModified(){ConfigItem::ClearModified();}
|
using ConfigItem::ClearModified;
|
||||||
void SettingsChanged();
|
void SettingsChanged();
|
||||||
bool GetAutoDetectSystemHC() {return m_bAutoDetectSystemHC;}
|
bool GetAutoDetectSystemHC() {return m_bAutoDetectSystemHC;}
|
||||||
|
|
||||||
|
@ -119,8 +119,8 @@ public:
|
|||||||
|
|
||||||
void AddScheme(const OUString& rNode);
|
void AddScheme(const OUString& rNode);
|
||||||
void RemoveScheme(const OUString& rNode);
|
void RemoveScheme(const OUString& rNode);
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
void ClearModified(){ConfigItem::ClearModified();}
|
using ConfigItem::ClearModified;
|
||||||
void SettingsChanged();
|
void SettingsChanged();
|
||||||
|
|
||||||
static void DisableBroadcast();
|
static void DisableBroadcast();
|
||||||
|
@ -192,11 +192,6 @@ void SvSimpleTable::SetTabs()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvSimpleTable::SetTabs(const long* pTabs, MapUnit eMapUnit)
|
|
||||||
{
|
|
||||||
SvHeaderTabListBox::SetTabs(pTabs,eMapUnit);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SvSimpleTable::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect)
|
void SvSimpleTable::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect)
|
||||||
{
|
{
|
||||||
SvHeaderTabListBox::Paint(rRenderContext, rRect);
|
SvHeaderTabListBox::Paint(rRenderContext, rRect);
|
||||||
|
@ -71,8 +71,8 @@ namespace svt { namespace uno
|
|||||||
{
|
{
|
||||||
return skipBackwardUntil( impl_pageIdToState( i_nPageId ) );
|
return skipBackwardUntil( impl_pageIdToState( i_nPageId ) );
|
||||||
}
|
}
|
||||||
bool travelNext() { return WizardShell_Base::travelNext(); }
|
using WizardShell_Base::travelNext;
|
||||||
bool travelPrevious() { return WizardShell_Base::travelPrevious(); }
|
using WizardShell_Base::travelPrevious;
|
||||||
|
|
||||||
void activatePath( const sal_Int16 i_nPathID, const bool i_bFinal )
|
void activatePath( const sal_Int16 i_nPathID, const bool i_bFinal )
|
||||||
{
|
{
|
||||||
|
@ -578,11 +578,6 @@ void GalleryTransferable::ObjectReleased()
|
|||||||
mpURL = nullptr;
|
mpURL = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GalleryTransferable::CopyToClipboard( vcl::Window* pWindow )
|
|
||||||
{
|
|
||||||
TransferableHelper::CopyToClipboard( pWindow );
|
|
||||||
}
|
|
||||||
|
|
||||||
void GalleryTransferable::StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions )
|
void GalleryTransferable::StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions )
|
||||||
{
|
{
|
||||||
INetURLObject aURL;
|
INetURLObject aURL;
|
||||||
|
@ -81,10 +81,8 @@ namespace svxform
|
|||||||
virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
|
virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions, sal_Int32 nDragPointer = DND_POINTER_NONE )
|
// don't allow this base class method to be called from outside
|
||||||
{ // don't allow this base class method to be called from outside
|
using TransferableHelper::StartDrag;
|
||||||
TransferableHelper::StartDrag(pWindow, nDragSourceActions, nDragPointer);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,9 +105,7 @@ protected:
|
|||||||
virtual void _propertyChanged(const css::beans::PropertyChangeEvent& evt) throw( css::uno::RuntimeException, std::exception ) override;
|
virtual void _propertyChanged(const css::beans::PropertyChangeEvent& evt) throw( css::uno::RuntimeException, std::exception ) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
inline SfxBindings& GetBindings() { return SfxControllerItem::GetBindings(); }
|
using SfxControllerItem::GetBindings;
|
||||||
inline const SfxBindings& GetBindings() const { return SfxControllerItem::GetBindings(); }
|
|
||||||
|
|
||||||
using SfxFloatingWindow::StateChanged;
|
using SfxFloatingWindow::StateChanged;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class SwCompareMode
|
enum class SwCompareMode
|
||||||
@ -115,7 +115,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& ) override { };
|
virtual void Notify( const css::uno::Sequence< OUString >& ) override { };
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified() {ConfigItem::SetModified(); }
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwInsertConfig : public utl::ConfigItem
|
class SwInsertConfig : public utl::ConfigItem
|
||||||
@ -143,7 +143,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwTableConfig : public utl::ConfigItem
|
class SwTableConfig : public utl::ConfigItem
|
||||||
@ -170,7 +170,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwMiscConfig : public utl::ConfigItem
|
class SwMiscConfig : public utl::ConfigItem
|
||||||
@ -200,7 +200,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SW_DLLPUBLIC SwModuleOptions
|
class SW_DLLPUBLIC SwModuleOptions
|
||||||
|
@ -75,7 +75,7 @@ public:
|
|||||||
SwCharFormat* GetCharFormat() const { return const_cast<SwCharFormat*>(static_cast<const SwCharFormat*>(GetRegisteredIn())); }
|
SwCharFormat* GetCharFormat() const { return const_cast<SwCharFormat*>(static_cast<const SwCharFormat*>(GetRegisteredIn())); }
|
||||||
void SetCharFormat( SwCharFormat* );
|
void SetCharFormat( SwCharFormat* );
|
||||||
|
|
||||||
void SetCharFormatName(const OUString& rSet);
|
using SvxNumberFormat::SetCharFormatName;
|
||||||
virtual OUString GetCharFormatName() const override;
|
virtual OUString GetCharFormatName() const override;
|
||||||
|
|
||||||
//For i120928,access the cp info of graphic within bullet
|
//For i120928,access the cp info of graphic within bullet
|
||||||
|
@ -52,7 +52,7 @@ public:
|
|||||||
bool Connect() { return nullptr != SvBaseLink::GetRealObject(); }
|
bool Connect() { return nullptr != SvBaseLink::GetRealObject(); }
|
||||||
|
|
||||||
// Only for graphics-links (for switching between DDE / Grf-link).
|
// Only for graphics-links (for switching between DDE / Grf-link).
|
||||||
void SetObjType( sal_uInt16 nType ) { SvBaseLink::SetObjType( nType ); }
|
using SvBaseLink::SetObjType;
|
||||||
|
|
||||||
bool IsRecursion( const SwBaseLink* pChkLnk ) const;
|
bool IsRecursion( const SwBaseLink* pChkLnk ) const;
|
||||||
virtual bool IsInRange( sal_uLong nSttNd, sal_uLong nEndNd, sal_Int32 nStt = 0,
|
virtual bool IsInRange( sal_uLong nSttNd, sal_uLong nEndNd, sal_Int32 nStt = 0,
|
||||||
|
@ -188,7 +188,7 @@ public:
|
|||||||
CreateXTextFrame(SwDoc & rDoc, SwFrameFormat * pFrameFormat);
|
CreateXTextFrame(SwDoc & rDoc, SwFrameFormat * pFrameFormat);
|
||||||
|
|
||||||
// FIXME: EVIL HACK: make available for SwXFrame::attachToRange
|
// FIXME: EVIL HACK: make available for SwXFrame::attachToRange
|
||||||
void SetDoc(SwDoc *const pDoc) { SwXText::SetDoc(pDoc); };
|
using SwXText::SetDoc;
|
||||||
|
|
||||||
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) throw(css::uno::RuntimeException, std::exception) override;
|
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) throw(css::uno::RuntimeException, std::exception) override;
|
||||||
virtual void SAL_CALL acquire( ) throw() override;
|
virtual void SAL_CALL acquire( ) throw() override;
|
||||||
|
@ -227,7 +227,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
SwXChapterNumbering(SwDocShell& rDocSh);
|
SwXChapterNumbering(SwDocShell& rDocSh);
|
||||||
|
|
||||||
void Invalidate() {SwXNumberingRules::Invalidate();}
|
using SwXNumberingRules::Invalidate;
|
||||||
|
|
||||||
//XServiceInfo
|
//XServiceInfo
|
||||||
virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) override;
|
virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) override;
|
||||||
|
@ -301,11 +301,6 @@ void SwNumFormat::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
|
|||||||
CheckRegistration( pOld, pNew );
|
CheckRegistration( pOld, pNew );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwNumFormat::SetCharFormatName(const OUString& rSet)
|
|
||||||
{
|
|
||||||
SvxNumberFormat::SetCharFormatName(rSet);
|
|
||||||
}
|
|
||||||
|
|
||||||
OUString SwNumFormat::GetCharFormatName() const
|
OUString SwNumFormat::GetCharFormatName() const
|
||||||
{
|
{
|
||||||
if(static_cast<const SwCharFormat*>(GetRegisteredIn()))
|
if(static_cast<const SwCharFormat*>(GetRegisteredIn()))
|
||||||
|
@ -544,7 +544,7 @@ public:
|
|||||||
SwXMetaText(SwDoc & rDoc, SwXMeta & rMeta);
|
SwXMetaText(SwDoc & rDoc, SwXMeta & rMeta);
|
||||||
|
|
||||||
/// make available for SwXMeta
|
/// make available for SwXMeta
|
||||||
void Invalidate() { SwXText::Invalidate(); };
|
using SwXText::Invalidate;
|
||||||
|
|
||||||
// XInterface
|
// XInterface
|
||||||
virtual void SAL_CALL acquire() throw() override { cppu::OWeakObject::acquire(); }
|
virtual void SAL_CALL acquire() throw() override { cppu::OWeakObject::acquire(); }
|
||||||
|
@ -232,11 +232,6 @@ void SwMailMergeWizard::UpdateRoadmap()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwMailMergeWizard::updateRoadmapItemLabel( WizardState _nState )
|
|
||||||
{
|
|
||||||
svt::RoadmapWizard::updateRoadmapItemLabel( _nState );
|
|
||||||
}
|
|
||||||
|
|
||||||
short SwMailMergeWizard::Execute()
|
short SwMailMergeWizard::Execute()
|
||||||
{
|
{
|
||||||
OSL_FAIL("SwMailMergeWizard cannot be executed via Dialog::Execute!\n"
|
OSL_FAIL("SwMailMergeWizard cannot be executed via Dialog::Execute!\n"
|
||||||
|
@ -80,7 +80,7 @@ public:
|
|||||||
bool skipUntil( sal_uInt16 nPage)
|
bool skipUntil( sal_uInt16 nPage)
|
||||||
{return ::svt::RoadmapWizard::skipUntil(WizardState(nPage));}
|
{return ::svt::RoadmapWizard::skipUntil(WizardState(nPage));}
|
||||||
|
|
||||||
void updateRoadmapItemLabel( WizardState _nState );
|
using svt::RoadmapWizard::updateRoadmapItemLabel;
|
||||||
|
|
||||||
virtual short Execute() override;
|
virtual short Execute() override;
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ public:
|
|||||||
virtual void Notify( const css::uno::Sequence< OUString > &rPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString > &rPropertyNames ) override;
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwLayoutViewConfig : public utl::ConfigItem
|
class SwLayoutViewConfig : public utl::ConfigItem
|
||||||
@ -63,7 +63,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwGridConfig : public utl::ConfigItem
|
class SwGridConfig : public utl::ConfigItem
|
||||||
@ -81,7 +81,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwCursorConfig : public utl::ConfigItem
|
class SwCursorConfig : public utl::ConfigItem
|
||||||
@ -99,7 +99,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwWebColorConfig : public utl::ConfigItem
|
class SwWebColorConfig : public utl::ConfigItem
|
||||||
@ -116,7 +116,7 @@ public:
|
|||||||
|
|
||||||
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
|
||||||
void Load();
|
void Load();
|
||||||
void SetModified(){ConfigItem::SetModified();}
|
using ConfigItem::SetModified;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SwMasterUsrPref : public SwViewOption
|
class SwMasterUsrPref : public SwViewOption
|
||||||
|
@ -151,10 +151,7 @@ public:
|
|||||||
m_nLayoutType = nLayoutType;
|
m_nLayoutType = nLayoutType;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isInCell()
|
using TableManager::isInCell;
|
||||||
{
|
|
||||||
return TableManager::isInCell();
|
|
||||||
}
|
|
||||||
|
|
||||||
void setIsInShape(bool bIsInShape);
|
void setIsInShape(bool bIsInShape);
|
||||||
|
|
||||||
|
@ -92,8 +92,7 @@ protected:
|
|||||||
void AddShape(OUString const & serviceName);
|
void AddShape(OUString const & serviceName);
|
||||||
void SetTransformation();
|
void SetTransformation();
|
||||||
|
|
||||||
SvXMLImport& GetImport() { return SvXMLImportContext::GetImport(); }
|
using SvXMLImportContext::GetImport;
|
||||||
const SvXMLImport& GetImport() const { return SvXMLImportContext::GetImport(); }
|
|
||||||
|
|
||||||
void addGluePoint( const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList );
|
void addGluePoint( const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user