feshview.cxx (79aad27f) | feshview.cxx (0c259c9f) |
---|---|
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 --- 2472 unchanged lines hidden (view full) --- 2481 if ( pFly->Lower() && pFly->Lower()->IsNoTxtFrm() ) 2482 { 2483 SwOLENode *pNd = ((SwCntntFrm*)pFly->Lower())->GetNode()->GetOLENode(); 2484 uno::Reference < embed::XEmbeddedObject > xObj( pNd ? pNd->GetOLEObj().GetOleRef() : 0 ); 2485 if ( xObj.is() ) 2486 { 2487 // TODO/LATER: use correct aspect 2488 const bool bNeverResize = (embed::EmbedMisc::EMBED_NEVERRESIZE & xObj->getStatus( embed::Aspects::MSOLE_CONTENT )); | 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 --- 2472 unchanged lines hidden (view full) --- 2481 if ( pFly->Lower() && pFly->Lower()->IsNoTxtFrm() ) 2482 { 2483 SwOLENode *pNd = ((SwCntntFrm*)pFly->Lower())->GetNode()->GetOLENode(); 2484 uno::Reference < embed::XEmbeddedObject > xObj( pNd ? pNd->GetOLEObj().GetOleRef() : 0 ); 2485 if ( xObj.is() ) 2486 { 2487 // TODO/LATER: use correct aspect 2488 const bool bNeverResize = (embed::EmbedMisc::EMBED_NEVERRESIZE & xObj->getStatus( embed::Aspects::MSOLE_CONTENT )); |
2489 if ( (FLYPROTECT_CONTENT & eType) && bNeverResize ) 2490 { 2491 nChk |= FLYPROTECT_SIZE; 2492 nChk |= FLYPROTECT_FIXED; | 2489 if ( ( (FLYPROTECT_CONTENT & eType) || (FLYPROTECT_SIZE & eType) ) && bNeverResize ) 2490 { 2491 nChk |= FLYPROTECT_SIZE; 2492 nChk |= FLYPROTECT_FIXED; |
2493 } 2494 2495 // set FLYPROTECT_POS if it is a Math object anchored 'as char' and baseline alignment is activated 2496 const bool bProtectMathPos = SotExchange::IsMath( xObj->getClassID() ) 2497 && FLY_AS_CHAR == pFly->GetFmt()->GetAnchor().GetAnchorId() 2498 && pDoc->get( IDocumentSettingAccess::MATH_BASELINE_ALIGNMENT ); 2499 if ((FLYPROTECT_POS & eType) && bProtectMathPos) 2500 nChk |= FLYPROTECT_POS; --- 632 unchanged lines hidden --- | 2493 } 2494 2495 // set FLYPROTECT_POS if it is a Math object anchored 'as char' and baseline alignment is activated 2496 const bool bProtectMathPos = SotExchange::IsMath( xObj->getClassID() ) 2497 && FLY_AS_CHAR == pFly->GetFmt()->GetAnchor().GetAnchorId() 2498 && pDoc->get( IDocumentSettingAccess::MATH_BASELINE_ALIGNMENT ); 2499 if ((FLYPROTECT_POS & eType) && bProtectMathPos) 2500 nChk |= FLYPROTECT_POS; --- 632 unchanged lines hidden --- |