aquaprintaccessoryview.mm (323de322) | aquaprintaccessoryview.mm (a95ab8f1) |
---|---|
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 --- 468 unchanged lines hidden (view full) --- 477-(id)initWithControllerMap: (ControllerProperties*)pController 478{ 479 if( (self = [super init]) ) 480 { 481 mpController = pController; 482 } 483 return self; 484} | 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 --- 468 unchanged lines hidden (view full) --- 477-(id)initWithControllerMap: (ControllerProperties*)pController 478{ 479 if( (self = [super init]) ) 480 { 481 mpController = pController; 482 } 483 return self; 484} |
485-(void)triggered:(id)pSender; | 485-(void)triggered:(id)pSender |
486{ 487 if( [pSender isMemberOfClass: [NSPopUpButton class]] ) 488 { 489 NSPopUpButton* pBtn = (NSPopUpButton*)pSender; 490 NSMenuItem* pSelected = [pBtn selectedItem]; 491 if( pSelected ) 492 { 493 int nTag = [pSelected tag]; --- 24 unchanged lines hidden (view full) --- 518 mpController->changePropertyWithStringValue( nTag, aValue ); 519 } 520 else 521 { 522 DBG_ERROR( "unsupported class" ); 523 } 524 mpController->updateEnableState(); 525} | 486{ 487 if( [pSender isMemberOfClass: [NSPopUpButton class]] ) 488 { 489 NSPopUpButton* pBtn = (NSPopUpButton*)pSender; 490 NSMenuItem* pSelected = [pBtn selectedItem]; 491 if( pSelected ) 492 { 493 int nTag = [pSelected tag]; --- 24 unchanged lines hidden (view full) --- 518 mpController->changePropertyWithStringValue( nTag, aValue ); 519 } 520 else 521 { 522 DBG_ERROR( "unsupported class" ); 523 } 524 mpController->updateEnableState(); 525} |
526-(void)triggeredNumeric:(id)pSender; | 526-(void)triggeredNumeric:(id)pSender |
527{ 528 if( [pSender isMemberOfClass: [NSTextField class]] ) 529 { 530 NSTextField* pField = (NSTextField*)pSender; 531 int nTag = [pField tag]; 532 sal_Int64 nValue = [pField intValue]; 533 534 NSView* pOther = mpController->getPair( pField ); --- 560 unchanged lines hidden (view full) --- 1095 } 1096 } 1097 1098 // update nCurY 1099 rCurY = aFieldRect.origin.y - 5; 1100} 1101 1102@implementation AquaPrintAccessoryView | 527{ 528 if( [pSender isMemberOfClass: [NSTextField class]] ) 529 { 530 NSTextField* pField = (NSTextField*)pSender; 531 int nTag = [pField tag]; 532 sal_Int64 nValue = [pField intValue]; 533 534 NSView* pOther = mpController->getPair( pField ); --- 560 unchanged lines hidden (view full) --- 1095 } 1096 } 1097 1098 // update nCurY 1099 rCurY = aFieldRect.origin.y - 5; 1100} 1101 1102@implementation AquaPrintAccessoryView |
1103+(NSObject*)setupPrinterPanel: (NSPrintOperation*)pOp withController: (vcl::PrinterController*)pController withState: (PrintAccessoryViewState*)pState; | 1103+(NSObject*)setupPrinterPanel: (NSPrintOperation*)pOp withController: (vcl::PrinterController*)pController withState: (PrintAccessoryViewState*)pState |
1104{ 1105 const Sequence< PropertyValue >& rOptions( pController->getUIOptions() ); 1106 if( rOptions.getLength() == 0 ) 1107 return nil; 1108 1109 NSView* pCurParent = 0; 1110 long nCurY = 0; 1111 long nCurX = 0; --- 276 unchanged lines hidden --- | 1104{ 1105 const Sequence< PropertyValue >& rOptions( pController->getUIOptions() ); 1106 if( rOptions.getLength() == 0 ) 1107 return nil; 1108 1109 NSView* pCurParent = 0; 1110 long nCurY = 0; 1111 long nCurX = 0; --- 276 unchanged lines hidden --- |