Kaydet (Commit) e69c4f97 authored tarafından Bryan Quigley's avatar Bryan Quigley Kaydeden (comit) Samuel Mehrbrodt

Remove pointer (pen) from Navigator window

It doesn't appear to have worked since LibreOffice 5.0,
and the best use case (to use it during a live slideshow)
has been removed per bug 96414.

Change-Id: I25dbaa0b9ab86a2a7324b9c496473bf29a5f6ac2
Reviewed-on: https://gerrit.libreoffice.org/22087Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 1fc4cb57
...@@ -325,7 +325,6 @@ ...@@ -325,7 +325,6 @@
#define SID_NAVIGATOR_STATE (SID_SD_START+288) #define SID_NAVIGATOR_STATE (SID_SD_START+288)
#define SID_NAVIGATOR_INIT (SID_SD_START+289) #define SID_NAVIGATOR_INIT (SID_SD_START+289)
// FREE // FREE
#define SID_NAVIGATOR_PEN (SID_SD_START+291)
#define SID_NAVIGATOR_PAGE (SID_SD_START+292) #define SID_NAVIGATOR_PAGE (SID_SD_START+292)
#define SID_NAVIGATOR_OBJECT (SID_SD_START+293) #define SID_NAVIGATOR_OBJECT (SID_SD_START+293)
#define SID_ANIMATOR_INIT (SID_SD_START+294) #define SID_ANIMATOR_INIT (SID_SD_START+294)
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#define HID_SD_NAVIGATOR "SD_HID_SD_NAVIGATOR" #define HID_SD_NAVIGATOR "SD_HID_SD_NAVIGATOR"
#define HID_SD_NAVIGATOR_TBX "SD_HID_SD_NAVIGATOR_TBX" #define HID_SD_NAVIGATOR_TBX "SD_HID_SD_NAVIGATOR_TBX"
#define HID_SD_NAVIGATOR_LB "SD_HID_SD_NAVIGATOR_LB" #define HID_SD_NAVIGATOR_LB "SD_HID_SD_NAVIGATOR_LB"
#define HID_SD_NAVIGATOR_TBI_PEN "SD_HID_SD_NAVIGATOR_TBI_PEN"
#define HID_SD_NAVIGATOR_TBI_FIRST "SD_HID_SD_NAVIGATOR_TBI_FIRST" #define HID_SD_NAVIGATOR_TBI_FIRST "SD_HID_SD_NAVIGATOR_TBI_FIRST"
#define HID_SD_NAVIGATOR_TBI_PREV "SD_HID_SD_NAVIGATOR_TBI_PREV" #define HID_SD_NAVIGATOR_TBI_PREV "SD_HID_SD_NAVIGATOR_TBI_PREV"
#define HID_SD_NAVIGATOR_TBI_NEXT "SD_HID_SD_NAVIGATOR_TBI_NEXT" #define HID_SD_NAVIGATOR_TBI_NEXT "SD_HID_SD_NAVIGATOR_TBI_NEXT"
......
...@@ -106,11 +106,6 @@ interface ImpressEditView : DrawView ...@@ -106,11 +106,6 @@ interface ImpressEditView : DrawView
ExecMethod = ExecAnimationWin ; ExecMethod = ExecAnimationWin ;
StateMethod = GetAnimationWinState ; StateMethod = GetAnimationWinState ;
] ]
SID_NAVIGATOR_PEN // ole : no, status : ?
[
ExecMethod = ExecNavigatorWin ;
StateMethod = GetNavigatorWinState ;
]
SID_PRESENTATION_DLG SID_PRESENTATION_DLG
[ [
ExecMethod = FuTemporary ; ExecMethod = FuTemporary ;
......
...@@ -3418,26 +3418,6 @@ SfxStringItem NavigatorPageName SID_NAVIGATOR_PAGENAME ...@@ -3418,26 +3418,6 @@ SfxStringItem NavigatorPageName SID_NAVIGATOR_PAGENAME
GroupId = GID_EDIT; GroupId = GID_EDIT;
] ]
SfxBoolItem NavigatorPen SID_NAVIGATOR_PEN
[
/* flags: */
AutoUpdate = FALSE,
FastCall = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Readonly = FALSE,
/* config: */
AccelConfig = FALSE,
MenuConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = GID_EDIT;
]
SfxUInt32Item NavigatorState SID_NAVIGATOR_STATE SfxUInt32Item NavigatorState SID_NAVIGATOR_STATE
......
...@@ -266,49 +266,22 @@ sd::DrawDocShell* SdNavigatorWin::GetDrawDocShell( const SdDrawDocument* pDoc ) ...@@ -266,49 +266,22 @@ sd::DrawDocShell* SdNavigatorWin::GetDrawDocShell( const SdDrawDocument* pDoc )
IMPL_LINK_NOARG_TYPED(SdNavigatorWin, SelectToolboxHdl, ToolBox *, void) IMPL_LINK_NOARG_TYPED(SdNavigatorWin, SelectToolboxHdl, ToolBox *, void)
{ {
sal_uInt16 nId = maToolbox->GetCurItemId(); sal_uInt16 nId = maToolbox->GetCurItemId();
sal_uInt16 nSId = 0;
PageJump ePage = PAGE_NONE; PageJump ePage = PAGE_NONE;
switch( nId ) if( nId == TBI_FIRST )
{ ePage = PAGE_FIRST;
case TBI_PEN: else if( nId == TBI_PREVIOUS )
{ ePage = PAGE_PREVIOUS;
if( nId == TBI_PEN ) else if( nId == TBI_NEXT )
{ ePage = PAGE_NEXT;
nSId = SID_NAVIGATOR_PEN; else if( nId == TBI_LAST )
} ePage = PAGE_LAST;
if( nSId > 0 ) if( ePage != PAGE_NONE )
{ {
SfxBoolItem aItem( nSId, true ); SfxUInt16Item aItem( SID_NAVIGATOR_PAGE, (sal_uInt16)ePage );
mpBindings->GetDispatcher()->Execute( mpBindings->GetDispatcher()->Execute(
nSId, SfxCallMode::SLOT |SfxCallMode::RECORD, &aItem, 0L ); SID_NAVIGATOR_PAGE, SfxCallMode::SLOT | SfxCallMode::RECORD, &aItem, 0L );
}
}
break;
case TBI_FIRST:
case TBI_PREVIOUS:
case TBI_NEXT:
case TBI_LAST:
{
if( nId == TBI_FIRST )
ePage = PAGE_FIRST;
else if( nId == TBI_PREVIOUS )
ePage = PAGE_PREVIOUS;
else if( nId == TBI_NEXT )
ePage = PAGE_NEXT;
else if( nId == TBI_LAST )
ePage = PAGE_LAST;
if( ePage != PAGE_NONE )
{
SfxUInt16Item aItem( SID_NAVIGATOR_PAGE, (sal_uInt16)ePage );
mpBindings->GetDispatcher()->Execute(
SID_NAVIGATOR_PAGE, SfxCallMode::SLOT | SfxCallMode::RECORD, &aItem, 0L );
}
}
break;
} }
} }
...@@ -871,17 +844,6 @@ void SdNavigatorControllerItem::StateChanged( sal_uInt16 nSId, ...@@ -871,17 +844,6 @@ void SdNavigatorControllerItem::StateChanged( sal_uInt16 nSId,
const SfxUInt32Item& rStateItem = dynamic_cast<const SfxUInt32Item&>(*pItem); const SfxUInt32Item& rStateItem = dynamic_cast<const SfxUInt32Item&>(*pItem);
sal_uInt32 nState = rStateItem.GetValue(); sal_uInt32 nState = rStateItem.GetValue();
// pen
if( nState & NAVBTN_PEN_DISABLED &&
pNavigatorWin->maToolbox->IsItemEnabled( TBI_PEN ) )
pNavigatorWin->maToolbox->EnableItem( TBI_PEN, false );
if( nState & NAVBTN_PEN_CHECKED &&
!pNavigatorWin->maToolbox->IsItemChecked( TBI_PEN ) )
pNavigatorWin->maToolbox->CheckItem( TBI_PEN );
if( nState & NAVBTN_PEN_UNCHECKED &&
pNavigatorWin->maToolbox->IsItemChecked( TBI_PEN ) )
pNavigatorWin->maToolbox->CheckItem( TBI_PEN, false );
// only if doc in LB is the active // only if doc in LB is the active
NavDocInfo* pInfo = pNavigatorWin->GetDocInfo(); NavDocInfo* pInfo = pNavigatorWin->GetDocInfo();
if( pInfo && pInfo->IsActive() ) if( pInfo && pInfo->IsActive() )
......
...@@ -46,17 +46,6 @@ Window FLT_NAVIGATOR ...@@ -46,17 +46,6 @@ Window FLT_NAVIGATOR
TabStop = TRUE ; TabStop = TRUE ;
ItemList = ItemList =
{ {
ToolBoxItem
{
AutoCheck = TRUE ;
Identifier = TBI_PEN ;
HelpId = HID_SD_NAVIGATOR_TBI_PEN ;
Text [ en-US ] = "Pointer" ;
};
ToolBoxItem
{
Type = TOOLBOXITEM_SEPARATOR ;
};
ToolBoxItem ToolBoxItem
{ {
Identifier = TBI_FIRST ; Identifier = TBI_FIRST ;
...@@ -115,7 +104,6 @@ Window FLT_NAVIGATOR ...@@ -115,7 +104,6 @@ Window FLT_NAVIGATOR
#define NAVIGATR_IDLIST \ #define NAVIGATR_IDLIST \
IdList = \ IdList = \
{ \ { \
TBI_PEN ; \
TBI_FIRST ; \ TBI_FIRST ; \
TBI_PREVIOUS ; \ TBI_PREVIOUS ; \
TBI_NEXT ; \ TBI_NEXT ; \
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#define FLT_NAVIGATOR 575 #define FLT_NAVIGATOR 575
#define STR_OBJECTS_TREE (FLT_NAVIGATOR+1) #define STR_OBJECTS_TREE (FLT_NAVIGATOR+1)
#define TLB_OBJECTS 1 #define TLB_OBJECTS 1
#define TBI_PEN 2
#define TBI_FIRST 3 #define TBI_FIRST 3
#define TBI_PREVIOUS 4 #define TBI_PREVIOUS 4
#define TBI_NEXT 5 #define TBI_NEXT 5
......
...@@ -29,10 +29,6 @@ ...@@ -29,10 +29,6 @@
#define NAVSTATE_NONE 0x00000000 #define NAVSTATE_NONE 0x00000000
#define NAVBTN_PEN_DISABLED 0x00000020
#define NAVBTN_PEN_CHECKED 0x00000040
#define NAVBTN_PEN_UNCHECKED 0x00000080
#define NAVTLB_UPDATE 0x00000100 #define NAVTLB_UPDATE 0x00000100
#define NAVBTN_FIRST_ENABLED 0x00001000 #define NAVBTN_FIRST_ENABLED 0x00001000
......
...@@ -66,7 +66,6 @@ void DrawViewShell::ExecNavigatorWin( SfxRequest& rReq ) ...@@ -66,7 +66,6 @@ void DrawViewShell::ExecNavigatorWin( SfxRequest& rReq )
} }
break; break;
case SID_NAVIGATOR_PEN:
case SID_NAVIGATOR_PAGE: case SID_NAVIGATOR_PAGE:
case SID_NAVIGATOR_OBJECT: case SID_NAVIGATOR_OBJECT:
{ {
...@@ -160,7 +159,7 @@ void DrawViewShell::GetNavigatorWinState( SfxItemSet& rSet ) ...@@ -160,7 +159,7 @@ void DrawViewShell::GetNavigatorWinState( SfxItemSet& rSet )
bool bEndless = false; bool bEndless = false;
OUString aPageName; OUString aPageName;
nState |= NAVBTN_PEN_DISABLED | NAVTLB_UPDATE; nState |= NAVTLB_UPDATE;
if (mpActualPage != nullptr) if (mpActualPage != nullptr)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment