...cf. 75400111a50ce0b4026e7eb73a896ac3c28d6155 "INTEGRATION: CWS
swqbf64: #i65250# <SwFrm::mnFrmId> now in general available," but is rather
useless nowadays anyway
Change-Id: I1e9d6c289fad021764f7e1b1af0d7b9dca67bf53
...as nFrmType need not match pTmpFrm->GetType() exactly, but can e.g. be
USHORT_MAX when GetFrmOfModify is called from SwFrmFmt::FindLayoutRect
(sw/source/core/layout/atrfrm.cxx). It is probably good luck that the two
comparisons against FAR_AWAY made it too unlikely for the if's true branch to
ever be taken for a pTmpFrm that is not actually a SwFlyFrm. Found the bug when
running CppunitTest_sw_ooxmlexport2 under -fsanitize=undefined, where
((SwFlyFrm*)pTmpFrm)->GetAnchorFrm()
was called for a pTmpFrm of type SwTabFrm.
Change-Id: Ia886a809bdb82488c3f410be66cf827b3f723c55
Replace SwXFrames::GetObject() with factory functions that use the
WeakReference SwFrmFmt::m_wXObject to cache the instance in a thread-safe
way.
Change-Id: If56e4d7f95cb4f2e112139f228fb832ae9bf7d76
Removed its output paramater as GetCurrentViewShell should be
used instead and added a const version.
Change-Id: Iad8b57553b6e93e3472ce8c6905d08e8d49af770
Added non const SwDoc::GetDfltTxtFmtColl and SwDoc::GetTxtFmtColls
and SwDoc::GetCharFmts.
Had to make the manager friend of SwTxtFmtColl and SwConditionTxtFmtColl
Had to make SwDoc::_MakeCharFmt and SwDoc::_MakeFrmFmt public.
Change-Id: I19a36d91f92b3781a6c4313ec12eb8f7d4dfacc3
Into the new class DocumentFieldsManager.
Removed SwDoc::_MakeFldList because it is not defined anywhere.
Also moved a few non interface methods that belong to the manager.
Change-Id: Icefd7ca7adcbb05a18d6fae0529fc54150b862fd
Into the new class DocumentRedlineManager.
Added an non const version of GetRedlineTbl to the interface.
Also Moved SetAutoFmtRedlineComment which is not part of interface.
Change-Id: I600d5821d5d5831557f5fc5375fb1203fe67a295
If part (or whole) document is selected and then the selection
is e.g. deleted, flys anchored there will be deleted too, so it
makes sense to show them as part of the selection.
Change-Id: I17bfccebc0cd305c19616159471f0f113c7e71d9
If a picture anchored to character is dragged vertically, it can actually
jump to the left, even though X should stay the same. This change
basically reverts part of 5ddd93f4f90b3627a0ba63b62a5367c5e6c112a1.
I haven't figured out how this GetBaseOfstForFly() actually works, but
I'm reasonably sure that the relative X offset introduced by it
in SwFlyAtCntFrm::SetAbsPos() is not undone anywhere in SwFlyFrm::ChgRelPos()
or otherwise acted upon, it simply causes relative X position change, even though
the absolute position remained the same.
Change-Id: Iabf4f4e4268711a36f02aa47ca9624f9007a22a6
...given the initialization of pOwn based on m_rThis at the start of
CalcUpperSpace and the pOwn->IsTxtFrm() checks preceeding these casts.
At least CppunitTest_sw_odfimport via
SwFlowFrm::CalcUpperSpace
SwSectionFrm::Format
SwLayoutFrm::MakeAll
SwSectionFrm::MakeAll
SwFrm::PrepareMake
SwFrm::Calc
SwLayAction::FormatLayout
SwLayAction::FormatLayout
SwLayAction::FormatLayout
SwLayAction::InternalAction
SwLayAction::Action
SwViewShell::ImplEndAction
SwViewShell::EndAction
SwCrsrShell::EndAction
SwView::OuterResizePixel
SfxViewFrame::DoAdjustPosSizePixel
SfxViewFrame::Resize
SfxFrameViewWindow_Impl::Resize
Window::ImplCallResize
Window::Show
SfxBaseController::ConnectSfxFrame_Impl
SfxBaseController::attachFrame
(anonymous namespace)::SfxFrameLoader_Impl::impl
(anonymous namespace)::SfxFrameLoader_Impl::load
framework::LoadEnv::impl_loadContent
framework::LoadEnv::startLoading
framework::LoadEnv::loadComponentFromURL
unotest::MacrosTest::loadFromDesktop
SwModelTestBase::load
SwModelTestBase::executeImportTest
testFdo55814::Import
leads to calls where m_rThis is not a SwTxtFrm.
As this mixed usage of m_rThis and pOwn is in there since
84a3db80b4fd66c6854b3135b5f69b61fd828e62 "initial import" it is hard to tell
whether further uses of m_rThis should be replace with uses of pOwn, too.
Change-Id: I6a59aa3aec2d28b8aec13cd4b9528fdbe4ab093a
Regression from 2cd1673f41cb5bd8502a9a48a5721244660fe3a0.
SetMirrorWidths() works only when there are two lines
(double border), but breaks one line borders.
Change-Id: I2727afbc071bb4038c6cef18e6b96c796ef3a8b9
on the correct page frame
- trigger formatting of selected object when moving view to the selected object
or when graphical horizontal line has been inserted.
(cherry picked from commit 82fafc47de0c59c783c5df596c976a429ff8a21d)
Conflicts:
sw/source/core/frmedt/feshview.cxx
sw/source/core/layout/fly.cxx
sw/source/ui/shells/textsh.cxx
Change-Id: I4b4b523ff445f2ce20d9b81ad1187db7b44bd145
in writer for PDF export
(cherry picked from commit 131669af7168020750b726e4e6d1568975f73886)
Conflicts:
sw/source/core/doc/notxtfrm.cxx
Add missing includes to fix build break
(cherry picked from commit 662b23eb1f1b7c178a7a5507864c647a390fae34)
Conflicts:
sw/source/core/doc/notxtfrm.cxx
1e2c208ac91c8e666e4f3f6f89cd917736cdc44d
Change-Id: Ie560fa05964b79240fbd97825be74b0543c97aba
Into the new class DocumentContentOperationsManager.
Made SwNodes in sw/inc/ndarr.hxx friend class to
DocumentContentOperationsManager so it can call DelNodes at end of
DocumentContentOperationsManager::DeleteSection .
Added DeleteAutoCorrExceptWord to SwDoc, its needed in the Manager.
Added a non const version of SwDoc::GetDfltGrfFmtColl() to SwDoc
because its needed in the Manager.
Made SwDoc a friend class to DocumentContentOperationsManager so it
can call SwDoc::checkRedlining and SwDocL::_MakeFlySection.
Moved SwDoc::CopyImpl_ , SwDoc::CopyWithFlyInFly and
SwDoc::CopyFlyInFlyImpl into the Manager.
Moved "struct ParaRstFmt" and "lcl_RstTxtAttr" from docfmt.cxx
in DocumentContentOperationsManager.hxx .
Change-Id: Icaab57f4a8c158a85e549ecb4aacc752bc95bbc9
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.
Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
to values used in the fallback SvxBrushItem
(cherry picked from commit 63f53dbd6cac4fcd7fe568af62f29ae19768085f)
Conflicts:
sw/source/core/layout/paintfrm.cxx
Change-Id: Ifa339c76e8f55a2b4550f1252e6ab3e4dee57080
with DrawingLayer FillAttributes for all systems and AA/nonAA
(cherry picked from commit fcc24448899577e220db70f265bad59f0ffa8428)
Change-Id: I1b3d66061132d1d276080f99e94c421b429de936