summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-04-22 15:38:05 +0000
committerArmin Le Grand <alg@apache.org>2013-04-22 15:38:05 +0000
commit35c9acfc98fc98399005815e0464b1944f327d4e (patch)
treec613c3fb82b757b1c991bf5527ff3f3abc2834c5 /svtools/inc
parent61ed9eac0583e34a9b69f0a1adcc208509e336a1 (diff)
i122041 More unifications for FillStyles, better defaults, better preview visualizations
Notes
Notes: merged as: 1a3047112b917dc02eca621028f9de9bdaab3794
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/svtools/accessibilityoptions.hxx13
-rw-r--r--svtools/inc/svtools/valueset.hxx62
2 files changed, 39 insertions, 36 deletions
diff --git a/svtools/inc/svtools/accessibilityoptions.hxx b/svtools/inc/svtools/accessibilityoptions.hxx
index e66ce253eec6..32d962c66f2e 100644
--- a/svtools/inc/svtools/accessibilityoptions.hxx
+++ b/svtools/inc/svtools/accessibilityoptions.hxx
@@ -56,15 +56,14 @@ public:
sal_Bool IsSelectionInReadonly() const;
sal_Bool GetAutoDetectSystemHC() const;
- // options for configuring the look and feel for the ColorValueSet (color selector)
- sal_Int16 GetColorValueSetMaximumRowCount() const;
- sal_Int16 GetColorValueSetEntryEdgeLength() const;
- sal_Int16 GetColorValueSetColumnCount() const;
-
// option to activate EdgeBlending for previews in the UI (ColorValueSet, ColorDropDown,
// FillStyle/LineStyle previews, etc...). 0 == off, 100% == full paint, in-between == alpha
sal_Int16 GetEdgeBlending() const;
+ // option to set a maximum line count for ListBoxes; when less or equal than this count
+ // is in a ListBox, all will be shown, else a ScrollBar will be used
+ sal_Int16 GetListBoxMaximumLineCount() const;
+
void SetIsForPagePreviews(sal_Bool bSet);
void SetIsHelpTipsDisappear(sal_Bool bSet);
void SetIsAllowAnimatedGraphics(sal_Bool bSet);
@@ -75,10 +74,8 @@ public:
void SetSelectionInReadonly(sal_Bool bSet);
void SetAutoDetectSystemHC(sal_Bool bSet);
- void SetColorValueSetMaximumRowCount(sal_Int16 nSet);
- void SetColorValueSetEntryEdgeLength(sal_Int16 nSet);
- void SetColorValueSetColumnCount(sal_Int16 nSet);
void SetEdgeBlending(sal_Int16 nSet);
+ void SetListBoxMaximumLineCount(sal_Int16 nSet);
sal_Bool IsModified() const;
void Commit();
diff --git a/svtools/inc/svtools/valueset.hxx b/svtools/inc/svtools/valueset.hxx
index 50bbce3b1747..8a81c15f3e3c 100644
--- a/svtools/inc/svtools/valueset.hxx
+++ b/svtools/inc/svtools/valueset.hxx
@@ -250,31 +250,34 @@ private:
long mnLines;
long mnUserItemWidth;
long mnUserItemHeight;
- sal_uInt16 mnOldItemId;
- sal_uInt16 mnSelItemId;
- sal_uInt16 mnHighItemId;
- sal_uInt16 mnDropPos;
- sal_uInt16 mnCols;
- sal_uInt16 mnCurCol;
- sal_uInt16 mnUserCols;
- sal_uInt16 mnUserVisLines;
- sal_uInt16 mnFirstLine;
- sal_uInt16 mnSpacing;
- sal_uInt16 mnFrameStyle;
- sal_Bool mbFormat;
- sal_Bool mbHighlight;
- sal_Bool mbSelection;
- sal_Bool mbNoSelection;
- sal_Bool mbDrawSelection;
- sal_Bool mbBlackSel;
- sal_Bool mbDoubleSel;
- sal_Bool mbScroll;
- sal_Bool mbDropPos;
- sal_Bool mbFullMode;
+ sal_uInt16 mnOldItemId;
+ sal_uInt16 mnSelItemId;
+ sal_uInt16 mnHighItemId;
+ sal_uInt16 mnDropPos;
+ sal_uInt16 mnCols;
+ sal_uInt16 mnCurCol;
+ sal_uInt16 mnUserCols;
+ sal_uInt16 mnUserVisLines;
+ sal_uInt16 mnFirstLine;
+ sal_uInt16 mnSpacing;
+ sal_uInt16 mnFrameStyle;
Color maColor;
Link maDoubleClickHdl;
Link maSelectHdl;
+ // bitfield
+ bool mbFormat : 1;
+ bool mbHighlight : 1;
+ bool mbSelection : 1;
+ bool mbNoSelection : 1;
+ bool mbDrawSelection : 1;
+ bool mbBlackSel : 1;
+ bool mbDoubleSel : 1;
+ bool mbScroll : 1;
+ bool mbDropPos : 1;
+ bool mbFullMode : 1;
+ bool mbEdgeBlending : 1;
+
#ifdef _SV_VALUESET_CXX
friend class ValueSetAcc;
friend class ValueItemAcc;
@@ -368,8 +371,8 @@ public:
sal_uInt16 GetItemId( const Point& rPos ) const;
Rectangle GetItemRect( sal_uInt16 nItemId ) const;
- void EnableFullItemMode( sal_Bool bFullMode = sal_True );
- sal_Bool IsFullItemModeEnabled() const { return mbFullMode; }
+ void EnableFullItemMode( bool bFullMode = true );
+ bool IsFullItemModeEnabled() const { return mbFullMode; }
void SetColCount( sal_uInt16 nNewCols = 1 );
sal_uInt16 GetColCount() const { return mnUserCols; }
void SetLineCount( sal_uInt16 nNewLines = 0 );
@@ -383,10 +386,10 @@ public:
void SelectItem( sal_uInt16 nItemId );
sal_uInt16 GetSelectItemId() const { return mnSelItemId; }
- sal_Bool IsItemSelected( sal_uInt16 nItemId ) const
- { return ((!mbNoSelection && (nItemId == mnSelItemId)) ? sal_True : sal_False); }
+ bool IsItemSelected( sal_uInt16 nItemId ) const
+ { return (!mbNoSelection && (nItemId == mnSelItemId)); }
void SetNoSelection();
- sal_Bool IsNoSelection() const { return mbNoSelection; }
+ bool IsNoSelection() const { return mbNoSelection; }
void SetItemBits( sal_uInt16 nItemId, sal_uInt16 nBits );
sal_uInt16 GetItemBits( sal_uInt16 nItemId ) const;
@@ -401,7 +404,7 @@ public:
void SetColor( const Color& rColor );
void SetColor() { SetColor( Color( COL_TRANSPARENT ) ); }
Color GetColor() const { return maColor; }
- sal_Bool IsColor() const { return maColor.GetTransparency() == 0; }
+ bool IsColor() const { return maColor.GetTransparency() == 0; }
void SetExtraSpacing( sal_uInt16 nNewSpacing );
sal_uInt16 GetExtraSpacing() { return mnSpacing; }
@@ -414,7 +417,7 @@ public:
Size CalcWindowSizePixel( const Size& rItemSize,
sal_uInt16 nCalcCols = 0,
sal_uInt16 nCalcLines = 0 );
- Size CalcItemSizePixel( const Size& rSize, sal_Bool bOut = sal_True ) const;
+ Size CalcItemSizePixel( const Size& rSize, bool bOut = true ) const;
long GetScrollWidth() const;
void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
@@ -425,6 +428,9 @@ public:
void SetHighlightHdl( const Link& rLink );
const Link& GetHighlightHdl() const;
+ bool GetEdgeBlending() const { return mbEdgeBlending; }
+ void SetEdgeBlending(bool bNew);
+
private:
/** Determine whether RTL (right to left writing) is active. For this
method to return <true/> two conditions have to be fullfilled: