40 #include <uiitems.hxx>
45 #include <globals.hrc>
46 #include <strings.hrc>
53 #include <officecfg/Office/Common.hxx>
87 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/viewoptionspage.ui",
"ViewOptionsPage", &rCoreSet)
88 , m_xCrossCB(m_xBuilder->weld_check_button(
"helplines"))
89 , m_xHMetric(m_xBuilder->weld_combo_box(
"hrulercombobox"))
90 , m_xVRulerCBox(m_xBuilder->weld_check_button(
"vruler"))
91 , m_xVRulerRightCBox(m_xBuilder->weld_check_button(
"vrulerright"))
92 , m_xVMetric(m_xBuilder->weld_combo_box(
"vrulercombobox"))
93 , m_xSmoothCBox(m_xBuilder->weld_check_button(
"smoothscroll"))
94 , m_xGrfCB(m_xBuilder->weld_check_button(
"graphics"))
95 , m_xTableCB(m_xBuilder->weld_check_button(
"tables"))
96 , m_xDrwCB(m_xBuilder->weld_check_button(
"drawings"))
97 , m_xPostItCB(m_xBuilder->weld_check_button(
"comments"))
98 , m_xSettingsFrame(m_xBuilder->weld_frame(
"settingsframe"))
99 , m_xSettingsLabel(m_xBuilder->weld_label(
"settingslabel"))
100 , m_xMetricLabel(m_xBuilder->weld_label(
"measureunitlabel"))
101 , m_xMetricLB(m_xBuilder->weld_combo_box(
"measureunit"))
102 , m_xShowInlineTooltips(m_xBuilder->weld_check_button(
"changestooltip"))
103 , m_xOutlineLabel(m_xBuilder->weld_label(
"outlinelabel"))
104 , m_xShowOutlineContentVisibilityButton(m_xBuilder->weld_check_button(
"outlinecontentvisibilitybutton"))
105 , m_xTreatSubOutlineLevelsAsContent(m_xBuilder->weld_check_button(
"suboutlinelevelsascontent"))
106 , m_xShowChangesInMargin(m_xBuilder->weld_check_button(
"changesinmargin"))
107 , m_xFieldHiddenCB(m_xBuilder->weld_check_button(
"hiddentextfield"))
108 , m_xFieldHiddenParaCB(m_xBuilder->weld_check_button(
"hiddenparafield"))
123 if (! (SfxItemState::SET == rCoreSet.
GetItemState(SID_HTML_MODE,
false, &pItem )
146 case FieldUnit::POINT:
147 case FieldUnit::PICA:
148 case FieldUnit::INCH:
149 case FieldUnit::CHAR:
150 case FieldUnit::LINE:
155 if (eFUnit != FieldUnit::LINE)
157 m_xMetricLB->append(OUString::number(static_cast<sal_uInt32>(eFUnit)), sMetric);
158 m_xHMetric->append(OUString::number(static_cast<sal_uInt32>(eFUnit)), sMetric);
161 if (eFUnit != FieldUnit::CHAR)
163 m_xVMetric->append(OUString::number(static_cast<sal_uInt32>(eFUnit)), sMetric);
179 return std::make_unique<SwContentOptPage>(pPage, pController, *rAttrSet);
185 if( rSet.
GetItemState( nSID,
false, &pItem ) >= SfxItemState::DEFAULT )
188 for (sal_Int32
i = 0, nEntryCount = rMetric.
get_count();
i < nEntryCount; ++
i)
190 if (rMetric.
get_id(
i).toUInt32() ==
static_cast<sal_uInt32
>(eFieldUnit))
205 reinterpret_cast<const SfxPoolItem**>(&pElemAttr) );
251 bool bRet = !pOldAttr || aElem != *pOldAttr;
253 bRet =
nullptr != rSet->
Put(aElem);
256 sal_Int32 nGlobalMetricPos = nMPos;
259 const sal_uInt16 nFieldUnit =
m_xMetricLB->get_id(nMPos).toUInt32();
265 if (
m_xHMetric->get_value_changed_from_saved() || nMPos != nGlobalMetricPos )
267 const sal_uInt16 nFieldUnit =
m_xHMetric->get_id(nMPos).toUInt32();
272 if (
m_xVMetric->get_value_changed_from_saved() || nMPos != nGlobalMetricPos )
274 const sal_uInt16 nFieldUnit =
m_xVMetric->get_id(nMPos).toUInt32();
284 m_xVRulerRightCBox->set_sensitive(rBox.get_sensitive() && rBox.get_active());
289 m_xTreatSubOutlineLevelsAsContent->set_sensitive(rBox.get_active());
295 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/printoptionspage.ui",
"PrintOptionsPage", &rCoreSet)
297 , bAttrModified(false)
299 , m_xGrfCB(m_xBuilder->weld_check_button(
"graphics"))
300 , m_xCtrlFieldCB(m_xBuilder->weld_check_button(
"formcontrols"))
301 , m_xBackgroundCB(m_xBuilder->weld_check_button(
"background"))
302 , m_xBlackFontCB(m_xBuilder->weld_check_button(
"inblack"))
303 , m_xPrintHiddenTextCB(m_xBuilder->weld_check_button(
"hiddentext"))
304 , m_xPrintTextPlaceholderCB(m_xBuilder->weld_check_button(
"textplaceholder"))
305 , m_xPagesFrame(m_xBuilder->weld_widget(
"pagesframe"))
306 , m_xLeftPageCB(m_xBuilder->weld_check_button(
"leftpages"))
307 , m_xRightPageCB(m_xBuilder->weld_check_button(
"rightpages"))
308 , m_xProspectCB(m_xBuilder->weld_check_button(
"brochure"))
309 , m_xProspectCB_RTL(m_xBuilder->weld_check_button(
"rtl"))
310 , m_xCommentsFrame(m_xBuilder->weld_widget(
"commentsframe"))
311 , m_xNoRB(m_xBuilder->weld_radio_button(
"none"))
312 , m_xOnlyRB(m_xBuilder->weld_radio_button(
"only"))
313 , m_xEndRB(m_xBuilder->weld_radio_button(
"end"))
314 , m_xEndPageRB(m_xBuilder->weld_radio_button(
"endpage"))
315 , m_xInMarginsRB(m_xBuilder->weld_radio_button(
"inmargins"))
316 , m_xPrintEmptyPagesCB(m_xBuilder->weld_check_button(
"blankpages"))
317 , m_xPaperFromSetupCB(m_xBuilder->weld_check_button(
"papertray"))
318 , m_xFaxLB(m_xBuilder->weld_combo_box(
"fax"))
337 m_xNoRB->connect_toggled( aLk );
341 if(SfxItemState::SET == rCoreSet.
GetItemState(SID_HTML_MODE,
false, &pItem )
369 return std::make_unique<SwAddPrinterTabPage>(pPage, pController, *rAttrSet);
406 const OUString sFax =
m_xFaxLB->get_active_text();
408 rCoreSet->
Put(aAddPrinterAttr);
419 reinterpret_cast<const SfxPoolItem**>(&pAddPrinterAttr) ))
448 m_xNoRB->set_sensitive(
false );
459 bAttrModified =
true;
460 bool bIsProspect = m_xProspectCB->get_active();
462 m_xProspectCB_RTL->set_active(
false );
463 m_xProspectCB_RTL->set_sensitive( bIsProspect );
464 m_xNoRB->set_sensitive( !bIsProspect );
465 m_xOnlyRB->set_sensitive( !bIsProspect );
466 m_xEndRB->set_sensitive( !bIsProspect );
467 m_xEndPageRB->set_sensitive( !bIsProspect );
468 m_xInMarginsRB->set_sensitive( !bIsProspect );
474 for(
const auto &
i : rFaxLst)
495 if (pListItem && pListItem->
GetValue())
497 std::vector<OUString> aFaxList;
499 for (
const auto & rPrinter : rPrinters)
500 aFaxList.insert(aFaxList.begin(), rPrinter);
507 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/optfonttabpage.ui",
"OptFontTabPage", &rSet)
509 , m_pFontConfig(nullptr)
510 , m_pWrtShell(nullptr)
512 , m_bListDefault(false)
513 , m_bSetListDefault(true)
514 , m_bLabelDefault(false)
515 , m_bSetLabelDefault(true)
516 , m_bIdxDefault(false)
517 , m_bSetIdxDefault(true)
518 , m_bDisposePrinter(false)
519 , m_bListHeightDefault(false)
520 , m_bLabelHeightDefault(false)
521 , m_bIndexHeightDefault(false)
523 , m_sScriptWestern(
SwResId(ST_SCRIPT_WESTERN))
524 , m_sScriptAsian(
SwResId(ST_SCRIPT_ASIAN))
525 , m_sScriptComplex(
SwResId(ST_SCRIPT_CTL))
526 , m_xLabelFT(m_xBuilder->weld_label(
"label1"))
527 , m_xStandardBox(m_xBuilder->weld_combo_box(
"standardbox"))
528 , m_xStandardHeightLB(new
FontSizeBox(m_xBuilder->weld_combo_box(
"standardheight")))
529 , m_xTitleBox(m_xBuilder->weld_combo_box(
"titlebox"))
530 , m_xTitleHeightLB(new
FontSizeBox(m_xBuilder->weld_combo_box(
"titleheight")))
531 , m_xListBox(m_xBuilder->weld_combo_box(
"listbox"))
532 , m_xListHeightLB(new
FontSizeBox(m_xBuilder->weld_combo_box(
"listheight")))
533 , m_xLabelBox(m_xBuilder->weld_combo_box(
"labelbox"))
534 , m_xLabelHeightLB(new
FontSizeBox(m_xBuilder->weld_combo_box(
"labelheight")))
535 , m_xIdxBox(m_xBuilder->weld_combo_box(
"idxbox"))
536 , m_xIndexHeightLB(new
FontSizeBox(m_xBuilder->weld_combo_box(
"indexheight")))
537 , m_xStandardPB(m_xBuilder->weld_button(
"standard"))
555 m_xIdxBox->connect_focus_out( aFocusLink );
575 return std::make_unique<SwStdFontTabPage>(pPage, pController, *rAttrSet);
579 SfxPrinter const * pPrt,
const OUString& rStyle,
580 sal_uInt16 nFontWhich)
584 aFont = pPrt->GetFontMetric( aFont );
591 sal_Int32 nHeight, sal_uInt16 nFontHeightWhich)
593 float fSize =
static_cast<float>(nHeight) / 10;
594 nHeight =
CalcToUnit( fSize, MapUnit::MapTwip );
601 SW_MOD()->GetModuleConfig()->SetDefaultFontInCurrDocOnly(
false);
604 const OUString sTitle =
m_xTitleBox->get_active_text();
605 const OUString sList =
m_xListBox->get_active_text();
606 const OUString sLabel =
m_xLabelBox->get_active_text();
607 const OUString sIdx =
m_xIdxBox->get_active_text();
610 bool bTitleHeightChanged =
m_xTitleHeightLB->get_value_changed_from_saved();
620 if(bStandardHeightChanged)
625 if(bTitleHeightChanged)
630 if(bListHeightChanged)
635 if(bLabelHeightChanged)
640 if(bIndexHeightChanged)
651 const sal_uInt16 nFontWhich =
654 const sal_uInt16 nFontHeightWhich =
661 aFont = pPrinter->GetFontMetric( aFont );
668 if(bStandardHeightChanged)
682 if(bTitleHeightChanged)
685 sal::static_int_cast< sal_uInt16, sal_Int64 >(
m_xTitleHeightLB->get_value()), nFontHeightWhich);
693 if(bListHeightChanged)
696 sal::static_int_cast< sal_uInt16, sal_Int64 >(
m_xListHeightLB->get_value()), nFontHeightWhich);
704 if(bLabelHeightChanged)
707 sal::static_int_cast< sal_uInt16, sal_Int64 >(
m_xLabelHeightLB->get_value()), nFontHeightWhich);
715 if(bIndexHeightChanged)
718 sal::static_int_cast< sal_uInt16, sal_Int64 >(
m_xIndexHeightLB->get_value()), nFontHeightWhich);
734 if( SfxItemState::SET == rSet->
GetItemState(nLangSlot,
false, &pLang))
735 m_eLanguage = static_cast<const SvxLanguageItem*>(pLang)->GetValue();
758 auto pPrinterSet = std::make_unique<SfxItemSet>( *rSet->
GetPool(),
759 svl::Items<SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
760 SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC>{} );
769 std::set< OUString > aFontNames;
770 int nFontNames =
m_pPrt->GetDevFontCount();
771 for(
int i = 0;
i < nFontNames;
i++ )
774 aFontNames.insert( aFontMetric.GetFamilyName() );
778 for(
const auto& rFontName : aFontNames )
798 OUString sListBackup;
801 sal_Int32 nStandardHeight = -1;
802 sal_Int32 nTitleHeight = -1;
803 sal_Int32 nListHeight = -1;
804 sal_Int32 nLabelHeight = -1;
805 sal_Int32 nIndexHeight = -1;
819 if( nStandardHeight <= 0)
821 if( nTitleHeight <= 0)
823 if( nListHeight <= 0)
825 if( nLabelHeight <= 0)
827 if( nIndexHeight <= 0)
837 const sal_uInt16 nFontHeightWhich =
841 nStandardHeight =
static_cast<sal_Int32
>(rFontHeightStandard.
GetHeight());
849 nTitleHeight =
static_cast<sal_Int32
>(rFontHeightTitle.
GetHeight());
851 const sal_uInt16 nFontWhich =
861 nListHeight =
static_cast<sal_Int32
>(rFontHeightList.
GetHeight());
870 nLabelHeight =
static_cast<sal_Int32
>(rFontHeightLabel.
GetHeight());
879 nIndexHeight =
static_cast<sal_Int32
>(rFontHeightIndex.
GetHeight());
890 aFontMetric =
m_pFontList->Get(sOutBackup, sOutBackup );
892 aFontMetric =
m_pFontList->Get(sListBackup,sListBackup);
894 aFontMetric =
m_pFontList->Get(sCapBackup, sCapBackup );
896 aFontMetric =
m_pFontList->Get(sIdxBackup, sIdxBackup );
927 m_xStandardBox->save_value();
928 m_xTitleBox->save_value();
929 m_xListBox->save_value();
930 m_xLabelBox->save_value();
931 m_xIdxBox->save_value();
935 MapUnit::MapTwip, 10 ));
938 nFontOffset, m_eLanguage), MapUnit::MapTwip, 10 ));
941 MapUnit::MapTwip, 10 ));
944 MapUnit::MapTwip, 10 ));
947 MapUnit::MapTwip, 10 ));
952 if (&rBox == m_xStandardBox.get())
954 const OUString sEntry = rBox.get_active_text();
955 if(m_bSetListDefault && m_bListDefault)
956 m_xListBox->set_entry_text(sEntry);
957 if(m_bSetLabelDefault && m_bLabelDefault)
958 m_xLabelBox->set_entry_text(sEntry);
959 if(m_bSetIdxDefault && m_bIdxDefault)
960 m_xIdxBox->set_entry_text(sEntry);
962 else if (&rBox == m_xListBox.get())
964 m_bSetListDefault =
false;
966 else if (&rBox == m_xLabelBox.get())
968 m_bSetLabelDefault =
false;
970 else if (&rBox == m_xIdxBox.get())
972 m_bSetIdxDefault =
false;
981 if (&rBox == m_xStandardBox.get())
983 pHeightLB = m_xStandardHeightLB.get();
985 else if (&rBox == m_xTitleBox.get())
987 pHeightLB = m_xTitleHeightLB.get();
989 else if (&rBox == m_xListBox.get())
991 pHeightLB = m_xListHeightLB.get();
993 else if (&rBox == m_xLabelBox.get())
995 pHeightLB = m_xLabelHeightLB.get();
999 pHeightLB = m_xIndexHeightLB.get();
1001 FontMetric aFontMetric( m_pFontList->Get(sEntry, sEntry) );
1002 pHeightLB->
Fill( &aFontMetric, m_pFontList.get() );
1013 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/opttablepage.ui",
"OptTablePage", &rSet)
1014 , m_pWrtShell(nullptr)
1015 , m_bHTMLMode(false)
1016 , m_xHeaderCB(m_xBuilder->weld_check_button(
"header"))
1017 , m_xRepeatHeaderCB(m_xBuilder->weld_check_button(
"repeatheader"))
1018 , m_xDontSplitCB(m_xBuilder->weld_check_button(
"dontsplit"))
1019 , m_xBorderCB(m_xBuilder->weld_check_button(
"border"))
1020 , m_xNumFormattingCB(m_xBuilder->weld_check_button(
"numformatting"))
1021 , m_xNumFormatFormattingCB(m_xBuilder->weld_check_button(
"numfmtformatting"))
1022 , m_xNumAlignmentCB(m_xBuilder->weld_check_button(
"numalignment"))
1023 , m_xRowMoveMF(m_xBuilder->weld_metric_spin_button(
"rowmove",
FieldUnit::
CM))
1024 , m_xColMoveMF(m_xBuilder->weld_metric_spin_button(
"colmove",
FieldUnit::
CM))
1025 , m_xRowInsertMF(m_xBuilder->weld_metric_spin_button(
"rowinsert",
FieldUnit::
CM))
1026 , m_xColInsertMF(m_xBuilder->weld_metric_spin_button(
"colinsert",
FieldUnit::
CM))
1027 , m_xFixRB(m_xBuilder->weld_radio_button(
"fix"))
1028 , m_xFixPropRB(m_xBuilder->weld_radio_button(
"fixprop"))
1029 , m_xVarRB(m_xBuilder->weld_radio_button(
"var"))
1044 return std::make_unique<SwTableOptionsTabPage>(pPage, pController, *rAttrSet);
1079 static sal_uInt16 aInva[] =
1137 if ( rSet->
GetItemState( SID_ATTR_METRIC ) >= SfxItemState::DEFAULT )
1159 if(SfxItemState::SET == rSet->
GetItemState(SID_HTML_MODE,
false, &pItem))
1200 m_xNumFormatFormattingCB->set_sensitive(m_xNumFormattingCB->get_active());
1201 m_xNumAlignmentCB->set_sensitive(m_xNumFormattingCB->get_active());
1202 m_xRepeatHeaderCB->set_sensitive(m_xHeaderCB->get_active());
1213 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/optformataidspage.ui",
"OptFormatAidsPage", &rSet)
1214 , m_pWrtShell(nullptr)
1215 , m_xParaCB(m_xBuilder->weld_check_button(
"paragraph"))
1216 , m_xSHyphCB(m_xBuilder->weld_check_button(
"hyphens"))
1217 , m_xSpacesCB(m_xBuilder->weld_check_button(
"spaces"))
1218 , m_xHSpacesCB(m_xBuilder->weld_check_button(
"nonbreak"))
1219 , m_xTabCB(m_xBuilder->weld_check_button(
"tabs"))
1220 , m_xTabLabel(m_xBuilder->weld_label(
"tabs_label"))
1221 , m_xBreakCB(m_xBuilder->weld_check_button(
"break"))
1222 , m_xCharHiddenCB(m_xBuilder->weld_check_button(
"hiddentext"))
1223 , m_xBookmarkCB(m_xBuilder->weld_check_button(
"bookmarks"))
1224 , m_xBookmarkLabel(m_xBuilder->weld_label(
"bookmarks_label"))
1225 , m_xDirectCursorFrame(m_xBuilder->weld_frame(
"directcrsrframe"))
1226 , m_xOnOffCB(m_xBuilder->weld_check_button(
"cursoronoff"))
1227 , m_xDirectCursorFillMode(m_xBuilder->weld_combo_box(
"cxDirectCursorFillMode"))
1228 , m_xCursorProtFrame(m_xBuilder->weld_frame(
"crsrprotframe"))
1229 , m_xImageFrame(m_xBuilder->weld_frame(
"frmImage"))
1230 , m_xCursorInProtCB(m_xBuilder->weld_check_button(
"cursorinprot"))
1231 , m_xDefaultAnchorType(m_xBuilder->weld_combo_box(
"cxDefaultAnchor"))
1232 , m_xMathBaselineAlignmentCB(m_xBuilder->weld_check_button(
"mathbaseline"))
1242 bIsOn = aOpt.IsOn();
1247 if(SfxItemState::SET != rSet.
GetItemState(SID_HTML_MODE,
false, &pItem )
1271 return std::make_unique<SwShdwCursorOptionsTabPage>(pPage, pController, *rSet);
1325 bRet |= (!pOldAttr || aDisp != *pOldAttr);
1327 bRet =
nullptr != rSet->
Put(aDisp);
1342 bIsOn = aOpt.IsOn();
1355 m_xCursorInProtCB->set_active(static_cast<const SfxBoolItem*>(pItem)->GetValue());
1361 reinterpret_cast<const SfxPoolItem**>(&pDocDisplayAttr) );
1390 { SID_ATTR_CHAR_CASEMAP, sal_uInt16(SvxCaseMap::NotMapped) },
1396 { SID_ATTR_CHAR_CASEMAP, sal_uInt16(SvxCaseMap::Uppercase) },
1397 { SID_ATTR_CHAR_CASEMAP, sal_uInt16(SvxCaseMap::Lowercase) },
1398 { SID_ATTR_CHAR_CASEMAP, sal_uInt16(SvxCaseMap::SmallCaps) },
1399 { SID_ATTR_CHAR_CASEMAP, sal_uInt16(SvxCaseMap::Capitalize) },
1400 { SID_ATTR_BRUSH, 0 }
1460 const tools::Long nCorr = (nWidth & 1) != 0 ? 0 : 1;
1468 aShadow +=
Point(3, 3);
1523 aTextLine.
Move(0, 4);
1531 if (
i == (nLines - 1))
1537 aTextLine.
Move(0, nStep);
1539 aTextLine.
Move(0, -nStep);
1552 void lcl_FillRedlineAttrListBox(
1554 const sal_uInt16* pAttrMap,
const size_t nAttrMapSize)
1556 for (
size_t i = 0;
i != nAttrMapSize; ++
i)
1558 CharAttr
const & rAttr(aRedlineAttr[pAttrMap[i]]);
1559 rLB.
set_id(i, OUString::number(reinterpret_cast<sal_Int64>(&rAttr)));
1560 if (rAttr.nItemId == rAttrToSelect.
m_nItemId &&
1561 rAttr.nAttr == rAttrToSelect.
m_nAttr)
1569 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/optredlinepage.ui",
"OptRedLinePage", &rSet)
1570 , m_xInsertLB(m_xBuilder->weld_combo_box(
"insert"))
1571 , m_xInsertColorLB(new
ColorListBox(m_xBuilder->weld_menu_button(
"insertcolor"),
1574 , m_xInsertedPreview(
new weld::CustomWeld(*m_xBuilder,
"insertedpreview", *m_xInsertedPreviewWN))
1575 , m_xDeletedLB(m_xBuilder->weld_combo_box(
"deleted"))
1576 , m_xDeletedColorLB(
new ColorListBox(m_xBuilder->weld_menu_button(
"deletedcolor"),
1577 [
this]{
return GetDialogController()->getDialog(); }))
1579 , m_xDeletedPreview(
new weld::CustomWeld(*m_xBuilder,
"deletedpreview", *m_xDeletedPreviewWN))
1580 , m_xChangedLB(m_xBuilder->weld_combo_box(
"changed"))
1581 , m_xChangedColorLB(
new ColorListBox(m_xBuilder->weld_menu_button(
"changedcolor"),
1582 [
this]{
return GetDialogController()->getDialog(); }))
1584 , m_xChangedPreview(
new weld::CustomWeld(*m_xBuilder,
"changedpreview", *m_xChangedPreviewWN))
1585 , m_xMarkPosLB(m_xBuilder->weld_combo_box(
"markpos"))
1586 , m_xMarkColorLB(
new ColorListBox(m_xBuilder->weld_menu_button(
"markcolor"),
1587 [
this]{
return GetDialogController()->getDialog(); }))
1589 , m_xMarkPreview(
new weld::CustomWeld(*m_xBuilder,
"markpreview", *m_xMarkPreviewWN))
1593 m_xInsertColorLB->SetSlotId(SID_AUTHOR_COLOR,
true);
1594 m_xDeletedColorLB->SetSlotId(SID_AUTHOR_COLOR,
true);
1595 m_xChangedColorLB->SetSlotId(SID_AUTHOR_COLOR,
true);
1597 m_xInsertedPreviewWN->set_size_request(aPreviewSize.Width(), aPreviewSize.Height());
1598 m_xDeletedPreviewWN->set_size_request(aPreviewSize.Width(), aPreviewSize.Height());
1599 m_xChangedPreviewWN->set_size_request(aPreviewSize.Width(), aPreviewSize.Height());
1600 m_xMarkPreviewWN->set_size_request(aPreviewSize.Width(), aPreviewSize.Height());
1602 for (sal_Int32 i = 0, nEntryCount = m_xInsertLB->get_count();
i < nEntryCount; ++
i)
1604 const OUString sEntry(m_xInsertLB->get_text(i));
1605 m_xDeletedLB->append_text(sEntry);
1606 m_xChangedLB->append_text(sEntry);
1611 m_xInsertLB->remove(5);
1612 m_xChangedLB->remove(5);
1613 m_xDeletedLB->remove(4);
1614 m_xDeletedLB->remove(3);
1617 m_xInsertLB->connect_changed( aLk );
1618 m_xDeletedLB->connect_changed( aLk );
1619 m_xChangedLB->connect_changed( aLk );
1622 m_xInsertColorLB->SetSelectHdl( aLk2 );
1623 m_xDeletedColorLB->SetSelectHdl( aLk2 );
1624 m_xChangedColorLB->SetSelectHdl( aLk2 );
1648 return std::make_unique<SwRedlineOptionsTabPage>(pPage, pController, *rSet);
1670 pAttr =
reinterpret_cast<CharAttr*
>(
m_xInsertLB->get_id(nPos).toInt64());
1671 aInsertedAttr.
m_nItemId = pAttr->nItemId;
1672 aInsertedAttr.
m_nAttr = pAttr->nAttr;
1680 pAttr =
reinterpret_cast<CharAttr*
>(
m_xDeletedLB->get_id(nPos).toInt64());
1681 aDeletedAttr.
m_nItemId = pAttr->nItemId;
1682 aDeletedAttr.
m_nAttr = pAttr->nAttr;
1690 pAttr =
reinterpret_cast<CharAttr*
>(
m_xChangedLB->get_id(nPos).toInt64());
1691 aChangedAttr.
m_nItemId = pAttr->nItemId;
1692 aChangedAttr.
m_nAttr = pAttr->nAttr;
1701 case 1: nPos = text::HoriOrientation::LEFT;
break;
1702 case 2: nPos = text::HoriOrientation::RIGHT;
break;
1703 case 3: nPos = text::HoriOrientation::OUTSIDE;
break;
1704 case 4: nPos = text::HoriOrientation::INSIDE;
break;
1709 if (!(aInsertedAttr == aOldInsertAttr) ||
1710 !(aDeletedAttr == aOldDeletedAttr) ||
1711 !(aChangedAttr == aOldChangedAttr) ||
1764 case text::HoriOrientation::LEFT: nPos = 1;
break;
1765 case text::HoriOrientation::RIGHT: nPos = 2;
break;
1766 case text::HoriOrientation::OUTSIDE: nPos = 3;
break;
1767 case text::HoriOrientation::INSIDE: nPos = 4;
break;
1787 if (&rLB == m_xInsertLB.get())
1789 pColorLB = m_xInsertColorLB.get();
1790 pPrev = m_xInsertedPreviewWN.get();
1792 else if (&rLB == m_xDeletedLB.get())
1794 pColorLB = m_xDeletedColorLB.get();
1795 pPrev = m_xDeletedPreviewWN.get();
1799 pColorLB = m_xChangedColorLB.get();
1800 pPrev = m_xChangedPreviewWN.get();
1831 rFont.SetColor(aColor);
1832 rCJKFont.SetColor(aColor);
1839 CharAttr* pAttr =
reinterpret_cast<CharAttr*
>(rLB.
get_id(nPos).toInt64());
1842 switch (pAttr->nItemId)
1844 case SID_ATTR_CHAR_WEIGHT:
1845 rFont.SetWeight( static_cast<FontWeight>(pAttr->nAttr) );
1846 rCJKFont.SetWeight( static_cast<FontWeight>(pAttr->nAttr) );
1849 case SID_ATTR_CHAR_POSTURE:
1850 rFont.SetItalic( static_cast<FontItalic>(pAttr->nAttr) );
1851 rCJKFont.SetItalic( static_cast<FontItalic>(pAttr->nAttr) );
1854 case SID_ATTR_CHAR_UNDERLINE:
1855 rFont.SetUnderline( static_cast<FontLineStyle>(pAttr->nAttr) );
1856 rCJKFont.SetUnderline( static_cast<FontLineStyle>(pAttr->nAttr) );
1859 case SID_ATTR_CHAR_STRIKEOUT:
1860 rFont.SetStrikeout( static_cast<FontStrikeout>(pAttr->nAttr) );
1861 rCJKFont.SetStrikeout( static_cast<FontStrikeout>(pAttr->nAttr) );
1864 case SID_ATTR_CHAR_CASEMAP:
1865 rFont.
SetCaseMap( static_cast<SvxCaseMap>(pAttr->nAttr) );
1866 rCJKFont.
SetCaseMap( static_cast<SvxCaseMap>(pAttr->nAttr) );
1869 case SID_ATTR_BRUSH:
1882 pPrev->Invalidate();
1891 if (pColorLB == m_xInsertColorLB.get())
1893 pLB = m_xInsertLB.get();
1894 pPrev = m_xInsertedPreviewWN.get();
1896 else if (pColorLB == m_xDeletedColorLB.get())
1898 pLB = m_xDeletedLB.get();
1899 pPrev = m_xDeletedPreviewWN.get();
1903 pLB = m_xChangedLB.get();
1904 pPrev = m_xChangedPreviewWN.get();
1913 CharAttr* pAttr =
reinterpret_cast<CharAttr*
>(pLB->
get_id(nPos).toInt64());
1915 if( pAttr->nItemId == SID_ATTR_BRUSH )
1942 rFont.SetColor(aColor);
1943 rCJKFont.SetColor(aColor);
1947 pPrev->Invalidate();
1977 OutputDevice& rDevice = rExampleWin.GetDrawingArea()->get_ref_device();
1980 GetDefaultFontFlags::OnlyOne, &rDevice ) );
1982 GetDefaultFontFlags::OnlyOne, &rDevice ) );
1984 GetDefaultFontFlags::OnlyOne, &rDevice ) );
1985 const Size aDefSize( 0, 12 );
1999 rCJKFont = aCJKFont;
2000 rCTLFont = aCTLFont;
2002 const Size aNewSize( 0, rExampleWin.GetOutputSizePixel().Height() * 2 / 3 );
2003 rFont.SetFontSize( aNewSize );
2004 rCJKFont.SetFontSize( aNewSize );
2006 rExampleWin.
SetFont( rFont, rCJKFont,rCTLFont );
2011 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/optcomparison.ui",
"OptComparison", &rSet)
2012 , m_xAutoRB(m_xBuilder->weld_radio_button(
"auto"))
2013 , m_xWordRB(m_xBuilder->weld_radio_button(
"byword"))
2014 , m_xCharRB(m_xBuilder->weld_radio_button(
"bycharacter"))
2015 , m_xRsidCB(m_xBuilder->weld_check_button(
"useRSID"))
2016 , m_xIgnoreCB(m_xBuilder->weld_check_button(
"ignore"))
2017 , m_xLenNF(m_xBuilder->weld_spin_button(
"ignorelen"))
2018 , m_xStoreRsidCB(m_xBuilder->weld_check_button(
"storeRSID"))
2034 return std::make_unique<SwCompareOptionsTabPage>(pPage, pController, *rAttrSet);
2042 if(
m_xAutoRB->get_state_changed_from_saved() ||
2043 m_xWordRB->get_state_changed_from_saved() ||
2044 m_xCharRB->get_state_changed_from_saved() )
2056 if(
m_xRsidCB->get_state_changed_from_saved() )
2068 if(
m_xLenNF->get_value_changed_from_saved() )
2130 bool bChecked = !m_xAutoRB->get_active();
2131 m_xRsidCB->set_sensitive( bChecked );
2132 m_xIgnoreCB->set_sensitive( bChecked );
2133 m_xLenNF->set_sensitive( bChecked && m_xIgnoreCB->get_active() );
2138 m_xLenNF->set_sensitive(m_xIgnoreCB->get_active());
2144 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/opttestpage.ui",
"OptTestPage", &rCoreSet)
2145 , bAttrModified( false )
2146 , m_xTest1CBox(m_xBuilder->weld_check_button(
"unused"))
2147 , m_xTest2CBox(m_xBuilder->weld_check_button(
"dynamic"))
2148 , m_xTest3CBox(m_xBuilder->weld_check_button(
"nocalm"))
2149 , m_xTest4CBox(m_xBuilder->weld_check_button(
"wysiwygdbg"))
2150 , m_xTest5CBox(m_xBuilder->weld_check_button(
"noidle"))
2151 , m_xTest6CBox(m_xBuilder->weld_check_button(
"noscreenadj"))
2152 , m_xTest7CBox(m_xBuilder->weld_check_button(
"winformat"))
2153 , m_xTest8CBox(m_xBuilder->weld_check_button(
"noscroll"))
2154 , m_xTest9CBox(m_xBuilder->weld_check_button(
"DrawingLayerNotLoading"))
2155 , m_xTest10CBox(m_xBuilder->weld_check_button(
"AutoFormatByInput"))
2167 return std::make_unique<SwTestTabPage>(pPage, pController, *rAttrSet);
2186 rCoreSet->
Put(aTestItem);
2197 reinterpret_cast<const SfxPoolItem**>(&pTestAttr) ))
2230 bAttrModified =
true;
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
void SetDefault(const SfxPoolItem &)
Set attribute as new default attribute in document.
std::unique_ptr< weld::ComboBox > m_xTitleBox
SfxViewFrame * GetViewFrame() const
#define LINK(Instance, Class, Member)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
sal_Int32 m_xDefaultAnchor
const Color & GetShadowColor() const
std::unique_ptr< weld::CheckButton > m_xTableCB
void SetFillColor(const Color &)
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::CustomWeld > m_xInsertedPreview
void UpdateRedlineAttr()
Redline attributes have been changed. Updated views.
sal_uInt16 GetTableVMove() const
void SetFontSize(const Size &)
void SetFontStandard(const OUString &rSet, sal_uInt8 nFontGroup)
std::unique_ptr< weld::ComboBox > m_xIdxBox
Represents the style of a paragraph.
SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
const OUString & GetFamilyName() const
std::unique_ptr< ColorListBox > m_xInsertColorLB
std::unique_ptr< weld::CheckButton > m_xNumAlignmentCB
virtual void Reset(const SfxItemSet *rSet) override
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xRepeatHeaderCB
SwRedlineOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::CheckButton > m_xPostItCB
const LanguageTag & GetUILanguageTag() const
std::unique_ptr< weld::ComboBox > m_xListBox
void SetFontCaption(const OUString &rSet, sal_uInt8 nFontGroup)
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xTest3CBox
std::unique_ptr< weld::CheckButton > m_xProspectCB
constexpr OUStringLiteral sNone
LanguageType getLanguageType(bool bResolveSystem=true) const
std::unique_ptr< weld::CheckButton > m_xCtrlFieldCB
constexpr::Color COL_RED(0x80, 0x00, 0x00)
SwTestTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::CheckButton > m_xTest4CBox
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
CharAttr const aRedlineAttr[]
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
void SetFontList(const OUString &rSet, sal_uInt8 nFontGroup)
bool IsIgnorePieces() const
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
SwStdFontConfig * m_pFontConfig
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
bool m_bListHeightDefault
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
SwInsertTableFlags mnInsMode
std::unique_ptr< weld::CheckButton > m_xTest1CBox
sal_uInt16 GetValue() const
void SetWeight(FontWeight)
std::unique_ptr< weld::CheckButton > m_xLeftPageCB
std::unique_ptr< weld::CheckButton > m_xShowOutlineContentVisibilityButton
std::unique_ptr< weld::Frame > m_xSettingsFrame
std::unique_ptr< weld::CheckButton > m_xDrwCB
std::unique_ptr< weld::CheckButton > m_xStoreRsidCB
sal_uInt16 GetTableHMove() const
#define FN_HSCROLL_METRIC
constexpr::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
#define FN_PARAM_SHADOWCURSOR
const OUString & GetFontList(sal_uInt8 nFontGroup) const
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
void Invalidate(sal_uInt16 nId)
std::unique_ptr< weld::ComboBox > m_xStandardBox
bool IsCTLFontEnabled() const
virtual bool SetFormatAttr(const SfxPoolItem &rAttr) override
Override to recognize changes on the and register/unregister the paragragh style at t...
#define FN_PARAM_ADDPRINTER
bool m_bIndexHeightDefault
virtual int get_active() const =0
sal_Int32 GetFontHeight(sal_uInt8 nFont, sal_uInt8 nScriptType, LanguageType eLang)
std::unique_ptr< SvxFontPrevWindow > m_xChangedPreviewWN
const AuthorCharAttr & GetInsertAuthorAttr() const
void SetInsTableFormatNum(bool bHTML, bool b)
std::unique_ptr< weld::CheckButton > m_xDontSplitCB
std::unique_ptr< weld::Label > m_xBookmarkLabel
virtual ~SwRedlineOptionsTabPage() override
bool m_bLabelHeightDefault
const OUString & GetFontCaption(sal_uInt8 nFontGroup) const
void SetTableHInsert(sal_uInt16 nSet)
sal_uInt16 mnRowsToRepeat
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
virtual ~SwTableOptionsTabPage() override
virtual int get_count() const =0
FontFamily GetFamilyType()
bool IsInsTableAlignNum(bool bHTML) const
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xGrfCB
VclPtr< SfxPrinter > m_pPrt
std::unique_ptr< weld::CheckButton > m_xVRulerRightCBox
std::unique_ptr< weld::CheckButton > m_xParaCB
std::unique_ptr< weld::CheckButton > m_xMathBaselineAlignmentCB
std::unique_ptr< weld::ComboBox > m_xDeletedLB
const Color & GetMarkAlignColor() const
#define FN_VSCROLL_METRIC
#define FONT_GROUP_DEFAULT
Used by the UI to modify the document model.
constexpr tools::Long Width() const
std::unique_ptr< weld::CheckButton > m_xFieldHiddenParaCB
std::unique_ptr< SwMarkPreview > m_xMarkPreviewWN
virtual void set(DocumentSettingId id, bool value)=0
Set the specified document setting.
std::unique_ptr< weld::ComboBox > m_xLabelBox
tools::Rectangle aRightPagePrtArea
const SwView & GetView() const
bool IsInsTableChangeNumFormat(bool bHTML) const
static sal_uInt16 aDeletedAttrMap[]
virtual void PageCreated(const SfxAllItemSet &aSet) override
std::unique_ptr< weld::Button > m_xStandardPB
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< SvxFontPrevWindow > m_xDeletedPreviewWN
Item for settings dialog, ShadowCursorPage.
std::unique_ptr< weld::CheckButton > m_xBookmarkCB
void SetFont(const SvxFont &rNormalFont, const SvxFont &rCJKFont, const SvxFont &rCTLFont)
void SetDeletedAuthorAttr(AuthorCharAttr const &rAttr)
void SetPieceLen(sal_uInt16 nLen)
virtual void Reset(const SfxItemSet *rSet) override
bool GetHighContrastMode() const
virtual void set_id(int row, const OUString &rId)=0
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::CustomWeld > m_xChangedPreview
Size getPreviewOptionsSize(const OutputDevice &rReference)
static OUString GetDefaultFor(sal_uInt16 nFontType, LanguageType eLang)
void SetInsTableAlignNum(bool bHTML, bool b)
virtual OutputDevice & get_ref_device()=0
void SetFormatAuthorAttr(AuthorCharAttr const &rAttr)
std::unique_ptr< FontSizeBox > m_xListHeightLB
std::unique_ptr< weld::CheckButton > m_xCursorInProtCB
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_LIGHTRED
const AuthorCharAttr & GetFormatAuthorAttr() const
bool m_bPrintPageBackground
virtual void Reset(const SfxItemSet *rSet) override
#define FN_PARAM_CRSR_IN_PROTECTED
void SetCompareMode(SwCompareMode eMode)
void DrawRect(const tools::Rectangle &rRect)
bool m_bPrintTextPlaceholder
const SfxItemSet & GetItemSet() const
std::unique_ptr< weld::CheckButton > m_xVRulerCBox
#define SAL_N_ELEMENTS(arr)
std::unique_ptr< weld::CheckButton > m_xShowChangesInMargin
static FieldUnit GetValue(sal_uInt32 i)
SwCompareOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
void SetFax(const std::vector< OUString > &)
void SetTableChgMode(TableChgMode eMode)
std::unique_ptr< weld::RadioButton > m_xVarRB
const SfxPoolItem * GetOldItem(const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
void SetFontIndex(const OUString &rSet, sal_uInt8 nFontGroup)
const IDocumentDeviceAccess & getIDocumentDeviceAccess() const
Provides access to the document device interface.
std::unique_ptr< weld::CheckButton > m_xTest7CBox
std::unique_ptr< weld::ComboBox > m_xMarkPosLB
SwFillMode GetMode() const
std::unique_ptr< weld::MetricSpinButton > m_xRowInsertMF
std::unique_ptr< weld::CheckButton > m_xTreatSubOutlineLevelsAsContent
tools::Rectangle aLeftPagePrtArea
virtual void PageCreated(const SfxAllItemSet &aSet) override
std::unique_ptr< weld::CheckButton > m_xShowInlineTooltips
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
void SetIgnorePieces(bool b)
std::unique_ptr< weld::CheckButton > m_xTabCB
bool IsInsTableFormatNum(bool bHTML) const
const OUString & GetFontIndex(sal_uInt8 nFontGroup) const
std::unique_ptr< weld::CheckButton > m_xSmoothCBox
std::unique_ptr< weld::ComboBox > m_xDefaultAnchorType
std::unique_ptr< weld::RadioButton > m_xEndRB
SwAddPrinterTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::RadioButton > m_xFixRB
std::unique_ptr< weld::CheckButton > m_xSHyphCB
SfxBindings & GetBindings()
#define FN_PARAM_WRTSHELL
std::unique_ptr< weld::CheckButton > m_xPrintEmptyPagesCB
void SetInsTableFlags(bool bHTML, const SwInsertTableOptions &rOpts)
std::unique_ptr< weld::RadioButton > m_xInMarginsRB
std::unique_ptr< weld::ComboBox > m_xDirectCursorFillMode
virtual bool FillItemSet(SfxItemSet *rSet) override
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_GRAY
std::unique_ptr< weld::RadioButton > m_xEndPageRB
virtual ~SwAddPrinterTabPage() override
std::unique_ptr< weld::RadioButton > m_xAutoRB
#define FN_PARAM_STDFONTS
std::unique_ptr< weld::Frame > m_xImageFrame
static void lcl_SetColl(SwWrtShell *pWrtShell, sal_uInt16 nType, SfxPrinter const *pPrt, const OUString &rStyle, sal_uInt16 nFontWhich)
std::unique_ptr< ColorListBox > m_xChangedColorLB
SwWrtShell * GetWrtShell()
Access to the SwWrtShell belonging to SwView.
sal_uInt16 GetTableVInsert() const
std::unique_ptr< weld::CustomWeld > m_xDeletedPreview
void SetStoreRsid(bool bStoreRsid)
tools::Long CalcToUnit(float nIn, MapUnit eUnit)
std::unique_ptr< weld::Label > m_xTabLabel
std::unique_ptr< FontSizeBox > m_xLabelHeightLB
virtual void set_active(int pos)=0
void SetMarkAlignColor(const Color &rColor)
OUString SwResId(const char *pId)
virtual bool FillItemSet(SfxItemSet *rSet) override
virtual ~SwStdFontTabPage() override
virtual ~SwCompareOptionsTabPage() override
bool m_bShowInlineTooltips
const OUString & GetFontOutline(sal_uInt8 nFontGroup) const
std::unique_ptr< weld::CheckButton > m_xTest2CBox
virtual SfxPrinter * getPrinter(bool bCreate) const =0
Return the printer set at the document.
SfxItemPool * GetPool() const
std::unique_ptr< weld::CheckButton > m_xPaperFromSetupCB
virtual void Reset(const SfxItemSet *rSet) override
virtual ~SwShdwCursorOptionsTabPage() override
std::unique_ptr< weld::CheckButton > m_xIgnoreCB
static const std::vector< OUString > & GetPrinterQueues()
bool m_bShowChangesInMargin
std::unique_ptr< weld::RadioButton > m_xWordRB
void SetMarkAlignMode(sal_uInt16 nMode)
#define FN_TABLE_MODE_FIX_PROP
TableChgMode GetTableMode() const
std::unique_ptr< weld::ComboBox > m_xVMetric
std::unique_ptr< weld::CheckButton > m_xTest10CBox
SwWrtShell * GetValue() const
std::unique_ptr< weld::Widget > m_xCommentsFrame
SwContentOptPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::CustomWeld > m_xMarkPreview
void PaintPage(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
const OUString & GetFamilyName() const
void SetTableVInsert(sal_uInt16 nSet)
std::unique_ptr< FontList > m_pFontList
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void SetCaseMap(const SvxCaseMap eNew)
SwStdFontTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
OUString m_sScriptWestern
sal_uInt32 GetHeight() const
Color const & GetSelectEntryColor() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
std::unique_ptr< weld::CheckButton > m_xTest8CBox
std::unique_ptr< weld::CheckButton > m_xCharHiddenCB
std::unique_ptr< weld::Label > m_xOutlineLabel
const OUString & GetFontStandard(sal_uInt8 nFontGroup) const
virtual ~SwTestTabPage() override
std::unique_ptr< weld::Label > m_xSettingsLabel
std::unique_ptr< weld::ComboBox > m_xHMetric
std::unique_ptr< weld::CheckButton > m_xOnOffCB
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
std::unique_ptr< weld::Label > m_xLabelFT
SwTableOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< SvxFontPrevWindow > m_xInsertedPreviewWN
constexpr tools::Long Height() const
void SetTableMode(TableChgMode eSet)
static SfxObjectShell * GetFirst(const std::function< bool(const SfxObjectShell *)> &isObjectShell=nullptr, bool bOnlyVisible=true)
Item for settings dialog - document view.
std::unique_ptr< weld::ComboBox > m_xFaxLB
void SetTableVMove(sal_uInt16 nSet)
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
std::unique_ptr< weld::RadioButton > m_xCharRB
std::unique_ptr< weld::Frame > m_xCursorProtFrame
tools::Long CalcToPoint(tools::Long nIn, MapUnit eUnit, sal_uInt16 nFactor)
std::unique_ptr< weld::CheckButton > m_xTest6CBox
void SetInsertAuthorAttr(AuthorCharAttr const &rAttr)
void SetFontHeight(sal_Int32 nHeight, sal_uInt8 nFont, sal_uInt8 nScriptType)
static Color & GetFontColor()
std::unique_ptr< weld::MetricSpinButton > m_xColInsertMF
LanguageType GetAppLanguage()
IDocumentSettingAccess const & getIDocumentSettingAccess() const
std::unique_ptr< FontSizeBox > m_xIndexHeightLB
static OUString GetString(sal_uInt32 i)
SwCompareMode GetCompareMode() const
void SetColor(const Color &rColor)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
sal_uInt16 GetPieceLen() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
static VclPtr< reference_type > Create(Arg &&...arg)
std::unique_ptr< weld::Widget > m_xPagesFrame
void SetTableHMove(sal_uInt16 nSet)
void SetPreview(bool bPrev)
std::unique_ptr< weld::CheckButton > m_xHeaderCB
sal_uInt16 GetTableHInsert() const
bool m_bTreatSubOutlineLevelsAsContent
std::unique_ptr< weld::RadioButton > m_xFixPropRB
bool m_bPrintEmptyPages
Print empty pages.
SfxOkDialogController * GetDialogController() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
const Color & GetWindowColor() const
std::unique_ptr< weld::CheckButton > m_xCrossCB
std::unique_ptr< weld::CheckButton > m_xRsidCB
std::unique_ptr< FontSizeBox > m_xTitleHeightLB
static void InitFontStyle(SvxFontPrevWindow &rExampleWin, const OUString &rText)
virtual OUString get_id(int pos) const =0
std::unique_ptr< weld::CheckButton > m_xSpacesCB
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
std::unique_ptr< weld::RadioButton > m_xNoRB
virtual bool ResetFormatAttr(sal_uInt16 nWhich1, sal_uInt16 nWhich2=0) override
std::unique_ptr< weld::CheckButton > m_xTest5CBox
virtual void PageCreated(const SfxAllItemSet &aSet) override
std::unique_ptr< weld::CheckButton > m_xBreakCB
std::unique_ptr< ColorListBox > m_xMarkColorLB
void SetMode(SwFillMode eM)
std::unique_ptr< weld::CheckButton > m_xRightPageCB
SwShdwCursorOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
IMPL_LINK_NOARG(SwAddPrinterTabPage, AutoClickHdl, weld::ToggleButton &, void)
std::unique_ptr< weld::RadioButton > m_xOnlyRB
std::unique_ptr< weld::CheckButton > m_xProspectCB_RTL
static sal_uInt32 Count()
void SetFontOutline(const OUString &rSet, sal_uInt8 nFontGroup)
std::unique_ptr< FontSizeBox > m_xStandardHeightLB
std::unique_ptr< weld::SpinButton > m_xLenNF
std::unique_ptr< weld::CheckButton > m_xNumFormattingCB
std::unique_ptr< weld::CheckButton > m_xHSpacesCB
static sal_uInt16 aChangedAttrMap[]
static SfxObjectShell * GetNext(const SfxObjectShell &rPrev, const std::function< bool(const SfxObjectShell *)> &isObjectShell=nullptr, bool bOnlyVisible=true)
std::unique_ptr< weld::CheckButton > m_xPrintHiddenTextCB
#define FN_TABLE_MODE_VARIABLE
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
if(!pCandidateA->getEnd().equal(pCandidateB->getStart()))
std::unique_ptr< weld::Frame > m_xDirectCursorFrame
std::unique_ptr< weld::Label > m_xMetricLabel
#define FN_TABLE_MODE_FIX
std::unique_ptr< weld::CheckButton > m_xFieldHiddenCB
std::unique_ptr< weld::CheckButton > m_xBorderCB
const SwInsertTableOptions & GetInsTableFlags(bool bHTML) const
bool m_bShowOutlineContentVisibilityButton
std::unique_ptr< weld::ComboBox > m_xMetricLB
std::unique_ptr< weld::CheckButton > m_xGrfCB
static void lcl_SelectMetricLB(weld::ComboBox &rMetric, sal_uInt16 nSID, const SfxItemSet &rSet)
SelectionType GetSelectionType() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
static sal_uInt16 aInsertAttrMap[]
void StartAllAction()
For all views of this document.
static sal_Int32 GetDefaultHeightFor(sal_uInt16 nFontType, LanguageType eLang)
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
virtual bool FillItemSet(SfxItemSet *rSet) override
sal_uInt16 GetMarkAlignMode() const
std::unique_ptr< weld::CheckButton > m_xPrintTextPlaceholderCB
virtual void PageCreated(const SfxAllItemSet &aSet) override
std::unique_ptr< weld::ComboBox > m_xInsertLB
const AuthorCharAttr & GetDeletedAuthorAttr() const
void Fill(const FontMetric *pFontMetric, const FontList *pList)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
virtual ~SwMarkPreview() override
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< weld::MetricSpinButton > m_xRowMoveMF
std::unique_ptr< weld::CheckButton > m_xBlackFontCB
void SetPreviewText(const OUString &rString)
std::unique_ptr< ColorListBox > m_xDeletedColorLB
virtual void Reset(const SfxItemSet *rSet) override
SwPostItMode m_nPrintPostIts
virtual void Reset(const SfxItemSet *rSet) override
virtual ~SwContentOptPage() override
IMPL_LINK(SwContentOptPage, VertRulerHdl, weld::ToggleButton &, rBox, void)
rtl_TextEncoding GetCharSet() const
std::unique_ptr< weld::ComboBox > m_xChangedLB
std::unique_ptr< weld::MetricSpinButton > m_xColMoveMF
virtual OUString get_active_text() const =0
void SetInsTableChangeNumFormat(bool bHTML, bool b)
std::unique_ptr< weld::CheckButton > m_xBackgroundCB
std::unique_ptr< weld::CheckButton > m_xTest9CBox
OUString m_sScriptComplex
bool IsVerticalTextEnabled() const
std::unique_ptr< weld::CheckButton > m_xNumFormatFormattingCB