2008/02/08 18:44:43 jcn 1.1.2.1: Initial toolkit import from ee9a2fcc29d7e2f01cc80ef7c13bf7bc7d55ae7e. layout/source/awt -> toolkit/source/awt layout/source/core -> toolkit/source/layout layout/source/wrapper -> toolkit/source/vclcompat layout/inc/layout -> toolkit/inc/layout layout/source/inc -> toolkit/inc/layout layout/workben -> toolkit/workben/layout That's ooo-build trunk r11539 @ ooh680-m5/src680-m245.
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
#ifndef CORE_DIALOGBUTTONHBOX_HXX
|
|
#define CORE_DIALOGBUTTONHBOX_HXX
|
|
|
|
#include "box.hxx"
|
|
#include "flow.hxx"
|
|
|
|
namespace layoutimpl
|
|
{
|
|
|
|
class DialogButtonHBox : public HBox
|
|
{
|
|
public:
|
|
DialogButtonHBox();
|
|
|
|
void setOrdering( rtl::OUString const& ordering );
|
|
void SAL_CALL addChild( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild ) throw ( css::uno::RuntimeException, css::awt::MaxChildrenException );
|
|
void SAL_CALL removeChild( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild ) throw ( css::uno::RuntimeException );
|
|
|
|
private:
|
|
enum Ordering { PLATFORM, GNOME, KDE, MACOS, WINDOWS };
|
|
|
|
void orderChildren();
|
|
void gnomeOrdering();
|
|
void kdeOrdering();
|
|
void macosOrdering();
|
|
void windowsOrdering();
|
|
|
|
static Ordering const DEFAULT_ORDERING;
|
|
Ordering mnOrdering;
|
|
Flow mFlow;
|
|
|
|
ChildData *mpAction; /* [..]?, [Retry?] */
|
|
ChildData *mpAffirmative; /* OK, Yes, Save */
|
|
ChildData *mpAlternate; /* NO, [Ignore?], Don't save, Quit without saving */
|
|
ChildData *mpApply; /* Deprecated? */
|
|
ChildData *mpCancel; /* Cancel, Close */
|
|
ChildData *mpFlow;
|
|
ChildData *mpHelp;
|
|
ChildData *mpReset;
|
|
|
|
std::list< ChildData *> maOther;
|
|
};
|
|
|
|
} // namespace layoutimpl
|
|
|
|
#endif /* CORE_DIALOGBUTTONHBOX_HXX */
|