summaryrefslogtreecommitdiff
path: root/vcl/osx/a11ytextattributeswrapper.mm
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-18 10:11:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-18 09:03:16 +0000
commit5a4d508bd6711def27c7738f7ac68c2da478e48c (patch)
treec688427afbce033c04009d71c4b2c256ec784da2 /vcl/osx/a11ytextattributeswrapper.mm
parentd30a44aff1fb049a71e4eb2612be65a735fbe918 (diff)
com::sun::star->css in vcl/
Change-Id: Ifad76177673cf93746ba221838be80ff76fed228 Reviewed-on: https://gerrit.libreoffice.org/20032 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/osx/a11ytextattributeswrapper.mm')
-rw-r--r--vcl/osx/a11ytextattributeswrapper.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm
index 3ac368ea17c8..546c3122bc0b 100644
--- a/vcl/osx/a11ytextattributeswrapper.mm
+++ b/vcl/osx/a11ytextattributeswrapper.mm
@@ -273,10 +273,10 @@ using namespace ::com::sun::star::uno;
property.Value >>= alignment;
NSNumber *textAlignment = nil;
switch(alignment) {
- case ::com::sun::star::style::ParagraphAdjust_RIGHT : textAlignment = [NSNumber numberWithInteger:NSRightTextAlignment] ; break;
- case ::com::sun::star::style::ParagraphAdjust_CENTER: textAlignment = [NSNumber numberWithInteger:NSCenterTextAlignment] ; break;
- case ::com::sun::star::style::ParagraphAdjust_BLOCK : textAlignment = [NSNumber numberWithInteger:NSJustifiedTextAlignment]; break;
- case ::com::sun::star::style::ParagraphAdjust_LEFT :
+ case css::style::ParagraphAdjust_RIGHT : textAlignment = [NSNumber numberWithInteger:NSRightTextAlignment] ; break;
+ case css::style::ParagraphAdjust_CENTER: textAlignment = [NSNumber numberWithInteger:NSCenterTextAlignment] ; break;
+ case css::style::ParagraphAdjust_BLOCK : textAlignment = [NSNumber numberWithInteger:NSJustifiedTextAlignment]; break;
+ case css::style::ParagraphAdjust_LEFT :
default : textAlignment = [NSNumber numberWithInteger:NSLeftTextAlignment] ; break;
}
NSDictionary *paragraphStyle = [NSDictionary dictionaryWithObjectsAndKeys:textAlignment, @"AXTextAlignment", textAlignment, @"AXVisualTextAlignment", nil];
@@ -303,7 +303,7 @@ using namespace ::com::sun::star::uno;
if (markupRange.length > 0) {
markupRange.location -= range.location;
switch(type) {
- case ::com::sun::star::text::TextMarkupType::SPELLCHECK: {
+ case css::text::TextMarkupType::SPELLCHECK: {
[string addAttribute:NSAccessibilityMisspelledTextAttribute value:[NSNumber numberWithBool:YES] range:markupRange];
[string addAttribute:@"AXMarkedMisspelled" value:[NSNumber numberWithBool:YES] range:markupRange];
break;
@@ -314,7 +314,7 @@ using namespace ::com::sun::star::uno;
}
+(void)addMarkup:(XAccessibleTextMarkup*)markup toString:(NSMutableAttributedString*)string inRange:(NSRange)range {
- [AquaA11yTextAttributesWrapper addMarkup:markup withType:(::com::sun::star::text::TextMarkupType::SPELLCHECK) toString:string inRange:range];
+ [AquaA11yTextAttributesWrapper addMarkup:markup withType:(css::text::TextMarkupType::SPELLCHECK) toString:string inRange:range];
}
+(NSMutableAttributedString *)createAttributedStringForElement:(AquaA11yWrapper *)wrapper inOrigRange:(id)origRange {