43 , mrOutAttrs(rInAttrs)
44 , maUIScale(pInView->GetDoc().GetUIScale())
46 , m_xNumFldCopies(m_xBuilder->weld_spin_button(
"copies"))
47 , m_xBtnSetViewData(m_xBuilder->weld_button(
"viewdata"))
48 , m_xMtrFldMoveX(m_xBuilder->weld_metric_spin_button(
"x",
FieldUnit::
CM))
49 , m_xMtrFldMoveY(m_xBuilder->weld_metric_spin_button(
"y",
FieldUnit::
CM))
50 , m_xMtrFldAngle(m_xBuilder->weld_metric_spin_button(
"angle",
FieldUnit::
DEGREE))
51 , m_xMtrFldWidth(m_xBuilder->weld_metric_spin_button(
"width",
FieldUnit::
CM))
52 , m_xMtrFldHeight(m_xBuilder->weld_metric_spin_button(
"height",
FieldUnit::
CM))
53 , m_xFtEndColor(m_xBuilder->weld_label(
"endlabel"))
54 , m_xBtnSetDefault(m_xBuilder->weld_button(
"default"))
55 , m_xLbStartColor(new
ColorListBox(m_xBuilder->weld_menu_button(
"start"), [this]{
return m_xDialog.get(); } ))
56 , m_xLbEndColor(
new ColorListBox(m_xBuilder->weld_menu_button(
"end"), [
this]{ return m_xDialog.get(); } ))
58 m_xLbStartColor->SetSelectHdl(
LINK(
this,
CopyDlg, SelectColorHdl ) );
59 m_xBtnSetViewData->connect_clicked(
LINK(
this,
CopyDlg, SetViewData ) );
60 m_xBtnSetDefault->connect_clicked(
LINK(
this,
CopyDlg, SetDefault ) );
82 OUString::number(
static_cast<sal_uInt32
>(
m_xLbStartColor->GetSelectEntryColor())) + OUStringChar(
TOKEN) +
83 OUString::number(
static_cast<sal_uInt32
>(
m_xLbEndColor->GetSelectEntryColor()));
84 aDlgOpt.
SetUserItem(
"UserItem", css::uno::Any(sStr));
104 m_xMtrFldMoveX->set_range(-nPageWidth, nPageWidth, FieldUnit::MM_100TH);
105 m_xMtrFldMoveY->set_range(-nPageHeight, nPageHeight, FieldUnit::MM_100TH);
106 m_xMtrFldWidth->set_range(-nRectWidth, nPageWidth, FieldUnit::MM_100TH);
107 m_xMtrFldHeight->set_range(-nRectHeight, nPageHeight, FieldUnit::MM_100TH);
113 css::uno::Any aUserItem = aDlgOpt.
GetUserItem(
"UserItem");
126 nMoveX = pPoolItem->GetValue();
131 nMoveY = pPoolItem->GetValue();
135 m_xMtrFldAngle->set_value( pPoolItem->GetValue().get(), FieldUnit::NONE);
141 nWidth = pPoolItem->GetValue();
146 nHeight = pPoolItem->GetValue();
151 Color aColor = pPoolItem->GetColorValue();
206 const Color aColor = m_xLbStartColor->GetSelectEntryColor();
208 if (!m_xLbEndColor->get_sensitive())
210 m_xLbEndColor->SelectEntry(aColor);
211 m_xLbEndColor->set_sensitive(
true);
212 m_xFtEndColor->set_sensitive(
true);
224 maUIScale ), MapUnit::Map100thMM);
226 maUIScale ), MapUnit::Map100thMM);
229 if(
const XColorItem* pPoolItem = mrOutAttrs.GetItemIfSet( ATTR_COPY_START_COLOR ) )
231 Color aColor = pPoolItem->GetColorValue();
232 m_xLbStartColor->SelectEntry( aColor );
241 m_xNumFldCopies->set_value(1);
248 m_xMtrFldAngle->set_value(
nValue, FieldUnit::DEGREE);
253 if(
const XColorItem* pPoolItem = mrOutAttrs.GetItemIfSet( ATTR_COPY_START_COLOR ) )
255 Color aColor = pPoolItem->GetColorValue();
256 m_xLbStartColor->SelectEntry( aColor );
257 m_xLbEndColor->SelectEntry( aColor );
Reference< XExecutableDialog > m_xDialog
const tools::Rectangle & GetAllMarkedRect() const
SdrPage * GetPage() const
SdrPageView * GetSdrPageView() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
static FieldUnit GetCurrentFieldUnit()
constexpr tools::Long Height() const
constexpr tools::Long Width() const
css::uno::Any GetUserItem(const OUString &sName) const
void SetUserItem(const OUString &sName, const css::uno::Any &aValue)
void Reset()
reads provided item set or evaluate ini string
void GetAttr(SfxItemSet &rOutAttrs)
fills provided item set with dialog box attributes
std::unique_ptr< weld::SpinButton > m_xNumFldCopies
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldWidth
std::unique_ptr< ColorListBox > m_xLbStartColor
std::unique_ptr< ColorListBox > m_xLbEndColor
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldMoveY
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldHeight
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldAngle
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldMoveX
virtual ~CopyDlg() override
const SfxItemSet & mrOutAttrs
CopyDlg(weld::Window *pWindow, const SfxItemSet &rInAttrs, ::sd::View *pView)
std::unique_ptr< weld::Label > m_xFtEndColor
#define LINK(Instance, Class, Member)
sal_Int64 toInt64(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
sal_uInt32 toUInt32(std::u16string_view str, sal_Int16 radix=10)
IMPL_LINK_NOARG(MainSequence, onTimerHdl, Timer *, void)
SVT_DLLPUBLIC sal_Int64 GetCoreValue(const weld::MetricSpinButton &rField, MapUnit eUnit)
SVT_DLLPUBLIC void SetMetricValue(weld::MetricSpinButton &rField, sal_Int64 nCoreValue, MapUnit eUnit)
SVT_DLLPUBLIC void SetFieldUnit(weld::MetricSpinButton &rCtrl, FieldUnit eUnit, bool bAll=false)