drviews3.cxx (1ff378ef) | drviews3.cxx (512ec161) |
---|---|
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 --- 18 unchanged lines hidden (view full) --- 27#include "DrawViewShell.hxx" 28 29#include <sfx2/viewfrm.hxx> 30#include <editeng/eeitem.hxx> 31#include <editeng/tstpitem.hxx> 32#include <editeng/lrspitem.hxx> 33#include <editeng/protitem.hxx> 34#include <editeng/frmdiritem.hxx> | 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 --- 18 unchanged lines hidden (view full) --- 27#include "DrawViewShell.hxx" 28 29#include <sfx2/viewfrm.hxx> 30#include <editeng/eeitem.hxx> 31#include <editeng/tstpitem.hxx> 32#include <editeng/lrspitem.hxx> 33#include <editeng/protitem.hxx> 34#include <editeng/frmdiritem.hxx> |
35#include <editeng/adjitem.hxx> |
|
35#include <svx/ruler.hxx> 36#ifndef _SVX_RULERITEM_HXX 37#include <svx/rulritem.hxx> 38#endif 39#include <svx/zoomitem.hxx> 40#ifndef _SVXIDS_HRC 41#include <svx/svxids.hrc> 42#endif --- 645 unchanged lines hidden (view full) --- 688 aParaLineSP.SetWhich( EE_PARA_SBL ); 689 690 aEditAttr.Put( aParaLineSP ); 691 mpDrawView->SetAttributes( aEditAttr ); 692 693 Invalidate(SID_ATTR_PARA_LINESPACE); 694 } 695 break; | 36#include <svx/ruler.hxx> 37#ifndef _SVX_RULERITEM_HXX 38#include <svx/rulritem.hxx> 39#endif 40#include <svx/zoomitem.hxx> 41#ifndef _SVXIDS_HRC 42#include <svx/svxids.hrc> 43#endif --- 645 unchanged lines hidden (view full) --- 689 aParaLineSP.SetWhich( EE_PARA_SBL ); 690 691 aEditAttr.Put( aParaLineSP ); 692 mpDrawView->SetAttributes( aEditAttr ); 693 694 Invalidate(SID_ATTR_PARA_LINESPACE); 695 } 696 break; |
696 //xuxu for UL | 697 case SID_ATTR_PARA_ADJUST_LEFT: 698 { 699 SvxAdjustItem aItem( SVX_ADJUST_LEFT, EE_PARA_JUST ); 700 SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); 701 702 aEditAttr.Put( aItem ); 703 mpDrawView->SetAttributes( aEditAttr ); 704 705 Invalidate(SID_ATTR_PARA_ADJUST_LEFT); 706 } 707 break; 708 case SID_ATTR_PARA_ADJUST_CENTER: 709 { 710 SvxAdjustItem aItem( SVX_ADJUST_CENTER, EE_PARA_JUST ); 711 SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); 712 713 aEditAttr.Put( aItem ); 714 mpDrawView->SetAttributes( aEditAttr ); 715 716 Invalidate(SID_ATTR_PARA_ADJUST_CENTER); 717 } 718 break; 719 case SID_ATTR_PARA_ADJUST_RIGHT: 720 { 721 SvxAdjustItem aItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ); 722 SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); 723 724 aEditAttr.Put( aItem ); 725 mpDrawView->SetAttributes( aEditAttr ); 726 727 Invalidate(SID_ATTR_PARA_ADJUST_RIGHT); 728 } 729 break; 730 case SID_ATTR_PARA_ADJUST_BLOCK: 731 { 732 SvxAdjustItem aItem( SVX_ADJUST_BLOCK, EE_PARA_JUST ); 733 SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); 734 735 aEditAttr.Put( aItem ); 736 mpDrawView->SetAttributes( aEditAttr ); 737 738 Invalidate(SID_ATTR_PARA_ADJUST_BLOCK); 739 } 740 break; |
697 case SID_ATTR_PARA_ULSPACE: 698 { 699 sal_uInt16 nSlot = SID_ATTR_PARA_ULSPACE; 700 SvxULSpaceItem aULSP = (const SvxULSpaceItem&)pArgs->Get( 701 GetPool().GetWhich(nSlot)); 702 SfxItemSet aEditAttr( GetPool(), EE_PARA_ULSPACE, EE_PARA_ULSPACE ); 703 aULSP.SetWhich( EE_PARA_ULSPACE ); 704 --- 289 unchanged lines hidden --- | 741 case SID_ATTR_PARA_ULSPACE: 742 { 743 sal_uInt16 nSlot = SID_ATTR_PARA_ULSPACE; 744 SvxULSpaceItem aULSP = (const SvxULSpaceItem&)pArgs->Get( 745 GetPool().GetWhich(nSlot)); 746 SfxItemSet aEditAttr( GetPool(), EE_PARA_ULSPACE, EE_PARA_ULSPACE ); 747 aULSP.SetWhich( EE_PARA_ULSPACE ); 748 --- 289 unchanged lines hidden --- |