Kaydet (Commit) 96cd47d4 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i123795# add a windowForParent() method for AquaA11yWrapper

for getting the parent window of an A11y enabled NSView. The method
viewElementForParent() was abused for that purpose, but it was mis-named
and mis-typed. The new method cleans this up and the now unused
viewElementForParent() method can be retired.
üst a845d713
...@@ -380,8 +380,8 @@ static BOOL isPopupMenuOpen = NO; ...@@ -380,8 +380,8 @@ static BOOL isPopupMenuOpen = NO;
[ aWrapper autorelease ]; [ aWrapper autorelease ];
} }
// get associated NSWindow // get associated NSWindow
NSView * theView = [ aWrapper viewElementForParent ]; NSWindow* theWindow = [ aWrapper windowForParent ];
return theView; return theWindow;
} }
-(id)topLevelUIElementAttribute { -(id)topLevelUIElementAttribute {
...@@ -1101,8 +1101,8 @@ Reference < XAccessibleContext > hitTestRunner ( com::sun::star::awt::Point poin ...@@ -1101,8 +1101,8 @@ Reference < XAccessibleContext > hitTestRunner ( com::sun::star::awt::Point poin
return mpReferenceWrapper -> rAccessibleMultiLineText.get(); return mpReferenceWrapper -> rAccessibleMultiLineText.get();
} }
-(NSView *)viewElementForParent { -(NSWindow*)windowForParent {
return self; return [self window];
} }
// These four are for AXTextAreas only. They are needed, because bold and italic // These four are for AXTextAreas only. They are needed, because bold and italic
......
...@@ -1716,9 +1716,9 @@ private: ...@@ -1716,9 +1716,9 @@ private:
return [ super accessibleContext ]; return [ super accessibleContext ];
} }
-(NSView*)viewElementForParent -(NSWindow*)windowForParent
{ {
return mpFrame->getNSView(); return mpFrame->getNSWindow();
} }
-(void)registerMouseEventListener: (id)theListener -(void)registerMouseEventListener: (id)theListener
......
...@@ -90,7 +90,7 @@ struct ReferenceWrapper ...@@ -90,7 +90,7 @@ struct ReferenceWrapper
// Wrapper-specific // Wrapper-specific
-(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup; -(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup;
-(BOOL)actsAsRadioGroup; -(BOOL)actsAsRadioGroup;
-(NSView *)viewElementForParent; -(NSWindow*)windowForParent;
-(id)initWithAccessibleContext: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) anAccessibleContext; -(id)initWithAccessibleContext: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) anAccessibleContext;
-(void) setDefaults: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) rxAccessibleContext; -(void) setDefaults: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) rxAccessibleContext;
-(void) dealloc; -(void) dealloc;
......
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