ww8atr.cxx (dec99bbd) | ww8atr.cxx (782a276c) |
---|---|
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 --- 1666 unchanged lines hidden (view full) --- 1675 m_rWW8Export.InsUInt16( 0x0000); 1676 } 1677} 1678 1679void WW8AttributeOutput::TextINetFormat( const SwFmtINetFmt& rINet ) 1680{ 1681 if ( rINet.GetValue().Len() ) 1682 { | 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 --- 1666 unchanged lines hidden (view full) --- 1675 m_rWW8Export.InsUInt16( 0x0000); 1676 } 1677} 1678 1679void WW8AttributeOutput::TextINetFormat( const SwFmtINetFmt& rINet ) 1680{ 1681 if ( rINet.GetValue().Len() ) 1682 { |
1683 sal_uInt16 nId; | 1683 const sal_uInt16 nId = rINet.GetINetFmtId(); |
1684 const String& rStr = rINet.GetINetFmt(); | 1684 const String& rStr = rINet.GetINetFmt(); |
1685 if ( rStr.Len() ) 1686 nId = rINet.GetINetFmtId(); 1687 else 1688 nId = RES_POOLCHR_INET_NORMAL; | 1685 if ( rStr.Len() == 0 ) 1686 { 1687 ASSERT( false, "WW8AttributeOutput::TextINetFormat(..) - missing unvisited character format at hyperlink attribute" ); 1688 } |
1689 1690 const SwCharFmt* pFmt = IsPoolUserFmt( nId ) 1691 ? m_rWW8Export.pDoc->FindCharFmtByName( rStr ) 1692 : m_rWW8Export.pDoc->GetCharFmtFromPool( nId ); 1693 1694 if ( m_rWW8Export.bWrtWW8 ) 1695 m_rWW8Export.InsUInt16( NS_sprm::LN_CIstd ); 1696 else --- 3627 unchanged lines hidden --- | 1689 1690 const SwCharFmt* pFmt = IsPoolUserFmt( nId ) 1691 ? m_rWW8Export.pDoc->FindCharFmtByName( rStr ) 1692 : m_rWW8Export.pDoc->GetCharFmtFromPool( nId ); 1693 1694 if ( m_rWW8Export.bWrtWW8 ) 1695 m_rWW8Export.InsUInt16( NS_sprm::LN_CIstd ); 1696 else --- 3627 unchanged lines hidden --- |