diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-10-23 08:56:15 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-10-30 08:13:30 +0100 |
commit | 6b50523f86fd875bd74ae49ad6b7909ccdafed92 (patch) | |
tree | 7baaf062b111efa0ad5ab1dbae46f1d1cd401e20 /svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx | |
parent | 27415fd0dc397360ceb21aa678b808611d73fc94 (diff) |
Whitespace (and other) cleanup.
Change-Id: I6af10899a3e22c45b973439fd8c8ec6c8faac904
Diffstat (limited to 'svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx b/svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx index 6a989484d502..e5cae1c859b0 100644 --- a/svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx +++ b/svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx @@ -16,6 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ + #include "ParaLineSpacingPopup.hxx" #include "ParaLineSpacingControl.hxx" #include <boost/bind.hpp> @@ -23,37 +24,29 @@ namespace svx { namespace sidebar { -ParaLineSpacingPopup::ParaLineSpacingPopup ( - vcl::Window* pParent, - const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator) +ParaLineSpacingPopup::ParaLineSpacingPopup(vcl::Window* pParent, const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator) : Popup( pParent, rControlCreator, - OUString( "Paragraph Line Spacing")) + OUString("Paragraph Line Spacing")) { SetPopupModeEndHandler(::boost::bind(&ParaLineSpacingPopup::PopupModeEndCallback, this)); } - - - -ParaLineSpacingPopup::~ParaLineSpacingPopup (void) +ParaLineSpacingPopup::~ParaLineSpacingPopup() { } - - - -void ParaLineSpacingPopup::Rearrange (SfxItemState currSPState,FieldUnit currMetricUnit,SvxLineSpacingItem* currSPItem,const ::sfx2::sidebar::EnumContext currentContext) +void ParaLineSpacingPopup::Rearrange(SfxItemState currSPState,FieldUnit currMetricUnit,SvxLineSpacingItem* currSPItem,const ::sfx2::sidebar::EnumContext currentContext) { ProvideContainerAndControl(); ParaLineSpacingControl* pControl = dynamic_cast<ParaLineSpacingControl*>(mpControl.get()); if (pControl != NULL) - pControl->Rearrange(currSPState,currMetricUnit, currSPItem,currentContext); + pControl->Rearrange(currSPState, currMetricUnit, currSPItem,currentContext); } -void ParaLineSpacingPopup::PopupModeEndCallback (void) +void ParaLineSpacingPopup::PopupModeEndCallback() { ProvideContainerAndControl(); ParaLineSpacingControl* pControl = dynamic_cast<ParaLineSpacingControl*>(mpControl.get()); @@ -61,20 +54,8 @@ void ParaLineSpacingPopup::PopupModeEndCallback (void) return; pControl->PopupModeEndCallback(); - - /*if( pControl->GetLastCustomState() == SPACING_CLOSE_BY_CUS_EDIT) - { - SvtViewOptions aWinOpt( E_WINDOW, SIDEBAR_SPACING_GLOBAL_VALUE ); - ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq(1); - aSeq[0].Name = "Spacing"; - aSeq[0].Value <<= ::rtl::OUString( String::CreateFromInt32( pControl->GetLastCustomValue() )); - aWinOpt.SetUserData( aSeq ); - - }*/ } - -} } // end of namespace svx::sidebar - +} } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |