[Libreoffice-commits] core.git: include/sfx2

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 5 10:59:46 UTC 2020


 include/sfx2/objsh.hxx  |    1 +
 include/sfx2/viewsh.hxx |    4 ++++
 2 files changed, 5 insertions(+)

New commits:
commit 55a28d5d8edfb3f0f42bab497718bdfe22113d48
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Jun 5 11:03:01 2020 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Jun 5 12:59:07 2020 +0200

    sfx2: add doxygen doc for SfxViewShell
    
    And link SfxObjectShell <-> SfxViewShell with each other to help
    understanding what they do.
    
    Change-Id: I7db2d609deaa89061449b72e4c4d8736447685c7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95579
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins

diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index be90b2bfa18f..98a00a44b3cb 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -167,6 +167,7 @@ enum class SfxObjectCreateMode
     The class SfxObjectShell is the base class for SFx-objects, ie documents
     and parts of documents that can be integrated as separate objects
     into foreign objects.
+    There can be multiple edit windows (SfxViewShell) for one SfxObjectShell.
 */
 
 struct TransferableObjectDescriptor;
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx
index d4d7d2039c2c..ce2297ed3f9c 100644
--- a/include/sfx2/viewsh.hxx
+++ b/include/sfx2/viewsh.hxx
@@ -146,6 +146,10 @@ template<class T> bool checkSfxViewShell(const SfxViewShell* pShell)
     return dynamic_cast<const T*>(pShell) != nullptr;
 }
 
+/**
+ * One SfxViewShell more or less represents one edit window for a document, there can be multiple
+ * ones for a single opened document (SfxObjectShell).
+ */
 class SFX2_DLLPUBLIC SfxViewShell: public SfxShell, public SfxListener, public OutlinerViewShell, public vcl::ILibreOfficeKitNotifier
 {
 friend class SfxViewFrame;


More information about the Libreoffice-commits mailing list