Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d67dff57
Kaydet (Commit)
d67dff57
authored
Eki 01, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XubString->OUString
Change-Id: Id64cdd70c2877ff71c5bc90286fab6b3d8ab7ad4
üst
2ffa6b31
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
85 additions
and
86 deletions
+85
-86
sfxhelp.hxx
sfx2/inc/sfx2/sfxhelp.hxx
+18
-18
newhelp.cxx
sfx2/source/appl/newhelp.cxx
+18
-22
newhelp.hxx
sfx2/source/appl/newhelp.hxx
+1
-1
sfxhelp.cxx
sfx2/source/appl/sfxhelp.cxx
+0
-0
helpwin.hxx
vcl/inc/helpwin.hxx
+7
-7
help.hxx
vcl/inc/vcl/help.hxx
+16
-16
help.cxx
vcl/source/app/help.cxx
+25
-22
No files found.
sfx2/inc/sfx2/sfxhelp.hxx
Dosyayı görüntüle @
d67dff57
...
...
@@ -19,45 +19,45 @@
#ifndef _SFX_HELP_HXX
#define _SFX_HELP_HXX
#include <rtl/ustring.hxx>
#include "sal/config.h"
#include "sfx2/dllapi.h"
#include "sal/types.h"
#include <vcl/help.hxx>
#include <tools/string.hxx>
class
SfxHelp_Impl
;
class
SfxFrame
;
class
SFX2_DLLPUBLIC
SfxHelp
:
public
Help
{
String
aTicket
;
// for Plugins
String
aUser
;
String
aLanguageStr
;
String
aCountryStr
;
OUString
aTicket
;
// for Plugins
OUString
aUser
;
OUString
aLanguageStr
;
OUString
aCountryStr
;
sal_Bool
bIsDebug
;
SfxHelp_Impl
*
pImp
;
private
:
SAL_DLLPRIVATE
sal_Bool
Start_Impl
(
const
String
&
rURL
,
const
Window
*
pWindow
,
const
String
&
rKeyword
);
SAL_DLLPRIVATE
virtual
sal_Bool
SearchKeyword
(
const
Xub
String
&
rKeyWord
);
SAL_DLLPRIVATE
virtual
sal_Bool
Start
(
const
String
&
rURL
,
const
Window
*
pWindow
);
SAL_DLLPRIVATE
virtual
void
OpenHelpAgent
(
const
rtl
::
OString
&
sHelpId
);
SAL_DLLPRIVATE
String
GetHelpModuleName_Impl
();
SAL_DLLPRIVATE
String
CreateHelpURL_Impl
(
const
String
&
aCommandURL
,
const
String
&
rModuleName
);
SAL_DLLPRIVATE
sal_Bool
Start_Impl
(
const
OUString
&
rURL
,
const
Window
*
pWindow
,
const
OU
String
&
rKeyword
);
SAL_DLLPRIVATE
virtual
sal_Bool
SearchKeyword
(
const
OU
String
&
rKeyWord
);
SAL_DLLPRIVATE
virtual
sal_Bool
Start
(
const
OU
String
&
rURL
,
const
Window
*
pWindow
);
SAL_DLLPRIVATE
virtual
void
OpenHelpAgent
(
const
OString
&
sHelpId
);
SAL_DLLPRIVATE
OU
String
GetHelpModuleName_Impl
();
SAL_DLLPRIVATE
OUString
CreateHelpURL_Impl
(
const
OUString
&
aCommandURL
,
const
OU
String
&
rModuleName
);
public
:
SfxHelp
();
~
SfxHelp
();
inline
void
SetTicket
(
const
String
&
rTicket
)
{
aTicket
=
rTicket
;
}
inline
void
SetUser
(
const
String
&
rUser
)
{
aUser
=
rUser
;
}
inline
void
SetTicket
(
const
OU
String
&
rTicket
)
{
aTicket
=
rTicket
;
}
inline
void
SetUser
(
const
OU
String
&
rUser
)
{
aUser
=
rUser
;
}
virtual
XubString
GetHelpText
(
const
String
&
,
const
Window
*
pWindow
);
virtual
OUString
GetHelpText
(
const
OU
String
&
,
const
Window
*
pWindow
);
static
String
CreateHelpURL
(
const
String
&
aCommandURL
,
const
String
&
rModuleName
);
static
OUString
CreateHelpURL
(
const
OUString
&
aCommandURL
,
const
OU
String
&
rModuleName
);
using
Help
::
OpenHelpAgent
;
static
void
OpenHelpAgent
(
SfxFrame
*
pFrame
,
const
rtl
::
OString
&
sHelpId
);
static
String
GetDefaultHelpModule
();
static
::
rtl
::
OUString
GetCurrentModuleIdentifier
();
static
void
OpenHelpAgent
(
SfxFrame
*
pFrame
,
const
OString
&
sHelpId
);
static
OUString
GetDefaultHelpModule
();
static
OUString
GetCurrentModuleIdentifier
();
};
#endif // #ifndef _SFX_HELP_HXX
...
...
sfx2/source/appl/newhelp.cxx
Dosyayı görüntüle @
d67dff57
...
...
@@ -627,14 +627,11 @@ void IndexTabPage_Impl::InitializeIndex()
try
{
::
rtl
::
OUString
aURL
=
HELP_URL
;
aURL
+=
::
rtl
::
OUString
(
sFactory
);
OUStringBuffer
aURL
=
HELP_URL
;
aURL
.
append
(
sFactory
);
AppendConfigToken
(
aURL
,
sal_True
);
String
aTemp
=
aURL
;
AppendConfigToken
(
aTemp
,
sal_True
);
aURL
=
aTemp
;
Content
aCnt
(
aURL
,
Reference
<
::
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
(),
comphelper
::
getProcessComponentContext
()
);
Content
aCnt
(
aURL
.
makeStringAndClear
(),
Reference
<
::
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
(),
comphelper
::
getProcessComponentContext
()
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySetInfo
>
xInfo
=
aCnt
.
getProperties
();
if
(
xInfo
->
hasPropertyByName
(
PROPERTY_ANCHORREF
)
)
{
...
...
@@ -1070,17 +1067,17 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl)
EnterWait
();
ClearSearchResults
();
RememberSearchText
(
aSearchText
);
String
aSearchURL
=
HELP_URL
;
aSearchURL
+=
aFactory
;
aSearchURL
+=
String
(
HELP_SEARCH_TAG
);
OUStringBuffer
aSearchURL
(
HELP_URL
)
;
aSearchURL
.
append
(
aFactory
)
;
aSearchURL
.
append
(
HELP_SEARCH_TAG
);
if
(
!
aFullWordsCB
.
IsChecked
()
)
aSearchText
=
sfx2
::
PrepareSearchString
(
aSearchText
,
xBreakIterator
,
true
);
aSearchURL
+=
aSearchText
;
AppendConfigToken
(
aSearchURL
,
sal_False
);
aSearchURL
.
append
(
aSearchText
)
;
AppendConfigToken
(
aSearchURL
,
sal_False
);
if
(
aScopeCB
.
IsChecked
()
)
aSearchURL
+=
DEFINE_CONST_UNICODE
(
"&Scope=Heading"
);
Sequence
<
::
rtl
::
OUString
>
aFactories
=
SfxContentHelper
::
GetResultSet
(
aSearchURL
);
const
::
rtl
::
OUString
*
pFacs
=
aFactories
.
getConstArray
();
aSearchURL
.
append
(
"&Scope=Heading"
);
Sequence
<
OUString
>
aFactories
=
SfxContentHelper
::
GetResultSet
(
aSearchURL
.
makeStringAndClear
()
);
const
OUString
*
pFacs
=
aFactories
.
getConstArray
();
sal_uInt32
i
,
nCount
=
aFactories
.
getLength
();
for
(
i
=
0
;
i
<
nCount
;
++
i
)
{
...
...
@@ -1479,11 +1476,10 @@ void BookmarksTabPage_Impl::AddBookmarks( const String& rTitle, const String& rU
sHelpURL
.
append
(
HELP_URL
);
sHelpURL
.
append
(
sFactory
);
sHelpURL
.
append
(
sContent
);
String
sURL
=
String
(
sHelpURL
.
makeStringAndClear
());
AppendConfigToken
(
sURL
,
bUseQuestionMark
);
AppendConfigToken
(
sHelpURL
,
bUseQuestionMark
);
if
(
!
sAnchor
.
isEmpty
())
s
URL
+=
String
(
sAnchor
);
return
::
rtl
::
OUString
(
sURL
);
s
HelpURL
.
append
(
sAnchor
);
return
sHelpURL
.
makeStringAndClear
(
);
}
void
SfxHelpWindow_Impl
::
loadHelpContent
(
const
::
rtl
::
OUString
&
sHelpURL
,
sal_Bool
bAddToHistory
)
...
...
@@ -1597,9 +1593,9 @@ SfxHelpIndexWindow_Impl::~SfxHelpIndexWindow_Impl()
void
SfxHelpIndexWindow_Impl
::
Initialize
()
{
String
aHelpURL
=
HELP_URL
;
AppendConfigToken
(
aHelpURL
,
sal_True
);
Sequence
<
::
rtl
::
OUString
>
aFactories
=
SfxContentHelper
::
GetResultSet
(
aHelpURL
);
OUStringBuffer
aHelpURL
(
HELP_URL
)
;
AppendConfigToken
(
aHelpURL
,
sal_True
);
Sequence
<
::
rtl
::
OUString
>
aFactories
=
SfxContentHelper
::
GetResultSet
(
aHelpURL
.
makeStringAndClear
()
);
const
::
rtl
::
OUString
*
pFacs
=
aFactories
.
getConstArray
();
sal_uInt32
i
,
nCount
=
aFactories
.
getLength
();
for
(
i
=
0
;
i
<
nCount
;
++
i
)
...
...
sfx2/source/appl/newhelp.hxx
Dosyayı görüntüle @
d67dff57
...
...
@@ -598,7 +598,7 @@ public:
};
/// Appends ?Language=xy&System=abc to the help URL in rURL
void
AppendConfigToken
(
String
&
rURL
,
sal_Bool
bQuestionMark
,
const
rtl
::
OUString
&
rLang
=
rtl
::
OUString
()
);
void
AppendConfigToken
(
OUStringBuffer
&
rURL
,
sal_Bool
bQuestionMark
,
const
OUString
&
rLang
=
rtl
::
OUString
()
);
#endif // #ifndef INCLUDED_SFX_NEWHELP_HXX
...
...
sfx2/source/appl/sfxhelp.cxx
Dosyayı görüntüle @
d67dff57
This diff is collapsed.
Click to expand it.
vcl/inc/helpwin.hxx
Dosyayı görüntüle @
d67dff57
...
...
@@ -44,8 +44,8 @@ private:
Rectangle
maTextRect
;
// For wrapped text in QuickHelp
String
maHelpText
;
String
maStatusText
;
OUString
maHelpText
;
OUString
maStatusText
;
Timer
maShowTimer
;
Timer
maHideTimer
;
...
...
@@ -61,16 +61,16 @@ protected:
void
ImplShow
();
public
:
HelpTextWindow
(
Window
*
pParent
,
const
String
&
rText
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
);
HelpTextWindow
(
Window
*
pParent
,
const
OU
String
&
rText
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
);
~
HelpTextWindow
();
const
String
&
GetHelpText
()
const
{
return
maHelpText
;
}
void
SetHelpText
(
const
String
&
rHelpText
);
const
OUString
&
GetHelpText
()
const
{
return
maHelpText
;
}
void
SetHelpText
(
const
OU
String
&
rHelpText
);
sal_uInt16
GetWinStyle
()
const
{
return
mnHelpWinStyle
;
}
sal_uInt16
GetStyle
()
const
{
return
mnStyle
;
}
// Nur merken:
void
SetStatusText
(
const
String
&
rStatusText
)
{
maStatusText
=
rStatusText
;
}
void
SetStatusText
(
const
OU
String
&
rStatusText
)
{
maStatusText
=
rStatusText
;
}
void
SetHelpArea
(
const
Rectangle
&
rRect
)
{
maHelpArea
=
rRect
;
}
void
ShowHelp
(
sal_uInt16
nDelayMode
);
...
...
@@ -82,7 +82,7 @@ public:
};
void
ImplShowHelpWindow
(
Window
*
pParent
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
,
const
String
&
rHelpText
,
const
String
&
rStatusText
,
const
OUString
&
rHelpText
,
const
OU
String
&
rStatusText
,
const
Point
&
rScreenPos
,
const
Rectangle
*
pHelpArea
=
NULL
);
void
ImplDestroyHelpWindow
(
bool
bUpdateHideTime
);
void
ImplSetHelpWindowPos
(
Window
*
pHelpWindow
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
,
...
...
vcl/inc/vcl/help.hxx
Dosyayı görüntüle @
d67dff57
...
...
@@ -29,7 +29,7 @@
#ifndef _SV_HELP_HXX
#define _SV_HELP_HXX
#include <
tools/
string.hxx>
#include <
rtl/u
string.hxx>
#include <tools/solar.h>
#include <vcl/dllapi.h>
...
...
@@ -69,19 +69,19 @@ class Window;
class
VCL_DLLPUBLIC
Help
{
private
:
String
maHelpFile
;
OUString
maHelpFile
;
public
:
Help
();
virtual
~
Help
();
void
SetHelpFile
(
const
String
&
rFileName
)
{
maHelpFile
=
rFileName
;
}
const
String
&
GetHelpFile
()
const
{
return
maHelpFile
;
}
void
SetHelpFile
(
const
OU
String
&
rFileName
)
{
maHelpFile
=
rFileName
;
}
const
OUString
&
GetHelpFile
()
const
{
return
maHelpFile
;
}
virtual
sal_Bool
Start
(
const
Xub
String
&
rHelpId
,
const
Window
*
pWindow
);
virtual
sal_Bool
SearchKeyword
(
const
Xub
String
&
rKeyWord
);
virtual
void
OpenHelpAgent
(
const
rtl
::
OString
&
rHelpId
);
virtual
XubString
GetHelpText
(
const
String
&
aHelpURL
,
const
Window
*
pWindow
);
virtual
sal_Bool
Start
(
const
OU
String
&
rHelpId
,
const
Window
*
pWindow
);
virtual
sal_Bool
SearchKeyword
(
const
OU
String
&
rKeyWord
);
virtual
void
OpenHelpAgent
(
const
OString
&
rHelpId
);
virtual
OUString
GetHelpText
(
const
OU
String
&
aHelpURL
,
const
Window
*
pWindow
);
static
void
EnableContextHelp
();
static
void
DisableContextHelp
();
...
...
@@ -98,35 +98,35 @@ public:
static
sal_Bool
IsBalloonHelpEnabled
();
static
sal_Bool
ShowBalloon
(
Window
*
pParent
,
const
Point
&
rScreenPos
,
const
Xub
String
&
rHelpText
);
const
OU
String
&
rHelpText
);
static
sal_Bool
ShowBalloon
(
Window
*
pParent
,
const
Point
&
rScreenPos
,
const
Rectangle
&
,
const
Xub
String
&
rHelpText
);
const
OU
String
&
rHelpText
);
static
void
EnableQuickHelp
();
static
void
DisableQuickHelp
();
static
sal_Bool
IsQuickHelpEnabled
();
static
sal_Bool
ShowQuickHelp
(
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rHelpText
,
const
Xub
String
&
rLongHelpText
,
const
OU
String
&
rHelpText
,
const
OU
String
&
rLongHelpText
,
sal_uInt16
nStyle
=
0
);
static
sal_Bool
ShowQuickHelp
(
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rHelpText
,
const
OU
String
&
rHelpText
,
sal_uInt16
nStyle
=
0
)
{
return
Help
::
ShowQuickHelp
(
pParent
,
rScreenRect
,
rHelpText
,
Xub
String
(),
nStyle
);
}
{
return
Help
::
ShowQuickHelp
(
pParent
,
rScreenRect
,
rHelpText
,
OU
String
(),
nStyle
);
}
static
void
HideBalloonAndQuickHelp
();
static
sal_uLong
ShowTip
(
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rText
,
sal_uInt16
nStyle
=
0
);
const
OU
String
&
rText
,
sal_uInt16
nStyle
=
0
);
static
void
UpdateTip
(
sal_uLong
nId
,
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rText
);
const
OU
String
&
rText
);
static
void
HideTip
(
sal_uLong
nId
);
};
...
...
vcl/source/app/help.cxx
Dosyayı görüntüle @
d67dff57
...
...
@@ -26,6 +26,7 @@
*
************************************************************************/
#include <comphelper/string.hxx>
#include "tools/debug.hxx"
#include "tools/diagnose_ex.h"
...
...
@@ -66,25 +67,25 @@ Help::~Help()
// -----------------------------------------------------------------------
void
Help
::
OpenHelpAgent
(
const
rtl
::
OString
&
)
void
Help
::
OpenHelpAgent
(
const
OString
&
)
{
}
// -----------------------------------------------------------------------
sal_Bool
Help
::
Start
(
const
Xub
String
&
,
const
Window
*
)
sal_Bool
Help
::
Start
(
const
OU
String
&
,
const
Window
*
)
{
return
sal_False
;
}
sal_Bool
Help
::
SearchKeyword
(
const
Xub
String
&
)
sal_Bool
Help
::
SearchKeyword
(
const
OU
String
&
)
{
return
sal_False
;
}
// -----------------------------------------------------------------------
XubString
Help
::
GetHelpText
(
const
String
&
,
const
Window
*
)
OUString
Help
::
GetHelpText
(
const
OU
String
&
,
const
Window
*
)
{
return
ImplGetSVEmptyStr
();
}
...
...
@@ -193,7 +194,7 @@ sal_Bool Help::IsBalloonHelpEnabled()
sal_Bool
Help
::
ShowBalloon
(
Window
*
pParent
,
const
Point
&
rScreenPos
,
const
Xub
String
&
rHelpText
)
const
OU
String
&
rHelpText
)
{
ImplShowHelpWindow
(
pParent
,
HELPWINSTYLE_BALLOON
,
0
,
rHelpText
,
ImplGetSVEmptyStr
(),
rScreenPos
);
...
...
@@ -205,7 +206,7 @@ sal_Bool Help::ShowBalloon( Window* pParent,
sal_Bool
Help
::
ShowBalloon
(
Window
*
pParent
,
const
Point
&
rScreenPos
,
const
Rectangle
&
rRect
,
const
Xub
String
&
rHelpText
)
const
OU
String
&
rHelpText
)
{
ImplShowHelpWindow
(
pParent
,
HELPWINSTYLE_BALLOON
,
0
,
rHelpText
,
ImplGetSVEmptyStr
(),
rScreenPos
,
&
rRect
);
...
...
@@ -238,8 +239,8 @@ sal_Bool Help::IsQuickHelpEnabled()
sal_Bool
Help
::
ShowQuickHelp
(
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rHelpText
,
const
Xub
String
&
rLongHelpText
,
const
OU
String
&
rHelpText
,
const
OU
String
&
rLongHelpText
,
sal_uInt16
nStyle
)
{
ImplShowHelpWindow
(
pParent
,
HELPWINSTYLE_QUICK
,
nStyle
,
...
...
@@ -260,7 +261,7 @@ void Help::HideBalloonAndQuickHelp()
// -----------------------------------------------------------------------
sal_uIntPtr
Help
::
ShowTip
(
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rText
,
sal_uInt16
nStyle
)
const
OU
String
&
rText
,
sal_uInt16
nStyle
)
{
sal_uInt16
nHelpWinStyle
=
(
(
nStyle
&
QUICKHELP_TIP_STYLE_BALLOON
)
!=
0
)
?
HELPWINSTYLE_BALLOON
:
HELPWINSTYLE_QUICK
;
HelpTextWindow
*
pHelpWin
=
new
HelpTextWindow
(
pParent
,
rText
,
nHelpWinStyle
,
nStyle
);
...
...
@@ -274,7 +275,7 @@ sal_uIntPtr Help::ShowTip( Window* pParent, const Rectangle& rScreenRect,
// -----------------------------------------------------------------------
void
Help
::
UpdateTip
(
sal_uIntPtr
nId
,
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
Xub
String
&
rText
)
void
Help
::
UpdateTip
(
sal_uIntPtr
nId
,
Window
*
pParent
,
const
Rectangle
&
rScreenRect
,
const
OU
String
&
rText
)
{
HelpTextWindow
*
pHelpWin
=
reinterpret_cast
<
HelpTextWindow
*
>
(
nId
);
ENSURE_OR_RETURN_VOID
(
pHelpWin
!=
NULL
,
"Help::UpdateTip: invalid ID!"
);
...
...
@@ -303,7 +304,7 @@ void Help::HideTip( sal_uLong nId )
// =======================================================================
HelpTextWindow
::
HelpTextWindow
(
Window
*
pParent
,
const
Xub
String
&
rText
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
)
:
HelpTextWindow
::
HelpTextWindow
(
Window
*
pParent
,
const
OU
String
&
rText
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
)
:
//FloatingWindow( pParent->ImplGetFrameWindow(), WB_SYSTEMWINDOW ),
FloatingWindow
(
pParent
,
WB_SYSTEMWINDOW
|
WB_TOOLTIPWIN
),
// #105827# if we change the parent, mirroring will not work correctly when positioning this window
maHelpText
(
rText
)
...
...
@@ -367,10 +368,10 @@ HelpTextWindow::~HelpTextWindow()
// -----------------------------------------------------------------------
void
HelpTextWindow
::
SetHelpText
(
const
String
&
rHelpText
)
void
HelpTextWindow
::
SetHelpText
(
const
OU
String
&
rHelpText
)
{
maHelpText
=
rHelpText
;
if
(
mnHelpWinStyle
==
HELPWINSTYLE_QUICK
&&
maHelpText
.
Len
()
<
HELPTEXTMAXLEN
)
if
(
mnHelpWinStyle
==
HELPWINSTYLE_QUICK
&&
maHelpText
.
getLength
()
<
HELPTEXTMAXLEN
)
{
Size
aSize
;
aSize
.
Height
()
=
GetTextHeight
();
...
...
@@ -383,9 +384,11 @@ void HelpTextWindow::SetHelpText( const String& rHelpText )
else
// HELPWINSTYLE_BALLOON
{
Point
aTmpPoint
;
sal_uInt16
nCharsInLine
=
35
+
((
maHelpText
.
Len
()
/
100
)
*
5
);
XubString
aXXX
;
aXXX
.
Fill
(
nCharsInLine
,
'x'
);
// average width to have all windows consistent
sal_Int32
nCharsInLine
=
35
+
((
maHelpText
.
getLength
()
/
100
)
*
5
);
// average width to have all windows consistent
OUStringBuffer
aBuf
;
comphelper
::
string
::
padToLength
(
aBuf
,
nCharsInLine
,
'x'
);
OUString
aXXX
=
aBuf
.
makeStringAndClear
();
long
nWidth
=
GetTextWidth
(
aXXX
);
Size
aTmpSize
(
nWidth
,
0x7FFFFFFF
);
Rectangle
aTry1
(
aTmpPoint
,
aTmpSize
);
...
...
@@ -428,11 +431,11 @@ void HelpTextWindow::Paint( const Rectangle& )
Rectangle
aCtrlRegion
(
Point
(
0
,
0
),
GetOutputSizePixel
()
);
ImplControlValue
aControlValue
;
bNativeOK
=
DrawNativeControl
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
,
aCtrlRegion
,
0
,
aControlValue
,
rtl
::
OUString
()
);
0
,
aControlValue
,
OUString
()
);
}
// paint text
if
(
mnHelpWinStyle
==
HELPWINSTYLE_QUICK
&&
maHelpText
.
Len
()
<
HELPTEXTMAXLEN
)
if
(
mnHelpWinStyle
==
HELPWINSTYLE_QUICK
&&
maHelpText
.
getLength
()
<
HELPTEXTMAXLEN
)
{
if
(
mnStyle
&
QUICKHELP_CTRLTEXT
)
DrawCtrlText
(
maTextRect
.
TopLeft
(),
maHelpText
);
...
...
@@ -536,7 +539,7 @@ void HelpTextWindow::RequestHelp( const HelpEvent& /*rHEvt*/ )
// -----------------------------------------------------------------------
String
HelpTextWindow
::
GetText
()
const
Xub
String
HelpTextWindow
::
GetText
()
const
{
return
maHelpText
;
}
...
...
@@ -552,12 +555,12 @@ String HelpTextWindow::GetText() const
// =======================================================================
void
ImplShowHelpWindow
(
Window
*
pParent
,
sal_uInt16
nHelpWinStyle
,
sal_uInt16
nStyle
,
const
XubString
&
rHelpText
,
const
Xub
String
&
rStatusText
,
const
OUString
&
rHelpText
,
const
OU
String
&
rStatusText
,
const
Point
&
rScreenPos
,
const
Rectangle
*
pHelpArea
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
if
(
!
rHelpText
.
Len
()
&&
!
pSVData
->
maHelpData
.
mbRequestingHelp
)
if
(
rHelpText
.
isEmpty
()
&&
!
pSVData
->
maHelpData
.
mbRequestingHelp
)
return
;
HelpTextWindow
*
pHelpWin
=
pSVData
->
maHelpData
.
mpHelpWin
;
...
...
@@ -602,7 +605,7 @@ void ImplShowHelpWindow( Window* pParent, sal_uInt16 nHelpWinStyle, sal_uInt16 n
}
}
if
(
!
pHelpWin
&&
rHelpText
.
Len
()
)
if
(
!
pHelpWin
&&
!
rHelpText
.
isEmpty
()
)
{
sal_uLong
nCurTime
=
Time
::
GetSystemTicks
();
if
(
(
(
nCurTime
-
pSVData
->
maHelpData
.
mnLastHelpHideTime
)
<
pParent
->
GetSettings
().
GetHelpSettings
().
GetTipDelay
()
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment