2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/intitem.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2005-01-18 14:26:39 +00:00
|
|
|
#include <vcl/toolbox.hxx>
|
|
|
|
#include <sfx2/app.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include "cmdid.h"
|
|
|
|
#include "swtypes.hxx"
|
|
|
|
#include "tblctrl.hxx"
|
|
|
|
|
|
|
|
|
|
|
|
SFX_IMPL_TOOLBOX_CONTROL( SwTableOptimizeCtrl, SfxUInt16Item );
|
|
|
|
|
2004-07-06 10:32:54 +00:00
|
|
|
SwTableOptimizeCtrl::SwTableOptimizeCtrl(
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 nSlotId,
|
|
|
|
sal_uInt16 nId,
|
2004-07-06 10:32:54 +00:00
|
|
|
ToolBox& rTbx ) :
|
|
|
|
SfxToolBoxControl( nSlotId, nId, rTbx )
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2005-03-15 08:22:53 +00:00
|
|
|
rTbx.SetItemBits( nId, TIB_DROPDOWNONLY | rTbx.GetItemBits( nId ) );
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SwTableOptimizeCtrl::~SwTableOptimizeCtrl()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
SfxPopupWindow* SwTableOptimizeCtrl::CreatePopupWindow()
|
|
|
|
{
|
2012-06-23 14:43:06 +02:00
|
|
|
createAndPositionSubToolBar("private:resource/toolbar/optimizetablebar");
|
2004-07-06 10:32:54 +00:00
|
|
|
return NULL;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SfxPopupWindowType SwTableOptimizeCtrl::GetPopupWindowType() const
|
|
|
|
{
|
|
|
|
return SFX_POPUPWINDOW_ONCLICK;
|
|
|
|
}
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|