transfrm.cxx (caceb8e7) | transfrm.cxx (c2b18395) |
---|---|
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 --- 828 unchanged lines hidden (view full) --- 837 // this should happen via SID_ATTR_TRANSFORM_AUTOSIZE 838 if(1 == rMarkList.GetMarkCount()) 839 { 840 const SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); 841 const SdrObjKind eKind((SdrObjKind)pObj->GetObjIdentifier()); 842 843 if((pObj->GetObjInventor() == SdrInventor) && 844 (OBJ_TEXT == eKind || OBJ_TITLETEXT == eKind || OBJ_OUTLINETEXT == eKind) && | 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 --- 828 unchanged lines hidden (view full) --- 837 // this should happen via SID_ATTR_TRANSFORM_AUTOSIZE 838 if(1 == rMarkList.GetMarkCount()) 839 { 840 const SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); 841 const SdrObjKind eKind((SdrObjKind)pObj->GetObjIdentifier()); 842 843 if((pObj->GetObjInventor() == SdrInventor) && 844 (OBJ_TEXT == eKind || OBJ_TITLETEXT == eKind || OBJ_OUTLINETEXT == eKind) && |
845 // #121917# The original ((SdrTextObj*)pObj)->HasText() will fail badly with SdrVirtObjs from Writer 846 0 != dynamic_cast< const SdrTextObj* >(pObj) && 847 static_cast< const SdrTextObj* >(pObj)->HasText()) | 845 pObj->HasText()) |
848 { 849 mbAdjustDisabled = false; 850 maFlAdjust.Enable(); 851 maTsbAutoGrowWidth.Enable(); 852 maTsbAutoGrowHeight.Enable(); 853 maTsbAutoGrowWidth.SetClickHdl( LINK( this, SvxPositionSizeTabPage, ClickSizeProtectHdl ) ); 854 maTsbAutoGrowHeight.SetClickHdl( LINK( this, SvxPositionSizeTabPage, ClickSizeProtectHdl ) ); 855 --- 851 unchanged lines hidden --- | 846 { 847 mbAdjustDisabled = false; 848 maFlAdjust.Enable(); 849 maTsbAutoGrowWidth.Enable(); 850 maTsbAutoGrowHeight.Enable(); 851 maTsbAutoGrowWidth.SetClickHdl( LINK( this, SvxPositionSizeTabPage, ClickSizeProtectHdl ) ); 852 maTsbAutoGrowHeight.SetClickHdl( LINK( this, SvxPositionSizeTabPage, ClickSizeProtectHdl ) ); 853 --- 851 unchanged lines hidden --- |