[Libreoffice-commits] core.git: 2 commits - sw/source
Caolán McNamara
caolanm at redhat.com
Fri Jun 14 01:57:44 PDT 2013
sw/source/filter/ww8/ww8par2.cxx | 2 +-
sw/source/filter/ww8/ww8scan.hxx | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 43de0b244329378adc8406e97df882c527faf9a5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jun 14 09:56:49 2013 +0100
Related: #i119548# document that ms changed the meaning of fWidowControl
Change-Id: I884c3c57dfd1d2e7bfa0675fd0c0184113cdda9c
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 4b9449b..3ff4585 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3727,7 +3727,7 @@ void WW8RStyle::Set1StyleDefaults()
pIo->pAktColl->SetFmtAttr(aAttr);
}
- if( /*pIo->pWDop->fWidowControl &&*/ !bWidowsChanged ) // Widows ?
+ if( !bWidowsChanged ) // Widows ?
{
pIo->pAktColl->SetFmtAttr( SvxWidowsItem( 2, RES_PARATR_WIDOWS ) );
pIo->pAktColl->SetFmtAttr( SvxOrphansItem( 2, RES_PARATR_ORPHANS ) );
diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx
index e52cbc5..5e381e6 100644
--- a/sw/source/filter/ww8/ww8scan.hxx
+++ b/sw/source/filter/ww8/ww8scan.hxx
@@ -1496,7 +1496,12 @@ public:
sal_uInt8 nDataStart;
//-------------------------
sal_uInt16 fFacingPages : 1; // 1 when facing pages should be printed
- sal_uInt16 fWidowControl : 1; // 1 when widow control is in effect. 0 when widow control disabled.
+
+ sal_uInt16 fWidowControl : 1; //a: orig 97 docs say
+ // 1 when widow control is in effect. 0 when widow control disabled.
+ //b: MS-DOC: Word Binary File Format (.doc) Structure Specification 2008 says
+ // B - unused1 (1 bit): Undefined and MUST be ignored.
+
sal_uInt16 fPMHMainDoc : 1; // 1 when doc is a main doc for Print Merge Helper, 0 when not; default=0
sal_uInt16 grfSuppression : 2; // 0 Default line suppression storage; 0= form letter line suppression; 1= no line suppression; default=0
sal_uInt16 fpc : 2; // 1 footnote position code: 0 as endnotes, 1 at bottom of page, 2 immediately beneath text
commit 0e619cb550390e08930ec2ad58bc5419b1965b0b
Author: Lei De Bin <leidb at apache.org>
Date: Fri Aug 10 04:12:08 2012 +0000
Resolves: #i119548# Window/Orphan control setting lost when save .doc file
Reported by: luo qing le
Patch by: Lei De Bin
Review by: Chen Zuo Jun
(cherry picked from commit 9b161d18404d8fac5663bc3b3a854bdd4fad3bf0)
Change-Id: I7e51d2fd6b72d08b793b857cf2a3de5989145695
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 96f1622..4b9449b 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3727,7 +3727,7 @@ void WW8RStyle::Set1StyleDefaults()
pIo->pAktColl->SetFmtAttr(aAttr);
}
- if( pIo->pWDop->fWidowControl && !bWidowsChanged ) // Widows ?
+ if( /*pIo->pWDop->fWidowControl &&*/ !bWidowsChanged ) // Widows ?
{
pIo->pAktColl->SetFmtAttr( SvxWidowsItem( 2, RES_PARATR_WIDOWS ) );
pIo->pAktColl->SetFmtAttr( SvxOrphansItem( 2, RES_PARATR_ORPHANS ) );
More information about the Libreoffice-commits
mailing list