[Libreoffice-commits] core.git: forms/source

Noel Grandin noel at peralex.com
Fri Jul 17 02:07:48 PDT 2015


 forms/source/component/CheckBox.hxx                         |    1 
 forms/source/component/DatabaseForm.hxx                     |    7 -----
 forms/source/component/Date.hxx                             |    7 -----
 forms/source/component/GroupManager.hxx                     |    1 
 forms/source/component/RadioButton.hxx                      |    6 ----
 forms/source/component/Time.hxx                             |    7 -----
 forms/source/component/entrylisthelper.hxx                  |    2 -
 forms/source/component/imgprod.hxx                          |    1 
 forms/source/inc/FormComponent.hxx                          |    5 +--
 forms/source/inc/formnavigation.hxx                         |    4 ---
 forms/source/inc/property.hxx                               |    2 -
 forms/source/inc/propertybaghelper.hxx                      |    8 ------
 forms/source/richtext/attributedispatcher.hxx               |   11 --------
 forms/source/xforms/binding.hxx                             |   15 -----------
 forms/source/xforms/computedexpression.hxx                  |    6 ----
 forms/source/xforms/datatypes.hxx                           |    4 ---
 forms/source/xforms/submission.hxx                          |   11 --------
 forms/source/xforms/submission/serialization.hxx            |   16 ------------
 forms/source/xforms/submission/serialization_app_xml.hxx    |    1 
 forms/source/xforms/submission/serialization_urlencoded.hxx |    1 
 20 files changed, 2 insertions(+), 114 deletions(-)

New commits:
commit 771d9ef3f65785092267f6068384e8cdda17f883
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Jul 17 11:01:29 2015 +0200

    loplugin:unusedmethods forms
    
    Change-Id: I6b7938e948fb1422f83e2175fee5fcabe0a0b83f

diff --git a/forms/source/component/CheckBox.hxx b/forms/source/component/CheckBox.hxx
index 2819ee3..c27e0b2 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 2bcf96e..5e6c4ab 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 572f51b..2971008 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 01d8c60..4a07fae 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 d8660c0..e57e672 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 329b65f..eddfa1a 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 4722640..1aeab31 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 3d701f5..ce8ce14 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 745dc88..5ea0a64 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 e3ecfd7..4a4a59e 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 02c5567..1ae8ebc 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 de93166..be3951d 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 a1044f0..a0aad0f 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 b940f73..6f9064b 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 1e11fea..f9dcc02 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 67e0085..87a34ef 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 d30fdd7..93313d9 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 63265b4..da61af1 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 35ee740..a2a99a4 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 e10c6c7..cfd132a 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();


More information about the Libreoffice-commits mailing list