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
d62b71bd
Kaydet (Commit)
d62b71bd
authored
Eki 16, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prevw -> Preview.
Change-Id: I93cd8e27d5f16fe62a1434e3667fc7cc06c62e08
üst
dfa1afd0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
78 additions
and
78 deletions
+78
-78
accmap.hxx
sw/inc/accmap.hxx
+7
-7
pagepreviewlayout.hxx
sw/inc/pagepreviewlayout.hxx
+21
-21
accmap.cxx
sw/source/core/access/accmap.cxx
+31
-31
prevwpage.hxx
sw/source/core/inc/prevwpage.hxx
+5
-5
viewimp.hxx
sw/source/core/inc/viewimp.hxx
+5
-5
pagepreviewlayout.cxx
sw/source/core/view/pagepreviewlayout.cxx
+0
-0
viewimp.cxx
sw/source/core/view/viewimp.cxx
+7
-7
viewsh.cxx
sw/source/core/view/viewsh.cxx
+1
-1
pview.hxx
sw/source/ui/inc/pview.hxx
+1
-1
pview.cxx
sw/source/ui/uiview/pview.cxx
+0
-0
No files found.
sw/inc/accmap.hxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -49,7 +49,7 @@ class SwAccessibleSelectedParas_Impl;
class
SwRect
;
class
MapMode
;
class
SwAccPreviewData
;
struct
PrevwPage
;
struct
Prev
ie
wPage
;
class
Window
;
// real states for events
...
...
@@ -132,10 +132,10 @@ public:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
GetDocumentPreview
(
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
);
const
Size
&
_rPrev
ie
wWinSize
);
::
rtl
::
Reference
<
SwAccessibleContext
>
GetContextImpl
(
const
SwFrm
*
pFrm
,
...
...
@@ -166,12 +166,12 @@ public:
@author OD
@param _nPrevwPageNum
@param _nPrev
ie
wPageNum
input parameter - physical page number of page visible in the page preview
@return an object of class <Size>
*/
Size
GetPreViewPageSize
(
sal_uInt16
_nPrevwPageNum
)
const
;
Size
GetPreViewPageSize
(
sal_uInt16
_nPrev
ie
wPageNum
)
const
;
void
RemoveContext
(
const
SwFrm
*
pFrm
);
void
RemoveContext
(
const
SdrObject
*
pObj
);
...
...
@@ -235,10 +235,10 @@ public:
Window
&
rChild
)
const
;
// update preview data (and fire events if necessary)
void
UpdatePreview
(
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
void
UpdatePreview
(
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
);
const
Size
&
_rPrev
ie
wWinSize
);
void
InvalidatePreViewSelection
(
sal_uInt16
nSelPage
);
bool
IsPageSelected
(
const
SwPageFrm
*
pPageFrm
)
const
;
...
...
sw/inc/pagepreviewlayout.hxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -33,7 +33,7 @@ class ViewShell;
class
SwRootFrm
;
class
SwPageFrm
;
class
Fraction
;
struct
PrevwPage
;
struct
Prev
ie
wPage
;
// =============================================================================
/** page preview functionality in the writer
...
...
@@ -79,8 +79,8 @@ private:
Rectangle
maPreviewDocRect
;
SwTwips
mnColWidth
;
SwTwips
mnRowHeight
;
SwTwips
mnPrevwLayoutWidth
;
SwTwips
mnPrevwLayoutHeight
;
SwTwips
mnPrev
ie
wLayoutWidth
;
SwTwips
mnPrev
ie
wLayoutHeight
;
bool
mbDoesLayoutColsFitIntoWindow
;
bool
mbDoesLayoutRowsFitIntoWindow
;
...
...
@@ -91,10 +91,10 @@ private:
Point
maPaintStartPageOffset
;
Point
maPaintPreviewDocOffset
;
Point
maAdditionalPaintOffset
;
Rectangle
maPaintedPrevwDocRect
;
Rectangle
maPaintedPrev
ie
wDocRect
;
sal_uInt16
mnSelectedPageNum
;
std
::
vector
<
Prev
wPage
*>
maPrev
wPages
;
std
::
vector
<
Prev
iewPage
*>
maPrevie
wPages
;
/** #i22014# - internal booleans to indicate, that a new print
preview layout has been created during a paint. */
...
...
@@ -113,19 +113,19 @@ private:
@author OD
*/
void
_ClearPrevwLayoutSizes
();
void
_ClearPrev
ie
wLayoutSizes
();
/** helper method to clear data in preview page vectors
@author OD
*/
void
_ClearPrevwPageData
();
void
_ClearPrev
ie
wPageData
();
/** calculate page preview layout sizes
@author OD
*/
void
_CalcPrevwLayoutSizes
();
void
_CalcPrev
ie
wLayoutSizes
();
/** apply new zoom at given view shell
...
...
@@ -164,7 +164,7 @@ private:
@author OD
*/
void
_CalcDocPrevwPaintRect
();
void
_CalcDocPrev
ie
wPaintRect
();
/** determines preview data for a given page and a given preview offset
...
...
@@ -175,19 +175,19 @@ private:
input parameter - constant reference to page frame, for which the
preview data will be calculated.
@param _rPrevwOffset
@param _rPrev
ie
wOffset
input parameter - constant reference to the offset the given page has
in the current preview window.
Note: Offset can be negative.
@param _opPrevwPage
@param _opPrev
ie
wPage
output parameter - calculated preview data.
@return boolean, indicating, if calculation was successful.
*/
bool
_CalcPreviewDataForPage
(
const
SwPageFrm
&
_rPage
,
const
Point
&
_rPrevwOffset
,
Prev
wPage
*
_opPrev
wPage
);
const
Point
&
_rPrev
ie
wOffset
,
Prev
iewPage
*
_opPrevie
wPage
);
/** calculate preview pages
...
...
@@ -211,13 +211,13 @@ private:
@return pointer to preview page of current preview pages. If page doesn't
belongs to current preview pages, <0> is returned.
*/
const
Prev
wPage
*
_GetPrev
wPageByPageNum
(
const
sal_uInt16
_nPageNum
)
const
;
const
Prev
iewPage
*
_GetPrevie
wPageByPageNum
(
const
sal_uInt16
_nPageNum
)
const
;
/** paint selection mark at page
@author OD
*/
void
_PaintSelectMarkAtPage
(
const
Prev
wPage
*
_aSelectedPrev
wPage
)
const
;
void
_PaintSelectMarkAtPage
(
const
Prev
iewPage
*
_aSelectedPrevie
wPage
)
const
;
public
:
/** constructor of <SwPagePreviewLayout>
...
...
@@ -246,7 +246,7 @@ public:
*/
inline
~
SwPagePreviewLayout
()
{
_ClearPrevwPageData
();
_ClearPrev
ie
wPageData
();
}
/** init page preview layout
...
...
@@ -448,7 +448,7 @@ public:
@author OD
@param _aPrevwPos
@param _aPrev
ie
wPos
input parameter - position inside the visible preview window.
@param _orDocPos
...
...
@@ -468,7 +468,7 @@ public:
@return boolean - indicating, that given preview position lays inside
a shown document preview page, not an empty page.
*/
bool
IsPrev
wPosInDocPrevwPage
(
const
Point
_aPrev
wPos
,
bool
IsPrev
iewPosInDocPreviewPage
(
const
Point
_aPrevie
wPos
,
Point
&
_orDocPos
,
bool
&
_obPosInEmptyPage
,
sal_uInt16
&
_onPageNum
)
const
;
...
...
@@ -525,7 +525,7 @@ public:
*/
sal_uInt16
GetColOfPage
(
sal_uInt16
_nPageNum
)
const
;
Size
GetPrevwDocSize
()
const
;
Size
GetPrev
ie
wDocSize
()
const
;
/** get size of a preview page by its physical page number
...
...
@@ -537,7 +537,7 @@ public:
@return an object of class <Size>
*/
Size
GetPrevwPageSizeByPageNum
(
sal_uInt16
_nPageNum
)
const
;
Size
GetPrev
ie
wPageSizeByPageNum
(
sal_uInt16
_nPageNum
)
const
;
/** get virtual page number by its physical page number
...
...
@@ -576,7 +576,7 @@ public:
@author FME
*/
sal_uInt16
GetNumberOfPreviewPages
()
{
return
sal
::
static_int_cast
<
sal_uInt16
>
(
maPrevwPages
.
size
());
}
sal_uInt16
GetNumberOfPreviewPages
()
{
return
sal
::
static_int_cast
<
sal_uInt16
>
(
maPrev
ie
wPages
.
size
());
}
};
#endif // _PAGEPREVIEWLAYOUT_HXX
...
...
sw/source/core/access/accmap.cxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -549,27 +549,27 @@ class SwAccPreviewData
input/output parameter - reference to the logic page rectangle, which
has to be adjusted.
@param _rPrevwPgSwRect
@param _rPrev
ie
wPgSwRect
input parameter - constant reference to the corresponding preview page
rectangle; needed to determine the visible part of the logic page rectangle.
@param _rPrevwWinSize
@param _rPrev
ie
wWinSize
input paramter - constant reference to the preview window size in TWIP;
needed to determine the visible part of the logic page rectangle
*/
void
AdjustLogicPgRectToVisibleArea
(
SwRect
&
_iorLogicPgSwRect
,
const
SwRect
&
_rPrevwPgSwRect
,
const
Size
&
_rPrevwWinSize
);
const
SwRect
&
_rPrev
ie
wPgSwRect
,
const
Size
&
_rPrev
ie
wWinSize
);
public
:
SwAccPreviewData
();
~
SwAccPreviewData
();
void
Update
(
const
SwAccessibleMap
&
rAccMap
,
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
);
const
Size
&
_rPrev
ie
wWinSize
);
void
InvalidateSelection
(
const
SwPageFrm
*
_pSelectedPageFrm
);
...
...
@@ -599,10 +599,10 @@ SwAccPreviewData::~SwAccPreviewData()
}
void
SwAccPreviewData
::
Update
(
const
SwAccessibleMap
&
rAccMap
,
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
)
const
Size
&
_rPrev
ie
wWinSize
)
{
// store preview scaling, maximal preview page size and selected page
maScale
=
_rScale
;
...
...
@@ -616,15 +616,15 @@ void SwAccPreviewData::Update( const SwAccessibleMap& rAccMap,
// loop on preview pages to calculate <maPreviewRects>, <maLogicRects> and
// <maVisArea>
for
(
std
::
vector
<
Prev
wPage
*>::
const_iterator
aPageIter
=
_rPrev
wPages
.
begin
();
aPageIter
!=
_rPrevwPages
.
end
();
for
(
std
::
vector
<
Prev
iewPage
*>::
const_iterator
aPageIter
=
_rPrevie
wPages
.
begin
();
aPageIter
!=
_rPrev
ie
wPages
.
end
();
++
aPageIter
)
{
aPage
=
(
*
aPageIter
)
->
pPage
;
// add preview page rectangle to <maPreviewRects>
Rectangle
aPrev
wPgRect
(
(
*
aPageIter
)
->
aPrev
wWinPos
,
(
*
aPageIter
)
->
aPageSize
);
maPreviewRects
.
push_back
(
aPrevwPgRect
);
Rectangle
aPrev
iewPgRect
(
(
*
aPageIter
)
->
aPrevie
wWinPos
,
(
*
aPageIter
)
->
aPageSize
);
maPreviewRects
.
push_back
(
aPrev
ie
wPgRect
);
// add logic page rectangle to <maLogicRects>
SwRect
aLogicPgSwRect
(
aPage
.
GetBox
(
rAccMap
)
);
...
...
@@ -636,8 +636,8 @@ void SwAccPreviewData::Update( const SwAccessibleMap& rAccMap,
if
(
!
(
*
aPageIter
)
->
pPage
->
IsEmptyPage
()
)
{
AdjustLogicPgRectToVisibleArea
(
aLogicPgSwRect
,
SwRect
(
aPrevwPgRect
),
_rPrevwWinSize
);
SwRect
(
aPrev
ie
wPgRect
),
_rPrev
ie
wWinSize
);
}
if
(
maVisArea
.
IsEmpty
()
)
maVisArea
=
aLogicPgSwRect
;
...
...
@@ -700,30 +700,30 @@ void SwAccPreviewData::DisposePage(const SwPageFrm *pPageFrm )
// adjust logic page retangle to its visible part
void
SwAccPreviewData
::
AdjustLogicPgRectToVisibleArea
(
SwRect
&
_iorLogicPgSwRect
,
const
SwRect
&
_rPrevwPgSwRect
,
const
Size
&
_rPrevwWinSize
)
const
SwRect
&
_rPrev
ie
wPgSwRect
,
const
Size
&
_rPrev
ie
wWinSize
)
{
// determine preview window rectangle
const
SwRect
aPrev
wWinSwRect
(
Point
(
0
,
0
),
_rPrev
wWinSize
);
const
SwRect
aPrev
iewWinSwRect
(
Point
(
0
,
0
),
_rPrevie
wWinSize
);
// calculate visible preview page rectangle
SwRect
aVisPrev
wPgSwRect
(
_rPrev
wPgSwRect
);
aVisPrev
wPgSwRect
.
Intersection
(
aPrev
wWinSwRect
);
SwRect
aVisPrev
iewPgSwRect
(
_rPrevie
wPgSwRect
);
aVisPrev
iewPgSwRect
.
Intersection
(
aPrevie
wWinSwRect
);
// adjust logic page rectangle
SwTwips
nTmpDiff
;
// left
nTmpDiff
=
aVisPrev
wPgSwRect
.
Left
()
-
_rPrev
wPgSwRect
.
Left
();
nTmpDiff
=
aVisPrev
iewPgSwRect
.
Left
()
-
_rPrevie
wPgSwRect
.
Left
();
if
(
nTmpDiff
>
0
)
_iorLogicPgSwRect
.
Left
(
_iorLogicPgSwRect
.
Left
()
+
nTmpDiff
);
// top
nTmpDiff
=
aVisPrev
wPgSwRect
.
Top
()
-
_rPrev
wPgSwRect
.
Top
();
nTmpDiff
=
aVisPrev
iewPgSwRect
.
Top
()
-
_rPrevie
wPgSwRect
.
Top
();
if
(
nTmpDiff
>
0
)
_iorLogicPgSwRect
.
Top
(
_iorLogicPgSwRect
.
Top
()
+
nTmpDiff
);
// right
nTmpDiff
=
_rPrev
wPgSwRect
.
Right
()
-
aVisPrev
wPgSwRect
.
Right
();
nTmpDiff
=
_rPrev
iewPgSwRect
.
Right
()
-
aVisPrevie
wPgSwRect
.
Right
();
if
(
nTmpDiff
>
0
)
_iorLogicPgSwRect
.
Right
(
_iorLogicPgSwRect
.
Right
()
-
nTmpDiff
);
// bottom
nTmpDiff
=
_rPrev
wPgSwRect
.
Bottom
()
-
aVisPrev
wPgSwRect
.
Bottom
();
nTmpDiff
=
_rPrev
iewPgSwRect
.
Bottom
()
-
aVisPrevie
wPgSwRect
.
Bottom
();
if
(
nTmpDiff
>
0
)
_iorLogicPgSwRect
.
Bottom
(
_iorLogicPgSwRect
.
Bottom
()
-
nTmpDiff
);
}
...
...
@@ -1299,15 +1299,15 @@ uno::Reference< XAccessible > SwAccessibleMap::GetDocumentView( )
}
uno
::
Reference
<
XAccessible
>
SwAccessibleMap
::
GetDocumentPreview
(
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
)
const
Size
&
_rPrev
ie
wWinSize
)
{
// create & update preview data object
if
(
mpPreview
==
NULL
)
mpPreview
=
new
SwAccPreviewData
();
mpPreview
->
Update
(
*
this
,
_rPrev
wPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrev
wWinSize
);
mpPreview
->
Update
(
*
this
,
_rPrev
iewPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrevie
wWinSize
);
uno
::
Reference
<
XAccessible
>
xAcc
=
_GetDocumentView
(
true
);
return
xAcc
;
...
...
@@ -2178,15 +2178,15 @@ sal_Int32 SwAccessibleMap::GetChildIndex( const SwFrm& rParentFrm,
return
nIndex
;
}
void
SwAccessibleMap
::
UpdatePreview
(
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
void
SwAccessibleMap
::
UpdatePreview
(
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
)
const
Size
&
_rPrev
ie
wWinSize
)
{
OSL_ENSURE
(
GetShell
()
->
IsPreView
(),
"no preview?"
);
OSL_ENSURE
(
mpPreview
!=
NULL
,
"no preview data?"
);
mpPreview
->
Update
(
*
this
,
_rPrev
wPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrev
wWinSize
);
mpPreview
->
Update
(
*
this
,
_rPrev
iewPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrevie
wWinSize
);
// propagate change of VisArea through the document's
// accessibility tree; this will also send appropriate scroll
...
...
@@ -2524,14 +2524,14 @@ void SwAccessibleMap::GetMapMode( const Point& _rPoint,
_orMapMode
=
aMapMode
;
}
Size
SwAccessibleMap
::
GetPreViewPageSize
(
sal_uInt16
_nPrevwPageNum
)
const
Size
SwAccessibleMap
::
GetPreViewPageSize
(
sal_uInt16
_nPrev
ie
wPageNum
)
const
{
OSL_ENSURE
(
mpVSh
->
IsPreView
(),
"no page preview accessible."
);
OSL_ENSURE
(
mpVSh
->
IsPreView
()
&&
(
mpPreview
!=
NULL
),
"missing accessible preview data at page preview"
);
if
(
mpVSh
->
IsPreView
()
&&
(
mpPreview
!=
NULL
)
)
{
return
mpVSh
->
PagePreviewLayout
()
->
GetPrev
wPageSizeByPageNum
(
_nPrev
wPageNum
);
return
mpVSh
->
PagePreviewLayout
()
->
GetPrev
iewPageSizeByPageNum
(
_nPrevie
wPageNum
);
}
else
{
...
...
sw/source/core/inc/prevwpage.hxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -27,23 +27,23 @@ class SwPageFrm;
/** data structure for a preview page in the current preview layout
*/
struct
PrevwPage
struct
Prev
ie
wPage
{
const
SwPageFrm
*
pPage
;
bool
bVisible
;
Size
aPageSize
;
Point
aPrevwWinPos
;
Point
aPrev
ie
wWinPos
;
Point
aLogicPos
;
Point
aMapOffset
;
inline
PrevwPage
();
inline
Prev
ie
wPage
();
};
inline
Prev
wPage
::
Prev
wPage
()
inline
Prev
iewPage
::
Previe
wPage
()
:
pPage
(
0
),
bVisible
(
false
),
aPageSize
(
Size
(
0
,
0
)
),
aPrevwWinPos
(
Point
(
0
,
0
)
),
aPrev
ie
wWinPos
(
Point
(
0
,
0
)
),
aLogicPos
(
Point
(
0
,
0
)
),
aMapOffset
(
Point
(
0
,
0
)
)
{};
...
...
sw/source/core/inc/viewimp.hxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -47,7 +47,7 @@ class SdrObject;
class
Fraction
;
class
SwPrintData
;
class
SwPagePreviewLayout
;
struct
PrevwPage
;
struct
Prev
ie
wPage
;
class
SwTxtFrm
;
// --> OD #i76669#
namespace
sdr
{
namespace
contact
{
...
...
@@ -96,7 +96,7 @@ class SwViewImp
sal_uInt16
nRestoreActions
;
//Die Anzahl der zu restaurierenden Actions (UNO)
SwRect
aSmoothRect
;
SwPagePreviewLayout
*
mpPgPrevwLayout
;
SwPagePreviewLayout
*
mpPgPrev
ie
wLayout
;
/**
Returns if printer shall be stopped.
...
...
@@ -232,7 +232,7 @@ public:
inline
SwPagePreviewLayout
*
PagePreviewLayout
()
{
return
mpPgPrevwLayout
;
return
mpPgPrev
ie
wLayout
;
}
// Is this view accessible?
...
...
@@ -276,10 +276,10 @@ public:
// update data for accessible preview
// change method signature due to new page preview functionality
void
UpdateAccessiblePreview
(
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
void
UpdateAccessiblePreview
(
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
);
const
Size
&
_rPrev
ie
wWinSize
);
void
InvalidateAccessiblePreViewSelection
(
sal_uInt16
nSelPage
);
...
...
sw/source/core/view/pagepreviewlayout.cxx
Dosyayı görüntüle @
d62b71bd
This diff is collapsed.
Click to expand it.
sw/source/core/view/viewimp.cxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -100,7 +100,7 @@ SwViewImp::SwViewImp( ViewShell *pParent ) :
pSdrObjCached
(
NULL
),
nRestoreActions
(
0
),
// OD 12.12.2002 #103492#
mpPgPrevwLayout
(
0
)
mpPgPrev
ie
wLayout
(
0
)
{
bResetHdlHiddenPaint
=
bSmoothUpdate
=
bStopSmooth
=
bStopPrt
=
sal_False
;
...
...
@@ -112,7 +112,7 @@ SwViewImp::~SwViewImp()
delete
pAccMap
;
// OD 12.12.2002 #103492#
delete
mpPgPrevwLayout
;
delete
mpPgPrev
ie
wLayout
;
//JP 29.03.96: after ShowSdrPage HideSdrPage must also be executed!!!
if
(
pDrawView
)
...
...
@@ -271,7 +271,7 @@ void SwViewImp::InitPagePreviewLayout()
{
OSL_ENSURE
(
pSh
->
GetLayout
(),
"no layout - page preview layout can not be created."
);
if
(
pSh
->
GetLayout
()
)
mpPgPrevwLayout
=
new
SwPagePreviewLayout
(
*
pSh
,
*
(
pSh
->
GetLayout
())
);
mpPgPrev
ie
wLayout
=
new
SwPagePreviewLayout
(
*
pSh
,
*
(
pSh
->
GetLayout
())
);
}
void
SwViewImp
::
UpdateAccessible
()
...
...
@@ -433,14 +433,14 @@ void SwViewImp::_InvalidateAccessibleParaAttrs( const SwTxtFrm& rTxtFrm )
}
// OD 15.01.2003 #103492# - method signature change due to new page preview functionality
void
SwViewImp
::
UpdateAccessiblePreview
(
const
std
::
vector
<
Prev
wPage
*>&
_rPrev
wPages
,
void
SwViewImp
::
UpdateAccessiblePreview
(
const
std
::
vector
<
Prev
iewPage
*>&
_rPrevie
wPages
,
const
Fraction
&
_rScale
,
const
SwPageFrm
*
_pSelectedPageFrm
,
const
Size
&
_rPrevwWinSize
)
const
Size
&
_rPrev
ie
wWinSize
)
{
if
(
IsAccessible
()
)
GetAccessibleMap
().
UpdatePreview
(
_rPrevwPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrevwWinSize
);
GetAccessibleMap
().
UpdatePreview
(
_rPrev
ie
wPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrev
ie
wWinSize
);
}
void
SwViewImp
::
InvalidateAccessiblePreViewSelection
(
sal_uInt16
nSelPage
)
...
...
sw/source/core/view/viewsh.cxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -2163,7 +2163,7 @@ ViewShell::CreateAccessiblePreview()
if
(
IsPreView
()
&&
GetLayout
()
&&
GetWin
()
)
{
return
Imp
()
->
GetAccessibleMap
().
GetDocumentPreview
(
PagePreviewLayout
()
->
maPrevwPages
,
PagePreviewLayout
()
->
maPrev
ie
wPages
,
GetWin
()
->
GetMapMode
().
GetScaleX
(),
GetLayout
()
->
GetPageByPageNum
(
PagePreviewLayout
()
->
mnSelectedPageNum
),
PagePreviewLayout
()
->
maWinSize
);
//swmod 080305
...
...
sw/source/ui/inc/pview.hxx
Dosyayı görüntüle @
d62b71bd
...
...
@@ -52,7 +52,7 @@ class SwPagePreViewWin : public Window
SwPagePreView
&
mrView
;
bool
mbCalcScaleForPreviewLayout
;
Rectangle
maPaintedPreviewDocRect
;
SwPagePreviewLayout
*
mpPgPrevwLayout
;
SwPagePreviewLayout
*
mpPgPrev
ie
wLayout
;
void
SetPagePreview
(
sal_uInt8
nRow
,
sal_uInt8
nCol
);
...
...
sw/source/ui/uiview/pview.cxx
Dosyayı görüntüle @
d62b71bd
This diff is collapsed.
Click to expand it.
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