diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2019-07-31 17:04:38 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-29 16:38:36 +0200 |
commit | f8b2a27365b858ab5653edad75fd089b39d016d8 (patch) | |
tree | b703217b2c858e4baeb3e71538e2a4a9f50fdda8 /include/comphelper | |
parent | e56d143c36af028825a8e824201a3aa193862af4 (diff) |
LOK: per-view support for isMobile()
embeddedobj/source/commonembedding/embedobj.cxx will have
a follow-up patch, which also removes the -1 case.
It is left out because it has many call-sites,
and inheritance/override relations.
Change-Id: Iaf00530916f3772f7aec151cbd358f255b7aab24
Reviewed-on: https://gerrit.libreoffice.org/78272
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/lok.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index 3ced9d7b8905..22d2c6931ab3 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -30,7 +30,7 @@ namespace LibreOfficeKit COMPHELPER_DLLPUBLIC void setActive(bool bActive = true); // Set LOK view to mobile -COMPHELPER_DLLPUBLIC void setMobile(bool bIsMobile = true); +COMPHELPER_DLLPUBLIC void setMobile(int nViewId, bool bIsMobile = true); enum class statusIndicatorCallbackType { Start, SetValue, Finish }; @@ -43,7 +43,7 @@ COMPHELPER_DLLPUBLIC void setStatusIndicatorCallback(void (*callback)(void *data COMPHELPER_DLLPUBLIC bool isActive(); // Check whether we are serving to a mobile view/device -COMPHELPER_DLLPUBLIC bool isMobile(); +COMPHELPER_DLLPUBLIC bool isMobile(int nViewId); /// Shift the coordinates before rendering each bitmap. /// Used by Calc to render each tile separately. |