diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-14 21:54:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:47:54 +0100 |
commit | c09a0fe53edf1214820e66f9feba6e5e618f3c3d (patch) | |
tree | aef09890373fe71c663a7226b924e6fbd3c3cdab /sw/source/ui/dialog/wordcountdialog.cxx | |
parent | f60fef6c8a7b2bfe05ba9c1c6998cb77f9bb3827 (diff) |
use property buckets
Diffstat (limited to 'sw/source/ui/dialog/wordcountdialog.cxx')
-rw-r--r-- | sw/source/ui/dialog/wordcountdialog.cxx | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx index a1b7f8dc2612..a5323e376c56 100644 --- a/sw/source/ui/dialog/wordcountdialog.cxx +++ b/sw/source/ui/dialog/wordcountdialog.cxx @@ -65,41 +65,43 @@ SwWordCountDialog::SwWordCountDialog(Window* pParent) { Size aSize; - dialog_vbox1.setFill(true); - - dialog_action_area1.setFill(true); - - box1.setFill(true); - box1.setExpand(true); - - aCurrentSelection.setFill(true); - aCurrentSelectionText.setFill(true); - aCurrentSelectionLine.setFill(true); - aCurrentSelectionLine.setExpand(true); - - aSelectionBox.setFill(true); - - aSelectionRow1.setFill(true); - aSelectionRow1.setExpand(true); - aCurrentWordFT.setFill(true); - aCurrentWordFI.setFill(true); - aCurrentWordFI.setExpand(true); - - aSelectionRow2.setFill(true); - aSelectionRow2.setExpand(true); - aCurrentCharacterFT.setFill(true); - aCurrentCharacterFI.setFill(true); - aCurrentCharacterFI.setExpand(true); - aSelectionRow3.setFill(true); - aSelectionRow3.setExpand(true); - aCurrentCharacterExcludingSpacesFT.setFill(true); - aCurrentCharacterExcludingSpacesFI.setFill(true); - aCurrentCharacterExcludingSpacesFI.setExpand(true); - - aDoc.setFill(true); - aDocText.setFill(true); - aDocLine.setFill(true); - aDocLine.setExpand(true); + rtl::OString sFill(RTL_CONSTASCII_STRINGPARAM("fill")); + rtl::OString sExpand(RTL_CONSTASCII_STRINGPARAM("expand")); + + dialog_vbox1.setChildProperty(sFill, true); + dialog_action_area1.setChildProperty(sFill, true); + + box1.setChildProperty(sFill, true); + box1.setChildProperty(sExpand, true); + + aCurrentSelection.setChildProperty(sFill, true); + aCurrentSelectionText.setChildProperty(sFill, true); + aCurrentSelectionLine.setChildProperty(sFill, true); + aCurrentSelectionLine.setChildProperty(sExpand, true); + + aSelectionBox.setChildProperty(sFill, true); + + aSelectionRow1.setChildProperty(sFill, true); + aSelectionRow1.setChildProperty(sExpand, true); + aCurrentWordFT.setChildProperty(sFill, true); + aCurrentWordFI.setChildProperty(sFill, true); + aCurrentWordFI.setChildProperty(sExpand, true); + + aSelectionRow2.setChildProperty(sFill, true); + aSelectionRow2.setChildProperty(sExpand, true); + aCurrentCharacterFT.setChildProperty(sFill, true); + aCurrentCharacterFI.setChildProperty(sFill, true); + aCurrentCharacterFI.setChildProperty(sExpand, true); + aSelectionRow3.setChildProperty(sFill, true); + aSelectionRow3.setChildProperty(sExpand, true); + aCurrentCharacterExcludingSpacesFT.setChildProperty(sFill, true); + aCurrentCharacterExcludingSpacesFI.setChildProperty(sFill, true); + aCurrentCharacterExcludingSpacesFI.setChildProperty(sExpand, true); + + aDoc.setChildProperty(sFill, true); + aDocText.setChildProperty(sFill, true); + aDocLine.setChildProperty(sFill, true); + aDocLine.setChildProperty(sExpand, true); aSize = dialog_vbox1.GetOptimalSize(WINDOWSIZE_PREFERRED); dialog_vbox1.SetSizePixel(aSize); |