forked from amazingfate/loongoffice
Mostly found by: Noel Grandin Reviewed by: Andre Fischer (cherry picked from commit 1ad216c0b831fc10ff4e73392dbcc9832463a7bc) Conflicts: svx/source/sidebar/line/LineWidthControl.cxx svx/source/sidebar/line/LineWidthControl.hxx Change-Id: I662a262d2cd920b54338c16bf688181b95e2f863
78 lines
2.7 KiB
C++
78 lines
2.7 KiB
C++
/* -*- 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_SOURCE_SIDEBAR_LINE_LINEWIDTHCONTROL_HXX
|
|
#define INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEWIDTHCONTROL_HXX
|
|
|
|
#include "svx/sidebar/PopupControl.hxx"
|
|
#include "LineWidthValueSet.hxx"
|
|
#include <svl/poolitem.hxx>
|
|
#include <vcl/fixed.hxx>
|
|
#include <vcl/field.hxx>
|
|
|
|
class SfxBindings;
|
|
|
|
namespace svx { namespace sidebar {
|
|
|
|
class LinePropertyPanel;
|
|
|
|
class LineWidthControl
|
|
: public svx::sidebar::PopupControl
|
|
{
|
|
public:
|
|
LineWidthControl (Window* pParent, LinePropertyPanel& rPanel);
|
|
virtual ~LineWidthControl (void);
|
|
|
|
virtual void GetFocus() SAL_OVERRIDE;
|
|
virtual void Paint(const Rectangle& rect) SAL_OVERRIDE;
|
|
|
|
void SetWidthSelect( long lValue, bool bValuable, SfxMapUnit eMapUnit);
|
|
bool IsCloseByEdit() { return mbCloseByEdit;}
|
|
long GetTmpCustomWidth() { return mnTmpCustomWidth;}
|
|
|
|
private:
|
|
LinePropertyPanel& mrLinePropertyPanel;
|
|
SfxBindings* mpBindings;
|
|
LineWidthValueSet maVSWidth;
|
|
FixedText maFTCus;
|
|
FixedText maFTWidth;
|
|
MetricField maMFWidth;
|
|
SfxMapUnit meMapUnit;
|
|
OUString* rStr;
|
|
OUString mstrPT;
|
|
long mnCustomWidth;
|
|
bool mbCustom;
|
|
bool mbCloseByEdit;
|
|
long mnTmpCustomWidth;
|
|
bool mbVSFocus;
|
|
|
|
Image maIMGCus;
|
|
Image maIMGCusGray;
|
|
|
|
void Initialize();
|
|
DECL_LINK(VSSelectHdl, void *);
|
|
DECL_LINK(MFModifyHdl, void *);
|
|
};
|
|
|
|
} } // end of namespace svx::sidebar
|
|
|
|
#endif // INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEWIDTHCONTROL_HXX
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|