tdf#123936 Formatting files in module forms with clang-format
Change-Id: I230375bd002147642db37728fa0287b6a554e330 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105670 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
This commit is contained in:
committed by
Christian Lohmaier
parent
32b57a159e
commit
951764106e
@@ -22,17 +22,12 @@
|
|||||||
|
|
||||||
#include <sal/types.h>
|
#include <sal/types.h>
|
||||||
|
|
||||||
|
|
||||||
namespace frm
|
namespace frm
|
||||||
{
|
{
|
||||||
|
|
||||||
const sal_uInt16 ENTRY_NOT_FOUND = 0xFFFF;
|
const sal_uInt16 ENTRY_NOT_FOUND = 0xFFFF;
|
||||||
const sal_uInt16 BOUNDCOLUMN = 0x0001;
|
const sal_uInt16 BOUNDCOLUMN = 0x0001;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // INCLUDED_FORMS_SOURCE_COMPONENT_BASELISTBOX_HXX
|
#endif // INCLUDED_FORMS_SOURCE_COMPONENT_BASELISTBOX_HXX
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -24,13 +24,9 @@
|
|||||||
#include <com/sun/star/uno/Sequence.hxx>
|
#include <com/sun/star/uno/Sequence.hxx>
|
||||||
#include <sal/types.h>
|
#include <sal/types.h>
|
||||||
|
|
||||||
|
namespace detail
|
||||||
namespace detail {
|
{
|
||||||
|
sal_Int32 findPos(const OUString& aStr, const css::uno::Sequence<OUString>& rList);
|
||||||
sal_Int32 findPos(
|
|
||||||
const OUString& aStr,
|
|
||||||
const css::uno::Sequence< OUString >& rList);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -17,26 +17,22 @@
|
|||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "boolexpression.hxx"
|
#include "boolexpression.hxx"
|
||||||
|
|
||||||
|
|
||||||
namespace xforms
|
namespace xforms
|
||||||
{
|
{
|
||||||
|
|
||||||
/** BoolExpression represents a computed XPath expression that returns
|
/** BoolExpression represents a computed XPath expression that returns
|
||||||
* a bool value and caches the results.
|
* a bool value and caches the results.
|
||||||
*
|
*
|
||||||
* As this class has no virtual methods, it should never be used
|
* As this class has no virtual methods, it should never be used
|
||||||
* polymorphically. */
|
* polymorphically. */
|
||||||
|
|
||||||
BoolExpression::BoolExpression() : ComputedExpression()
|
BoolExpression::BoolExpression()
|
||||||
|
: ComputedExpression()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
BoolExpression::~BoolExpression()
|
BoolExpression::~BoolExpression() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void BoolExpression::setExpression(const OUString& rExpression)
|
void BoolExpression::setExpression(const OUString& rExpression)
|
||||||
{
|
{
|
||||||
@@ -44,7 +40,6 @@ void BoolExpression::setExpression( const OUString& rExpression )
|
|||||||
mbIsSimple = _checkExpression(" *(true)|(false) *\\( *\\) *");
|
mbIsSimple = _checkExpression(" *(true)|(false) *\\( *\\) *");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace xforms
|
} // namespace xforms
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "enumeration.hxx"
|
#include "enumeration.hxx"
|
||||||
|
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
@@ -32,10 +31,9 @@ using com::sun::star::container::XIndexAccess;
|
|||||||
using com::sun::star::uno::Any;
|
using com::sun::star::uno::Any;
|
||||||
using com::sun::star::uno::RuntimeException;
|
using com::sun::star::uno::RuntimeException;
|
||||||
|
|
||||||
|
|
||||||
Enumeration::Enumeration(XIndexAccess* pContainer)
|
Enumeration::Enumeration(XIndexAccess* pContainer)
|
||||||
: mxContainer( pContainer ),
|
: mxContainer(pContainer)
|
||||||
mnIndex( 0 )
|
, mnIndex(0)
|
||||||
{
|
{
|
||||||
OSL_ENSURE(mxContainer.is(), "no container?");
|
OSL_ENSURE(mxContainer.is(), "no container?");
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
namespace xforms
|
namespace xforms
|
||||||
{
|
{
|
||||||
|
|
||||||
/** represents the XForms *m*odel *i*tem *p*roperties (MIPs) for a
|
/** represents the XForms *m*odel *i*tem *p*roperties (MIPs) for a
|
||||||
* given XNode in the instance data at a given point in time. The
|
* given XNode in the instance data at a given point in time. The
|
||||||
* values will not be updated; for updated values new MIP objects have
|
* values will not be updated; for updated values new MIP objects have
|
||||||
@@ -59,7 +58,6 @@ public:
|
|||||||
/// join with same-level MIPs
|
/// join with same-level MIPs
|
||||||
void join(const MIP&);
|
void join(const MIP&);
|
||||||
|
|
||||||
|
|
||||||
// - type (static; default: xsd:string)
|
// - type (static; default: xsd:string)
|
||||||
// (currently default implemented as empty string)
|
// (currently default implemented as empty string)
|
||||||
const OUString& getTypeName() const { return msTypeName; }
|
const OUString& getTypeName() const { return msTypeName; }
|
||||||
@@ -98,7 +96,6 @@ public:
|
|||||||
|
|
||||||
// - minOccurs/maxOccurs (computed XPath; default: 0/inf)
|
// - minOccurs/maxOccurs (computed XPath; default: 0/inf)
|
||||||
// - p3ptype (static; no default)
|
// - p3ptype (static; no default)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace xforms
|
} // namespace xforms
|
||||||
|
@@ -28,13 +28,14 @@
|
|||||||
namespace com::sun::star::xml::dom
|
namespace com::sun::star::xml::dom
|
||||||
{
|
{
|
||||||
class XNodeList;
|
class XNodeList;
|
||||||
namespace events { class XEventListener; }
|
namespace events
|
||||||
|
{
|
||||||
|
class XEventListener;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace xforms
|
namespace xforms
|
||||||
{
|
{
|
||||||
|
|
||||||
/** PathExpression represents an XPath Expression and caches results */
|
/** PathExpression represents an XPath Expression and caches results */
|
||||||
class PathExpression final : public ComputedExpression
|
class PathExpression final : public ComputedExpression
|
||||||
{
|
{
|
||||||
@@ -48,7 +49,6 @@ private:
|
|||||||
/// get expression for evaluation
|
/// get expression for evaluation
|
||||||
OUString _getExpressionForEvaluation() const;
|
OUString _getExpressionForEvaluation() const;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PathExpression();
|
PathExpression();
|
||||||
~PathExpression();
|
~PathExpression();
|
||||||
@@ -58,16 +58,13 @@ public:
|
|||||||
/// (also defines simple expressions)
|
/// (also defines simple expressions)
|
||||||
void setExpression(const OUString& rExpression);
|
void setExpression(const OUString& rExpression);
|
||||||
|
|
||||||
|
|
||||||
/// evaluate the expression relative to the content node.
|
/// evaluate the expression relative to the content node.
|
||||||
void evaluate(const xforms::EvaluationContext& rContext);
|
void evaluate(const xforms::EvaluationContext& rContext);
|
||||||
|
|
||||||
|
|
||||||
// get the result of this expression as node/node list/...
|
// get the result of this expression as node/node list/...
|
||||||
css::uno::Reference<css::xml::dom::XNode> getNode() const;
|
css::uno::Reference<css::xml::dom::XNode> getNode() const;
|
||||||
const NodeVector_t& getNodeList() const { return maNodes; }
|
const NodeVector_t& getNodeList() const { return maNodes; }
|
||||||
css::uno::Reference<css::xml::dom::XNodeList> getXNodeList() const;
|
css::uno::Reference<css::xml::dom::XNodeList> getXNodeList() const;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace xforms
|
} // namespace xforms
|
||||||
|
@@ -56,7 +56,6 @@ public:
|
|||||||
returns -1 on error
|
returns -1 on error
|
||||||
*/
|
*/
|
||||||
virtual css::uno::Reference<css::io::XInputStream> getInputStream() = 0;
|
virtual css::uno::Reference<css::io::XInputStream> getInputStream() = 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -25,9 +25,10 @@
|
|||||||
class CSubmissionGet : public CSubmission
|
class CSubmissionGet : public CSubmission
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CSubmissionGet(const OUString& aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment);
|
CSubmissionGet(const OUString& aURL,
|
||||||
virtual SubmissionResult submit(const css::uno::Reference< css::task::XInteractionHandler >& aInteractionHandler) override;
|
const css::uno::Reference<css::xml::dom::XDocumentFragment>& aFragment);
|
||||||
|
virtual SubmissionResult
|
||||||
|
submit(const css::uno::Reference<css::task::XInteractionHandler>& aInteractionHandler) override;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -25,9 +25,10 @@
|
|||||||
class CSubmissionPut : public CSubmission
|
class CSubmissionPut : public CSubmission
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CSubmissionPut(const OUString& aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment);
|
CSubmissionPut(const OUString& aURL,
|
||||||
virtual SubmissionResult submit(const css::uno::Reference< css::task::XInteractionHandler >& aInteractionHandler) override;
|
const css::uno::Reference<css::xml::dom::XDocumentFragment>& aFragment);
|
||||||
|
virtual SubmissionResult
|
||||||
|
submit(const css::uno::Reference<css::task::XInteractionHandler>& aInteractionHandler) override;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "unohelper.hxx"
|
#include "unohelper.hxx"
|
||||||
|
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
@@ -30,7 +29,6 @@
|
|||||||
#include <com/sun/star/beans/XPropertySetInfo.hpp>
|
#include <com/sun/star/beans/XPropertySetInfo.hpp>
|
||||||
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
||||||
|
|
||||||
|
|
||||||
using com::sun::star::uno::Reference;
|
using com::sun::star::uno::Reference;
|
||||||
using com::sun::star::uno::Sequence;
|
using com::sun::star::uno::Sequence;
|
||||||
using com::sun::star::uno::Exception;
|
using com::sun::star::uno::Exception;
|
||||||
@@ -39,16 +37,13 @@ using com::sun::star::beans::XPropertySet;
|
|||||||
using com::sun::star::beans::XPropertySetInfo;
|
using com::sun::star::beans::XPropertySetInfo;
|
||||||
using com::sun::star::beans::PropertyAttribute::READONLY;
|
using com::sun::star::beans::PropertyAttribute::READONLY;
|
||||||
|
|
||||||
|
void xforms::copy(const Reference<XPropertySet>& xFrom, Reference<XPropertySet> const& xTo)
|
||||||
void xforms::copy( const Reference<XPropertySet>& xFrom,
|
|
||||||
Reference<XPropertySet> const & xTo )
|
|
||||||
{
|
{
|
||||||
OSL_ENSURE(xFrom.is(), "no source");
|
OSL_ENSURE(xFrom.is(), "no source");
|
||||||
OSL_ENSURE(xTo.is(), "no target");
|
OSL_ENSURE(xTo.is(), "no target");
|
||||||
|
|
||||||
// get property names & infos, and iterate over target properties
|
// get property names & infos, and iterate over target properties
|
||||||
Sequence<Property> aProperties =
|
Sequence<Property> aProperties = xTo->getPropertySetInfo()->getProperties();
|
||||||
xTo->getPropertySetInfo()->getProperties();
|
|
||||||
sal_Int32 nProperties = aProperties.getLength();
|
sal_Int32 nProperties = aProperties.getLength();
|
||||||
const Property* pProperties = aProperties.getConstArray();
|
const Property* pProperties = aProperties.getConstArray();
|
||||||
Reference<XPropertySetInfo> xFromInfo = xFrom->getPropertySetInfo();
|
Reference<XPropertySetInfo> xFromInfo = xFrom->getPropertySetInfo();
|
||||||
|
@@ -30,9 +30,8 @@
|
|||||||
#include <com/sun/star/xforms/XModel.hpp>
|
#include <com/sun/star/xforms/XModel.hpp>
|
||||||
#include <com/sun/star/xml/dom/XNode.hpp>
|
#include <com/sun/star/xml/dom/XNode.hpp>
|
||||||
|
|
||||||
|
class CLibxml2XFormsExtension
|
||||||
class CLibxml2XFormsExtension : public cppu::WeakImplHelper<
|
: public cppu::WeakImplHelper<css::xml::xpath::XXPathExtension, css::lang::XInitialization>
|
||||||
css::xml::xpath::XXPathExtension, css::lang::XInitialization>
|
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
css::uno::Reference<css::xforms::XModel> m_aModel;
|
css::uno::Reference<css::xforms::XModel> m_aModel;
|
||||||
@@ -42,11 +41,13 @@ public:
|
|||||||
CLibxml2XFormsExtension() {}
|
CLibxml2XFormsExtension() {}
|
||||||
|
|
||||||
const css::uno::Reference<css::xforms::XModel>& getModel() const { return m_aModel; }
|
const css::uno::Reference<css::xforms::XModel>& getModel() const { return m_aModel; }
|
||||||
const css::uno::Reference< css::xml::dom::XNode >& getContextNode() const { return m_aContextNode;}
|
const css::uno::Reference<css::xml::dom::XNode>& getContextNode() const
|
||||||
|
{
|
||||||
|
return m_aContextNode;
|
||||||
|
}
|
||||||
|
|
||||||
virtual css::xml::xpath::Libxml2ExtensionHandle SAL_CALL getLibxml2ExtensionHandle() override;
|
virtual css::xml::xpath::Libxml2ExtensionHandle SAL_CALL getLibxml2ExtensionHandle() override;
|
||||||
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& aSequence) override;
|
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& aSequence) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_FORMS_SOURCE_XFORMS_XPATHLIB_EXTENSION_HXX
|
#endif // INCLUDED_FORMS_SOURCE_XFORMS_XPATHLIB_EXTENSION_HXX
|
||||||
|
@@ -4252,7 +4252,6 @@ filter/source/xsltfilter/LibXSLTTransformer.hxx
|
|||||||
filter/source/xsltfilter/OleHandler.cxx
|
filter/source/xsltfilter/OleHandler.cxx
|
||||||
filter/source/xsltfilter/OleHandler.hxx
|
filter/source/xsltfilter/OleHandler.hxx
|
||||||
filter/source/xsltfilter/XSLTFilter.cxx
|
filter/source/xsltfilter/XSLTFilter.cxx
|
||||||
forms/source/component/BaseListBox.hxx
|
|
||||||
forms/source/component/Button.cxx
|
forms/source/component/Button.cxx
|
||||||
forms/source/component/Button.hxx
|
forms/source/component/Button.hxx
|
||||||
forms/source/component/CheckBox.cxx
|
forms/source/component/CheckBox.cxx
|
||||||
@@ -4318,7 +4317,6 @@ forms/source/component/entrylisthelper.hxx
|
|||||||
forms/source/component/errorbroadcaster.cxx
|
forms/source/component/errorbroadcaster.cxx
|
||||||
forms/source/component/errorbroadcaster.hxx
|
forms/source/component/errorbroadcaster.hxx
|
||||||
forms/source/component/findpos.cxx
|
forms/source/component/findpos.cxx
|
||||||
forms/source/component/findpos.hxx
|
|
||||||
forms/source/component/formcontrolfont.cxx
|
forms/source/component/formcontrolfont.cxx
|
||||||
forms/source/component/imgprod.cxx
|
forms/source/component/imgprod.cxx
|
||||||
forms/source/component/imgprod.hxx
|
forms/source/component/imgprod.hxx
|
||||||
@@ -4400,7 +4398,6 @@ forms/source/solar/inc/navtoolbar.hxx
|
|||||||
forms/source/xforms/NameContainer.hxx
|
forms/source/xforms/NameContainer.hxx
|
||||||
forms/source/xforms/binding.cxx
|
forms/source/xforms/binding.cxx
|
||||||
forms/source/xforms/binding.hxx
|
forms/source/xforms/binding.hxx
|
||||||
forms/source/xforms/boolexpression.cxx
|
|
||||||
forms/source/xforms/collection.hxx
|
forms/source/xforms/collection.hxx
|
||||||
forms/source/xforms/computedexpression.cxx
|
forms/source/xforms/computedexpression.cxx
|
||||||
forms/source/xforms/computedexpression.hxx
|
forms/source/xforms/computedexpression.hxx
|
||||||
@@ -4410,18 +4407,15 @@ forms/source/xforms/datatyperepository.cxx
|
|||||||
forms/source/xforms/datatyperepository.hxx
|
forms/source/xforms/datatyperepository.hxx
|
||||||
forms/source/xforms/datatypes.cxx
|
forms/source/xforms/datatypes.cxx
|
||||||
forms/source/xforms/datatypes.hxx
|
forms/source/xforms/datatypes.hxx
|
||||||
forms/source/xforms/enumeration.cxx
|
|
||||||
forms/source/xforms/enumeration.hxx
|
forms/source/xforms/enumeration.hxx
|
||||||
forms/source/xforms/evaluationcontext.hxx
|
forms/source/xforms/evaluationcontext.hxx
|
||||||
forms/source/xforms/mip.cxx
|
forms/source/xforms/mip.cxx
|
||||||
forms/source/xforms/mip.hxx
|
|
||||||
forms/source/xforms/model.cxx
|
forms/source/xforms/model.cxx
|
||||||
forms/source/xforms/model.hxx
|
forms/source/xforms/model.hxx
|
||||||
forms/source/xforms/model_helper.hxx
|
forms/source/xforms/model_helper.hxx
|
||||||
forms/source/xforms/model_ui.cxx
|
forms/source/xforms/model_ui.cxx
|
||||||
forms/source/xforms/namedcollection.hxx
|
forms/source/xforms/namedcollection.hxx
|
||||||
forms/source/xforms/pathexpression.cxx
|
forms/source/xforms/pathexpression.cxx
|
||||||
forms/source/xforms/pathexpression.hxx
|
|
||||||
forms/source/xforms/propertysetbase.cxx
|
forms/source/xforms/propertysetbase.cxx
|
||||||
forms/source/xforms/propertysetbase.hxx
|
forms/source/xforms/propertysetbase.hxx
|
||||||
forms/source/xforms/resourcehelper.cxx
|
forms/source/xforms/resourcehelper.cxx
|
||||||
@@ -4429,19 +4423,13 @@ forms/source/xforms/resourcehelper.hxx
|
|||||||
forms/source/xforms/submission.cxx
|
forms/source/xforms/submission.cxx
|
||||||
forms/source/xforms/submission.hxx
|
forms/source/xforms/submission.hxx
|
||||||
forms/source/xforms/submission/replace.cxx
|
forms/source/xforms/submission/replace.cxx
|
||||||
forms/source/xforms/submission/serialization.hxx
|
|
||||||
forms/source/xforms/submission/serialization_app_xml.cxx
|
forms/source/xforms/submission/serialization_app_xml.cxx
|
||||||
forms/source/xforms/submission/serialization_app_xml.hxx
|
|
||||||
forms/source/xforms/submission/serialization_urlencoded.cxx
|
forms/source/xforms/submission/serialization_urlencoded.cxx
|
||||||
forms/source/xforms/submission/serialization_urlencoded.hxx
|
|
||||||
forms/source/xforms/submission/submission.hxx
|
forms/source/xforms/submission/submission.hxx
|
||||||
forms/source/xforms/submission/submission_get.cxx
|
forms/source/xforms/submission/submission_get.cxx
|
||||||
forms/source/xforms/submission/submission_get.hxx
|
|
||||||
forms/source/xforms/submission/submission_post.cxx
|
forms/source/xforms/submission/submission_post.cxx
|
||||||
forms/source/xforms/submission/submission_post.hxx
|
forms/source/xforms/submission/submission_post.hxx
|
||||||
forms/source/xforms/submission/submission_put.cxx
|
forms/source/xforms/submission/submission_put.cxx
|
||||||
forms/source/xforms/submission/submission_put.hxx
|
|
||||||
forms/source/xforms/unohelper.cxx
|
|
||||||
forms/source/xforms/unohelper.hxx
|
forms/source/xforms/unohelper.hxx
|
||||||
forms/source/xforms/xforms_services.cxx
|
forms/source/xforms/xforms_services.cxx
|
||||||
forms/source/xforms/xformsevent.cxx
|
forms/source/xforms/xformsevent.cxx
|
||||||
@@ -4449,7 +4437,6 @@ forms/source/xforms/xformsevent.hxx
|
|||||||
forms/source/xforms/xmlhelper.cxx
|
forms/source/xforms/xmlhelper.cxx
|
||||||
forms/source/xforms/xmlhelper.hxx
|
forms/source/xforms/xmlhelper.hxx
|
||||||
forms/source/xforms/xpathlib/extension.cxx
|
forms/source/xforms/xpathlib/extension.cxx
|
||||||
forms/source/xforms/xpathlib/extension.hxx
|
|
||||||
forms/source/xforms/xpathlib/xpathlib.cxx
|
forms/source/xforms/xpathlib/xpathlib.cxx
|
||||||
forms/source/xforms/xpathlib/xpathlib.hxx
|
forms/source/xforms/xpathlib/xpathlib.hxx
|
||||||
formula/source/core/api/FormulaCompiler.cxx
|
formula/source/core/api/FormulaCompiler.cxx
|
||||||
|
Reference in New Issue
Block a user