Update of /cvsroot/cpptool/rfta/src/rftavc6addin
In directory sc8-pr-cvs1:/tmp/cvs-serv11132/src/rftavc6addin
Modified Files:
TextDocumentHelper.cpp TextDocumentHelper.h
Log Message:
* add getTabSize() to retrieve the tab size setting.
Index: TextDocumentHelper.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rftavc6addin/TextDocumentHelper.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TextDocumentHelper.cpp 18 Dec 2002 22:53:27 -0000 1.1
--- TextDocumentHelper.cpp 25 Dec 2002 12:38:09 -0000 1.2
***************
*** 43,44 ****
--- 43,53 ----
_document->Close( CComVariant(dsSaveChangesNo), &status );
}
+
+
+ int
+ TextDocumentHelper::getTabSize()
+ {
+ long tabSize;
+ _document->get_TabSize( &tabSize );
+ return tabSize;
+ }
Index: TextDocumentHelper.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rftavc6addin/TextDocumentHelper.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TextDocumentHelper.h 18 Dec 2002 22:53:27 -0000 1.1
--- TextDocumentHelper.h 25 Dec 2002 12:38:09 -0000 1.2
***************
*** 28,31 ****
--- 28,33 ----
void discardingClose();
+ int getTabSize();
+
private:
CComPtr<ITextDocument> _document;
|