diff options
author | Stefan Knorr (astron) <heinzlesspam@gmail.com> | 2012-03-03 22:02:23 +0100 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-06 16:51:38 +0200 |
commit | 793b87411646a4a008a6ed82315d8b5c82738641 (patch) | |
tree | 6dc7e58e4f6422a3444f461c46ce72e3568cd42a | |
parent | dc24525d098d3dbf303dcfa04cae319592107907 (diff) |
Fix fdo#38207 and also hide another option in Writer/Web
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 014f04db13db..89cb4eb5fff6 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -1287,15 +1287,27 @@ void SwTableOptionsTabPage::Reset( const SfxItemSet& rSet) // hide certain controls for html if(bHTMLMode) { - + aRepeatHeaderCB.Hide(); aDontSplitCB.Hide(); + + long nMoveUpBy = + aRepeatHeaderCB.LogicToPixel( Size( 13, 13 ), MAP_APPFONT ).Height(); + + Point aPos = aRepeatHeaderCB.GetPosPixel(); + aRepeatHeaderCB.SetPosPixel( Point( aPos.X(), aPos.Y() - nMoveUpBy ) ); + + nMoveUpBy += + aDontSplitCB.LogicToPixel( Size( 13, 13 ), MAP_APPFONT ).Height(); + + aPos = aBorderCB.GetPosPixel(); + aBorderCB.SetPosPixel( Point( aPos.X(), aPos.Y() - nMoveUpBy ) ); } SwInsertTableOptions aInsOpts = pModOpt->GetInsTblFlags(bHTMLMode); sal_uInt16 nInsTblFlags = aInsOpts.mnInsMode; aHeaderCB.Check(0 != (nInsTblFlags & tabopts::HEADLINE)); - aRepeatHeaderCB.Check(aInsOpts.mnRowsToRepeat > 0); + aRepeatHeaderCB.Check((!bHTMLMode) && (aInsOpts.mnRowsToRepeat > 0)); aDontSplitCB.Check(!(nInsTblFlags & tabopts::SPLIT_LAYOUT)); aBorderCB.Check(0 != (nInsTblFlags & tabopts::DEFAULT_BORDER)); |