diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-17 11:01:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-17 11:07:13 +0200 |
commit | 771d9ef3f65785092267f6068384e8cdda17f883 (patch) | |
tree | d9a71fb8932a3d29b459eabd353f935eae504bd5 /forms | |
parent | 64cc2d775c0b2347a55e563c362c37e033ffd68d (diff) |
loplugin:unusedmethods forms
Change-Id: I6b7938e948fb1422f83e2175fee5fcabe0a0b83f
Diffstat (limited to 'forms')
20 files changed, 2 insertions, 114 deletions
diff --git a/forms/source/component/CheckBox.hxx b/forms/source/component/CheckBox.hxx index 2819ee328880..c27e0b200c99 100644 --- a/forms/source/component/CheckBox.hxx +++ b/forms/source/component/CheckBox.hxx @@ -29,7 +29,6 @@ namespace frm class OCheckBoxModel :public OReferenceValueComponent { protected: - sal_Int16 getState(const ::com::sun::star::uno::Any& rValue); bool DbUseBool(); public: diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx index 2bcf96e649f3..5e6c4ab51e6b 100644 --- a/forms/source/component/DatabaseForm.hxx +++ b/forms/source/component/DatabaseForm.hxx @@ -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 diff --git a/forms/source/component/Date.hxx b/forms/source/component/Date.hxx index 572f51bc4a55..2971008ad5ce 100644 --- a/forms/source/component/Date.hxx +++ b/forms/source/component/Date.hxx @@ -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 diff --git a/forms/source/component/GroupManager.hxx b/forms/source/component/GroupManager.hxx index 01d8c60a38d7..4a07fae95245 100644 --- a/forms/source/component/GroupManager.hxx +++ b/forms/source/component/GroupManager.hxx @@ -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; diff --git a/forms/source/component/RadioButton.hxx b/forms/source/component/RadioButton.hxx index d8660c0e7b8a..e57e67286b8d 100644 --- a/forms/source/component/RadioButton.hxx +++ b/forms/source/component/RadioButton.hxx @@ -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(); }; diff --git a/forms/source/component/Time.hxx b/forms/source/component/Time.hxx index 329b65fda26e..eddfa1aab36c 100644 --- a/forms/source/component/Time.hxx +++ b/forms/source/component/Time.hxx @@ -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 diff --git a/forms/source/component/entrylisthelper.hxx b/forms/source/component/entrylisthelper.hxx index 4722640901f4..1aeab31c5137 100644 --- a/forms/source/component/entrylisthelper.hxx +++ b/forms/source/component/entrylisthelper.hxx @@ -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(); } diff --git a/forms/source/component/imgprod.hxx b/forms/source/component/imgprod.hxx index 3d701f5599ed..ce8ce14a0fa6 100644 --- a/forms/source/component/imgprod.hxx +++ b/forms/source/component/imgprod.hxx @@ -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; diff --git a/forms/source/inc/FormComponent.hxx b/forms/source/inc/FormComponent.hxx index 745dc88a11f0..5ea0a642935b 100644 --- a/forms/source/inc/FormComponent.hxx +++ b/forms/source/inc/FormComponent.hxx @@ -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; } diff --git a/forms/source/inc/formnavigation.hxx b/forms/source/inc/formnavigation.hxx index e3ecfd73872c..4a4a59e7ab78 100644 --- a/forms/source/inc/formnavigation.hxx +++ b/forms/source/inc/formnavigation.hxx @@ -75,10 +75,6 @@ namespace frm 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(); diff --git a/forms/source/inc/property.hxx b/forms/source/inc/property.hxx index 02c5567d2e1b..1ae8ebcffa71 100644 --- a/forms/source/inc/property.hxx +++ b/forms/source/inc/property.hxx @@ -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(); diff --git a/forms/source/inc/propertybaghelper.hxx b/forms/source/inc/propertybaghelper.hxx index de93166c29ce..be3951dd7494 100644 --- a/forms/source/inc/propertybaghelper.hxx +++ b/forms/source/inc/propertybaghelper.hxx @@ -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 ); diff --git a/forms/source/richtext/attributedispatcher.hxx b/forms/source/richtext/attributedispatcher.hxx index a1044f0dba80..a0aad0fbb83a 100644 --- a/forms/source/richtext/attributedispatcher.hxx +++ b/forms/source/richtext/attributedispatcher.hxx @@ -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 - ); }; diff --git a/forms/source/xforms/binding.hxx b/forms/source/xforms/binding.hxx index b940f736de27..6f9064b01f37 100644 --- a/forms/source/xforms/binding.hxx +++ b/forms/source/xforms/binding.hxx @@ -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; @@ -329,18 +326,6 @@ private: 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() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; diff --git a/forms/source/xforms/computedexpression.hxx b/forms/source/xforms/computedexpression.hxx index 1e11fea78105..f9dcc0227758 100644 --- a/forms/source/xforms/computedexpression.hxx +++ b/forms/source/xforms/computedexpression.hxx @@ -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;} diff --git a/forms/source/xforms/datatypes.hxx b/forms/source/xforms/datatypes.hxx index 67e00853616c..87a34ef9fa02 100644 --- a/forms/source/xforms/datatypes.hxx +++ b/forms/source/xforms/datatypes.hxx @@ -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; diff --git a/forms/source/xforms/submission.hxx b/forms/source/xforms/submission.hxx index d30fdd7663fe..93313d953526 100644 --- a/forms/source/xforms/submission.hxx +++ b/forms/source/xforms/submission.hxx @@ -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: diff --git a/forms/source/xforms/submission/serialization.hxx b/forms/source/xforms/submission/serialization.hxx index 63265b434ade..da61af1e08df 100644 --- a/forms/source/xforms/submission/serialization.hxx +++ b/forms/source/xforms/submission/serialization.hxx @@ -55,22 +55,6 @@ public: } /** - 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 */ virtual void serialize()=0; diff --git a/forms/source/xforms/submission/serialization_app_xml.hxx b/forms/source/xforms/submission/serialization_app_xml.hxx index 35ee74084841..a2a99a45c769 100644 --- a/forms/source/xforms/submission/serialization_app_xml.hxx +++ b/forms/source/xforms/submission/serialization_app_xml.hxx @@ -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(); diff --git a/forms/source/xforms/submission/serialization_urlencoded.hxx b/forms/source/xforms/submission/serialization_urlencoded.hxx index e10c6c7b7a75..cfd132a04970 100644 --- a/forms/source/xforms/submission/serialization_urlencoded.hxx +++ b/forms/source/xforms/submission/serialization_urlencoded.hxx @@ -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(); |