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;
[ aWrapper autorelease ];
}
// get associated NSWindow
NSView * theView = [ aWrapper viewElementForParent ];
return theView;
NSWindow* theWindow = [ aWrapper windowForParent ];
return theWindow;
}
-(id)topLevelUIElementAttribute {
......@@ -1101,8 +1101,8 @@ Reference < XAccessibleContext > hitTestRunner ( com::sun::star::awt::Point poin
return mpReferenceWrapper -> rAccessibleMultiLineText.get();
}
-(NSView *)viewElementForParent {
return self;
-(NSWindow*)windowForParent {
return [self window];
}
// These four are for AXTextAreas only. They are needed, because bold and italic
......
......@@ -1716,9 +1716,9 @@ private:
return [ super accessibleContext ];
}
-(NSView*)viewElementForParent
{
return mpFrame->getNSView();
-(NSWindow*)windowForParent
{
return mpFrame->getNSWindow();
}
-(void)registerMouseEventListener: (id)theListener
......
......@@ -90,7 +90,7 @@ struct ReferenceWrapper
// Wrapper-specific
-(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup;
-(BOOL)actsAsRadioGroup;
-(NSView *)viewElementForParent;
-(NSWindow*)windowForParent;
-(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) 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