rtfattributeoutput.cxx (cdf0e10c) | rtfattributeoutput.cxx (51cdef2a) |
---|---|
1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * Copyright 2010 Miklos Vajna. 7 * 8 * OpenOffice.org - a multi-platform office productivity suite --- 2636 unchanged lines hidden (view full) --- 2645 { 2646 2647 ASSERT( m_rExport.GetCurItemSet(), "Impossible" ); 2648 if ( !m_rExport.GetCurItemSet() ) 2649 return; 2650 2651 HdFtDistanceGlue aDistances( *m_rExport.GetCurItemSet() ); 2652 | 1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * Copyright 2010 Miklos Vajna. 7 * 8 * OpenOffice.org - a multi-platform office productivity suite --- 2636 unchanged lines hidden (view full) --- 2645 { 2646 2647 ASSERT( m_rExport.GetCurItemSet(), "Impossible" ); 2648 if ( !m_rExport.GetCurItemSet() ) 2649 return; 2650 2651 HdFtDistanceGlue aDistances( *m_rExport.GetCurItemSet() ); 2652 |
2653 if( aDistances.dyaTop ) 2654 { 2655 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGTSXN); 2656 m_aSectionBreaks.append((sal_Int32)aDistances.dyaTop); 2657 } |
|
2653 if ( aDistances.HasHeader() ) 2654 { | 2658 if ( aDistances.HasHeader() ) 2659 { |
2655 if( aDistances.dyaTop ) 2656 { 2657 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGTSXN); 2658 m_aSectionBreaks.append((sal_Int32)aDistances.dyaTop); 2659 } | |
2660 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_HEADERY); 2661 m_aSectionBreaks.append((sal_Int32)aDistances.dyaHdrTop); 2662 } 2663 | 2660 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_HEADERY); 2661 m_aSectionBreaks.append((sal_Int32)aDistances.dyaHdrTop); 2662 } 2663 |
2664 if( aDistances.dyaBottom ) 2665 { 2666 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGBSXN); 2667 m_aSectionBreaks.append((sal_Int32)aDistances.dyaBottom); 2668 } |
|
2664 if( aDistances.HasFooter() ) 2665 { | 2669 if( aDistances.HasFooter() ) 2670 { |
2666 if( aDistances.dyaBottom ) 2667 { 2668 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGBSXN); 2669 m_aSectionBreaks.append((sal_Int32)aDistances.dyaBottom); 2670 } | |
2671 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_FOOTERY); 2672 m_aSectionBreaks.append((sal_Int32)aDistances.dyaHdrBottom); 2673 } 2674 if (!m_bBufferSectionBreaks) 2675 m_rExport.Strm() << m_aSectionBreaks.makeStringAndClear(); 2676 } 2677 else 2678 { --- 769 unchanged lines hidden --- | 2671 m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_FOOTERY); 2672 m_aSectionBreaks.append((sal_Int32)aDistances.dyaHdrBottom); 2673 } 2674 if (!m_bBufferSectionBreaks) 2675 m_rExport.Strm() << m_aSectionBreaks.makeStringAndClear(); 2676 } 2677 else 2678 { --- 769 unchanged lines hidden --- |