diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:25:31 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-18 12:28:54 +0100 |
commit | b9e9ac51a731a1b9515d935fd543218b2ee107c1 (patch) | |
tree | b55671186d7c32c5b9f56b4c14a874a556176ff4 /vbahelper/source | |
parent | 25e14502fdeac6c03dfed125d789b2822f488cfe (diff) |
tdf#123936 Formatting files in module vbahelper with clang-format
Change-Id: Id058e96d2d3c78fa6efce41b0dbc39c69921ea99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105727
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'vbahelper/source')
-rw-r--r-- | vbahelper/source/msforms/vbanewfont.hxx | 25 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbadialogbase.cxx | 12 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbadialogsbase.cxx | 6 |
3 files changed, 19 insertions, 24 deletions
diff --git a/vbahelper/source/msforms/vbanewfont.hxx b/vbahelper/source/msforms/vbanewfont.hxx index 6f00a2724bf6..fb928f9e0c50 100644 --- a/vbahelper/source/msforms/vbanewfont.hxx +++ b/vbahelper/source/msforms/vbanewfont.hxx @@ -24,37 +24,34 @@ #include <vbahelper/vbahelper.hxx> #include <cppuhelper/implbase.hxx> - -class VbaNewFont : public cppu::WeakImplHelper< ov::msforms::XNewFont > +class VbaNewFont : public cppu::WeakImplHelper<ov::msforms::XNewFont> { public: /// @throws css::uno::RuntimeException - explicit VbaNewFont( - const css::uno::Reference< css::beans::XPropertySet >& rxModelProps ); + explicit VbaNewFont(const css::uno::Reference<css::beans::XPropertySet>& rxModelProps); // XNewFont attributes virtual OUString SAL_CALL getName() override; - virtual void SAL_CALL setName( const OUString& rName ) override; + virtual void SAL_CALL setName(const OUString& rName) override; virtual double SAL_CALL getSize() override; - virtual void SAL_CALL setSize( double fSize ) override; + virtual void SAL_CALL setSize(double fSize) override; virtual sal_Int16 SAL_CALL getCharset() override; - virtual void SAL_CALL setCharset( sal_Int16 nCharset ) override; + virtual void SAL_CALL setCharset(sal_Int16 nCharset) override; virtual sal_Int16 SAL_CALL getWeight() override; - virtual void SAL_CALL setWeight( sal_Int16 nWeight ) override; + virtual void SAL_CALL setWeight(sal_Int16 nWeight) override; virtual sal_Bool SAL_CALL getBold() override; - virtual void SAL_CALL setBold( sal_Bool bBold ) override; + virtual void SAL_CALL setBold(sal_Bool bBold) override; virtual sal_Bool SAL_CALL getItalic() override; - virtual void SAL_CALL setItalic( sal_Bool bItalic ) override; + virtual void SAL_CALL setItalic(sal_Bool bItalic) override; virtual sal_Bool SAL_CALL getUnderline() override; - virtual void SAL_CALL setUnderline( sal_Bool bUnderline ) override; + virtual void SAL_CALL setUnderline(sal_Bool bUnderline) override; virtual sal_Bool SAL_CALL getStrikethrough() override; - virtual void SAL_CALL setStrikethrough( sal_Bool bStrikethrough ) override; + virtual void SAL_CALL setStrikethrough(sal_Bool bStrikethrough) override; private: - css::uno::Reference< css::beans::XPropertySet > mxProps; + css::uno::Reference<css::beans::XPropertySet> mxProps; }; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/vbahelper/vbadialogbase.cxx b/vbahelper/source/vbahelper/vbadialogbase.cxx index 6e5ae97857b1..a1aa0b053436 100644 --- a/vbahelper/source/vbahelper/vbadialogbase.cxx +++ b/vbahelper/source/vbahelper/vbadialogbase.cxx @@ -25,14 +25,14 @@ using namespace ::com::sun::star; void SAL_CALL VbaDialogBase::Show() { - if ( m_xModel.is() ) + if (m_xModel.is()) { - OUString aURL = mapIndexToName( mnIndex ); - if( aURL.isEmpty() ) - throw uno::RuntimeException( "Unable to open the specified dialog" ); + OUString aURL = mapIndexToName(mnIndex); + if (aURL.isEmpty()) + throw uno::RuntimeException("Unable to open the specified dialog"); - uno::Sequence< beans::PropertyValue > dispatchProps(0); - dispatchRequests( m_xModel, aURL, dispatchProps ); + uno::Sequence<beans::PropertyValue> dispatchProps(0); + dispatchRequests(m_xModel, aURL, dispatchProps); } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vbahelper/source/vbahelper/vbadialogsbase.cxx b/vbahelper/source/vbahelper/vbadialogsbase.cxx index d73ac6c062e4..959047314811 100644 --- a/vbahelper/source/vbahelper/vbadialogsbase.cxx +++ b/vbahelper/source/vbahelper/vbadialogsbase.cxx @@ -21,15 +21,13 @@ using namespace ::ooo::vba; using namespace ::com::sun::star; -::sal_Int32 -VbaDialogsBase::getCount() +::sal_Int32 VbaDialogsBase::getCount() { //#STUB return 0; } -uno::Any -VbaDialogsBase::Item( const uno::Any& /* &aItem */) +uno::Any VbaDialogsBase::Item(const uno::Any& /* &aItem */) { //#STUB return uno::Any(); |