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
f0b9a277
Kaydet (Commit)
f0b9a277
authored
Agu 14, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make extensions XubString free
Change-Id: I0216d11ade872af889fc805e4c2a9241f7f230c5
üst
fbe0e7c1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
32 deletions
+28
-32
toolbar.cxx
extensions/source/bibliography/toolbar.cxx
+7
-8
toolbar.hxx
extensions/source/bibliography/toolbar.hxx
+4
-4
browserline.cxx
extensions/source/propctrlr/browserline.cxx
+2
-2
browserline.hxx
extensions/source/propctrlr/browserline.hxx
+2
-2
updatecheckui.cxx
extensions/source/update/ui/updatecheckui.cxx
+13
-16
No files found.
extensions/source/bibliography/toolbar.cxx
Dosyayı görüntüle @
f0b9a277
...
@@ -104,7 +104,7 @@ void BibTBListBoxListener::statusChanged(const ::com::sun::star::frame::FeatureS
...
@@ -104,7 +104,7 @@ void BibTBListBoxListener::statusChanged(const ::com::sun::star::frame::FeatureS
const
OUString
*
pStringArray
=
(
const
OUString
*
)
pStringSeq
->
getConstArray
();
const
OUString
*
pStringArray
=
(
const
OUString
*
)
pStringSeq
->
getConstArray
();
sal_uInt32
nCount
=
pStringSeq
->
getLength
();
sal_uInt32
nCount
=
pStringSeq
->
getLength
();
Xub
String
aEntry
;
OU
String
aEntry
;
for
(
sal_uInt32
i
=
0
;
i
<
nCount
;
i
++
)
for
(
sal_uInt32
i
=
0
;
i
<
nCount
;
i
++
)
{
{
aEntry
=
String
(
pStringArray
[
i
]);
aEntry
=
String
(
pStringArray
[
i
]);
...
@@ -113,8 +113,7 @@ void BibTBListBoxListener::statusChanged(const ::com::sun::star::frame::FeatureS
...
@@ -113,8 +113,7 @@ void BibTBListBoxListener::statusChanged(const ::com::sun::star::frame::FeatureS
pToolBar
->
UpdateSourceList
(
sal_True
);
pToolBar
->
UpdateSourceList
(
sal_True
);
}
}
XubString
aStr
=
String
(
rEvt
.
FeatureDescriptor
);
pToolBar
->
SelectSourceEntry
(
rEvt
.
FeatureDescriptor
);
pToolBar
->
SelectSourceEntry
(
aStr
);
}
}
};
};
...
@@ -219,7 +218,7 @@ BibToolBar::BibToolBar(Window* pParent, Link aLink, WinBits nStyle):
...
@@ -219,7 +218,7 @@ BibToolBar::BibToolBar(Window* pParent, Link aLink, WinBits nStyle):
aEdQuery
.
SetSizePixel
(
aLBSource
.
GetSizePixel
());
aEdQuery
.
SetSizePixel
(
aLBSource
.
GetSizePixel
());
aEdQuery
.
Show
();
aEdQuery
.
Show
();
Xub
String
aStr
=
GetItemText
(
TBC_FT_SOURCE
);
OU
String
aStr
=
GetItemText
(
TBC_FT_SOURCE
);
Rectangle
aRect
=
GetItemRect
(
TBC_FT_SOURCE
);
Rectangle
aRect
=
GetItemRect
(
TBC_FT_SOURCE
);
aFtSource
.
SetText
(
aStr
);
aFtSource
.
SetText
(
aStr
);
aFtSource
.
SetSizePixel
(
aRect
.
GetSize
());
aFtSource
.
SetSizePixel
(
aRect
.
GetSize
());
...
@@ -377,7 +376,7 @@ void BibToolBar::ClearFilterMenu()
...
@@ -377,7 +376,7 @@ void BibToolBar::ClearFilterMenu()
aPopupMenu
.
Clear
();
aPopupMenu
.
Clear
();
nMenuId
=
0
;
nMenuId
=
0
;
}
}
sal_uInt16
BibToolBar
::
InsertFilterItem
(
const
Xub
String
&
aMenuEntry
)
sal_uInt16
BibToolBar
::
InsertFilterItem
(
const
OU
String
&
aMenuEntry
)
{
{
nMenuId
++
;
nMenuId
++
;
aPopupMenu
.
InsertItem
(
nMenuId
,
aMenuEntry
);
aPopupMenu
.
InsertItem
(
nMenuId
,
aMenuEntry
);
...
@@ -407,12 +406,12 @@ void BibToolBar::UpdateSourceList(sal_Bool bFlag)
...
@@ -407,12 +406,12 @@ void BibToolBar::UpdateSourceList(sal_Bool bFlag)
aLBSource
.
SetUpdateMode
(
bFlag
);
aLBSource
.
SetUpdateMode
(
bFlag
);
}
}
void
BibToolBar
::
InsertSourceEntry
(
const
Xub
String
&
aEntry
,
sal_uInt16
nPos
)
void
BibToolBar
::
InsertSourceEntry
(
const
OU
String
&
aEntry
,
sal_uInt16
nPos
)
{
{
aLBSource
.
InsertEntry
(
aEntry
,
nPos
);
aLBSource
.
InsertEntry
(
aEntry
,
nPos
);
}
}
void
BibToolBar
::
SelectSourceEntry
(
const
Xub
String
&
aStr
)
void
BibToolBar
::
SelectSourceEntry
(
const
OU
String
&
aStr
)
{
{
aLBSource
.
SelectEntry
(
aStr
);
aLBSource
.
SelectEntry
(
aStr
);
}
}
...
@@ -423,7 +422,7 @@ void BibToolBar::EnableQuery(sal_Bool bFlag)
...
@@ -423,7 +422,7 @@ void BibToolBar::EnableQuery(sal_Bool bFlag)
aEdQuery
.
Enable
(
bFlag
);
aEdQuery
.
Enable
(
bFlag
);
}
}
void
BibToolBar
::
SetQueryString
(
const
Xub
String
&
aStr
)
void
BibToolBar
::
SetQueryString
(
const
OU
String
&
aStr
)
{
{
aEdQuery
.
SetText
(
aStr
);
aEdQuery
.
SetText
(
aStr
);
}
}
...
...
extensions/source/bibliography/toolbar.hxx
Dosyayı görüntüle @
f0b9a277
...
@@ -156,15 +156,15 @@ class BibToolBar: public ToolBox
...
@@ -156,15 +156,15 @@ class BibToolBar: public ToolBox
void
ClearSourceList
();
void
ClearSourceList
();
void
UpdateSourceList
(
sal_Bool
bFlag
=
sal_True
);
void
UpdateSourceList
(
sal_Bool
bFlag
=
sal_True
);
void
EnableSourceList
(
sal_Bool
bFlag
=
sal_True
);
void
EnableSourceList
(
sal_Bool
bFlag
=
sal_True
);
void
InsertSourceEntry
(
const
Xub
String
&
,
sal_uInt16
nPos
=
LISTBOX_APPEND
);
void
InsertSourceEntry
(
const
OU
String
&
,
sal_uInt16
nPos
=
LISTBOX_APPEND
);
void
SelectSourceEntry
(
const
Xub
String
&
);
void
SelectSourceEntry
(
const
OU
String
&
);
void
EnableQuery
(
sal_Bool
bFlag
=
sal_True
);
void
EnableQuery
(
sal_Bool
bFlag
=
sal_True
);
void
SetQueryString
(
const
Xub
String
&
);
void
SetQueryString
(
const
OU
String
&
);
void
AdjustToolBox
();
void
AdjustToolBox
();
void
ClearFilterMenu
();
void
ClearFilterMenu
();
sal_uInt16
InsertFilterItem
(
const
Xub
String
&
);
sal_uInt16
InsertFilterItem
(
const
OU
String
&
);
void
SelectFilterItem
(
sal_uInt16
nId
);
void
SelectFilterItem
(
sal_uInt16
nId
);
void
statusChanged
(
const
::
com
::
sun
::
star
::
frame
::
FeatureStateEvent
&
Event
)
void
statusChanged
(
const
::
com
::
sun
::
star
::
frame
::
FeatureStateEvent
&
Event
)
...
...
extensions/source/propctrlr/browserline.cxx
Dosyayı görüntüle @
f0b9a277
...
@@ -256,7 +256,7 @@ namespace pcr
...
@@ -256,7 +256,7 @@ namespace pcr
}
}
//------------------------------------------------------------------
//------------------------------------------------------------------
void
OBrowserLine
::
SetTitle
(
const
Xub
String
&
_rNewTtile
)
void
OBrowserLine
::
SetTitle
(
const
OU
String
&
_rNewTtile
)
{
{
if
(
GetTitle
()
==
_rNewTtile
)
if
(
GetTitle
()
==
_rNewTtile
)
return
;
return
;
...
@@ -291,7 +291,7 @@ namespace pcr
...
@@ -291,7 +291,7 @@ namespace pcr
}
}
//------------------------------------------------------------------
//------------------------------------------------------------------
Xub
String
OBrowserLine
::
GetTitle
()
const
OU
String
OBrowserLine
::
GetTitle
()
const
{
{
OUString
sDisplayName
=
m_aFtTitle
.
GetText
();
OUString
sDisplayName
=
m_aFtTitle
.
GetText
();
...
...
extensions/source/propctrlr/browserline.hxx
Dosyayı görüntüle @
f0b9a277
...
@@ -85,9 +85,9 @@ namespace pcr
...
@@ -85,9 +85,9 @@ namespace pcr
void
SetComponentHelpIds
(
const
OString
&
_rHelpId
,
const
OString
&
_sPrimaryButtonId
,
const
OString
&
_sSecondaryButtonId
);
void
SetComponentHelpIds
(
const
OString
&
_rHelpId
,
const
OString
&
_sPrimaryButtonId
,
const
OString
&
_sSecondaryButtonId
);
void
SetTitle
(
const
String
&
rString
);
void
SetTitle
(
const
OU
String
&
rString
);
void
FullFillTitleString
();
void
FullFillTitleString
();
String
GetTitle
()
const
;
OUString
GetTitle
()
const
;
void
SetTitleWidth
(
sal_uInt16
);
void
SetTitleWidth
(
sal_uInt16
);
void
SetPosSizePixel
(
Point
aPos
,
Size
aSize
);
void
SetPosSizePixel
(
Point
aPos
,
Size
aSize
);
...
...
extensions/source/update/ui/updatecheckui.cxx
Dosyayı görüntüle @
f0b9a277
...
@@ -90,8 +90,8 @@ class BubbleWindow : public FloatingWindow
...
@@ -90,8 +90,8 @@ class BubbleWindow : public FloatingWindow
Region
maBounds
;
Region
maBounds
;
Polygon
maRectPoly
;
Polygon
maRectPoly
;
Polygon
maTriPoly
;
Polygon
maTriPoly
;
XubString
maBubbleTitle
;
OUString
maBubbleTitle
;
XubString
maBubbleText
;
OUString
maBubbleText
;
Image
maBubbleImage
;
Image
maBubbleImage
;
Size
maMaxTextSize
;
Size
maMaxTextSize
;
Rectangle
maTitleRect
;
Rectangle
maTitleRect
;
...
@@ -102,8 +102,8 @@ private:
...
@@ -102,8 +102,8 @@ private:
void
RecalcTextRects
();
void
RecalcTextRects
();
public
:
public
:
BubbleWindow
(
Window
*
pParent
,
const
Xub
String
&
rTitle
,
BubbleWindow
(
Window
*
pParent
,
const
OU
String
&
rTitle
,
const
Xub
String
&
rText
,
const
Image
&
rImage
);
const
OU
String
&
rText
,
const
Image
&
rImage
);
~
BubbleWindow
();
~
BubbleWindow
();
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
);
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
);
...
@@ -111,7 +111,7 @@ public:
...
@@ -111,7 +111,7 @@ public:
void
Resize
();
void
Resize
();
void
Show
(
sal_Bool
bVisible
=
sal_True
,
sal_uInt16
nFlags
=
SHOW_NOACTIVATE
);
void
Show
(
sal_Bool
bVisible
=
sal_True
,
sal_uInt16
nFlags
=
SHOW_NOACTIVATE
);
void
SetTipPosPixel
(
const
Point
&
rTipPos
)
{
maTipPos
=
rTipPos
;
}
void
SetTipPosPixel
(
const
Point
&
rTipPos
)
{
maTipPos
=
rTipPos
;
}
void
SetTitleAndText
(
const
XubString
&
rTitle
,
const
Xub
String
&
rText
,
void
SetTitleAndText
(
const
OUString
&
rTitle
,
const
OU
String
&
rText
,
const
Image
&
rImage
);
const
Image
&
rImage
);
};
};
...
@@ -552,15 +552,12 @@ BubbleWindow * UpdateCheckUI::GetBubbleWindow()
...
@@ -552,15 +552,12 @@ BubbleWindow * UpdateCheckUI::GetBubbleWindow()
BubbleWindow
*
pBubbleWin
=
mpBubbleWin
;
BubbleWindow
*
pBubbleWin
=
mpBubbleWin
;
if
(
!
pBubbleWin
)
{
if
(
!
pBubbleWin
)
{
pBubbleWin
=
new
BubbleWindow
(
mpIconSysWin
,
pBubbleWin
=
new
BubbleWindow
(
mpIconSysWin
,
maBubbleTitle
,
XubString
(
maBubbleTitle
),
maBubbleText
,
maBubbleImage
);
XubString
(
maBubbleText
),
maBubbleImage
);
mbBubbleChanged
=
false
;
mbBubbleChanged
=
false
;
}
}
else
if
(
mbBubbleChanged
)
{
else
if
(
mbBubbleChanged
)
{
pBubbleWin
->
SetTitleAndText
(
XubString
(
maBubbleTitle
),
pBubbleWin
->
SetTitleAndText
(
maBubbleTitle
,
maBubbleText
,
XubString
(
maBubbleText
),
maBubbleImage
);
maBubbleImage
);
mbBubbleChanged
=
false
;
mbBubbleChanged
=
false
;
}
}
...
@@ -784,8 +781,8 @@ IMPL_LINK( UpdateCheckUI, ApplicationEventHdl, VclSimpleEvent *, pEvent)
...
@@ -784,8 +781,8 @@ IMPL_LINK( UpdateCheckUI, ApplicationEventHdl, VclSimpleEvent *, pEvent)
#define TEXT_MAX_HEIGHT 200
#define TEXT_MAX_HEIGHT 200
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
BubbleWindow
::
BubbleWindow
(
Window
*
pParent
,
const
Xub
String
&
rTitle
,
BubbleWindow
::
BubbleWindow
(
Window
*
pParent
,
const
OU
String
&
rTitle
,
const
Xub
String
&
rText
,
const
Image
&
rImage
)
const
OU
String
&
rText
,
const
Image
&
rImage
)
:
FloatingWindow
(
pParent
,
WB_SYSTEMWINDOW
:
FloatingWindow
(
pParent
,
WB_SYSTEMWINDOW
|
WB_OWNERDRAWDECORATION
|
WB_OWNERDRAWDECORATION
|
WB_NOBORDER
|
WB_NOBORDER
...
@@ -836,8 +833,8 @@ void BubbleWindow::Resize()
...
@@ -836,8 +833,8 @@ void BubbleWindow::Resize()
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
BubbleWindow
::
SetTitleAndText
(
const
Xub
String
&
rTitle
,
void
BubbleWindow
::
SetTitleAndText
(
const
OU
String
&
rTitle
,
const
Xub
String
&
rText
,
const
OU
String
&
rText
,
const
Image
&
rImage
)
const
Image
&
rImage
)
{
{
maBubbleTitle
=
rTitle
;
maBubbleTitle
=
rTitle
;
...
@@ -905,7 +902,7 @@ void BubbleWindow::Show( sal_Bool bVisible, sal_uInt16 nFlags )
...
@@ -905,7 +902,7 @@ void BubbleWindow::Show( sal_Bool bVisible, sal_uInt16 nFlags )
}
}
// don't show bubbles without a text
// don't show bubbles without a text
if
(
(
maBubbleTitle
.
Len
()
==
0
)
&&
(
maBubbleText
.
Len
()
==
0
)
)
if
(
(
maBubbleTitle
.
isEmpty
()
)
&&
(
maBubbleText
.
isEmpty
()
)
)
return
;
return
;
Size
aWindowSize
=
GetSizePixel
();
Size
aWindowSize
=
GetSizePixel
();
...
...
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