Is there a way to "go back to the last slide visited" in Impress?

In Impress you can select from a list of available Interactions to make a nonlinear, branching slide presentation. I see Prior, Next, Last, First, and so forth, but I am trying to make a multiple choice test and would like to go back to the last slide visited (the question slide). The “Prior” selection does not mean “last slide visited”. Is there a way to do this?

@rjwse, You’re on a roll with these useful questions! :slight_smile: Apologies we haven’t found answers for you yet. Please let us know if you find answers yourself, or we’ll try to poke the appropriate people to find out (I’d give you karma points, but I’m all out for today)

I think, the assign page as ctrl + 0~9 like in RTS game is very useful in such situation as well. up to 10 special pages or more. Also with “back” function like in web browser, make it alt+left(arrow) for me please :slight_smile:

fdo#61645 hope somebody will take on the easy hack :

@jiero writes:

I think, the assign page as ctrl + 0~9 like in RTS game is very useful in such situation as well. up to 10 special pages or more. Also with “back” function like in web browser, make it alt+left(arrow) for me please :slight_smile:

Please file an enhancement bug and provide as much information about this new feature as possible. Don’t forget to mark your bug as an ‘enhancement’. The QA team will be happy to help you triage your feature request in the bugtracker.

Please post a link to any bugs you file in a comment below using the format “fdo#123456”.

Thanks!

As posted by jiero above, filed as fdo#61645

@jiero - thanks for the enhancement request!!!

You can use this macro

Then create an element, give it an “interaction”, choose “Run macro” and then choice “GoToLastSlideViewed”

The macro is this one, is based on the one I found on http://www.oooforum.org/forum/viewtopic.phtml?t=98994

Function GetPresentationController 
  GetPresentationController = ThisComponent.getPresentation().getController() 
End Function 


Sub GoToSlideByIndex(n As Long) 
  GetPresentationController.gotoSlideIndex(n) 
End Sub 


Sub GoToNextSlide 
  GetPresentationController.gotoNextSlide() 
End Sub 

Sub GoToLastSlideViewed 

  mytools_SlideShowPageNumber_A = mytools_SlideShowPageNumber_B
  mytools_SlideShowPageNumber_B = mytools_SlideShowPageNumber_C
  mytools_SlideShowPageNumber_C = mytools_SlideShowPageNumber_D
  mytools_SlideShowPageNumber_D = mytools_SlideShowPageNumber_E
  
    Print " ABCDE= " & mytools_SlideShowPageNumber_A & " " & mytools_SlideShowPageNumber_B & " " & mytools_SlideShowPageNumber_C & " " & mytools_SlideShowPageNumber_D & " " & mytools_SlideShowPageNumber_E

  GoToSlideByIndex(mytools_SlideShowPageNumber_A) 
End Sub 


Function GetCurrentSlideIndex As Long 
  GetCurrentSlideIndex = GetPresentationController.getCurrentSlideIndex() 
End Function 


Sub SlideShow_paused() 
End Sub 
Sub SlideShow_resumed() 
End Sub 
Sub SlideShow_slideTransitionStarted() 
  n = GetCurrentSlideIndex() 

  If n <> mytools_SlideShowPageNumber_A Then

	  mytools_SlideShowPageNumber_E = mytools_SlideShowPageNumber_D
	  mytools_SlideShowPageNumber_D = mytools_SlideShowPageNumber_C
	  mytools_SlideShowPageNumber_C = mytools_SlideShowPageNumber_B
	  mytools_SlideShowPageNumber_B = mytools_SlideShowPageNumber_A
	  mytools_SlideShowPageNumber_A = n
	
	  'Print "n = " & n & " ABCDE= " & mytools_SlideShowPageNumber_A & " " & mytools_SlideShowPageNumber_B & " " & mytools_SlideShowPageNumber_C & " " & mytools_SlideShowPageNumber_D & " " & mytools_SlideShowPageNumber_E
  
  End if


End Sub 
Sub SlideShow_slideTransitionEnded() 
End Sub 
Sub SlideShow_slideAnimationsEnded() 
End Sub 
Sub SlideShow_slideEnded() 
'  mytools_SlideShowPageNumber_A = 0 
'  mytools_SlideShowPageNumber_B = 0 
'  mytools_SlideShowPageNumber_C = 0 
'  mytools_SlideShowPageNumber_D = 0 
'  mytools_SlideShowPageNumber_E = 0 
End Sub 
Sub SlideShow_hyperLinkClicked(hyperLink) 
End Sub 
Sub SlideShow_beginEvent(node) 
End Sub 
Sub SlideShow_endEvent(node) 
End Sub 
Sub SlideShow_repeat(node, repeat) 
End Sub 
Sub SlideShow_disposing(ev) 
End Sub