LibreOffice Module sfx2 (master) 1
dialoghelper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#ifndef INCLUDED_SFX2_DIALOGHELPER_HXX
11#define INCLUDED_SFX2_DIALOGHELPER_HXX
12
13#include <sfx2/dllapi.h>
14#include <rtl/ustring.hxx>
15#include <tools/gen.hxx>
16
17class DateTime;
19class OutputDevice;
20
21//when two tab pages both have the same basic layout with a preview on the
22//right, get both of their non-preview areas to request the same size so that
23//the preview appears in the same place in each one so flipping between tabs
24//isn't distracting as it jumps around
25
27
29
31
33
34OUString SFX2_DLLPUBLIC getWidestDateTime(const LocaleDataWrapper& rWrapper, bool bWithSec);
35
36OUString SFX2_DLLPUBLIC formatDateTime(const DateTime& rDateTime, const LocaleDataWrapper& rWrapper,
37 bool bWithSec);
38
39#endif
40
41/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString SFX2_DLLPUBLIC formatDateTime(const DateTime &rDateTime, const LocaleDataWrapper &rWrapper, bool bWithSec)
OUString SFX2_DLLPUBLIC getWidestDateTime(const LocaleDataWrapper &rWrapper, bool bWithSec)
Size SFX2_DLLPUBLIC getPreviewOptionsSize(const OutputDevice &rReference)
Size SFX2_DLLPUBLIC getParagraphPreviewOptimalSize(const OutputDevice &rReference)
Size SFX2_DLLPUBLIC getPreviewStripSize(const OutputDevice &rReference)
Size SFX2_DLLPUBLIC getDrawPreviewOptimalSize(const OutputDevice &rReference)
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29