update emoji autocorrect entries from po-files
[LibreOffice.git] / reportdesign / source / ui / inc / DateTime.hxx
blob66639a9cafd8e1eead02f4e9c826f3489642ea0d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DATETIME_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DATETIME_HXX
22 #include <vcl/dialog.hxx>
23 #include <vcl/fixed.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/field.hxx>
26 #include <vcl/button.hxx>
27 #include <com/sun/star/report/XReportDefinition.hpp>
28 #include <com/sun/star/util/XNumberFormats.hpp>
29 #include <com/sun/star/lang/Locale.hpp>
31 #include <svtools/dialogcontrolling.hxx>
33 namespace rptui
35 class OReportController;
36 /*************************************************************************
38 |* Groups and Sorting dialog
40 \************************************************************************/
41 class ODateTimeDialog : public ModalDialog
43 VclPtr<CheckBox> m_pDate;
44 VclPtr<FixedText> m_pFTDateFormat;
45 VclPtr<ListBox> m_pDateListBox;
46 VclPtr<CheckBox> m_pTime;
47 VclPtr<FixedText> m_pFTTimeFormat;
48 VclPtr<ListBox> m_pTimeListBox;
49 VclPtr<OKButton> m_pPB_OK;
51 svt::ControlDependencyManager m_aDateControlling;
52 svt::ControlDependencyManager m_aTimeControlling;
54 ::rptui::OReportController* m_pController;
55 ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>
56 m_xHoldAlive;
57 ::com::sun::star::lang::Locale m_nLocale;
59 /** returns the frmat string
61 * \param _nNumberFormatKey the number format key
62 * \param _xFormats
63 * \param _bTime
64 * \return
66 OUString getFormatStringByKey(::sal_Int32 _nNumberFormatKey,const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats>& _xFormats,bool _bTime);
68 /** returns the number format key
69 @param _nNumberFormatIndex the number format index @see com::sun::star::i18n::NumberFormatIndex
71 sal_Int32 getFormatKey(bool _bDate) const;
73 DECL_LINK( CBClickHdl, CheckBox* );
74 ODateTimeDialog(const ODateTimeDialog&) SAL_DELETED_FUNCTION;
75 void operator =(const ODateTimeDialog&) SAL_DELETED_FUNCTION;
77 // fill methods
78 void InsertEntry(sal_Int16 _nNumberFormatId);
79 public:
80 ODateTimeDialog( vcl::Window* pParent
81 ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xHoldAlive
82 ,::rptui::OReportController* _pController);
83 virtual ~ODateTimeDialog();
84 virtual void dispose() SAL_OVERRIDE;
85 virtual short Execute() SAL_OVERRIDE;
88 } // namespace rptui
90 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DATETIME_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */