Index: src/orca/scripts/StarOffice.py
===================================================================
--- src/orca/scripts/StarOffice.py	(revision 3573)
+++ src/orca/scripts/StarOffice.py	(working copy)
@@ -2261,6 +2261,28 @@
         - event: the Event
         """
 
+        # If this is an "object:state-changed:focused" event and we are in 
+        # the Left|Center|Right area in the Headers/Footers dialog, then
+        # update the braille display and speak the current location. 
+        # See bug #515923 for more details.
+        #
+        if event.type.startswith("object:state-changed:focused") and \
+           event.detail1 == 1:
+            rolesList = [pyatspi.ROLE_PARAGRAPH, \
+                         pyatspi.ROLE_PANEL, \
+                         pyatspi.ROLE_PANEL, \
+                         pyatspi.ROLE_PAGE_TAB, \
+                         pyatspi.ROLE_PAGE_TAB_LIST, \
+                         pyatspi.ROLE_OPTION_PANE, \
+                         pyatspi.ROLE_DIALOG, \
+                         pyatspi.ROLE_APPLICATION]
+            if self.isDesiredFocusedItem(event.source, rolesList):
+                self.updateBraille(event.source)
+                speech.speakUtterances(self.speechGenerator.getSpeech( \
+                                       event.source.parent, False))
+                speech.speakUtterances(self.speechGenerator.getSpeech( \
+                                       event.source, False))
+
         # Check to see if we are in the Presentation startup wizard. If so,
         # then speak the object that currently has focus.
         #
