Kaydet (Commit) 771d9ef3 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods forms

Change-Id: I6b7938e948fb1422f83e2175fee5fcabe0a0b83f
üst 64cc2d77
......@@ -29,7 +29,6 @@ namespace frm
class OCheckBoxModel :public OReferenceValueComponent
{
protected:
sal_Int16 getState(const ::com::sun::star::uno::Any& rValue);
bool DbUseBool();
public:
......
......@@ -436,8 +436,6 @@ public:
// XCloneable
virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
inline void submitNBC( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt );
protected:
// OPropertySetAggregationHelper overridables
virtual void forwardingPropertyValue( sal_Int32 _nHandle ) SAL_OVERRIDE;
......@@ -542,11 +540,6 @@ protected:
using OPropertySetHelper::getPropertyValues;
};
inline void ODatabaseForm::submitNBC(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt)
{
submit_impl(Control, MouseEvt, false);
}
} // namespace frm
......
......@@ -90,13 +90,6 @@ protected:
protected:
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
/** translates the control value (the VCL-internal integer representation of a date) into
a UNO-Date.
*/
void impl_translateControlValueToUNODate(
::com::sun::star::uno::Any& _rUNOValue ) const;
};
class ODateControl: public OBoundControl
......
......@@ -108,7 +108,6 @@ public:
sal_Int32 GetPos() const { return m_nPos; }
sal_Int16 GetTabIndex() const { return m_nTabIndex; }
OUString GetName() const { return m_aName; }
};
typedef std::vector<OGroupComp> OGroupCompArr;
......
......@@ -71,12 +71,6 @@ protected:
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
/** sets the given value as new State at the aggregate
@precond
our mutex is acquired exactly once
*/
void setNewAggregateState( const ::com::sun::star::uno::Any& _rValue );
void setControlSource();
};
......
......@@ -90,13 +90,6 @@ protected:
protected:
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
/** translates the control value (the VCL-internal integer representation of a date) into
a UNO-Date.
*/
void impl_translateControlValueToUNOTime(
::com::sun::star::uno::Any& _rUNOValue ) const;
};
class OTimeControl: public OBoundControl
......
......@@ -65,8 +65,6 @@ namespace frm
/// returns the current string item list
inline const ::com::sun::star::uno::Sequence< OUString >&
getStringItemList() const { return m_aStringItems; }
inline const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource >&
getExternalListEntrySource() const { return m_xListSource; }
/// determines whether we actually have an external list source
inline bool hasExternalListSource( ) const { return m_xListSource.is(); }
......
......@@ -76,7 +76,6 @@ public:
void NewDataAvailable();
void SetDoneHdl( const Link<>& i_rHdl ) { maDoneHdl = i_rHdl; }
const Link<>& GetDoneHdl() const { return maDoneHdl; }
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
......
......@@ -664,9 +664,8 @@ protected:
m_xColumn;
protected:
inline const OUString& getValuePropertyName( ) const { return m_sValuePropertyName; }
inline sal_Int32 getValuePropertyAggHandle( ) const { return m_nValuePropertyAggregateHandle; }
inline const OUString& getControlSource( ) const { return m_aControlSource; }
inline sal_Int32 getValuePropertyAggHandle( ) const { return m_nValuePropertyAggregateHandle; }
inline const OUString& getControlSource( ) const { return m_aControlSource; }
inline bool isRequired() const { return m_bRequired; }
inline bool isLoaded() const { return m_bLoaded; }
......
......@@ -74,10 +74,6 @@ namespace frm
// all features which we have an external dispatcher for
sal_Int32 m_nConnectedFeatures;
protected:
inline const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&
getORB( ) const { return m_xORB; }
protected:
OFormNavigationHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB );
virtual ~OFormNavigationHelper();
......
......@@ -83,9 +83,7 @@ private:
public:
PropertyInfoService() { }
public:
static sal_Int32 getPropertyId(const OUString& _rName);
static OUString getPropertyName(sal_Int32 _nHandle);
private:
static void initialize();
......
......@@ -83,7 +83,6 @@ namespace frm
inline bool convertDynamicFastPropertyValue( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rNewValue, ::com::sun::star::uno::Any& _out_rConvertedValue, ::com::sun::star::uno::Any& _out_rCurrentValue ) const;
inline void setDynamicFastPropertyValue( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue );
inline void getDynamicPropertyDefaultByHandle( sal_Int32 _nHandle, ::com::sun::star::uno::Any& _out_rValue ) const;
inline bool hasDynamicPropertyByName( const OUString& _rName ) const;
inline bool hasDynamicPropertyByHandle( sal_Int32 _nHandle ) const;
private:
......@@ -136,13 +135,6 @@ namespace frm
m_aDynamicProperties.getPropertyDefaultByHandle( _nHandle, _out_rValue );
}
inline bool PropertyBagHelper::hasDynamicPropertyByName( const OUString& _rName ) const
{
return m_aDynamicProperties.hasPropertyByName( _rName );
}
inline bool PropertyBagHelper::hasDynamicPropertyByHandle( sal_Int32 _nHandle ) const
{
return m_aDynamicProperties.hasPropertyByHandle( _nHandle );
......
......@@ -54,13 +54,9 @@ namespace frm
IMultiAttributeDispatcher* _pMasterDispatcher
);
/// notifies a new attribute state
void notifyAttributeState( const AttributeState& _rState );
protected:
virtual ~OAttributeDispatcher( );
protected:
// XDispatch
virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Arguments ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
......@@ -75,13 +71,6 @@ namespace frm
// own overridables
virtual void fillFeatureEventFromAttributeState( ::com::sun::star::frame::FeatureStateEvent& _rEvent, const AttributeState& _rState ) const;
protected:
/// notifies our feature state to one particular listener
void notifyState(
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxControl,
const AttributeState& _rState
);
};
......
......@@ -298,9 +298,6 @@ private:
void bindingModified();
/// register the event listeners for
void registerListeners();
/// set MIPs defined by this binding on MIP item
MIP getLocalMIP() const;
......@@ -328,18 +325,6 @@ private:
/// set a useful default binding ID (if none is set)
void _checkBindingID();
public:
/// for debugging purposes only: get the MIPs defined by this binding
const MIP* _getMIP();
// XValueBinding:
public:
virtual css::uno::Sequence<css::uno::Type> SAL_CALL getSupportedValueTypes()
......
......@@ -88,12 +88,6 @@ public:
/// set a new expression string
void setExpression( const OUString& rExpression );
/// get the namespaces that are used to interpret the expression string
com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> getNamespaces() const;
/// set the namespaces that are used to interpret the expression string
void setNamespaces( const com::sun::star::uno::Reference<com::sun::star::container::XNameContainer>& );
/// do we have an actual expression?
bool isEmptyExpression() const { return mbIsEmpty;}
......
......@@ -67,11 +67,7 @@ namespace xforms
bool m_bPatternMatcherDirty;
protected:
bool isBasic() const { return m_bIsBasic; }
sal_Int16 getTypeClass() const { return m_nTypeClass; }
const OUString&
getName() const { return m_sName; }
private:
OXSDDataType( const OXSDDataType& ) SAL_DELETED_FUNCTION;
......
......@@ -153,22 +153,14 @@ public:
com::sun::star::uno::Sequence< OUString > getIncludeNamespacePrefixes() const { return msIncludeNamespacePrefixes;}
void setIncludeNamespacePrefixes( const com::sun::star::uno::Sequence< OUString >& );
/** perform the submission
* @returns if submission was successful */
bool doSubmit( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler );
/// release the model (note: Binding is unusable without model)
void releaseModel();
// helpers for UNO tunnel
static com::sun::star::uno::Sequence<sal_Int8> getUnoTunnelID();
static Submission* getSubmission( const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& );
private:
/// check whether object is live, and throw suitable exception if not
......@@ -178,9 +170,6 @@ private:
/// get the model implementation
xforms::Model* getModelImpl() const;
xforms::Model* getModelImpl( const com::sun::star::uno::Reference<com::sun::star::xforms::XModel>& xModel ) const;
protected:
......
......@@ -54,22 +54,6 @@ public:
m_aFragment = aFragment;
}
/**
set the properties from the submission element
that control aspects of the serialization
each serialization may support individual properties
*/
void setProperties(const css::uno::Sequence< css::beans::NamedValue >& props)
{
m_properties.clear();
OUString aValue;
for (sal_Int32 i=0; i<props.getLength(); i++)
{
if (props[i].Value >>= aValue)
m_properties.insert(PropMap::value_type(props[i].Name, aValue));
}
}
/**
start the serialization process
*/
......
......@@ -30,7 +30,6 @@ private:
css::uno::Reference< css::io::XPipe > m_xBuffer;
void serialize_node(const css::uno::Reference< css::xml::dom::XNode >& aNode);
void serialize_nodeset();
public:
CSerializationAppXML();
......
......@@ -34,7 +34,6 @@ private:
static bool is_unreserved(sal_Char);
static void encode_and_append(const OUString& aString, OStringBuffer& aBuffer);
void serialize_node(const css::uno::Reference< css::xml::dom::XNode >& aNode);
void serialize_nodeset();
public:
CSerializationURLEncoded();
......
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