diff options
| -rw-r--r-- | patches/dev300/writer-navigation-buttons.diff | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/patches/dev300/writer-navigation-buttons.diff b/patches/dev300/writer-navigation-buttons.diff index b25325ffc..c39bbfe01 100644 --- a/patches/dev300/writer-navigation-buttons.diff +++ b/patches/dev300/writer-navigation-buttons.diff @@ -583,14 +583,6 @@ index 14b26c0..3adf7dd 100644 class Window; class OutputDevice; -@@ -84,6 +85,7 @@ namespace nsSelectionType - const SelectionType SEL_EXTRUDED_CUSTOMSHAPE = 0x008000; // extruded custom shape - const SelectionType SEL_FONTWORK = 0x010000; // fontwork - const SelectionType SEL_POSTIT = 0x020000; //annotation -+ const SelectionType SEL_NAV = 0x040000; //navigation buttons - } - - @@ -474,6 +476,21 @@ typedef BOOL (SwWrtShell:: *FNSimpleMove)(); String GetSelDescr() const; @@ -874,16 +866,13 @@ index 0e3d55e..dabdefa 100644 #include <globdoc.hxx> #include <scroll.hxx> #include <globdoc.hxx> -@@ -335,6 +336,13 @@ void SwView::SelectShell() +@@ -335,6 +336,10 @@ void SwView::SelectShell() if ( !( nSelectionType & nsSelectionType::SEL_FOC_FRM_CTRL ) ) rDispatcher.Push( *pFormShell ); -+ if ( nSelectionType & nsSelectionType::SEL_NAV ) -+ { -+ eShellMode = SHELL_MODE_NAVIGATION; -+ pShell = new SwNavigationShell( *this ); -+ rDispatcher.Push( *pShell ); -+ } ++ eShellMode = SHELL_MODE_NAVIGATION; ++ pShell = new SwNavigationShell( *this ); ++ rDispatcher.Push( *pShell ); + if ( nSelectionType & nsSelectionType::SEL_OLE ) { @@ -1421,15 +1410,6 @@ index 9f0b753..465f178 100644 } } /*------------------------------------------------------------------------ -@@ -1540,6 +1542,8 @@ SelectionType SwWrtShell::GetSelectionType() const - return nsSelectionType::SEL_FRM; - } - -+ nCnt |= nsSelectionType::SEL_NAV; -+ - if ( IsCrsrInTbl() ) - nCnt |= nsSelectionType::SEL_TBL; - @@ -1628,7 +1632,14 @@ SwFrmFmt *SwWrtShell::GetTblStyle(const String &rFmtName) return 0; } |
