24#include <svx/strings.hrc>
61#define LISTBOX_SELECTION 0
62#define LISTBOX_SECTION 1
63#define LISTBOX_SECTIONS 2
65#define LISTBOX_FRAME 4
69#define FRAME_FORMAT_WIDTH 1000
85 , m_pFrameSet(nullptr)
87 , m_nSelectionWidth(0)
88 , m_bPageChanged(false)
89 , m_bSectionChanged(false)
90 , m_bSelSectionChanged(false)
91 , m_bFrameChanged(false)
92 , m_xContentArea(m_xBuilder->weld_container(
"content"))
93 , m_xOkButton(m_xBuilder->weld_button(
"ok"))
118 ( !pCurrSection || ( 1 != nFullSectCnt &&
143 m_nPageWidth = rFormat.GetFrameSize().GetSize().Width();
173 ( !pCurrSection || ( 1 != nFullSectCnt &&
259 m_xTabPage->FillItemSet(pSet);
261 if(m_pSelectionSet && SfxItemState::SET == m_pSelectionSet->GetItemState(
RES_COL))
267 m_rWrtShell.GetView().GetViewFrame().GetDispatcher()->Execute(
271 if(m_pSectionSet && m_pSectionSet->Count() && m_bSectionChanged )
273 const SwSection* pCurrSection = m_rWrtShell.GetCurrSection();
275 const size_t nNewPos = m_rWrtShell.GetSectionFormatPos( *pFormat );
277 m_rWrtShell.UpdateSection( nNewPos,
aData, m_pSectionSet.get() );
280 if(m_pSectionSet && m_pSectionSet->Count() && m_bSelSectionChanged )
282 m_rWrtShell.SetSectionAttr( *m_pSectionSet );
285 if(m_pPageSet && SfxItemState::SET == m_pPageSet->GetItemState(
RES_COL) && m_bPageChanged)
288 const size_t nCurIdx = m_rWrtShell.GetCurPageDesc();
289 SwPageDesc aPageDesc(m_rWrtShell.GetPageDesc(nCurIdx));
292 m_rWrtShell.ChgPageDesc(nCurIdx, aPageDesc);
294 if(m_pFrameSet && SfxItemState::SET == m_pFrameSet->GetItemState(
RES_COL) && m_bFrameChanged)
297 aTmp.
Put(*m_pFrameSet);
298 m_rWrtShell.StartAction();
300 m_rWrtShell.SetFlyFrameAttr( aTmp );
302 if(m_rWrtShell.IsFrameSelected())
304 m_rWrtShell.UnSelectFrame();
305 m_rWrtShell.LeaveSelFrameMode();
308 m_rWrtShell.EndAction();
370 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/columnpage.ui",
"ColumnPage", &
rSet)
372 , m_pModifiedField(nullptr)
376 , m_bLockUpdate(false)
377 , m_xCLNrEdt(m_xBuilder->weld_spin_button(
"colsnf"))
378 , m_xBalanceColsCB(m_xBuilder->weld_check_button(
"balance"))
379 , m_xBtnBack(m_xBuilder->weld_button(
"back"))
380 , m_xLbl1(m_xBuilder->weld_label(
"1"))
381 , m_xLbl2(m_xBuilder->weld_label(
"2"))
382 , m_xLbl3(m_xBuilder->weld_label(
"3"))
383 , m_xBtnNext(m_xBuilder->weld_button(
"next"))
384 , m_xAutoWidthBox(m_xBuilder->weld_check_button(
"autowidth"))
385 , m_xLineTypeLbl(m_xBuilder->weld_label(
"linestyleft"))
386 , m_xLineWidthLbl(m_xBuilder->weld_label(
"linewidthft"))
387 , m_xLineWidthEdit(m_xBuilder->weld_metric_spin_button(
"linewidthmf",
FieldUnit::
POINT))
388 , m_xLineColorLbl(m_xBuilder->weld_label(
"linecolorft"))
389 , m_xLineHeightLbl(m_xBuilder->weld_label(
"lineheightft"))
390 , m_xLineHeightEdit(m_xBuilder->weld_metric_spin_button(
"lineheightmf",
FieldUnit::
PERCENT))
391 , m_xLinePosLbl(m_xBuilder->weld_label(
"lineposft"))
392 , m_xLinePosDLB(m_xBuilder->weld_combo_box(
"lineposlb"))
393 , m_xTextDirectionFT(m_xBuilder->weld_label(
"textdirectionft"))
394 , m_xTextDirectionLB(new
svx::FrameDirectionListBox(m_xBuilder->weld_combo_box(
"textdirectionlb")))
395 , m_xLineColorDLB(new
ColorListBox(m_xBuilder->weld_menu_button(
"colorlb"),
397 , m_xLineTypeDLB(
new SvtLineListBox(m_xBuilder->weld_menu_button(
"linestylelb")))
398 , m_xEd1(
new SwPercentField(m_xBuilder->weld_metric_spin_button(
"width1mf", FieldUnit::CM)))
399 , m_xEd2(
new SwPercentField(m_xBuilder->weld_metric_spin_button(
"width2mf", FieldUnit::CM)))
400 , m_xEd3(
new SwPercentField(m_xBuilder->weld_metric_spin_button(
"width3mf", FieldUnit::CM)))
401 , m_xDistEd1(
new SwPercentField(m_xBuilder->weld_metric_spin_button(
"spacing1mf", FieldUnit::CM)))
402 , m_xDistEd2(
new SwPercentField(m_xBuilder->weld_metric_spin_button(
"spacing2mf", FieldUnit::CM)))
404 , m_xPgeExampleWN(
new weld::CustomWeld(*m_xBuilder,
"pageexample", m_aPgeExampleWN))
405 , m_xFrameExampleWN(
new weld::CustomWeld(*m_xBuilder,
"frameexample", m_aFrameExampleWN))
406 , m_xApplyToFT(m_xBuilder->weld_label(
"applytoft"))
407 , m_xApplyToLB(m_xBuilder->weld_combo_box(
"applytolb"))
409 connectPercentField(*m_xEd1);
410 connectPercentField(*m_xEd2);
411 connectPercentField(*m_xEd3);
412 connectPercentField(*m_xDistEd1);
413 connectPercentField(*m_xDistEd2);
415 m_xTextDirectionLB->append(SvxFrameDirection::Horizontal_LR_TB,
SvxResId(RID_SVXSTR_FRAMEDIR_LTR));
416 m_xTextDirectionLB->append(SvxFrameDirection::Horizontal_RL_TB,
SvxResId(RID_SVXSTR_FRAMEDIR_RTL));
417 m_xTextDirectionLB->append(SvxFrameDirection::Environment,
SvxResId(RID_SVXSTR_FRAMEDIR_SUPER));
419 SetExchangeSupport();
421 m_aDefaultVS.SetColCount(5);
423 for (
int i = 0;
i < 5; ++
i)
430 aItemText =
SwResId( STR_COLUMN_VALUESET_ITEM0 ) ;
433 aItemText =
SwResId( STR_COLUMN_VALUESET_ITEM1 ) ;
436 aItemText =
SwResId( STR_COLUMN_VALUESET_ITEM2 ) ;
439 aItemText =
SwResId( STR_COLUMN_VALUESET_ITEM3 );
442 aItemText =
SwResId( STR_COLUMN_VALUESET_ITEM4 );
445 m_aDefaultVS.InsertItem( i + 1, aItemText, i );
451 m_xCLNrEdt->connect_value_changed(aCLNrLk);
453 m_xDistEd1->connect_value_changed(aLk);
454 m_xDistEd2->connect_value_changed(aLk);
458 m_xEd1->connect_value_changed(aLk);
459 m_xEd2->connect_value_changed(aLk);
460 m_xEd3->connect_value_changed(aLk);
467 m_xLineTypeDLB->SetSelectHdl(
LINK(
this,
SwColumnPage, UpdateColMgrLineBox));
468 m_xLineWidthEdit->connect_value_changed(aLk2);
469 m_xLineColorDLB->SetSelectHdl(
LINK(
this,
SwColumnPage, UpdateColMgrColorBox));
470 m_xLineHeightEdit->connect_value_changed(aLk2);
471 m_xLinePosDLB->connect_changed(
LINK(
this,
SwColumnPage, UpdateColMgrListBox));
474 m_xLineTypeDLB->SetSourceUnit( FieldUnit::TWIP );
477 m_xLineTypeDLB->InsertEntry(
479 SvxBorderLineStyle::SOLID );
480 m_xLineTypeDLB->InsertEntry(
482 SvxBorderLineStyle::DOTTED );
483 m_xLineTypeDLB->InsertEntry(
485 SvxBorderLineStyle::DASHED );
487 sal_Int64
nLineWidth = m_xLineWidthEdit->get_value(FieldUnit::POINT);
490 m_xLineWidthEdit->get_digits(),
491 FieldUnit::POINT, MapUnit::MapTwip ));
492 m_xLineTypeDLB->SetWidth(nLineWidth);
493 m_xLineColorDLB->SelectEntry(COL_BLACK);
515 m_xDistEd1->set_max(nNewMaxWidth, FieldUnit::TWIP);
516 m_xDistEd2->set_max(nNewMaxWidth, FieldUnit::TWIP);
517 m_xEd1->set_max(nNewMaxWidth, FieldUnit::TWIP);
518 m_xEd2->set_max(nNewMaxWidth, FieldUnit::TWIP);
519 m_xEd3->set_max(nNewMaxWidth, FieldUnit::TWIP);
531 const sal_uInt16 nHtmlMode =
539 m_xEd1->SetMetric(aMetric);
540 m_xEd2->SetMetric(aMetric);
541 m_xEd3->SetMetric(aMetric);
572 if( SfxItemState::DEFAULT <= rSet->GetItemState(
RES_FRAMEDIR ) )
587 return std::make_unique<SwColumnPage>(pPage, pController, *
rSet);
619 UpdateColMgr(*m_xLineWidthEdit);
624 UpdateColMgr(*m_xLineWidthEdit);
629 UpdateColMgr(*m_xLineWidthEdit);
636 tools::Long nGutterWidth = m_xColMgr->GetGutterWidth();
643 for( sal_uInt16
i = 1;
i < m_nCols; ++
i )
646 bool bAutoWidth = m_xAutoWidthBox->get_active();
649 m_xColMgr->SetAutoWidth(
false);
653 for(sal_uInt16
i = 0;
i < m_nCols; ++
i)
654 nSum += m_nColWidth[
i];
656 for(sal_uInt16
i = 0;
i < m_nCols - 1; ++
i)
657 nGutterWidth += m_nColDist[
i];
658 nSum += nGutterWidth;
663 m_nColWidth[m_nCols - 1] += nMaxW - nSum;
665 m_xColMgr->SetColWidth( 0,
static_cast< sal_uInt16
>(m_nColWidth[0] + m_nColDist[0]/2) );
666 for( sal_uInt16
i = 1;
i < m_nCols-1; ++
i )
668 tools::Long nActDist = (m_nColDist[
i] + m_nColDist[
i - 1]) / 2;
669 m_xColMgr->SetColWidth(
i,
static_cast< sal_uInt16
>(m_nColWidth[
i] + nActDist ));
671 m_xColMgr->SetColWidth( m_nCols-1,
static_cast< sal_uInt16
>(m_nColWidth[m_nCols-1] + m_nColDist[m_nCols -2]/2) );
675 bool bEnable = isLineNotNone();
676 m_xLineHeightEdit->set_sensitive(bEnable);
677 m_xLineHeightLbl->set_sensitive(bEnable);
678 m_xLineWidthLbl->set_sensitive(bEnable);
679 m_xLineWidthEdit->set_sensitive(bEnable);
680 m_xLineColorDLB->set_sensitive(bEnable);
681 m_xLineColorLbl->set_sensitive(bEnable);
683 sal_Int64
nLineWidth = m_xLineWidthEdit->get_value(FieldUnit::PERCENT);
686 m_xLineWidthEdit->get_digits(),
687 m_xLineWidthEdit->get_unit(), MapUnit::MapTwip ));
689 m_xColMgr->SetNoLine();
692 m_xColMgr->SetLineWidthAndColor(
693 m_xLineTypeDLB->GetSelectEntryStyle(),
695 m_xLineColorDLB->GetSelectEntryColor() );
696 m_xColMgr->SetAdjust(
SwColLineAdj(m_xLinePosDLB->get_active() + 1));
697 m_xColMgr->SetLineHeightPercent(
static_cast<short>(m_xLineHeightEdit->get_value(FieldUnit::PERCENT)));
698 bEnable = m_xColMgr->GetLineHeightPercent() != 100;
700 m_xLinePosLbl->set_sensitive(bEnable);
701 m_xLinePosDLB->set_sensitive(bEnable);
707 Color aColor(m_xLineColorDLB->GetSelectEntryColor());
708 if (aColor != m_xLineTypeDLB->GetColor())
709 m_xLineTypeDLB->SetColor(aColor);
726 m_aFrameExampleWN.SetColumns(m_xColMgr->GetColumns());
727 m_aFrameExampleWN.Invalidate();
730 m_aPgeExampleWN.Invalidate();
741 sal_Int32 nColumnWidthSum = 0;
778 m_xLinePosDLB->set_active(
static_cast< sal_Int32
>(eAdj - 1) );
799 return m_xLineTypeDLB->GetSelectEntryStyle() != SvxBorderLineStyle::NONE;
811 bool bEnableBtns=
false;
812 bool bEnable12 =
false;
813 bool bEnable3 =
false;
818 bEnable12 = bEnable3 = bEdit;
825 case 3: bEnable3 =
true;
827 case 2: bEnable12=
true;
break;
831 m_xEd1->set_sensitive(bEnable12);
835 m_xEd2->set_sensitive(bEnable12);
837 m_xEd3->set_sensitive(bEnable3);
838 m_xLbl1->set_sensitive(bEnable12);
839 m_xLbl2->set_sensitive(bEnable12);
840 m_xLbl3->set_sensitive(bEnable3);
861 bEnable =
m_xColMgr->GetLineHeightPercent() != 100;
871 const OUString sLbl(
'~' );
873 const OUString sLbl1(OUString::number( nVis + 1 ));
874 m_xLbl1->set_label(sLbl1.replaceAt(sLbl1.getLength()-1, 0, sLbl));
876 const OUString sLbl2(OUString::number( nVis + 2 ));
877 m_xLbl2->set_label(sLbl2.replaceAt(sLbl2.getLength()-1, 0, sLbl));
879 const OUString sLbl3(OUString::number( nVis + 3 ));
880 m_xLbl3->set_label(sLbl3.replaceAt(sLbl3.getLength()-1, 0, sLbl));
882 const OUString sColumnWidth =
SwResId( STR_ACCESS_COLUMN_WIDTH ) ;
883 m_xEd1->set_accessible_name(sColumnWidth.replaceFirst(
"%1", sLbl1));
884 m_xEd2->set_accessible_name(sColumnWidth.replaceFirst(
"%1", sLbl2));
885 m_xEd3->set_accessible_name(sColumnWidth.replaceFirst(
"%1", sLbl3));
887 const OUString sDist =
SwResId( STR_ACCESS_PAGESETUP_SPACING ) ;
889 sDist.replaceFirst(
"%1", sLbl1).replaceFirst(
"%2", sLbl2));
892 sDist.replaceFirst(
"%1", sLbl2).replaceFirst(
"%2", sLbl3));
942 if (m_xAutoWidthBox->get_active())
945 ((m_xColMgr->GetActualSize() - m_nCols *
MINLAY)/(m_nCols - 1));
946 if(nActValue > nMaxGap)
949 m_xDistEd1->set_value(m_xDistEd1->NormalizePercent(nMaxGap), FieldUnit::TWIP);
951 m_xColMgr->SetGutterWidth(o3tl::narrowing<sal_uInt16>(nActValue));
952 for(sal_uInt16
i = 0;
i < m_nCols;
i++)
953 m_nColDist[
i] = nActValue;
960 const sal_uInt16 nVis = m_nFirstVis + ((pField == m_xDistEd2.
get()) ? 1 : 0);
966 if(nLeft + nRight + 2 *
MINLAY < nDiff)
967 nDiff = nLeft + nRight - 2 *
MINLAY;
968 if(nDiff < nRight -
MINLAY)
976 if(nLeft > nTemp -
MINLAY)
988 m_nColWidth[nVis] = nLeft;
989 m_nColWidth[nVis + 1] = nRight;
990 m_nColDist[nVis] += nDiff;
992 m_xColMgr->SetColWidth( nVis, sal_uInt16(nLeft) );
993 m_xColMgr->SetColWidth( nVis + 1, sal_uInt16(nRight) );
994 m_xColMgr->SetGutterWidth( sal_uInt16(m_nColDist[nVis]), nVis );
1005 m_pModifiedField = pField;
1013 tools::Long nDist =
static_cast< tools::Long >(m_xDistEd1->DenormalizePercent(m_xDistEd1->get_value(FieldUnit::TWIP)));
1014 m_xColMgr->SetCount(m_nCols, o3tl::narrowing<sal_uInt16>(nDist));
1015 for(sal_uInt16
i = 0;
i < m_nCols;
i++)
1016 m_nColDist[
i] = nDist;
1017 if (rBox.get_active())
1019 m_xColMgr->SetGutterWidth(sal_uInt16(nDist));
1022 m_xColMgr->SetAutoWidth(rBox.get_active(), sal_uInt16(nDist));
1033 SetLabels( m_nFirstVis );
1041 if( m_nFirstVis +
nVisCols < m_nCols )
1044 SetLabels( m_nFirstVis );
1091 Update(pField ? pField->
get() :
nullptr);
1100 sal_Int64 nCurrentValue, nNewValue;
1102 nCurrentValue =
m_xEd1->NormalizePercent(
m_xEd1->DenormalizePercent(
m_xEd1->get_value(FieldUnit::TWIP)));
1107 if (nNewValue != nCurrentValue || pInteractiveField !=
m_xEd1->get())
1108 m_xEd1->set_value(nNewValue, FieldUnit::TWIP);
1112 if (nNewValue != nCurrentValue || pInteractiveField !=
m_xDistEd1->get())
1113 m_xDistEd1->set_value(nNewValue, FieldUnit::TWIP);
1115 nCurrentValue =
m_xEd2->NormalizePercent(
m_xEd2->DenormalizePercent(
m_xEd2->get_value(FieldUnit::TWIP)));
1117 if (nNewValue != nCurrentValue || pInteractiveField !=
m_xEd2->get())
1118 m_xEd2->set_value(nNewValue, FieldUnit::TWIP);
1124 if (nNewValue != nCurrentValue || pInteractiveField !=
m_xDistEd2->get())
1125 m_xDistEd2->set_value(nNewValue, FieldUnit::TWIP);
1127 nCurrentValue =
m_xEd3->NormalizePercent(
m_xEd3->DenormalizePercent(
m_xEd3->get_value(FieldUnit::TWIP)));
1129 if (nNewValue != nCurrentValue || pInteractiveField !=
m_xEd3->get())
1130 m_xEd3->set_value(nNewValue, FieldUnit::TWIP);
1134 m_xEd3->set_text(OUString());
1140 m_xEd1->set_text(OUString());
1141 m_xEd2->set_text(OUString());
1142 m_xEd3->set_text(OUString());
1152 bool bVertical =
false;
1157 bVertical = rDirItem.GetValue() == SvxFrameDirection::Vertical_RL_TB||
1158 rDirItem.GetValue() == SvxFrameDirection::Vertical_LR_TB;
1167 sal_uInt16 nActWidth;
1185 if(
m_xColMgr->GetActualSize() != nActWidth)
1206 sal_uInt16 nTotalWish;
1212 nTotalWish = (!bVertical ? rSize.
GetWidth() : rSize.
GetHeight()) - 2 * nDistance;
1218 if(
m_xColMgr->GetActualSize() != nTotalWish)
1228 m_xEd1->SetRefValue(nTotalWish);
1229 m_xEd2->SetRefValue(nTotalWish);
1230 m_xEd3->SetRefValue(nTotalWish);
1240 m_xEd1->ShowPercent(bPercent);
1241 m_xEd2->ShowPercent(bPercent);
1242 m_xEd3->ShowPercent(bPercent);
1256 return DeactivateRC::LeavePage;
1261 const sal_uInt16 nItem = pVS->GetSelectedItemId();
1264 m_xCLNrEdt->set_value(nItem);
1265 m_xAutoWidthBox->set_active(
true);
1266 m_xDistEd1->set_value(50, FieldUnit::CM);
1271 m_bLockUpdate =
true;
1272 m_xCLNrEdt->set_value(2);
1273 m_xAutoWidthBox->set_active(
false);
1274 m_xDistEd1->set_value(50, FieldUnit::CM);
1280 m_xEd2->set_value(m_xEd2->NormalizePercent(nSmall), FieldUnit::TWIP);
1281 m_pModifiedField = m_xEd2.get();
1285 m_xEd1->set_value(m_xEd1->NormalizePercent(nSmall), FieldUnit::TWIP);
1286 m_pModifiedField = m_xEd1.get();
1288 m_bLockUpdate =
false;
1314 const sal_uInt16 nItemId = rUDEvt.
GetItemId();
1325 tools::Long nTop = (nRectHeight - 11 * nStep ) / 2;
1326 sal_uInt16 nCols = 0;
1329 nStarts[0] = nRectWidth * 10 / 100;
1333 nEnds[0] = nRectWidth * 9 / 10;
1337 nEnds[0] = nRectWidth * 45 / 100;
1338 nStarts[1] = nEnds[0] + nStep;
1339 nEnds[1] = nRectWidth * 9 / 10;
1342 nEnds[0] = nRectWidth * 30 / 100;
1343 nStarts[1] = nEnds[0] + nStep;
1344 nEnds[1] = nRectWidth * 63 / 100;
1345 nStarts[2] = nEnds[1] + nStep;
1346 nEnds[2] = nRectWidth * 9 / 10;
1349 nEnds[0] = nRectWidth * 63 / 100;
1350 nStarts[1] = nEnds[0] + nStep;
1351 nEnds[1] = nRectWidth * 9 / 10;
1354 nEnds[0] = nRectWidth * 30 / 100;
1355 nStarts[1] = nEnds[0] + nStep;
1356 nEnds[1] = nRectWidth * 9 / 10;
1359 for(sal_uInt16 j = 0; j < nCols; j++ )
1361 Point aStart(aBLPos.
X() + nStarts[j], 0);
1362 Point aEnd(aBLPos.
X() + nEnds[j], 0);
1363 for( sal_uInt16
i = 0;
i < 12;
i ++)
1365 aStart.
setY( aBLPos.
Y() + nTop +
i * nStep);
1366 aEnd.
setY( aStart.
Y() );
Reference< XExecutableDialog > m_xDialog
static sal_uInt8 nPagePos
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
virtual void UserDraw(const UserDrawEvent &rUDEvt) override
virtual void StyleUpdated() override
void DrawLine(const Point &rStartPt, const Point &rEndPt)
const Color & GetLineColor() const
const Color & GetFillColor() const
constexpr tools::Long Y() const
void setY(tools::Long nY)
constexpr tools::Long X() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
SfxOkDialogController * GetDialogController() const
const SfxPoolItem * GetOldItem(const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Color & GetFieldTextColor() const
const Color & GetFieldColor() const
static bool IsCTLFontEnabled()
sal_uInt16 GetSmallestDistance() const
tools::Long GetRight() const
tools::Long GetLeft() const
tools::Long GetHeight() const
tools::Long GetWidth() const
const Size & GetSize() const
sal_uInt16 GetUpper() const
sal_uInt16 GetLower() const
void UpdateExample(const SfxItemSet &rSet, SwColMgr *pMgr)
sal_uInt16 GetActualSize() const
sal_uInt16 GetGutterWidth(sal_uInt16 nPos=USHRT_MAX) const
SwColumnDlg(weld::Window *pParent, SwWrtShell &rSh)
virtual ~SwColumnDlg() override
tools::Long m_nSelectionWidth
tools::Long m_nOldSelection
std::unique_ptr< weld::Button > m_xOkButton
SfxItemSet * EvalCurrentSelection(void)
std::unique_ptr< SwColumnPage > m_xTabPage
std::unique_ptr< SfxItemSet > m_pSectionSet
std::unique_ptr< SfxItemSet > m_pSelectionSet
bool m_bSelSectionChanged
void ObjectHdl(const weld::ComboBox *)
std::unique_ptr< weld::Container > m_xContentArea
std::unique_ptr< SfxItemSet > m_pPageSet
std::unique_ptr< weld::Button > m_xBtnBack
void SetLabels(sal_uInt16 nVis)
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< SwPercentField > m_xEd3
SwPercentField * m_pModifiedField
std::unique_ptr< weld::SpinButton > m_xCLNrEdt
std::unique_ptr< weld::Button > m_xBtnNext
std::unique_ptr< SwPercentField > m_xDistEd1
std::unique_ptr< weld::CheckButton > m_xBalanceColsCB
void connectPercentField(SwPercentField &rWrap)
SwColumnPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::Label > m_xLbl1
virtual void ActivatePage(const SfxItemSet &rSet) override
std::unique_ptr< svx::FrameDirectionListBox > m_xTextDirectionLB
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
void SetPageWidth(tools::Long nPageWidth)
void SetFrameMode(bool bMod)
std::unique_ptr< weld::ComboBox > m_xLinePosDLB
std::unique_ptr< weld::Label > m_xLineHeightLbl
void ColModify(bool bForceColReset)
std::unique_ptr< weld::MetricSpinButton > m_xLineWidthEdit
std::unique_ptr< SwPercentField > m_xEd1
std::unique_ptr< SwPercentField > m_xEd2
std::map< weld::MetricSpinButton *, SwPercentField * > m_aPercentFieldsMap
std::unique_ptr< ColorListBox > m_xLineColorDLB
std::unique_ptr< SvtLineListBox > m_xLineTypeDLB
std::unique_ptr< SwPercentField > m_xDistEd2
std::unique_ptr< SwColMgr > m_xColMgr
std::unique_ptr< weld::Label > m_xTextDirectionFT
std::unique_ptr< weld::Label > m_xLinePosLbl
std::unique_ptr< weld::Label > m_xLbl2
std::unique_ptr< weld::CustomWeld > m_xPgeExampleWN
std::unique_ptr< weld::Label > m_xLineColorLbl
SwColExample m_aPgeExampleWN
tools::Long m_nColDist[nMaxCols]
void Update(const weld::MetricSpinButton *pInteractiveField)
static const WhichRangesContainer s_aPageRg
void SetInSection(bool bSet)
ColumnValueSet m_aDefaultVS
std::unique_ptr< weld::CustomWeld > m_xDefaultVS
std::unique_ptr< weld::Label > m_xLbl3
std::unique_ptr< weld::CustomWeld > m_xFrameExampleWN
std::unique_ptr< weld::Label > m_xLineTypeLbl
virtual ~SwColumnPage() override
bool isLineNotNone() const
std::unique_ptr< weld::Label > m_xLineWidthLbl
std::unique_ptr< weld::CheckButton > m_xAutoWidthBox
virtual bool FillItemSet(SfxItemSet *rSet) override
tools::Long m_nColWidth[nMaxCols]
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
std::unique_ptr< weld::MetricSpinButton > m_xLineHeightEdit
sal_uInt16 GetFullSelectedSectionCount() const
Search inside the cursor selection for full selected sections.
const SwSection * GetCurrSection() const
bool IsInsRegionAvailable() const
const SwPageDesc * GetSelectedPageDescs() const
if inside all selection only one PageDesc,
void CalcBoundRect(SwRect &_orRect, const RndStdIds _nAnchorId, const sal_Int16 _eHoriRelOrient=css::text::RelOrientation::FRAME, const sal_Int16 _eVertRelOrient=css::text::RelOrientation::FRAME, const SwFormatAnchor *_pToCharContentPos=nullptr, const bool _bFollowTextFlow=false, bool _bMirror=false, Point *_opRef=nullptr, Size *_opPercent=nullptr, const SwFormatFrameSize *pFormatFrameSize=nullptr) const
i#17567 - adjustments to allow negative vertical positions for fly frames anchored to paragraph or to...
tools::Long GetSectionWidth(SwFormat const &rFormat) const
Width of current range for column-dialog.
const SwFrameFormat * GetFlyFrameFormat() const
Get FlyFrameFormat; for UI macro linkage at Flys.
const OUString & GetName() const
SwFrameFormat & GetMaster()
const weld::MetricSpinButton * get() const
sal_Int64 DenormalizePercent(sal_Int64 nValue)
sal_Int64 get_value(FieldUnit eOutUnit=FieldUnit::NONE)
Of course Writer needs its own rectangles.
void Width(tools::Long nNew)
SwSectionFormat * GetFormat()
const SfxItemPool & GetAttrPool() const
Used by the UI to modify the document model.
bool HasSelection() const
vcl::RenderContext * GetRenderContext() const
const tools::Rectangle & GetRect() const
sal_uInt16 GetItemId() const
virtual void StyleUpdated() override
static BorderWidthImpl getWidthImpl(SvxBorderLineStyle nStyle)
virtual OUString get_active_id() const=0
virtual void insert(int pos, const OUString &rStr, const OUString *pId, const OUString *pIconName, VirtualDevice *pImageSurface)=0
virtual int find_id(const OUString &rId) const=0
virtual void set_active(int pos)=0
virtual OUString get_text(int pos) const=0
virtual void remove(int pos)=0
virtual int get_count() const=0
void remove_id(const OUString &rId)
void connect_changed(const Link< ComboBox &, void > &rLink)
IMPL_LINK(SwColumnDlg, ObjectListBoxHdl, weld::ComboBox &, rBox, void)
const sal_uInt16 nVisCols
IMPL_LINK_NOARG(SwColumnDlg, OkHdl, weld::Button &, void)
static bool IsMarkInSameSection(SwWrtShell &rWrtSh, const SwSection *pSect)
#define FRAME_FORMAT_WIDTH
#define LISTBOX_SELECTION
constexpr sal_uInt16 g_nMinWidth(MINLAY)
static sal_uInt16 GetMaxWidth(SwColMgr const *pColMgr, sal_uInt16 nCols)
SVXCORE_DLLPUBLIC OUString SvxResId(TranslateId aId)
@ Variable
Frame is variable in Var-direction.
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(126)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SwFormatCol > RES_COL(115)
constexpr TypedWhichId< SwFormatNoBalancedColumns > RES_COLUMNBALANCE(125)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
#define LINK(Instance, Class, Member)
constexpr OUStringLiteral aData
static constexpr auto Items
double ConvertDoubleValue(double nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
SwNodeOffset abs(const SwNodeOffset &a)
OUString SwResId(TranslateId aId)
constexpr OUStringLiteral PERCENT(u"Percent")
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)