diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-23 16:52:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-23 21:27:25 +0100 |
commit | 8c9a3195068bf00e00290f363d5028e9986bbba6 (patch) | |
tree | bd571c7e021526bcd098952ea380dc039b70ee04 /include | |
parent | a27f26228c8311b3b01ecca81d6cdcd3ceb644e1 (diff) |
Resolves: tdf#113962 save detected filter outside file dialog
different file dialog impls work differently so store the
detected filter outside the file dialog
Change-Id: I144d8df06e5265fed8f11b284a2f40c17c3e09ef
Reviewed-on: https://gerrit.libreoffice.org/45166
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/opengrf.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sfx2/opengrf.hxx b/include/sfx2/opengrf.hxx index 498ccdb7f9a8..fbf3c573e15f 100644 --- a/include/sfx2/opengrf.hxx +++ b/include/sfx2/opengrf.hxx @@ -42,8 +42,14 @@ public: void AsLink(bool); bool IsAsLink() const; + //what the dialog thought the format was OUString GetCurrentFilter() const; void SetCurrentFilter(const OUString&); + + //what was subsequently found to be the format + OUString GetDetectedFilter() const; + void SetDetectedFilter(const OUString&); + private: SvxOpenGraphicDialog (const SvxOpenGraphicDialog&) = delete; SvxOpenGraphicDialog& operator = ( const SvxOpenGraphicDialog & ) = delete; |