6namespace Stroika::Frameworks::Led {
18 inline Justification ParagraphInfo::GetJustification ()
const
20 return fJustification;
27 inline void ParagraphInfo::SetJustification (Justification justification)
29 fJustification = justification;
31 inline const StandardTabStopList& ParagraphInfo::GetTabStopList ()
const
35 inline void ParagraphInfo::SetTabStopList (
const StandardTabStopList& tabStops)
39 inline TWIPS ParagraphInfo::GetLeftMargin ()
const
43 inline TWIPS ParagraphInfo::GetRightMargin ()
const
47 inline void ParagraphInfo::SetMargins (TWIPS lhs, TWIPS rhs)
53 inline TWIPS ParagraphInfo::GetFirstIndent ()
const
57 inline void ParagraphInfo::SetFirstIndent (TWIPS firstIndent)
59 fFirstIndent = firstIndent;
68 inline TWIPS ParagraphInfo::GetSpaceBefore ()
const
77 inline void ParagraphInfo::SetSpaceBefore (TWIPS sb)
88 inline TWIPS ParagraphInfo::GetSpaceAfter ()
const
97 inline void ParagraphInfo::SetSpaceAfter (TWIPS sa)
116 inline LineSpacing ParagraphInfo::GetLineSpacing ()
const
125 inline void ParagraphInfo::SetLineSpacing (LineSpacing sl)
135 inline ListStyle ParagraphInfo::GetListStyle ()
const
144 inline void ParagraphInfo::SetListStyle (ListStyle listStyle)
146 fListStyle = listStyle;
154 inline unsigned char ParagraphInfo::GetListIndentLevel ()
const
156 return fListIndentLevel;
163 inline void ParagraphInfo::SetListIndentLevel (
unsigned char indentLevel)
165 fListIndentLevel = indentLevel;
167 inline void ParagraphInfo::MergeIn (
const IncrementalParagraphInfo& incParaInfo)
169 if (incParaInfo.GetJustification_Valid ()) {
170 fJustification = incParaInfo.GetJustification ();
172 if (incParaInfo.GetTabStopList_Valid ()) {
173 fTabStops = incParaInfo.GetTabStopList ();
175 if (incParaInfo.GetMargins_Valid ()) {
176 fLeftMargin = incParaInfo.GetLeftMargin ();
177 fRightMargin = incParaInfo.GetRightMargin ();
179 if (incParaInfo.GetFirstIndent_Valid ()) {
180 fFirstIndent = incParaInfo.GetFirstIndent ();
182 if (incParaInfo.GetSpaceBefore_Valid ()) {
183 fSpaceBefore = incParaInfo.GetSpaceBefore ();
185 if (incParaInfo.GetSpaceAfter_Valid ()) {
186 fSpaceAfter = incParaInfo.GetSpaceAfter ();
188 if (incParaInfo.GetLineSpacing_Valid ()) {
189 fLineSpacing = incParaInfo.GetLineSpacing ();
191 if (incParaInfo.GetListStyle_Valid ()) {
192 fListStyle = incParaInfo.GetListStyle ();
194 if (incParaInfo.GetListIndentLevel_Valid ()) {
195 fListIndentLevel = incParaInfo.GetListIndentLevel ();
204 inline IncrementalParagraphInfo::IncrementalParagraphInfo ()
205 : fJustificationValid (false)
206 , fTabStopListValid (false)
207 , fMarginsValid (false)
208 , fFirstIndentValid (false)
209 , fSpaceBeforeValid (false)
210 , fSpaceAfterValid (false)
211 , fLineSpacingValid (false)
212 , fListStyleValid (false)
213 , fListIndentLevelValid (false)
216 inline IncrementalParagraphInfo::IncrementalParagraphInfo (
const ParagraphInfo& pi)
218 , fJustificationValid (true)
219 , fTabStopListValid (true)
220 , fMarginsValid (true)
221 , fFirstIndentValid (true)
222 , fSpaceBeforeValid (true)
223 , fSpaceAfterValid (true)
224 , fLineSpacingValid (true)
225 , fListStyleValid (true)
226 , fListIndentLevelValid (true)
229 inline Justification IncrementalParagraphInfo::GetJustification ()
const
231 Require (fJustificationValid);
232 return inherited::GetJustification ();
234 inline void IncrementalParagraphInfo::SetJustification (Justification justification)
236 fJustificationValid =
true;
237 inherited::SetJustification (justification);
239 inline bool IncrementalParagraphInfo::GetJustification_Valid ()
const
241 return fJustificationValid;
243 inline void IncrementalParagraphInfo::InvalidateJustification ()
245 fJustificationValid =
false;
247 inline const StandardTabStopList& IncrementalParagraphInfo::GetTabStopList ()
const
249 Require (fTabStopListValid);
250 return inherited::GetTabStopList ();
252 inline void IncrementalParagraphInfo::SetTabStopList (
const StandardTabStopList& tabStops)
254 fTabStopListValid =
true;
255 inherited::SetTabStopList (tabStops);
257 inline bool IncrementalParagraphInfo::GetTabStopList_Valid ()
const
259 return fTabStopListValid;
261 inline void IncrementalParagraphInfo::InvalidateTabStopList ()
263 fTabStopListValid =
false;
265 inline TWIPS IncrementalParagraphInfo::GetLeftMargin ()
const
267 Require (fMarginsValid);
268 return inherited::GetLeftMargin ();
270 inline TWIPS IncrementalParagraphInfo::GetRightMargin ()
const
272 Require (fMarginsValid);
273 return inherited::GetRightMargin ();
275 inline void IncrementalParagraphInfo::SetMargins (TWIPS lhs, TWIPS rhs)
277 fMarginsValid =
true;
278 inherited::SetMargins (lhs, rhs);
280 inline bool IncrementalParagraphInfo::GetMargins_Valid ()
const
282 return fMarginsValid;
284 inline void IncrementalParagraphInfo::InvalidateMargins ()
286 fMarginsValid =
false;
288 inline TWIPS IncrementalParagraphInfo::GetFirstIndent ()
const
290 Require (fFirstIndentValid);
291 return inherited::GetFirstIndent ();
293 inline void IncrementalParagraphInfo::SetFirstIndent (TWIPS firstIndent)
295 fFirstIndentValid =
true;
296 inherited::SetFirstIndent (firstIndent);
298 inline bool IncrementalParagraphInfo::GetFirstIndent_Valid ()
const
300 return fFirstIndentValid;
302 inline void IncrementalParagraphInfo::InvalidateFirstIndent ()
304 fFirstIndentValid =
false;
306 inline TWIPS IncrementalParagraphInfo::GetSpaceBefore ()
const
308 Require (fSpaceBeforeValid);
309 return inherited::GetSpaceBefore ();
311 inline void IncrementalParagraphInfo::SetSpaceBefore (TWIPS sb)
313 fSpaceBeforeValid =
true;
314 inherited::SetSpaceBefore (sb);
316 inline bool IncrementalParagraphInfo::GetSpaceBefore_Valid ()
const
318 return fSpaceBeforeValid;
320 inline void IncrementalParagraphInfo::InvalidateSpaceBefore ()
322 fSpaceBeforeValid =
false;
324 inline TWIPS IncrementalParagraphInfo::GetSpaceAfter ()
const
326 Require (fSpaceAfterValid);
327 return inherited::GetSpaceAfter ();
329 inline void IncrementalParagraphInfo::SetSpaceAfter (TWIPS sa)
331 fSpaceAfterValid =
true;
332 inherited::SetSpaceAfter (sa);
334 inline bool IncrementalParagraphInfo::GetSpaceAfter_Valid ()
const
336 return fSpaceAfterValid;
338 inline void IncrementalParagraphInfo::InvalidateSpaceAfter ()
340 fSpaceAfterValid =
false;
342 inline LineSpacing IncrementalParagraphInfo::GetLineSpacing ()
const
344 Require (fLineSpacingValid);
345 return inherited::GetLineSpacing ();
347 inline void IncrementalParagraphInfo::SetLineSpacing (LineSpacing sl)
349 fLineSpacingValid =
true;
350 inherited::SetLineSpacing (sl);
352 inline bool IncrementalParagraphInfo::GetLineSpacing_Valid ()
const
354 return fLineSpacingValid;
356 inline void IncrementalParagraphInfo::InvalidateLineSpacing ()
358 fLineSpacingValid =
false;
360 inline ListStyle IncrementalParagraphInfo::GetListStyle ()
const
362 Require (fListStyleValid);
363 return inherited::GetListStyle ();
365 inline void IncrementalParagraphInfo::SetListStyle (ListStyle listStyle)
367 fListStyleValid =
true;
368 inherited::SetListStyle (listStyle);
370 inline bool IncrementalParagraphInfo::GetListStyle_Valid ()
const
372 return fListStyleValid;
374 inline void IncrementalParagraphInfo::InvalidateListStyle ()
376 fListStyleValid =
false;
378 inline unsigned char IncrementalParagraphInfo::GetListIndentLevel ()
const
380 Require (fListIndentLevelValid);
381 return inherited::GetListIndentLevel ();
383 inline void IncrementalParagraphInfo::SetListIndentLevel (
unsigned char indentLevel)
385 fListIndentLevelValid =
true;
386 inherited::SetListIndentLevel (indentLevel);
388 inline bool IncrementalParagraphInfo::GetListIndentLevel_Valid ()
const
390 return fListIndentLevelValid;
392 inline void IncrementalParagraphInfo::InvalidateListIndentLevel ()
394 fListIndentLevelValid =
false;
396 inline bool IncrementalParagraphInfo::operator== (
const IncrementalParagraphInfo& rhs)
const
399 if (GetJustification_Valid () != rhs.GetJustification_Valid ()) {
402 if (GetJustification_Valid () and (GetJustification () != rhs.GetJustification ())) {
407 if (GetTabStopList_Valid () != rhs.GetTabStopList_Valid ()) {
410 if (GetTabStopList_Valid () and (GetTabStopList () != rhs.GetTabStopList ())) {
415 if (GetMargins_Valid () != rhs.GetMargins_Valid ()) {
418 if (GetMargins_Valid () and (GetLeftMargin () != rhs.GetLeftMargin () or GetRightMargin () != rhs.GetRightMargin ())) {
423 if (GetFirstIndent_Valid () != rhs.GetFirstIndent_Valid ()) {
426 if (GetFirstIndent_Valid () and (GetFirstIndent () != rhs.GetFirstIndent ())) {
431 if (GetSpaceBefore_Valid () != rhs.GetSpaceBefore_Valid ()) {
434 if (GetSpaceBefore_Valid () and (GetSpaceBefore () != rhs.GetSpaceBefore ())) {
439 if (GetSpaceAfter_Valid () != rhs.GetSpaceAfter_Valid ()) {
442 if (GetSpaceAfter_Valid () and (GetSpaceAfter () != rhs.GetSpaceAfter ())) {
447 if (GetLineSpacing_Valid () != rhs.GetLineSpacing_Valid ()) {
450 if (GetLineSpacing_Valid () and (GetLineSpacing () != rhs.GetLineSpacing ())) {
455 if (GetListStyle_Valid () != rhs.GetListStyle_Valid ()) {
458 if (GetListStyle_Valid () and (GetListStyle () != rhs.GetListStyle ())) {
461 if (GetListIndentLevel_Valid () != rhs.GetListIndentLevel_Valid ()) {
464 if (GetListIndentLevel_Valid () and (GetListIndentLevel () != rhs.GetListIndentLevel ())) {
476 inline AbstractParagraphDatabaseRep::AbstractParagraphDatabaseRep ()
477 : fSomeInvalidTables (false)
478 , fCachedFarthestRightMarginInDocument (kBadCachedFarthestRightMarginInDocument)
487 inline ParagraphInfoMarker::ParagraphInfoMarker (ParagraphInfo paragraphInfo)
488 : fParagraphInfo (paragraphInfo)
491 inline const ParagraphInfo& ParagraphInfoMarker::GetInfo ()
const
493 return fParagraphInfo;
495 inline void ParagraphInfoMarker::SetInfo (ParagraphInfo paragraphInfo)
497 fParagraphInfo = paragraphInfo;
505 inline shared_ptr<Partition> ParagraphDatabaseRep::GetPartition ()
const
515 inline bool WordProcessorTextIOSinkStream::GetOverwriteTableMode ()
const
517 return fOverwriteTableMode;
519 inline void WordProcessorTextIOSinkStream::SetOverwriteTableMode (
bool overwriteTableMode)
521 fOverwriteTableMode = overwriteTableMode;
523#if !qStroika_Frameworks_Led_NestedTablesSupported
524 inline bool WordProcessorTextIOSinkStream::GetNoTablesAllowed ()
const
526 return fNoTablesAllowed;
528 inline void WordProcessorTextIOSinkStream::SetNoTablesAllowed (
bool noTablesAllowed)
530 fNoTablesAllowed = noTablesAllowed;
539 inline bool WordProcessorTextIOSrcStream::GetUseTableSelection ()
const
541 return fUseTableSelection;
543 inline void WordProcessorTextIOSrcStream::SetUseTableSelection (
bool useTableSelection)
545 fUseTableSelection = useTableSelection;
553 inline TWIPS WordProcessorTable::GetCellSpacing ()
const
557 inline void WordProcessorTable::SetCellSpacing (TWIPS cellSpacing)
559 if (fCellSpacing != cellSpacing) {
560 fCellSpacing = cellSpacing;
561#if qStroika_Frameworks_Led_SupportGDI
578 inline void WordProcessorTable::GetCellSelection (
size_t* rowSelStart,
size_t* rowSelEnd,
size_t* colSelStart,
size_t* colSelEnd)
const
580 Ensure (fRowSelStart <= fRowSelEnd);
581 Ensure (fRowSelEnd <= GetRowCount ());
582 Ensure (fColSelStart <= fColSelEnd);
583 Ensure (fColSelEnd <= GetColumnCount ());
584 if (rowSelStart !=
nullptr) {
585 *rowSelStart = fRowSelStart;
587 if (rowSelEnd !=
nullptr) {
588 *rowSelEnd = fRowSelEnd;
590 if (colSelStart !=
nullptr) {
591 *colSelStart = fColSelStart;
593 if (colSelEnd !=
nullptr) {
594 *colSelEnd = fColSelEnd;
597 inline size_t WordProcessorTable::GetRowCount ()
const
600 GetDimensions (&rows,
nullptr);
603 inline size_t WordProcessorTable::GetColumnCount ()
const
606 GetDimensions (
nullptr, &columns);
609 inline void WordProcessorTable::GetDefaultCellMargins (TWIPS* top, TWIPS* left, TWIPS* bottom, TWIPS* right)
const
611 if (top !=
nullptr) {
612 *top = fDefaultCellMargins.GetTop ();
614 if (left !=
nullptr) {
615 *left = fDefaultCellMargins.GetLeft ();
617 if (bottom !=
nullptr) {
618 *bottom = fDefaultCellMargins.GetBottom ();
620 if (right !=
nullptr) {
621 *right = fDefaultCellMargins.GetRight ();
624 inline void WordProcessorTable::SetDefaultCellMargins (TWIPS top, TWIPS left, TWIPS bottom, TWIPS right)
626 if (top != fDefaultCellMargins.GetTop () or left != fDefaultCellMargins.GetLeft () or bottom != fDefaultCellMargins.GetBottom () or
627 right != fDefaultCellMargins.GetRight ()) {
628 fDefaultCellMargins.top = top;
629 fDefaultCellMargins.left = left;
630 fDefaultCellMargins.bottom = bottom;
631 fDefaultCellMargins.right = right;
635 inline void WordProcessorTable::InvalidateLayout ()
637 if (fNeedLayout != eNeedFullLayout) {
638 AbstractParagraphDatabaseRep* o =
dynamic_cast<AbstractParagraphDatabaseRep*
> (GetOwner ());
640 o->fSomeInvalidTables =
true;
641 fNeedLayout = eNeedFullLayout;
644 inline WordProcessorTable::Cell& WordProcessorTable::GetCell (
size_t row,
size_t column)
646 Require (row < GetRowCount ());
647 Require (column < GetColumnCount (row));
648 Assert (fRows.size () == GetRowCount ());
649 Assert (fRows[row].fCells.size () == GetColumnCount (row));
650 return fRows[row].fCells[column];
652 inline const WordProcessorTable::Cell& WordProcessorTable::GetCell (
size_t row,
size_t column)
const
654 Require (row < GetRowCount ());
655 Require (column < GetColumnCount (row));
656 Assert (fRows.size () == GetRowCount ());
657 Assert (fRows[row].fCells.size () == GetColumnCount (row));
658 return fRows[row].fCells[column];
660 inline WordProcessorTable::CellMergeFlags WordProcessorTable::GetCellFlags (
size_t row,
size_t column)
const
662 Require (row < GetRowCount ());
663 const RowInfo& rowInfo = fRows[row];
664 if (column < rowInfo.fCells.size ()) {
665 return rowInfo.fCells[column].GetCellMergeFlags ();
679 inline bool WordProcessorTable::GetIntraCellMode (
size_t* row,
size_t* col)
const
681 if (fIntraCellMode) {
682 Assert (fRowSelEnd == fRowSelStart + 1);
683 if (row !=
nullptr) {
686 Assert (fColSelEnd == fColSelStart + 1);
687 if (col !=
nullptr) {
691 return fIntraCellMode;
693 inline void WordProcessorTable::GetIntraCellSelection (
size_t* selStart,
size_t* selEnd)
const
697 *selStart = fIntraSelStart;
698 *selEnd = fIntraSelEnd;
700 inline void WordProcessorTable::SaveIntraCellContextInfo (
bool leftSideOfSelectionInteresting,
const FontSpecification& intraCellSelectionEmptySelFontSpecification)
702 fSavedIntraCellInfoValid =
true;
703 fSavedLeftSideOfSelectionInteresting = leftSideOfSelectionInteresting;
704 fSavedIntraCellSelectionEmptySelFontSpecification = intraCellSelectionEmptySelFontSpecification;
706 inline bool WordProcessorTable::RestoreIntraCellContextInfo (
bool* leftSideOfSelectionInteresting, FontSpecification* intraCellSelectionEmptySelFontSpecification)
710 if (fSavedIntraCellInfoValid) {
711 *leftSideOfSelectionInteresting = fSavedLeftSideOfSelectionInteresting;
712 *intraCellSelectionEmptySelFontSpecification = fSavedIntraCellSelectionEmptySelFontSpecification;
719 inline void WordProcessorTable::InvalidateIntraCellContextInfo ()
721 fSavedIntraCellInfoValid =
false;
729 inline WordProcessorTable::CellMergeFlags WordProcessorTable::Cell::GetCellMergeFlags ()
const
731 return fCellMergeFlags;
733 inline TWIPS WordProcessorTable::Cell::GetCellXWidth ()
const
735 return fCellRep->fCellXWidth;
737 inline void WordProcessorTable::Cell::SetCellXWidth (TWIPS width)
739 fCellRep->fCellXWidth = width;
741 inline Led_Rect WordProcessorTable::Cell::GetCachedBoundsRect ()
const
743 return fCellRep->fCachedBoundsRect;
745 inline void WordProcessorTable::Cell::SetCachedBoundsRect (Led_Rect r)
747 fCellRep->fCachedBoundsRect = r;
750#if qStroika_Frameworks_Led_SupportGDI
752#if qTemplateGeneratedMixinsSometimesCorrupted
753 inline void InteractorInteractorMixinHelper<StandardStyledTextInteractor, WordWrappedTextInteractor>::HookLosingTextStore ()
755 StandardStyledTextInteractor::HookLosingTextStore ();
756 WordWrappedTextInteractor::HookLosingTextStore ();
758 inline void InteractorInteractorMixinHelper<StandardStyledTextInteractor, WordWrappedTextInteractor>::HookGainedNewTextStore ()
760 StandardStyledTextInteractor::HookGainedNewTextStore ();
761 WordWrappedTextInteractor::HookGainedNewTextStore ();
763 inline void InteractorInteractorMixinHelper<StandardStyledTextInteractor, WordWrappedTextInteractor>::DidUpdateText (
const UpdateInfo& updateInfo)
765 StandardStyledTextInteractor::DidUpdateText (updateInfo);
766 WordWrappedTextInteractor::DidUpdateText (updateInfo);
782 inline bool WordProcessor::GetSmartQuoteMode ()
const
784 return fSmartQuoteMode;
790 inline void WordProcessor::SetSmartQuoteMode (
bool smartQuoteMode)
792 fSmartQuoteMode = smartQuoteMode;
794 inline shared_ptr<AbstractParagraphDatabaseRep> WordProcessor::GetParagraphDatabase ()
const
796 return fParagraphDatabase;
798 inline shared_ptr<HidableTextMarkerOwner> WordProcessor::GetHidableTextDatabase ()
const
800 return fHidableTextDatabase;
806 inline bool WordProcessor::GetShowParagraphGlyphs ()
const
808 return fShowParagraphGlyphs;
814 inline bool WordProcessor::GetShowTabGlyphs ()
const
816 return fShowTabGlyphs;
822 inline bool WordProcessor::GetShowSpaceGlyphs ()
const
824 return fShowSpaceGlyphs;
836 inline const WordProcessor::CommandNames& WordProcessor::GetCommandNames ()
838 return sCommandNames;
844 inline void WordProcessor::SetCommandNames (
const WordProcessor::CommandNames& cmdNames)
846 sCommandNames = cmdNames;
852 inline WordProcessor::DialogSupport& WordProcessor::GetDialogSupport ()
854 if (sDialogSupport ==
nullptr) {
855 static DialogSupport sDefSup;
856 sDialogSupport = &sDefSup;
858 return *sDialogSupport;
864 inline void WordProcessor::SetDialogSupport (DialogSupport* ds)
868 inline IncrementalFontSpecification WordProcessor::GetCurSelFontSpec ()
const
870 if (not fCachedCurSelFontSpecValid) {
871 AssureCurSelFontCacheValid ();
873 return fCachedCurSelFontSpec;
881 inline bool WordProcessor::WordProcessorFlavorPackageInternalizer::GetOverwriteTableMode ()
const
883 return fOverwriteTableMode;
885 inline void WordProcessor::WordProcessorFlavorPackageInternalizer::SetOverwriteTableMode (
bool overwriteTableMode)
887 fOverwriteTableMode = overwriteTableMode;
889#if !qStroika_Frameworks_Led_NestedTablesSupported
890 inline bool WordProcessor::WordProcessorFlavorPackageInternalizer::GetNoTablesAllowed ()
const
892 return fNoTablesAllowed;
894 inline void WordProcessor::WordProcessorFlavorPackageInternalizer::SetNoTablesAllowed (
bool noTablesAllowed)
896 fNoTablesAllowed = noTablesAllowed;
905 inline bool WordProcessor::WordProcessorFlavorPackageExternalizer::GetUseTableSelection ()
const
907 return fUseTableSelection;
909 inline void WordProcessor::WordProcessorFlavorPackageExternalizer::SetUseTableSelection (
bool useTableSelection)
911 fUseTableSelection = useTableSelection;
919 inline WordProcessorTable::SuppressCellUpdatePropagationContext::SuppressCellUpdatePropagationContext (WordProcessorTable& t)
921 , fOldVal (t.fSuppressCellUpdatePropagationContext)
923 t.fSuppressCellUpdatePropagationContext =
true;
925 inline WordProcessorTable::SuppressCellUpdatePropagationContext::~SuppressCellUpdatePropagationContext ()
927 fTable.fSuppressCellUpdatePropagationContext = fOldVal;
935 inline WordProcessorTable::AllowUpdateInfoPropagationContext::AllowUpdateInfoPropagationContext (WordProcessorTable& t)
937 , fOldVal (t.fAllowUpdateInfoPropagationContext)
939 t.fAllowUpdateInfoPropagationContext =
true;
941 inline WordProcessorTable::AllowUpdateInfoPropagationContext::~AllowUpdateInfoPropagationContext ()
943 fTable.fAllowUpdateInfoPropagationContext = fOldVal;
951 inline WordProcessorTable::EmbeddedTableWordProcessor::TemporarilyUseTablet::TemporarilyUseTablet (WordProcessorTable::EmbeddedTableWordProcessor& editor,
952 Tablet* t, DoTextMetricsChangedCall tmChanged)
954 , fOldTablet (editor.fUpdateTablet)
955 , fDoTextMetricsChangedCall (tmChanged)
957 editor.fUpdateTablet = t;
958 if (tmChanged == eDoTextMetricsChangedCall) {
959 editor.TabletChangedMetrics ();
962 inline WordProcessorTable::EmbeddedTableWordProcessor::TemporarilyUseTablet::~TemporarilyUseTablet ()
964 fEditor.fUpdateTablet = fOldTablet;
965 if (fDoTextMetricsChangedCall == eDoTextMetricsChangedCall) {
966 fEditor.TabletChangedMetrics ();
975 inline WordProcessorTable::EmbeddedTableWordProcessor::DisableRefreshContext::DisableRefreshContext (WordProcessorTable::EmbeddedTableWordProcessor& wp)
977 , fOldVal (wp.fSuppressRefreshCalls)
979 wp.fSuppressRefreshCalls =
true;
981 inline WordProcessorTable::EmbeddedTableWordProcessor::DisableRefreshContext::~DisableRefreshContext ()
983 if (fWP.fSuppressRefreshCalls != fOldVal) {
984 fWP.fSuppressRefreshCalls = fOldVal;
985 if (not fWP.fSuppressRefreshCalls) {
986 fWP.NoteWindowPartiallyUpdated ();
996 inline WordProcessorTable::TemporarilySetOwningWP::TemporarilySetOwningWP (
const WordProcessorTable& forTable, WordProcessor& forWordProcessor)
997 : fOwningTable (const_cast<WordProcessorTable&> (forTable))
998 , fSavedTableOwningWP (forTable.fCurrentOwningWP)
1000 fOwningTable.fCurrentOwningWP = &forWordProcessor;
1002 inline WordProcessorTable::TemporarilySetOwningWP::~TemporarilySetOwningWP ()
1004 fOwningTable.fCurrentOwningWP = fSavedTableOwningWP;
1012 inline WordProcessorTable::TemporarilyAllocateCellWP::TemporarilyAllocateCellWP (WordProcessorTable& forTable, WordProcessor& forWordProcessor,
1013 size_t forRow,
size_t forColumn,
1014 const Led_Rect& cellWindowRect,
bool captureChangesForUndo)
1015 : fOwningTable (forTable)
1016 , fCellEditor (forTable.ConstructEmbeddedTableWordProcessor (forWordProcessor, forRow, forColumn, cellWindowRect, captureChangesForUndo))
1019 inline WordProcessorTable::TemporarilyAllocateCellWP::~TemporarilyAllocateCellWP ()
1022 fOwningTable.ReleaseEmbeddedTableWordProcessor (fCellEditor);
1024 inline WordProcessorTable::TemporarilyAllocateCellWP::operator WordProcessorTable::EmbeddedTableWordProcessor* ()
1029 inline WordProcessorTable::EmbeddedTableWordProcessor& WordProcessorTable::TemporarilyAllocateCellWP::operator& ()
1032 return *fCellEditor;
1034 inline WordProcessorTable::EmbeddedTableWordProcessor* WordProcessorTable::TemporarilyAllocateCellWP::operator->()
1045 inline WordProcessorTable::TemporarilyAllocateCellWithTablet::TemporarilyAllocateCellWithTablet (WordProcessorTable& forTable,
size_t row,
1046 size_t column,
bool captureChangesForUndo)
1047 : fWP (forTable, *forTable.fCurrentOwningWP, row, column,
1048 forTable.TableCoordinates2Window (forTable.GetCellEditorBounds (row, column)), captureChangesForUndo)
1049 , fTablet (forTable.fCurrentOwningWP)
1050 , fTmpUseTablet (*fWP, fTablet, TemporarilyUseTablet::eDontDoTextMetricsChangedCall)
1053 inline WordProcessorTable::TemporarilyAllocateCellWithTablet::operator WordProcessorTable::EmbeddedTableWordProcessor* ()
1057 inline WordProcessorTable::EmbeddedTableWordProcessor& WordProcessorTable::TemporarilyAllocateCellWithTablet::operator& ()
1061 inline WordProcessorTable::EmbeddedTableWordProcessor* WordProcessorTable::TemporarilyAllocateCellWithTablet::operator->()
1071 inline WordProcessor::DialogSupport::TableSelectionPropertiesInfo::TableSelectionPropertiesInfo ()
1072 : fTableBorderWidth (TWIPS{0})
1073 , fTableBorderColor (Color::kWhite)
1074 , fDefaultCellMargins ()
1075 , fCellSpacing (TWIPS{0})
1076 , fCellWidth_Common (false)
1077 , fCellWidth (TWIPS{0})
1078 , fCellBackgroundColor_Common (false)
1079 , fCellBackgroundColor (Color::kWhite)
#define RequireNotNull(p)