summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/text
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:19:58 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-11-16 11:42:31 +0100
commit69397a13d9458174ea3d0160cb65d77ac83c205c (patch)
tree5511df93af26e29d91db5ce7934d76b6a1be55fe /svx/source/sidebar/text
parent81a11c6f1c2caec8c177cb4e061631561a4d102e (diff)
tdf#123936 Formatting files in module svx with clang-format
Change-Id: I482a00c9f65fd08be03f101c0e18f044c9323137 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105716 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'svx/source/sidebar/text')
-rw-r--r--svx/source/sidebar/text/TextCharacterSpacingPopup.cxx19
-rw-r--r--svx/source/sidebar/text/TextUnderlinePopup.cxx19
2 files changed, 18 insertions, 20 deletions
diff --git a/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx b/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx
index 7957b1794e46..7b10c3a30b02 100644
--- a/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx
+++ b/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx
@@ -22,12 +22,13 @@
using namespace svx;
-TextCharacterSpacingPopup::TextCharacterSpacingPopup(const css::uno::Reference<css::uno::XComponentContext>& rContext)
+TextCharacterSpacingPopup::TextCharacterSpacingPopup(
+ const css::uno::Reference<css::uno::XComponentContext>& rContext)
: PopupWindowController(rContext, nullptr, OUString())
{
}
-void TextCharacterSpacingPopup::initialize( const css::uno::Sequence< css::uno::Any >& rArguments )
+void TextCharacterSpacingPopup::initialize(const css::uno::Sequence<css::uno::Any>& rArguments)
{
PopupWindowController::initialize(rArguments);
@@ -43,18 +44,17 @@ void TextCharacterSpacingPopup::initialize( const css::uno::Sequence< css::uno::
pToolBox->SetItemBits(nId, ToolBoxItemBits::DROPDOWNONLY | pToolBox->GetItemBits(nId));
}
-TextCharacterSpacingPopup::~TextCharacterSpacingPopup()
-{
-}
+TextCharacterSpacingPopup::~TextCharacterSpacingPopup() {}
std::unique_ptr<WeldToolbarPopup> TextCharacterSpacingPopup::weldPopupWindow()
{
return std::make_unique<TextCharacterSpacingControl>(this, m_pToolbar);
}
-VclPtr<vcl::Window> TextCharacterSpacingPopup::createVclPopupWindow( vcl::Window* pParent )
+VclPtr<vcl::Window> TextCharacterSpacingPopup::createVclPopupWindow(vcl::Window* pParent)
{
- mxInterimPopover = VclPtr<InterimToolbarPopup>::Create(getFrameInterface(), pParent,
+ mxInterimPopover = VclPtr<InterimToolbarPopup>::Create(
+ getFrameInterface(), pParent,
std::make_unique<TextCharacterSpacingControl>(this, pParent->GetFrameWeld()));
mxInterimPopover->Show();
@@ -72,10 +72,9 @@ css::uno::Sequence<OUString> TextCharacterSpacingPopup::getSupportedServiceNames
return { "com.sun.star.frame.ToolbarController" };
}
-extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
com_sun_star_comp_svx_CharacterSpacingToolBoxControl_get_implementation(
- css::uno::XComponentContext* rContext,
- css::uno::Sequence<css::uno::Any> const & )
+ css::uno::XComponentContext* rContext, css::uno::Sequence<css::uno::Any> const&)
{
return cppu::acquire(new TextCharacterSpacingPopup(rContext));
}
diff --git a/svx/source/sidebar/text/TextUnderlinePopup.cxx b/svx/source/sidebar/text/TextUnderlinePopup.cxx
index 1da5bfe7f7ea..dc35892871b0 100644
--- a/svx/source/sidebar/text/TextUnderlinePopup.cxx
+++ b/svx/source/sidebar/text/TextUnderlinePopup.cxx
@@ -22,16 +22,15 @@
using namespace svx;
-TextUnderlinePopup::TextUnderlinePopup(const css::uno::Reference<css::uno::XComponentContext>& rContext)
+TextUnderlinePopup::TextUnderlinePopup(
+ const css::uno::Reference<css::uno::XComponentContext>& rContext)
: PopupWindowController(rContext, nullptr, OUString())
{
}
-TextUnderlinePopup::~TextUnderlinePopup()
-{
-}
+TextUnderlinePopup::~TextUnderlinePopup() {}
-void TextUnderlinePopup::initialize( const css::uno::Sequence< css::uno::Any >& rArguments )
+void TextUnderlinePopup::initialize(const css::uno::Sequence<css::uno::Any>& rArguments)
{
PopupWindowController::initialize(rArguments);
@@ -52,9 +51,10 @@ std::unique_ptr<WeldToolbarPopup> TextUnderlinePopup::weldPopupWindow()
return std::make_unique<TextUnderlineControl>(this, m_pToolbar);
}
-VclPtr<vcl::Window> TextUnderlinePopup::createVclPopupWindow( vcl::Window* pParent )
+VclPtr<vcl::Window> TextUnderlinePopup::createVclPopupWindow(vcl::Window* pParent)
{
- mxInterimPopover = VclPtr<InterimToolbarPopup>::Create(getFrameInterface(), pParent,
+ mxInterimPopover = VclPtr<InterimToolbarPopup>::Create(
+ getFrameInterface(), pParent,
std::make_unique<TextUnderlineControl>(this, pParent->GetFrameWeld()));
mxInterimPopover->Show();
@@ -72,10 +72,9 @@ css::uno::Sequence<OUString> TextUnderlinePopup::getSupportedServiceNames()
return { "com.sun.star.frame.ToolbarController" };
}
-extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
com_sun_star_comp_svx_UnderlineToolBoxControl_get_implementation(
- css::uno::XComponentContext* rContext,
- css::uno::Sequence<css::uno::Any> const & )
+ css::uno::XComponentContext* rContext, css::uno::Sequence<css::uno::Any> const&)
{
return cppu::acquire(new TextUnderlinePopup(rContext));
}