[PATCH] Remove vertical whitespace for Tor's reading pleasure

Chris Sherlock (via Code Review) gerrit at gerrit.libreoffice.org
Mon May 20 06:26:20 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3978

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/78/3978/1

Remove vertical whitespace for Tor's reading pleasure

Change-Id: I6dc1e2e29a0ee3dbbaec86b2d41855d204885adf
---
M sd/source/ui/toolpanel/LayoutMenu.cxx
1 file changed, 0 insertions(+), 92 deletions(-)



diff --git a/sd/source/ui/toolpanel/LayoutMenu.cxx b/sd/source/ui/toolpanel/LayoutMenu.cxx
index 8f444a3..540a8fd 100644
--- a/sd/source/ui/toolpanel/LayoutMenu.cxx
+++ b/sd/source/ui/toolpanel/LayoutMenu.cxx
@@ -223,8 +223,6 @@
     GetShellManager()->AddSubShell(SHELLID_SD_TASK_PANE_PREVIEW_LAYOUTS,this,this);
 }
 
-
-
 LayoutMenu::~LayoutMenu (void)
 {
     // Tell the shell factory that this object is no longer available.
@@ -240,17 +238,11 @@
     mrBase.GetEventMultiplexer()->RemoveEventListener (aLink);
 }
 
-
-
-
 ::std::auto_ptr<ControlFactory> LayoutMenu::CreateControlFactory (
     ToolPanelViewShell& i_rPanelViewShell )
 {
     return ::std::auto_ptr<ControlFactory>(new LayoutMenuRootFactory(i_rPanelViewShell));
 }
-
-
-
 
 AutoLayout LayoutMenu::GetSelectedAutoLayout (void)
 {
@@ -266,9 +258,6 @@
     return aResult;
 }
 
-
-
-
 /** The preferred size depends on the preferred number of columns, the
     number of items, and the size of the items.
 */
@@ -281,9 +270,6 @@
         (sal_uInt16)CalculateRowCount (aItemSize,mnPreferredColumnCount));
     return aPreferredWindowSize;
 }
-
-
-
 
 sal_Int32 LayoutMenu::GetPreferredWidth (sal_Int32 nHeight)
 {
@@ -304,9 +290,6 @@
 
     return nPreferredWidth;
 }
-
-
-
 
 sal_Int32 LayoutMenu::GetPreferredHeight (sal_Int32 nWidth)
 {
@@ -331,9 +314,6 @@
     return nPreferredHeight;
 }
 
-
-
-
 sal_Int32 LayoutMenu::GetMinimumWidth (void)
 {
     sal_Int32 nMinimumWidth = 0;
@@ -346,16 +326,10 @@
     return nMinimumWidth;
 }
 
-
-
-
 bool LayoutMenu::IsResizable (void)
 {
     return true;
 }
-
-
-
 
 void LayoutMenu::UpdateEnabledState (const MasterMode eMode)
 {
@@ -422,16 +396,10 @@
     }
 }
 
-
-
-
 ::Window* LayoutMenu::GetWindow (void)
 {
     return this;
 }
-
-
-
 
 void LayoutMenu::Paint (const Rectangle& rRect)
 {
@@ -446,9 +414,6 @@
 
     SetBackground (Wallpaper());
 }
-
-
-
 
 void LayoutMenu::Resize (void)
 {
@@ -479,9 +444,6 @@
     ValueSet::Resize ();
 }
 
-
-
-
 void LayoutMenu::MouseButtonDown (const MouseEvent& rEvent)
 {
     // As a preparation for the context menu the item under the mouse is
@@ -496,9 +458,6 @@
 
     ValueSet::MouseButtonDown (rEvent);
 }
-
-
-
 
 void LayoutMenu::Execute (SfxRequest& rRequest)
 {
@@ -517,9 +476,6 @@
     }
 }
 
-
-
-
 void LayoutMenu::GetState (SfxItemSet& rItemSet)
 {
     // Cut and paste is not supported.  The SID_(CUT,COPY,PASTE) entries
@@ -536,9 +492,6 @@
     if (aState == SFX_ITEM_DISABLED)
         rItemSet.DisableItem(SID_INSERTPAGE_LAYOUT_MENU);
 }
-
-
-
 
 void LayoutMenu::InsertPageWithLayout (AutoLayout aLayout)
 {
@@ -567,9 +520,6 @@
     UpdateSelection();
 }
 
-
-
-
 TaskPaneShellManager* LayoutMenu::GetShellManager()
 {
     if ( mpShellManager )
@@ -588,9 +538,6 @@
     Fill();
 }
 
-
-
-
 int LayoutMenu::CalculateRowCount (const Size&, int nColumnCount)
 {
     int nRowCount = 0;
@@ -606,17 +553,11 @@
     return nRowCount;
 }
 
-
-
-
 IMPL_LINK_NOARG(LayoutMenu, ClickHandler)
 {
     AssignLayoutToSelectedSlides (GetSelectedAutoLayout());
     return 0;
 }
-
-
-
 
 /** The specified layout is assigned to the current page of the view shell
     in the center pane.
@@ -707,9 +648,6 @@
     while(false);
 }
 
-
-
-
 SfxRequest LayoutMenu::CreateRequest (
     sal_uInt16 nSlotId,
     AutoLayout aLayout)
@@ -746,9 +684,6 @@
 
     return aRequest;
 }
-
-
-
 
 void LayoutMenu::Fill (void)
 {
@@ -813,9 +748,6 @@
     mbSelectionUpdatePending = true;
 }
 
-
-
-
 void LayoutMenu::Clear (void)
 {
     for (sal_uInt16 nId=1; nId<=GetItemCount(); nId++)
@@ -823,30 +755,19 @@
     ValueSet::Clear();
 }
 
-
-
 void LayoutMenu::StartDrag (sal_Int8 , const Point& )
 {
 }
-
-
-
 
 sal_Int8 LayoutMenu::AcceptDrop (const AcceptDropEvent& )
 {
     return 0;
 }
 
-
-
-
 sal_Int8 LayoutMenu::ExecuteDrop (const ExecuteDropEvent& )
 {
     return 0;
 }
-
-
-
 
 void LayoutMenu::Command (const CommandEvent& rEvent)
 {
@@ -891,17 +812,11 @@
     }
 }
 
-
-
-
 IMPL_LINK_NOARG(LayoutMenu, StateChangeHandler)
 {
     InvalidateContent();
     return 0;
 }
-
-
-
 
 void LayoutMenu::UpdateSelection (void)
 {
@@ -940,9 +855,6 @@
     if ( ! bItemSelected)
         SetNoSelection();
 }
-
-
-
 
 IMPL_LINK(LayoutMenu, EventMultiplexerListener, ::sd::tools::EventMultiplexerEvent*, pEvent)
 {
@@ -987,15 +899,11 @@
     return 0;
 }
 
-
-
-
 void LayoutMenu::DataChanged (const DataChangedEvent& rEvent)
 {
     Fill();
     ValueSet::DataChanged(rEvent);
 }
-
 
 } } // end of namespace ::sd::toolpanel
 

-- 
To view, visit https://gerrit.libreoffice.org/3978
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6dc1e2e29a0ee3dbbaec86b2d41855d204885adf
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Chris Sherlock <chris.sherlock79 at gmail.com>



More information about the LibreOffice mailing list