1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SFX2_DIALOGHELPER_HXX
11 #define INCLUDED_SFX2_DIALOGHELPER_HXX
13 #include <sfx2/dllapi.h>
14 #include <rtl/ustring.hxx>
15 #include <tools/gen.hxx>
18 class LocaleDataWrapper
;
19 namespace vcl
{ class Window
; }
20 class VclBuilderContainer
;
22 //when two tab pages both have the same basic layout with a preview on the
23 //right, get both of their non-preview areas to request the same size so that
24 //the preview appears in the same place in each one so flipping between tabs
25 //isn't distracting as it jumps around
27 //there has to be a "maingrid" container which contains all the widgets
28 //except for the preview widget
29 void SFX2_DLLPUBLIC
setPreviewsToSamePlace(vcl::Window
*pParent
, VclBuilderContainer
*pPage
);
31 Size SFX2_DLLPUBLIC
getParagraphPreviewOptimalSize(const vcl::Window
*pReference
);
33 Size SFX2_DLLPUBLIC
getDrawPreviewOptimalSize(const vcl::Window
*pReference
);
35 Size SFX2_DLLPUBLIC
getPreviewStripSize(const vcl::Window
*pReference
);
37 Size SFX2_DLLPUBLIC
getPreviewOptionsSize(const vcl::Window
*pReference
);
39 OUString SFX2_DLLPUBLIC
getWidestTime(const LocaleDataWrapper
& rWrapper
);
41 OUString SFX2_DLLPUBLIC
formatTime(const DateTime
& rDateTime
, const LocaleDataWrapper
& rWrapper
);
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */