aquaprintaccessoryview.mm (bde8a4bd) | aquaprintaccessoryview.mm (01367266) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 629 unchanged lines hidden (view full) --- 638 } 639 aCtrlRect.origin.x = nX; 640 [rRightColumn[i].pControl setFrame: aCtrlRect]; 641 } 642 } 643 644 NSArray* pSubViews = [pNSView subviews]; 645 unsigned int nViews = [pSubViews count]; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 629 unchanged lines hidden (view full) --- 638 } 639 aCtrlRect.origin.x = nX; 640 [rRightColumn[i].pControl setFrame: aCtrlRect]; 641 } 642 } 643 644 NSArray* pSubViews = [pNSView subviews]; 645 unsigned int nViews = [pSubViews count]; |
646 NSRect aUnion = { { 0, 0 }, { 0, 0 } }; | 646 NSRect aUnion = NSZeroRect; |
647 648 // get the combined frame of all subviews 649 for( unsigned int n = 0; n < nViews; n++ ) 650 { 651 aUnion = NSUnionRect( aUnion, [[pSubViews objectAtIndex: n] frame] ); 652 } 653 654 // move everything so it will fit --- 52 unchanged lines hidden (view full) --- 707 } 708 } 709 } 710} 711 712static NSControl* createLabel( const rtl::OUString& i_rText ) 713{ 714 NSString* pText = CreateNSString( i_rText ); | 647 648 // get the combined frame of all subviews 649 for( unsigned int n = 0; n < nViews; n++ ) 650 { 651 aUnion = NSUnionRect( aUnion, [[pSubViews objectAtIndex: n] frame] ); 652 } 653 654 // move everything so it will fit --- 52 unchanged lines hidden (view full) --- 707 } 708 } 709 } 710} 711 712static NSControl* createLabel( const rtl::OUString& i_rText ) 713{ 714 NSString* pText = CreateNSString( i_rText ); |
715 NSRect aTextRect = { { 0, 0 }, {20, 15} }; | 715 NSRect aTextRect = { NSZeroPoint, {20, 15} }; |
716 NSTextField* pTextView = [[NSTextField alloc] initWithFrame: aTextRect]; 717 [pTextView setFont: [NSFont controlContentFontOfSize: 0]]; 718 [pTextView setEditable: NO]; 719 [pTextView setSelectable: NO]; 720 [pTextView setDrawsBackground: NO]; 721 [pTextView setBordered: NO]; 722 [pTextView setStringValue: pText]; 723 [pTextView sizeToFit]; --- 364 unchanged lines hidden (view full) --- 1088{ 1089 const Sequence< PropertyValue >& rOptions( pController->getUIOptions() ); 1090 if( rOptions.getLength() == 0 ) 1091 return nil; 1092 1093 NSView* pCurParent = 0; 1094 long nCurY = 0; 1095 long nCurX = 0; | 716 NSTextField* pTextView = [[NSTextField alloc] initWithFrame: aTextRect]; 717 [pTextView setFont: [NSFont controlContentFontOfSize: 0]]; 718 [pTextView setEditable: NO]; 719 [pTextView setSelectable: NO]; 720 [pTextView setDrawsBackground: NO]; 721 [pTextView setBordered: NO]; 722 [pTextView setStringValue: pText]; 723 [pTextView sizeToFit]; --- 364 unchanged lines hidden (view full) --- 1088{ 1089 const Sequence< PropertyValue >& rOptions( pController->getUIOptions() ); 1090 if( rOptions.getLength() == 0 ) 1091 return nil; 1092 1093 NSView* pCurParent = 0; 1094 long nCurY = 0; 1095 long nCurX = 0; |
1096 NSRect aViewFrame = { { 0, 0 }, {600, 400 } }; | 1096 NSRect aViewFrame = { NSZeroPoint, {600, 400 } }; |
1097 NSRect aTabViewFrame = { { 190, 0 }, {410, 400 } }; | 1097 NSRect aTabViewFrame = { { 190, 0 }, {410, 400 } }; |
1098 NSSize aMaxTabSize = { 0, 0 }; | 1098 NSSize aMaxTabSize = NSZeroSize; |
1099 NSView* pAccessoryView = [[NSView alloc] initWithFrame: aViewFrame]; 1100 NSTabView* pTabView = [[NSTabView alloc] initWithFrame: aTabViewFrame]; 1101 [pAccessoryView addSubview: [pTabView autorelease]]; 1102 1103 sal_Bool bIgnoreSubgroup = sal_False; 1104 1105 ControllerProperties* pControllerProperties = new ControllerProperties( pController, pOp, pAccessoryView, pTabView, pState ); 1106 ControlTarget* pCtrlTarget = [[ControlTarget alloc] initWithControllerMap: pControllerProperties]; --- 265 unchanged lines hidden --- | 1099 NSView* pAccessoryView = [[NSView alloc] initWithFrame: aViewFrame]; 1100 NSTabView* pTabView = [[NSTabView alloc] initWithFrame: aTabViewFrame]; 1101 [pAccessoryView addSubview: [pTabView autorelease]]; 1102 1103 sal_Bool bIgnoreSubgroup = sal_False; 1104 1105 ControllerProperties* pControllerProperties = new ControllerProperties( pController, pOp, pAccessoryView, pTabView, pState ); 1106 ControlTarget* pCtrlTarget = [[ControlTarget alloc] initWithControllerMap: pControllerProperties]; --- 265 unchanged lines hidden --- |