blob: c15f23b7769a93f0c277103a5a23f7f4c587fe16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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: */
|