diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-06-19 15:13:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-19 15:18:30 +0100 |
commit | d3c1c8d7587239abcf5448ee143a61fe54b01422 (patch) | |
tree | 205d8ca482dbb480bf773da6235ee134b68831ce /include | |
parent | 41efa1535827b3dfef66ed4ce6c20e85081fe060 (diff) |
expand scheme to share sizes for paragraph dialog preview widgets
Change-Id: Id1ded6828468ff956c83eb57f1da62fd80761b5d
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/dialoghelper.hxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/sfx2/dialoghelper.hxx b/include/sfx2/dialoghelper.hxx new file mode 100644 index 000000000000..c15f23b7769a --- /dev/null +++ b/include/sfx2/dialoghelper.hxx @@ -0,0 +1,32 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef _SFX_DIALOGHELPER_HXX +#define _SFX_DIALOGHELPER_HXX + +#include "sfx2/dllapi.h" +#include <tools/gen.hxx> + +class Window; +class VclBuilderContainer; + +//when two tab pages both have the same basic layout with a preview on the +//right, get both of their non-preview areas to request the same size so that +//the preview appears in the same place in each one so flipping between tabs +//isn't distracting as it jumps around +// +//there has to be a "maingrid" container which contains all the widgets +//except for the preview widget +void SFX2_DLLPUBLIC setPreviewsToSamePlace(Window *pParent, VclBuilderContainer *pPage); + +Size SFX2_DLLPUBLIC getParagraphPreviewOptimalSize(const Window *pReference); + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |