2016-05-28 01:11:28 -05:00
|
|
|
/* -*- 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/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_SVX_PAGESIZEHELPER_HXX
|
|
|
|
#define INCLUDED_SVX_PAGESIZEHELPER_HXX
|
|
|
|
|
|
|
|
#include <i18nutil/paper.hxx>
|
|
|
|
#include <svx/svxdllapi.h>
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
|
2016-08-23 07:27:36 -05:00
|
|
|
enum class PaperSizeApp
|
2016-05-28 01:11:28 -05:00
|
|
|
{
|
2016-08-23 07:27:36 -05:00
|
|
|
Std,
|
|
|
|
Draw
|
2016-05-28 01:11:28 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
class SVX_DLLPUBLIC PaperSizeListBox : public ListBox
|
|
|
|
{
|
|
|
|
public:
|
2016-09-08 07:20:31 -05:00
|
|
|
PaperSizeListBox( vcl::Window* pParent );
|
2016-05-28 01:11:28 -05:00
|
|
|
|
|
|
|
void FillPaperSizeEntries( PaperSizeApp eApp );
|
|
|
|
void SetSelection( Paper eSize );
|
|
|
|
Paper GetSelection() const;
|
2016-08-11 15:32:00 -05:00
|
|
|
|
|
|
|
Size GetOptimalSize() const override;
|
2016-05-28 01:11:28 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|