diff options
author | Boris Dušek <me@dusek.me> | 2013-08-11 15:02:04 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-12 07:57:08 +0000 |
commit | fb6edeb20de56359be3d45316a2d665ad8d424a2 (patch) | |
tree | 27e5fb013aafbcf48fc2cca3d24ab78a09cdf8d0 /vcl/inc/aqua | |
parent | 7c7ccd7ca60b13d4666a16045ef852d6cb3a5185 (diff) |
Refactoring: remove 3 unneeded ivars
The default font size, font name and font traits were stored as ivars
of AquaA11yWrapper, but they are in fact only needed as temporary state
for the createAttributedStringForElement:inOrigRange: method of
AquaA11yTextAttributesWrapper. So remove these 3 ivars and instead
introduce a class that holds these 3 properties and make
createAttributedStringForElement:inOrigRange: use instance of this
class to hold the needed state instead.
I checked that the default font size, font name and font traits ivars
are really only used in AquaA11yTextAttributesWrapper at that one place.
Change-Id: Id2e45977c394db116f3fb0636136300c23e71f25
Reviewed-on: https://gerrit.libreoffice.org/5346
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'vcl/inc/aqua')
-rw-r--r-- | vcl/inc/aqua/aqua11ywrapper.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/inc/aqua/aqua11ywrapper.h b/vcl/inc/aqua/aqua11ywrapper.h index 185536adbb25..83b5a778c50d 100644 --- a/vcl/inc/aqua/aqua11ywrapper.h +++ b/vcl/inc/aqua/aqua11ywrapper.h @@ -52,9 +52,6 @@ struct ReferenceWrapper @interface AquaA11yWrapper : NSView { ReferenceWrapper * mpReferenceWrapper; - NSString * mpDefaultFontname; - float mDefaultFontsize; - int mDefaultFonttraits; BOOL mActsAsRadioGroup; BOOL mIsTableCell; } @@ -91,12 +88,6 @@ struct ReferenceWrapper -(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; --(void)setDefaultFontname:(NSString *)fontname; --(NSString *)defaultFontname; --(void)setDefaultFontsize:(float)fontsize; --(float)defaultFontsize; --(void)setDefaultFonttraits:(int)fonttraits; --(int)defaultFonttraits; +(void)setPopupMenuOpen:(BOOL)popupMenuOpen; -(::com::sun::star::accessibility::XAccessibleAction *)accessibleAction; -(::com::sun::star::accessibility::XAccessibleContext *)accessibleContext; |